Difference between revisions of "Libcap"

From CBLFS
Jump to navigationJump to search
(multilib fix)
(Update Libcap version to 2.19)
Line 2: Line 2:
 
|-
 
|-
 
!Download Source:
 
!Download Source:
| http://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-{{libcap-Version}}.tar.gz
+
| http://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-{{libcap-Version}}.tar.bz2
|-
 
!Required Patch:
 
| http://svn.cross-lfs.org/svn/repos/patches/libcap/libcap-{{libcap-Version}}-build_fix-1.patch
 
 
|-|}
 
|-|}
  
Line 20: Line 17:
  
 
Compile the package:
 
Compile the package:
patch -Np1 -i ../libcap-{{libcap-Version}}-build_fix-1.patch &&
 
 
  make
 
  make
  
Line 34: Line 30:
 
Compile the package:
 
Compile the package:
  
patch -Np1 -i ../libcap-{{libcap-Version}}-build_fix-1.patch &&
 
 
  sed -i "/^lib=/s:=.*:=lib:" Make.Rules &&
 
  sed -i "/^lib=/s:=.*:=lib:" Make.Rules &&
 
  make CC="gcc ${BUILD32}" LD="gcc -shared ${BUILD32}"
 
  make CC="gcc ${BUILD32}" LD="gcc -shared ${BUILD32}"
Line 47: Line 42:
 
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 60: Line 54:
 
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}"

Revision as of 12:00, 20 May 2010


Introduction to Libcap

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

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

Dependencies

Required

Non-Multilib

Compile the package:

make

Install the package

make install &&
chmod -v 755 /lib/libcap.so.2.22

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

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

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
Download Source: http://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-2.22.tar.bz2
Retrieved from "?title=Libcap&oldid=20247"