Difference between revisions of "Libcap"

From CBLFS
Jump to navigationJump to search
m (updated to version 2.22)
 
(5 intermediate revisions by 4 users not shown)
Line 2: Line 2:
 
|-
 
|-
 
!Download Source:
 
!Download Source:
| http://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-{{libcap-Version}}.tar.gz
+
| ftp://ftp.de.debian.org/debian/pool/main/libc/libcap2/libcap2_{{libcap-Version}}.orig.tar.gz
|-
 
!Required Patch:
 
| http://svn.cross-lfs.org/svn/repos/patches/libcap/libcap-{{libcap-Version}}-build_fix-1.patch
 
 
|-|}
 
|-|}
  
 
----
 
----
 +
{{Package-Introduction|libcap is a library for getting and setting POSIX.1e|http://www.kernel.org/}}
  
 
== Dependencies ==
 
== Dependencies ==
  
 
Required
 
Required
 +
* [[Attr]]
 +
 +
Optional
 
* [[Gperf]]
 
* [[Gperf]]
* [[Attr]]
 
  
 
== Non-Multilib ==
 
== Non-Multilib ==
  
 
Compile the package:
 
Compile the package:
patch -Np1 -i ../libcap-{{libcap-Version}}-build_fix-1.patch &&
 
 
  make
 
  make
  
Line 25: Line 24:
  
 
  make install &&
 
  make install &&
  chmod -v 755 /lib/libcap.so.{{libcap-Version}}
+
  chmod -v 755 /lib/libcap.so.{{libcap-Version}} &&
 +
mv -v /lib/libcap.a /usr/lib &&
 +
rm /lib/libcap.so &&
 +
ln -sfv ../../lib/libcap.so.2 /usr/lib/libcap.so
  
 
== Multilib ==
 
== Multilib ==
Line 33: Line 35:
 
Compile the package:
 
Compile the package:
  
  patch -Np1 -i ../libcap-{{libcap-Version}}-build_fix-1.patch &&
+
  sed -i "/^lib=/s:=.*:=lib:" Make.Rules &&
 
  make CC="gcc ${BUILD32}" LD="gcc -shared ${BUILD32}"
 
  make CC="gcc ${BUILD32}" LD="gcc -shared ${BUILD32}"
  
Line 39: Line 41:
  
 
  make install &&
 
  make install &&
  chmod -v 755 /lib/libcap.so.{{libcap-Version}}
+
  chmod -v 755 /lib/libcap.so.{{libcap-Version}} &&
 +
mv -v /lib/libcap.a /usr/lib &&
 +
rm /lib/libcap.so &&
 +
ln -sfv ../../lib/libcap.so.2 /usr/lib/libcap.so
  
 
=== N32 ===
 
=== N32 ===
Line 45: Line 50:
 
Compile the package:
 
Compile the package:
  
patch -Np1 -i ../libcap-{{libcap-Version}}-build_fix-1.patch &&
 
 
  sed -i "/^lib=/s:=.*:=lib32:" Make.Rules &&
 
  sed -i "/^lib=/s:=.*:=lib32:" Make.Rules &&
 
  make CC="gcc ${BUILDN32}" LD="gcc -shared ${BUILDN32}"
 
  make CC="gcc ${BUILDN32}" LD="gcc -shared ${BUILDN32}"
Line 52: Line 56:
  
 
  make install &&
 
  make install &&
  chmod -v 755 /lib32/libcap.so.{{libcap-Version}}
+
  chmod -v 755 /lib32/libcap.so.{{libcap-Version}} &&
 +
mv -v /lib32/libcap.a /usr/lib32 &&
 +
rm /lib32/libcap.so &&
 +
ln -sfv ../../lib32/libcap.so.2 /usr/lib32/libcap.so
  
 
=== 64Bit ===
 
=== 64Bit ===
Line 58: Line 65:
 
Compile the package:
 
Compile the package:
  
patch -Np1 -i ../libcap-{{libcap-Version}}-build_fix-1.patch &&
 
 
  sed -i "/^lib=/s:=.*:=lib64:" Make.Rules &&
 
  sed -i "/^lib=/s:=.*:=lib64:" Make.Rules &&
 
  make CC="gcc ${BUILD64}" LD="gcc -shared ${BUILD64}"
 
  make CC="gcc ${BUILD64}" LD="gcc -shared ${BUILD64}"
Line 65: Line 71:
  
 
  make install &&
 
  make install &&
  chmod -v 755 /lib64/libcap.so.{{libcap-Version}}
+
  chmod -v 755 /lib64/libcap.so.{{libcap-Version}} &&
 +
mv -v /lib64/libcap.a /usr/lib64 &&
 +
rm /lib64/libcap.so &&
 +
ln -sfv ../../lib64/libcap.so.2 /usr/lib64/libcap.so
  
 
[[Category:General Libs]]
 
[[Category:General Libs]]

Latest revision as of 08:25, 21 May 2013


Introduction to Libcap

libcap is a library for getting and setting POSIX.1e

Project Homepage: http://www.kernel.org/

Dependencies

Required

Optional

Non-Multilib

Compile the package:

make

Install the package

make install &&
chmod -v 755 /lib/libcap.so.2.22 &&
mv -v /lib/libcap.a /usr/lib &&
rm /lib/libcap.so &&
ln -sfv ../../lib/libcap.so.2 /usr/lib/libcap.so

Multilib

32Bit

Compile the package:

sed -i "/^lib=/s:=.*:=lib:" Make.Rules &&
make CC="gcc ${BUILD32}" LD="gcc -shared ${BUILD32}"

Install the package

make install &&
chmod -v 755 /lib/libcap.so.2.22 &&
mv -v /lib/libcap.a /usr/lib &&
rm /lib/libcap.so &&
ln -sfv ../../lib/libcap.so.2 /usr/lib/libcap.so

N32

Compile the package:

sed -i "/^lib=/s:=.*:=lib32:" Make.Rules &&
make CC="gcc ${BUILDN32}" LD="gcc -shared ${BUILDN32}"

Install the package

make install &&
chmod -v 755 /lib32/libcap.so.2.22 &&
mv -v /lib32/libcap.a /usr/lib32 &&
rm /lib32/libcap.so &&
ln -sfv ../../lib32/libcap.so.2 /usr/lib32/libcap.so

64Bit

Compile the package:

sed -i "/^lib=/s:=.*:=lib64:" Make.Rules &&
make CC="gcc ${BUILD64}" LD="gcc -shared ${BUILD64}"

Install the package

make install &&
chmod -v 755 /lib64/libcap.so.2.22 &&
mv -v /lib64/libcap.a /usr/lib64 &&
rm /lib64/libcap.so &&
ln -sfv ../../lib64/libcap.so.2 /usr/lib64/libcap.so
Download Source: ftp://ftp.de.debian.org/debian/pool/main/libc/libcap2/libcap2_2.22.orig.tar.gz
Retrieved from "?title=Libcap&oldid=21528"