2012-04-05 10:24:01 +00:00
|
|
|
# Template file for 'keyutils'
|
|
|
|
pkgname=keyutils
|
2014-03-01 07:56:16 +00:00
|
|
|
version=1.5.9
|
2015-02-24 09:58:04 +00:00
|
|
|
revision=3
|
2014-01-01 15:10:11 +00:00
|
|
|
conf_files="/etc/request-key.conf"
|
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"
|
2014-03-01 07:56:16 +00:00
|
|
|
checksum=4da2c5552c688b65ab14d4fd40fbdf720c8b396d8ece643e040cf6e707e083ae
|
2012-04-05 10:24:01 +00:00
|
|
|
|
2013-05-06 09:40:12 +00:00
|
|
|
do_build() {
|
2015-02-24 09:58:04 +00:00
|
|
|
make CFLAGS="${CFLAGS} -fPIC" LDFLAGS="${LDFLAGS}" SBINDIR='/usr/bin' \
|
2014-03-01 07:56:16 +00:00
|
|
|
LIBDIR='/usr/lib' USRLIBDIR='/usr/lib' \
|
|
|
|
BINDIR='/usr/bin' ${makejobs}
|
2012-04-05 10:24:01 +00:00
|
|
|
}
|
2013-05-06 09:40:12 +00:00
|
|
|
do_install() {
|
2015-02-24 09:58:04 +00:00
|
|
|
make DESTDIR=${DESTDIR} CFLAGS="${CFLAGS} -fPIC" LDFLAGS="${LDFLAGS}" \
|
2014-03-01 07:56:16 +00:00
|
|
|
LIBDIR='/usr/lib' USRLIBDIR='/usr/lib' SBINDIR='/usr/bin' \
|
|
|
|
BINDIR='/usr/bin' install
|
2012-04-05 10:24:01 +00:00
|
|
|
}
|
2013-04-12 15:12:12 +00:00
|
|
|
|
|
|
|
libkeyutils_package() {
|
2013-05-06 09:40:12 +00:00
|
|
|
short_desc+=" - runtime library"
|
2013-04-12 15:12:12 +00:00
|
|
|
pkg_install() {
|
2014-02-20 13:49:21 +00:00
|
|
|
vmove "usr/lib/*.so.*"
|
2013-04-12 15:12:12 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
keyutils-devel_package() {
|
2014-02-20 13:49:21 +00:00
|
|
|
depends="libkeyutils>=${version}_${revision}"
|
2013-05-06 09:40:12 +00:00
|
|
|
short_desc+=" - development files"
|
2013-04-12 15:12:12 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove "usr/lib/*.a"
|
2014-02-20 13:49:21 +00:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-12 15:12:12 +00:00
|
|
|
vmove usr/share/man/man3
|
|
|
|
}
|
|
|
|
}
|