diff --git a/srcpkgs/ferm/patches/mod_makefile.patch b/srcpkgs/ferm/patches/mod_makefile.patch new file mode 100644 index 00000000000..92a67a34dd4 --- /dev/null +++ b/srcpkgs/ferm/patches/mod_makefile.patch @@ -0,0 +1,34 @@ +--- Makefile.orig 2016-10-16 22:36:18.259994713 +0200 ++++ Makefile 2016-10-16 22:44:28.558985932 +0200 +@@ -122,7 +122,6 @@ + rm -rf $(DISTDIR) + install -d -m 755 $(DISTDIR) $(DISTDIR)/src $(DISTDIR)/doc $(DISTDIR)/examples + install -m 755 src/ferm src/import-ferm $(DISTDIR)/src +- install -m 644 ferm.service $(DISTDIR) + install -m 644 doc/ferm.pod doc/ferm.txt doc/ferm.html doc/ferm.1 doc/import-ferm.1 $(DISTDIR)/doc + install -m 644 config.mk Makefile AUTHORS COPYING NEWS README TODO $(DISTDIR) + install -m 644 $(wildcard examples/*.ferm) $(DISTDIR)/examples +@@ -137,11 +136,10 @@ + .PHONY: install uninstall + + install: all +- install -d -m 755 $(DOCDIR)/examples $(PREFIX)/sbin $(SERVICEDIR) ++ install -d -m 755 $(DOCDIR)/examples $(PREFIX)/bin $(SERVICEDIR) + install -m 644 AUTHORS COPYING NEWS README TODO $(DOCDIR) + install -m 644 examples/*.ferm $(DOCDIR)/examples +- install -m 755 src/ferm src/import-ferm $(PREFIX)/sbin/ +- install -m 644 ferm.service $(SERVICEDIR) ++ install -m 755 src/ferm src/import-ferm $(PREFIX)/bin/ + + install -d -m 755 $(DOCDIR) $(MANDIR) + install -m 644 doc/ferm.txt doc/ferm.html $(DOCDIR) +@@ -151,8 +149,7 @@ + uninstall: + rm -rf $(DOCDIR) + rm -f $(MANDIR)/ferm.1 $(MANDIR)/import-ferm.1 +- rm -f $(SERVICEDIR)/ferm.service +- rm -f $(PREFIX)/sbin/ferm $(PREFIX)/sbin/import-ferm ++ rm -f $(PREFIX)/bin/ferm $(PREFIX)/bin/import-ferm + + # + # misc targets diff --git a/srcpkgs/ferm/template b/srcpkgs/ferm/template new file mode 100644 index 00000000000..12d46257046 --- /dev/null +++ b/srcpkgs/ferm/template @@ -0,0 +1,18 @@ +# Template file for 'ferm' +pkgname=ferm +version=2.3.1 +revision=1 +hostmakedepends="perl" +depends="perl iptables" +noarch=yes +short_desc="Frontend for iptables" +maintainer="johannes " +license="GPL-2" +homepage="http://ferm.foo-projects.org/" +distfiles="http://ferm.foo-projects.org/download/2.3/ferm-${version}.tar.gz" +checksum=8a5444e2844023798e5c681516253c1d3c948ad8aa3b93bd3ce8902945b38de9 + +do_install() { + make install PREFIX=${DESTDIR}/usr +} +