From 58af20e4d652f3ee883985d08b2a53f30bc1e2ae Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 5 Apr 2012 12:24:01 +0200 Subject: [PATCH] New package: keyutils-1.5.5. --- common/shlibs | 1 + srcpkgs/keyutils-devel | 1 + srcpkgs/keyutils/depends | 2 ++ srcpkgs/keyutils/keyutils-devel.template | 14 ++++++++++++ srcpkgs/keyutils/keyutils.rshlibs | 3 +++ srcpkgs/keyutils/libkeyutils.rshlibs | 1 + srcpkgs/keyutils/libkeyutils.template | 10 +++++++++ srcpkgs/keyutils/template | 27 ++++++++++++++++++++++++ srcpkgs/libkeyutils | 1 + 9 files changed, 60 insertions(+) create mode 120000 srcpkgs/keyutils-devel create mode 100644 srcpkgs/keyutils/depends create mode 100644 srcpkgs/keyutils/keyutils-devel.template create mode 100644 srcpkgs/keyutils/keyutils.rshlibs create mode 100644 srcpkgs/keyutils/libkeyutils.rshlibs create mode 100644 srcpkgs/keyutils/libkeyutils.template create mode 100644 srcpkgs/keyutils/template create mode 120000 srcpkgs/libkeyutils diff --git a/common/shlibs b/common/shlibs index 973263c1ee1..d39cea12308 100644 --- a/common/shlibs +++ b/common/shlibs @@ -964,3 +964,4 @@ libwx_gtk2u_ogl-2.8.so.0 wxGTK wxGTK-devel libwx_gtk2u_plot-2.8.so.0 wxGTK wxGTK-devel libwx_gtk2u_stc-2.8.so.0 wxGTK wxGTK-devel libwx_gtk2u_svg-2.8.so.0 wxGTK wxGTK-devel +libkeyutils.so.1 libkeyutils keyutils-devel diff --git a/srcpkgs/keyutils-devel b/srcpkgs/keyutils-devel new file mode 120000 index 00000000000..c5db8e5c2ed --- /dev/null +++ b/srcpkgs/keyutils-devel @@ -0,0 +1 @@ +keyutils \ No newline at end of file diff --git a/srcpkgs/keyutils/depends b/srcpkgs/keyutils/depends new file mode 100644 index 00000000000..bd0fc446961 --- /dev/null +++ b/srcpkgs/keyutils/depends @@ -0,0 +1,2 @@ +abi_depends=">=1.5.5" +api_depends="${abi_depends}" diff --git a/srcpkgs/keyutils/keyutils-devel.template b/srcpkgs/keyutils/keyutils-devel.template new file mode 100644 index 00000000000..92ba967b089 --- /dev/null +++ b/srcpkgs/keyutils/keyutils-devel.template @@ -0,0 +1,14 @@ +# Template file for 'keyutils-devel'. +# +short_desc="${short_desc} -- development files" +long_desc="${long_desc} + + This package contains files for development, headers, static libs, etc." + +Add_dependency run libkeyutils ">=${version}" + +do_install() { + vmove usr/include usr + vmove "usr/lib/*.a" usr/lib + vmove usr/share/man/man3 usr/share/man +} diff --git a/srcpkgs/keyutils/keyutils.rshlibs b/srcpkgs/keyutils/keyutils.rshlibs new file mode 100644 index 00000000000..7e4a3151218 --- /dev/null +++ b/srcpkgs/keyutils/keyutils.rshlibs @@ -0,0 +1,3 @@ +libc.so.6 +libresolv.so.2 +libkeyutils.so.1 diff --git a/srcpkgs/keyutils/libkeyutils.rshlibs b/srcpkgs/keyutils/libkeyutils.rshlibs new file mode 100644 index 00000000000..631aa1dda40 --- /dev/null +++ b/srcpkgs/keyutils/libkeyutils.rshlibs @@ -0,0 +1 @@ +libc.so.6 diff --git a/srcpkgs/keyutils/libkeyutils.template b/srcpkgs/keyutils/libkeyutils.template new file mode 100644 index 00000000000..a3ea6b266d3 --- /dev/null +++ b/srcpkgs/keyutils/libkeyutils.template @@ -0,0 +1,10 @@ +# Template file for 'libkeyutils'. +# +short_desc="${short_desc} -- runtime library" +long_desc="${long_desc} + + This package contains the runtime shared library." + +do_install() { + vmove "usr/lib/*.so*" usr/lib +} diff --git a/srcpkgs/keyutils/template b/srcpkgs/keyutils/template new file mode 100644 index 00000000000..6f416d40c7f --- /dev/null +++ b/srcpkgs/keyutils/template @@ -0,0 +1,27 @@ +# Template file for 'keyutils' +pkgname=keyutils +version=1.5.5 +distfiles="http://people.redhat.com/~dhowells/$pkgname/$pkgname-$version.tar.bz2" +build_style=gnu-makefile +short_desc="Linux Key Management Utilities" +maintainer="Juan RP " +homepage="http://www.kernel.org" +license="GPL-2, LGPL-2.1" +checksum=8fab781fb2d1450b2112a7fbfe6629522ae5a6b901f875a74a201012025a3fc5 +long_desc=" + These tools are used to control the key management system built into the + Linux kernel." + +conf_files="/etc/request-key.conf" +subpackages="lib${pkgname} ${pkgname}-devel" + +pre_build() { + sed -i "s|/lib64|/lib|g" Makefile +} + +post_install() { + vmove "sbin/*" usr/sbin + vmove "bin/*" usr/bin + vmove "lib/*" usr/lib + cd ${DESTDIR}/usr/lib && ln -sf libkeyutils.so.1 libkeyutils.so +} diff --git a/srcpkgs/libkeyutils b/srcpkgs/libkeyutils new file mode 120000 index 00000000000..c5db8e5c2ed --- /dev/null +++ b/srcpkgs/libkeyutils @@ -0,0 +1 @@ +keyutils \ No newline at end of file