# 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
revision=1
short_desc="Linux Key Management Utilities"
maintainer="Juan RP <xtraeme@gmail.com>"
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
}
