From f05622c9fef6e1a29fe48f7123d3a6e2aa8e33f4 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 9 Jul 2012 14:48:58 +0200 Subject: [PATCH] kmod: switch to /usr. --- srcpkgs/kmod/template | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/srcpkgs/kmod/template b/srcpkgs/kmod/template index 61959e3d4c8..92b26a9f9b8 100644 --- a/srcpkgs/kmod/template +++ b/srcpkgs/kmod/template @@ -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 }