2012-04-05 12:24:01 +02:00
|
|
|
# Template file for 'keyutils'
|
|
|
|
pkgname=keyutils
|
|
|
|
version=1.5.5
|
2014-02-20 14:49:21 +01:00
|
|
|
revision=3
|
2014-01-01 16:10:11 +01:00
|
|
|
conf_files="/etc/request-key.conf"
|
2012-04-05 12:24:01 +02: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 17:12:12 +02:00
|
|
|
distfiles="http://people.redhat.com/~dhowells/$pkgname/$pkgname-$version.tar.bz2"
|
2012-04-05 12:24:01 +02:00
|
|
|
checksum=8fab781fb2d1450b2112a7fbfe6629522ae5a6b901f875a74a201012025a3fc5
|
|
|
|
|
2013-05-06 11:40:12 +02:00
|
|
|
do_build() {
|
2014-02-20 14:54:04 +01:00
|
|
|
sed -e "s|/lib64|/lib|g;s|-m64|${CFLAGS}|g;s|-m32||g" -i Makefile
|
2013-05-06 11:40:12 +02:00
|
|
|
make ${makejobs}
|
2012-04-05 12:24:01 +02:00
|
|
|
}
|
|
|
|
|
2013-05-06 11:40:12 +02:00
|
|
|
do_install() {
|
|
|
|
make DESTDIR=${DESTDIR} install
|
|
|
|
|
2013-04-12 17:12:12 +02: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 12:24:01 +02:00
|
|
|
cd ${DESTDIR}/usr/lib && ln -sf libkeyutils.so.1 libkeyutils.so
|
|
|
|
}
|
2013-04-12 17:12:12 +02:00
|
|
|
|
|
|
|
libkeyutils_package() {
|
2013-05-06 11:40:12 +02:00
|
|
|
short_desc+=" - runtime library"
|
2013-04-12 17:12:12 +02:00
|
|
|
pkg_install() {
|
2014-02-20 14:49:21 +01:00
|
|
|
vmove "usr/lib/*.so.*"
|
2013-04-12 17:12:12 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
keyutils-devel_package() {
|
2014-02-20 14:49:21 +01:00
|
|
|
depends="libkeyutils>=${version}_${revision}"
|
2013-05-06 11:40:12 +02:00
|
|
|
short_desc+=" - development files"
|
2013-04-12 17:12:12 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove "usr/lib/*.a"
|
2014-02-20 14:49:21 +01:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-12 17:12:12 +02:00
|
|
|
vmove usr/share/man/man3
|
|
|
|
}
|
|
|
|
}
|