shorewall_code/Shorewall-lite/debian/rules
el_cubano 60beb2f1d2 Add Debian files
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@7501 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
2007-10-22 13:35:14 +00:00

75 lines
1.7 KiB
Makefile
Executable File

#!/usr/bin/make -f
#
# Shorewall firewall (http://www.shorewall.net)
# debianized version
# Include dpatch stuff.
include /usr/share/dpatch/dpatch.make
# shorewall version
export V=`cat install.sh | grep "^VERSION=" | head -n 1 | cut -f 2 -d "="`
SRWL=$(CURDIR)/debian/shorewall-lite
build: patch build-stamp
build-stamp:
dh_testdir
# there's nothing to compile ;-)
touch build-stamp
clean: clean-patched unpatch
clean-patched:
dh_testdir
dh_testroot
rm -f build-stamp
rm -rf $(SRWL)
dh_clean
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
dh_install
install -m 644 debian/shorewall-lite.lintian $(SRWL)/usr/share/lintian/overrides/shorewall-lite
# Temporary zones are only available to root
chmod 750 $(SRWL)/var/lib/shorewall-lite
# As well as configuration files
chmod 755 $(SRWL)/etc/shorewall-lite
chmod 644 $(SRWL)/etc/shorewall-lite/shorewall-lite.conf
chmod 644 $(SRWL)/etc/shorewall-lite/Makefile
# set version number
echo $V > $(SRWL)/usr/share/shorewall-lite/version
# global configuration has to be fully readable
chmod 644 $(SRWL)/usr/share/shorewall-lite/*
# must be executable
chmod 755 $(SRWL)/usr/share/shorewall-lite/shorecap
chmod 755 $(SRWL)/sbin/shorewall-lite
binary-indep: build install
dh_testdir
dh_testroot
dh_installman manpages/*
dh_installdocs releasenotes.txt
dh_installchangelogs changelog.txt
dh_installlogrotate
dh_installinit --no-start -u"start 40 S . stop 89 0 6 ."
dh_installdebconf
dh_compress
dh_fixperms -Xetc/shorewall-lite -Xvar/lib/shorewall-lite
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb -v
binary-arch: build install
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install patch unpatch \
clean-patched