diff --git a/srcpkgs/keyutils/template b/srcpkgs/keyutils/template index 3a5192e743..b99c1f1de2 100644 --- a/srcpkgs/keyutils/template +++ b/srcpkgs/keyutils/template @@ -1,25 +1,28 @@ # Template file for 'keyutils' pkgname=keyutils -version=1.5.10 +version=1.5.11 revision=1 -conf_files="/etc/request-key.conf" +makedepends="mit-krb5-devel" short_desc="Linux Key Management Utilities" maintainer="Juan RP " homepage="http://www.kernel.org" -license="GPL-2, LGPL-2.1" -distfiles="http://people.redhat.com/~dhowells/$pkgname/$pkgname-$version.tar.bz2" -checksum=115c3deae7f181778fd0e0ffaa2dad1bf1fe2f5677cf2e0e348cdb7a1c93afb6 +license="GPL-2.0-or-later, LGPL-2.1-or-later" +distfiles="http://people.redhat.com/~dhowells/${pkgname}/${pkgname}-${version}.tar.bz2" +checksum=11584488206edc30736263eb855bf7793f16e661987241d333d3cb5ea479b1b5 +conf_files="/etc/request-key.conf" pre_build() { # Fix musl build - doesn't hurt glibc either sed -e "/#include /a #include " \ -i key.dns_resolver.c } + do_build() { make CFLAGS="${CFLAGS} -fPIC" LDFLAGS="${LDFLAGS}" SBINDIR='/usr/bin' \ LIBDIR='/usr/lib' USRLIBDIR='/usr/lib' \ BINDIR='/usr/bin' ${makejobs} } + do_install() { make DESTDIR=${DESTDIR} CFLAGS="${CFLAGS} -fPIC" LDFLAGS="${LDFLAGS}" \ LIBDIR='/usr/lib' USRLIBDIR='/usr/lib' SBINDIR='/usr/bin' \ @@ -32,6 +35,7 @@ libkeyutils_package() { vmove "usr/lib/*.so.*" } } + keyutils-devel_package() { depends="libkeyutils>=${version}_${revision}" short_desc+=" - development files"