mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-08 08:03:51 +02:00
keyutils: use our cflags; cross build support.
This commit is contained in:
parent
f000623dd4
commit
73c788e245
1 changed files with 10 additions and 9 deletions
|
@ -1,8 +1,7 @@
|
||||||
# Template file for 'keyutils'
|
# Template file for 'keyutils'
|
||||||
pkgname=keyutils
|
pkgname=keyutils
|
||||||
version=1.5.5
|
version=1.5.5
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-makefile
|
|
||||||
short_desc="Linux Key Management Utilities"
|
short_desc="Linux Key Management Utilities"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
homepage="http://www.kernel.org"
|
homepage="http://www.kernel.org"
|
||||||
|
@ -13,11 +12,14 @@ long_desc="
|
||||||
These tools are used to control the key management system built into the
|
These tools are used to control the key management system built into the
|
||||||
Linux kernel."
|
Linux kernel."
|
||||||
|
|
||||||
pre_build() {
|
do_build() {
|
||||||
sed -i "s|/lib64|/lib|g" Makefile
|
sed -e "s|/lib64|/lib|g;s|-m64|${CFLAGS}|g" -i Makefile
|
||||||
|
make ${makejobs}
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
do_install() {
|
||||||
|
make DESTDIR=${DESTDIR} install
|
||||||
|
|
||||||
vmkdir usr/lib
|
vmkdir usr/lib
|
||||||
vmkdir usr/bin
|
vmkdir usr/bin
|
||||||
vmkdir usr/sbin
|
vmkdir usr/sbin
|
||||||
|
@ -30,7 +32,7 @@ post_install() {
|
||||||
}
|
}
|
||||||
|
|
||||||
libkeyutils_package() {
|
libkeyutils_package() {
|
||||||
short_desc="${short_desc} -- runtime library"
|
short_desc+=" - runtime library"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove "usr/lib/*.so*"
|
vmove "usr/lib/*.so*"
|
||||||
}
|
}
|
||||||
|
@ -38,7 +40,7 @@ libkeyutils_package() {
|
||||||
|
|
||||||
keyutils-devel_package() {
|
keyutils-devel_package() {
|
||||||
depends="libkeyutils>=${version}"
|
depends="libkeyutils>=${version}"
|
||||||
short_desc="${short_desc} -- development files"
|
short_desc+=" - development files"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/include
|
vmove usr/include
|
||||||
vmove "usr/lib/*.a"
|
vmove "usr/lib/*.a"
|
||||||
|
@ -49,7 +51,6 @@ keyutils-devel_package() {
|
||||||
keyutils_package() {
|
keyutils_package() {
|
||||||
conf_files="/etc/request-key.conf"
|
conf_files="/etc/request-key.conf"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove etc
|
vmove all
|
||||||
vmove usr
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue