kmod: switch to /usr.

This commit is contained in:
Juan RP 2012-07-09 14:48:58 +02:00
parent 61da5de89e
commit f05622c9fe
1 changed files with 8 additions and 8 deletions

View File

@ -1,11 +1,11 @@
# Template file for 'kmod'
pkgname=kmod
version=9
revision=1
revision=2
homepage="http://git.profusion.mobi/cgit.cgi/kmod.git"
distfiles="${KERNEL_SITE}/utils/kernel/kmod/kmod-${version}.tar.xz"
build_style=gnu-configure
configure_args="--with-rootprefix= --with-zlib --with-xz"
configure_args="--with-rootprefix=/usr --with-zlib --with-xz"
makedepends="pkg-config zlib-devel liblzma-devel"
provides="module-init-tools-3.17"
replaces="module-init-tools>=0"
@ -23,14 +23,14 @@ long_desc="
make_dirs="
/etc/depmod.d 0755 root root
/etc/modprobe.d 0755 root root
/lib/depmod.d 0755 root root
/lib/modprobe.d 0755 root root"
/usr/lib/depmod.d 0755 root root
/usr/lib/modprobe.d 0755 root root"
post_install() {
vinstall ${FILESDIR}/depmod-search.conf 644 lib/depmod.d search.conf
# add symlinks to kmod
vmkdir sbin
vinstall ${FILESDIR}/depmod-search.conf 644 usr/lib/depmod.d search.conf
# Add compatibility symlinks.
vmkdir usr/sbin
for tool in {ls,ins,rm,dep}mod mod{info,probe}; do
cd ${DESTDIR}/sbin && ln -sf ../usr/bin/kmod $tool
cd ${DESTDIR}/usr/sbin && ln -sf ../bin/kmod $tool
done
}