From b6381b2e878541481e56a7453bea6fcbf0f8c147 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 9 Jul 2011 17:58:05 +0200 Subject: [PATCH] libcap-ng: update to 0.6.6, added -python subpkg. --- srcpkgs/libcap-ng-python | 1 + srcpkgs/libcap-ng/libcap-ng-devel.template | 11 +++++------ srcpkgs/libcap-ng/libcap-ng-progs.template | 5 ++--- srcpkgs/libcap-ng/libcap-ng-python.template | 15 +++++++++++++++ srcpkgs/libcap-ng/template | 11 +++++++---- 5 files changed, 30 insertions(+), 13 deletions(-) create mode 120000 srcpkgs/libcap-ng-python create mode 100644 srcpkgs/libcap-ng/libcap-ng-python.template diff --git a/srcpkgs/libcap-ng-python b/srcpkgs/libcap-ng-python new file mode 120000 index 0000000000..414bbce7c7 --- /dev/null +++ b/srcpkgs/libcap-ng-python @@ -0,0 +1 @@ +libcap-ng \ No newline at end of file diff --git a/srcpkgs/libcap-ng/libcap-ng-devel.template b/srcpkgs/libcap-ng/libcap-ng-devel.template index a1782c7661..49da08b16b 100644 --- a/srcpkgs/libcap-ng/libcap-ng-devel.template +++ b/srcpkgs/libcap-ng/libcap-ng-devel.template @@ -10,10 +10,9 @@ 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/share/man/man3 ${DESTDIR}/usr/share/man - mv ${SRCPKGDESTDIR}/usr/share/aclocal ${DESTDIR}/usr/share + vmove usr/include usr + vmove usr/lib/pkgconfig usr/lib + vmove "usr/lib/*.a" usr/lib + vmove usr/share/man/man3 usr/share/man + vmove usr/share/aclocal usr/share } diff --git a/srcpkgs/libcap-ng/libcap-ng-progs.template b/srcpkgs/libcap-ng/libcap-ng-progs.template index d8751b9298..0319d0138e 100644 --- a/srcpkgs/libcap-ng/libcap-ng-progs.template +++ b/srcpkgs/libcap-ng/libcap-ng-progs.template @@ -10,7 +10,6 @@ Add_dependency run libcap-ng do_install() { - mkdir -p ${DESTDIR}/usr - mv ${SRCPKGDESTDIR}/usr/bin ${DESTDIR}/usr - mv ${SRCPKGDESTDIR}/usr/share ${DESTDIR}/usr + vmove usr/bin usr + vmove usr/share usr } diff --git a/srcpkgs/libcap-ng/libcap-ng-python.template b/srcpkgs/libcap-ng/libcap-ng-python.template new file mode 100644 index 0000000000..815b485f80 --- /dev/null +++ b/srcpkgs/libcap-ng/libcap-ng-python.template @@ -0,0 +1,15 @@ +# Template file for 'libcap-ng-python'. +# +short_desc="${sourcepkg} python bindings" +long_desc="${long_desc} + + This package contains the python language bindings." + +Add_dependency run glibc +Add_dependency run python +Add_dependency run libcap-ng + +do_install() +{ + vmove "usr/lib/python*" usr/lib/python +} diff --git a/srcpkgs/libcap-ng/template b/srcpkgs/libcap-ng/template index 6bfb07530d..9bb50d3656 100644 --- a/srcpkgs/libcap-ng/template +++ b/srcpkgs/libcap-ng/template @@ -1,11 +1,13 @@ # Template file for 'libcap-ng' pkgname=libcap-ng -version=0.6.4 +version=0.6.6 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=9d508706f72ba613e6afdcd02208e2491b3e0d4dff60867a7738ae8d352f0de8 +homepage="http://people.redhat.com/sgrubb/libcap-ng/" +license="GPL-2, LGPL-2.1" +checksum=89589a29a6b19068edd650dd4f626c10e84bfe63eacae7b1fd1f98f3ac8ea00d long_desc=" This library implements the user-space interfaces to the POSIX 1003.1e capabilities available in Linux kernels. These capabilities are a @@ -15,6 +17,7 @@ long_desc=" The libcap-ng library is intended to make programming with posix capabilities much easier than the traditional libcap library." -subpackages="$pkgname-devel $pkgname-progs" +subpackages="$pkgname-devel $pkgname-progs $pkgname-python" Add_dependency run glibc -Add_dependency build python +Add_dependency build python-devel +Add_dependency build swig