Added libcap-2.16 template.

--HG--
extra : convert_revision : 7feb0f71a27408a9ac7f13300a634cae9a85829d
This commit is contained in:
Juan RP 2009-05-10 20:10:11 +02:00
parent a1fa4d8b7b
commit 8a9e5322f4
8 changed files with 105 additions and 0 deletions

1
templates/libcap-devel Symbolic link
View file

@ -0,0 +1 @@
libcap

1
templates/libcap-pam Symbolic link
View file

@ -0,0 +1 @@
libcap

1
templates/libcap-progs Symbolic link
View file

@ -0,0 +1 @@
libcap

View file

@ -0,0 +1,18 @@
--- progs/capsh.c.orig 2009-05-10 19:57:26.897493561 +0200
+++ progs/capsh.c 2009-05-10 19:57:40.092519179 +0200
@@ -9,6 +9,7 @@
* capability manipulations work as expected (or not).
*/
+#include <sys/wait.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
@@ -16,7 +17,6 @@
#include <sys/capability.h>
#include <unistd.h>
#include <errno.h>
-#include <sys/wait.h>
/* prctl based API for altering character of current process */
#define PR_GET_KEEPCAPS 7

View file

@ -0,0 +1,17 @@
# Template file for 'libcap-devel'.
#
short_desc="${short_desc} (development files)"
long_desc="${long_desc}
This package contains files for development, headers, static libs, etc."
Add_dependency run libcap
do_install()
{
mkdir -p ${DESTDIR}/usr/lib ${DESTDIR}/usr/share/man
mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr
mv ${SRCPKGDESTDIR}/usr/lib/libcap.*a ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/lib/libcap.so ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/share/man/man3 ${DESTDIR}/usr/share/man
}

View file

@ -0,0 +1,19 @@
# Template file for 'libcap-pam'.
#
short_desc="${short_desc} (PAM module)"
long_desc="${long_desc}
This package contains a PAM module provided by the libcap package."
conf_files="/etc/security/capability.conf"
Add_dependency run glibc
Add_dependency run libcap
Add_dependency run pam
do_install()
{
mkdir -p ${DESTDIR}/lib
mv ${SRCPKGDESTDIR}/lib/security ${DESTDIR}/lib
mv ${SRCPKGDESTDIR}/etc ${DESTDIR}
}

View file

@ -0,0 +1,16 @@
# Template file for 'libcap-progs'.
#
short_desc="${short_desc} (utilities)"
long_desc="${long_desc}
This package contains binary utilities provided by the libcap package."
Add_dependency run glibc
Add_dependency run libcap
do_install()
{
mkdir -p ${DESTDIR}/usr/share/man
mv ${SRCPKGDESTDIR}/usr/sbin ${DESTDIR}/usr
mv ${SRCPKGDESTDIR}/usr/share/man/man8 ${DESTDIR}/usr/share/man
}

32
templates/libcap/template Normal file
View file

@ -0,0 +1,32 @@
# Template file for 'libcap'
pkgname=libcap
sourcepkg=$pkgname
version=2.16
distfiles="${KERNEL_SITE}/libs/security/linux-privs/libcap2/$pkgname-$version.tar.bz2"
build_style=gnu_makefile
make_install_args="prefix=/usr"
short_desc="POSIX.1e capabilities library"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=9c5a41a5577d6f702fe4d29e92f91f1d586a2ef272f6b7fa137bae3f0e76cc2f
long_desc="
libcap is a library for getting and setting POSIX.1e (formerly POSIX 6)
draft 15 capabilities."
subpackages="devel pam progs"
Add_dependency build perl
Add_dependency build pam
Add_dependency full glibc
pre_configure()
{
sed -i -e "s|LIBDIR=\$(FAKEROOT)\$(lib_prefix)\/lib|LIBDIR=\$(FAKEROOT)/\$(lib)|g" \
${wrksrc}/Make.Rules
}
post_install()
{
install -D -m644 ${wrksrc}/pam_cap/capability.conf \
${DESTDIR}/etc/security/capability.conf
mkdir -p ${DESTDIR}/lib
mv ${DESTDIR}/usr/lib/security ${DESTDIR}/lib
}