From 18f41bd4df5f1da67b53301f675d6aa065ced5a8 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 2 Dec 2009 22:06:56 +0100 Subject: [PATCH] Added libcap-ng-0.6.2 build template. --HG-- extra : convert_revision : 8bd656eaadd1c2f849b6a7146b62d5d62c0bec14 --- srcpkgs/libcap-ng-devel | 1 + srcpkgs/libcap-ng-progs | 1 + srcpkgs/libcap-ng/depends | 2 ++ srcpkgs/libcap-ng/libcap-ng-devel.template | 20 ++++++++++++++++++++ srcpkgs/libcap-ng/libcap-ng-progs.template | 16 ++++++++++++++++ srcpkgs/libcap-ng/template | 19 +++++++++++++++++++ 6 files changed, 59 insertions(+) create mode 120000 srcpkgs/libcap-ng-devel create mode 120000 srcpkgs/libcap-ng-progs create mode 100644 srcpkgs/libcap-ng/depends create mode 100644 srcpkgs/libcap-ng/libcap-ng-devel.template create mode 100644 srcpkgs/libcap-ng/libcap-ng-progs.template create mode 100644 srcpkgs/libcap-ng/template diff --git a/srcpkgs/libcap-ng-devel b/srcpkgs/libcap-ng-devel new file mode 120000 index 0000000000..414bbce7c7 --- /dev/null +++ b/srcpkgs/libcap-ng-devel @@ -0,0 +1 @@ +libcap-ng \ No newline at end of file diff --git a/srcpkgs/libcap-ng-progs b/srcpkgs/libcap-ng-progs new file mode 120000 index 0000000000..414bbce7c7 --- /dev/null +++ b/srcpkgs/libcap-ng-progs @@ -0,0 +1 @@ +libcap-ng \ No newline at end of file diff --git a/srcpkgs/libcap-ng/depends b/srcpkgs/libcap-ng/depends new file mode 100644 index 0000000000..bc8055c04c --- /dev/null +++ b/srcpkgs/libcap-ng/depends @@ -0,0 +1,2 @@ +abi_depends=">=0.6.2" +api_depends="${abi_depends}" diff --git a/srcpkgs/libcap-ng/libcap-ng-devel.template b/srcpkgs/libcap-ng/libcap-ng-devel.template new file mode 100644 index 0000000000..5d405840e6 --- /dev/null +++ b/srcpkgs/libcap-ng/libcap-ng-devel.template @@ -0,0 +1,20 @@ +# Template file for 'libcap-ng-devel'. +# +short_desc="${sourcepkg} development files" +long_desc="${long_desc} + + This package contains files for development, headers, static libs, etc." + +Add_dependency run glibc-devel +Add_dependency run libcap-ng + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib ${DESTDIR}/usr/share/man + mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr + mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/libcap-ng.*a ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/libcap-ng.so ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/share/man/man3 ${DESTDIR}/usr/share/man + mv ${SRCPKGDESTDIR}/usr/share/aclocal ${DESTDIR}/usr/share +} diff --git a/srcpkgs/libcap-ng/libcap-ng-progs.template b/srcpkgs/libcap-ng/libcap-ng-progs.template new file mode 100644 index 0000000000..d8751b9298 --- /dev/null +++ b/srcpkgs/libcap-ng/libcap-ng-progs.template @@ -0,0 +1,16 @@ +# Template file for 'libcap-ng-progs'. +# +short_desc="${sourcepkg} utilities" +long_desc="${long_desc} + + This package contains binary utilities provided by the ${sourcepkg} package." + +Add_dependency run glibc +Add_dependency run libcap-ng + +do_install() +{ + mkdir -p ${DESTDIR}/usr + mv ${SRCPKGDESTDIR}/usr/bin ${DESTDIR}/usr + mv ${SRCPKGDESTDIR}/usr/share ${DESTDIR}/usr +} diff --git a/srcpkgs/libcap-ng/template b/srcpkgs/libcap-ng/template new file mode 100644 index 0000000000..cb7b0fa042 --- /dev/null +++ b/srcpkgs/libcap-ng/template @@ -0,0 +1,19 @@ +# Template file for 'libcap-ng' +pkgname=libcap-ng +version=0.6.2 +distfiles="http://people.redhat.com/sgrubb/$pkgname/$pkgname-$version.tar.gz" +build_style=gnu_configure +short_desc="An alternate posix capabilities library" +maintainer="Juan RP " +checksum=1d230a03c7e6adf1c761730bf27cee694d6658e97581c9507e993c80a1fab0ff +long_desc=" + This library implements the user-space interfaces to the POSIX 1003.1e + capabilities available in Linux kernels. These capabilities are a + partitioning of the all powerful root privilege into a set of distinct + privileges. + + The libcap-ng library is intended to make programming with posix capabilities + much easier than the traditional libcap library." + +subpackages="$pkgname-devel $pkgname-progs" +Add_dependency full glibc