2012-04-05 10:24:01 +00:00
|
|
|
# Template file for 'keyutils'
|
|
|
|
pkgname=keyutils
|
|
|
|
version=1.5.5
|
2012-06-03 07:08:53 +00:00
|
|
|
revision=1
|
2013-04-12 15:12:12 +00:00
|
|
|
build_style=gnu-makefile
|
2012-04-05 10:24:01 +00:00
|
|
|
short_desc="Linux Key Management Utilities"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
homepage="http://www.kernel.org"
|
|
|
|
license="GPL-2, LGPL-2.1"
|
2013-04-12 15:12:12 +00:00
|
|
|
distfiles="http://people.redhat.com/~dhowells/$pkgname/$pkgname-$version.tar.bz2"
|
2012-04-05 10:24:01 +00:00
|
|
|
checksum=8fab781fb2d1450b2112a7fbfe6629522ae5a6b901f875a74a201012025a3fc5
|
|
|
|
long_desc="
|
|
|
|
These tools are used to control the key management system built into the
|
|
|
|
Linux kernel."
|
|
|
|
|
|
|
|
pre_build() {
|
|
|
|
sed -i "s|/lib64|/lib|g" Makefile
|
|
|
|
}
|
|
|
|
|
|
|
|
post_install() {
|
2013-04-12 15:12:12 +00:00
|
|
|
vmkdir usr/lib
|
|
|
|
vmkdir usr/bin
|
|
|
|
vmkdir usr/sbin
|
|
|
|
|
|
|
|
mv ${DESTDIR}/bin/* ${DESTDIR}/usr/bin
|
|
|
|
mv ${DESTDIR}/sbin/* ${DESTDIR}/usr/sbin
|
|
|
|
mv ${DESTDIR}/lib/* ${DESTDIR}/usr/lib
|
|
|
|
|
2012-04-05 10:24:01 +00:00
|
|
|
cd ${DESTDIR}/usr/lib && ln -sf libkeyutils.so.1 libkeyutils.so
|
|
|
|
}
|
2013-04-12 15:12:12 +00:00
|
|
|
|
|
|
|
libkeyutils_package() {
|
|
|
|
short_desc="${short_desc} -- runtime library"
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/*.so*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
keyutils-devel_package() {
|
|
|
|
depends="libkeyutils>=${version}"
|
|
|
|
short_desc="${short_desc} -- development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove "usr/lib/*.a"
|
|
|
|
vmove usr/share/man/man3
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
keyutils_package() {
|
|
|
|
conf_files="/etc/request-key.conf"
|
|
|
|
pkg_install() {
|
|
|
|
vmove etc
|
|
|
|
vmove usr
|
|
|
|
}
|
|
|
|
}
|