kmod: create compat symlinks in /usr/bin.

This commit is contained in:
Juan RP 2014-01-15 10:05:31 +01:00
parent 6528079c17
commit ead80e7a87
1 changed files with 2 additions and 4 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'kmod'
pkgname=kmod
version=16
revision=2
revision=3
build_style=gnu-configure
configure_args="--with-zlib --with-xz"
hostmakedepends="pkg-config libxslt"
@ -28,10 +28,8 @@ fi
post_install() {
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}/usr/sbin
ln -sf ../bin/kmod $tool
ln -sfr ${DESTDIR}/usr/bin/kmod ${DESTDIR}/usr/bin/${tool}
done
}