From be52fba352630760dcda49444362a2303bd7dc2a Mon Sep 17 00:00:00 2001 From: bbruns Date: Wed, 9 Apr 2014 02:04:17 +0000 Subject: [PATCH] Adding debian package files --- debian/changelog | 6 +++++ debian/compat | 1 + debian/control | 14 +++++++++++ debian/copyright | 8 +++++++ debian/docs | 0 debian/files | 1 + debian/patches/01-deb-install-location.patch | 13 ++++++++++ .../01-deb-makefile-install-location.patch | 24 +++++++++++++++++++ debian/patches/series | 2 ++ debian/rules | 11 +++++++++ debian/source/format | 1 + debian/srfirewall.dirs | 3 +++ debian/srfirewall.substvars | 1 + 13 files changed, 85 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/docs create mode 100644 debian/files create mode 100644 debian/patches/01-deb-install-location.patch create mode 100644 debian/patches/01-deb-makefile-install-location.patch create mode 100644 debian/patches/series create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/srfirewall.dirs create mode 100644 debian/srfirewall.substvars diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..ba6714d --- /dev/null +++ b/debian/changelog @@ -0,0 +1,6 @@ +srfirewall (2.0a1+svn20140408-1) unstable; urgency=low + + * Initial release of SRFirewall 2.0a1 for testing + - See included changelog for more details + + -- Brielle Bruns Tue, 08 Apr 2014 15:43:15 -0600 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..9b80797 --- /dev/null +++ b/debian/control @@ -0,0 +1,14 @@ +Source: srfirewall +Section: net +Priority: optional +Maintainer: Brielle Bruns +Build-Depends: debhelper (>= 8.0.0), bash (>= 2.0) +Standards-Version: 3.9.5 +Homepage: http://code.google.com/p/firewall-sosdg + +Package: srfirewall +Architecture: all +Depends: ${misc:Depends}, iptables, bash (>= 2.0) +Description: Powerful, but simple to use netfilter/iptables firewall + Powerful, but simple to use firewall for Linux that has minimal + dependencies other than iptables and bash. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..aedef6f --- /dev/null +++ b/debian/copyright @@ -0,0 +1,8 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: srfirewall +Source: http://code.google.com/p/firewall-sosdg + +Files: * +Copyright: 2008-2014 Brielle Bruns +License: GPL-3 + Please see /usr/share/common-licenses/GPL-3 for details. diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..e69de29 diff --git a/debian/files b/debian/files new file mode 100644 index 0000000..6695a67 --- /dev/null +++ b/debian/files @@ -0,0 +1 @@ +srfirewall_2.0a1+svn20140408-1_all.deb net optional diff --git a/debian/patches/01-deb-install-location.patch b/debian/patches/01-deb-install-location.patch new file mode 100644 index 0000000..04825a0 --- /dev/null +++ b/debian/patches/01-deb-install-location.patch @@ -0,0 +1,13 @@ +Index: srfirewall-2.0a1+svn20140408/bin/srfirewall +=================================================================== +--- srfirewall-2.0a1+svn20140408.orig/bin/srfirewall 2014-04-08 18:55:30.209705751 -0600 ++++ srfirewall-2.0a1+svn20140408/bin/srfirewall 2014-04-08 19:22:51.369154162 -0600 +@@ -22,7 +22,7 @@ + FW_VERSION="2.0 PreAlpha 1" + + # Important directory locations +-FWPREFIX="/usr/local" ++FWPREFIX="/usr" + FWCONFIGDIR="${FWPREFIX}/etc/srfirewall" + FWLIBDIR="${FWPREFIX}/lib/srfirewall" + FWBINDIR="${FWPREFIX}/bin" diff --git a/debian/patches/01-deb-makefile-install-location.patch b/debian/patches/01-deb-makefile-install-location.patch new file mode 100644 index 0000000..23162f3 --- /dev/null +++ b/debian/patches/01-deb-makefile-install-location.patch @@ -0,0 +1,24 @@ +Index: srfirewall-2.0a1+svn20140408/Makefile +=================================================================== +--- srfirewall-2.0a1+svn20140408.orig/Makefile 2014-04-08 19:49:20.440285374 -0600 ++++ srfirewall-2.0a1+svn20140408/Makefile 2014-04-08 19:49:31.160360827 -0600 +@@ -1,14 +1,14 @@ +-PREFIX=/usr/local ++PREFIX=/usr + + all: # Nothing here + + install: + mkdir -p $(DESTDIR)$(PREFIX)/bin $(DESTDIR)$(PREFIX)/lib/srfirewall \ +- $(DESTDIR)$(PREFIX)/etc/srfirewall ++ $(DESTDIR)/etc/srfirewall + cp -r bin/* $(DESTDIR)$(PREFIX)/bin/ + cp -r lib/* $(DESTDIR)$(PREFIX)/lib/srfirewall/ +- cp -r etc/* $(DESTDIR)$(PREFIX)/etc/srfirewall/ ++ cp -r etc/* $(DESTDIR)/etc/srfirewall/ + + install-docs: + mkdir -p $(DESTDIR)$(PREFIX)/share/doc/srfirewall +- cp -r ChangeLog doc/* License ReadMe $(DESTDIR)$(PREFIX)/share/doc/srfirewall +\ No newline at end of file ++ cp -r ChangeLog doc/* License ReadMe $(DESTDIR)$(PREFIX)/share/doc/srfirewall diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..6e04591 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1,2 @@ +01-deb-install-location.patch +01-deb-makefile-install-location.patch diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..cff0447 --- /dev/null +++ b/debian/rules @@ -0,0 +1,11 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +%: + dh $@ + +#override_dh_auto_install: +# $(MAKE) DESTDIR=$$(pwd)/debian/srfirewall PREFIX=/usr install diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/srfirewall.dirs b/debian/srfirewall.dirs new file mode 100644 index 0000000..06f02e5 --- /dev/null +++ b/debian/srfirewall.dirs @@ -0,0 +1,3 @@ +usr/bin +usr/lib/srfirewall +etc/srfirewall diff --git a/debian/srfirewall.substvars b/debian/srfirewall.substvars new file mode 100644 index 0000000..abd3ebe --- /dev/null +++ b/debian/srfirewall.substvars @@ -0,0 +1 @@ +misc:Depends=