]> git.ipfire.org Git - people/ms/ipfire-3.x.git/commitdiff
ebtables: Make package work on x86_64.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sun, 11 Mar 2012 10:51:06 +0000 (11:51 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sun, 11 Mar 2012 11:07:12 +0000 (12:07 +0100)
ebtables/ebtables.nm

index f5ca3a09c4e5bd334203e1022a74f661589c99b2..846ed96d4721f000baf67ff97f5617a885cc70f5 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = ebtables
 version    = v2.0.10-4
-release    = 1
+release    = 2
 
 groups     = Networking/Tools
 url        = http://ebtables.sourceforge.net/
@@ -24,22 +24,22 @@ build
        CFLAGS += -Wall
 
        build
-               make CFLAGS="%{CFLAGS}" BINDIR="/sbin" \
-                       LIBDIR="/lib/ebtables" MANDIR="/usr/share/man" %{PARALLELISMFLAGS}
+               make CFLAGS="%{CFLAGS}" BINDIR="%{sbindir}" \
+                       LIBDIR="%{libdir}/ebtables" MANDIR="%{mandir}" %{PARALLELISMFLAGS}
        end
 
        install
-               mkdir -pv %{BUILDROOT}/etc/{init.d,sysconfig}
-               make install DESTDIR="%{BUILDROOT}" BINDIR="/sbin" \
-                       LIBDIR="/lib/ebtables" MANDIR="/usr/share/man" INITDIR="/etc/init.d"
+               make install DESTDIR="%{BUILDROOT}" BINDIR="%{sbindir}" \
+                       LIBDIR="%{libdir}/ebtables" MANDIR="%{mandir}"
 
-               rm -vfr %{BUILDROOT}/etc/{init.d,sysconfig}
+               # Remove unneded directories.
+               rm -rvf %{BUILDROOT}/etc/{rc.d,sysconfig}
        end
 end
 
 quality-agent
        whitelist_rpath
-               /lib/ebtables
+               %{libdir}/ebtables
        end
 end