New package: ferm-2.3.1 (#4984)

This commit is contained in:
Johannes 2017-01-16 17:37:08 +01:00 committed by Alessio Sergi
parent eb3194113f
commit 3e0f2fed2f
2 changed files with 52 additions and 0 deletions

View File

@ -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

18
srcpkgs/ferm/template Normal file
View File

@ -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 <johannes.brechtmann@gmail.com>"
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
}