1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
|
#!/usr/bin/make -f
# Rather paranoid than sorry. Make the shell exit with an error if an
# untested command fails.
SHELL+= -e
package=junkbuster
build:
$(checkdir)
# GNU regex is built into libc6
make MORE_CFLAGS="-O2 -g -Wall" REGEX=
touch build
clean:
$(checkdir)
-rm -f build
-make clobber
-rm -f `find . -name "*~"`
-rm -rf debian/tmp debian/files* core debian/substvars
binary-indep: checkroot build
$(checkdir)
binary-arch: checkroot build
$(checkdir)
-rm -rf debian/tmp
install -d debian/tmp/etc/junkbuster
install -d debian/tmp/usr/man/man8
install -d debian/tmp/usr/sbin
install -m 0755 junkbuster debian/tmp/usr/sbin/
install -m 0644 junkbstr.ini debian/tmp/etc/junkbuster/config
install -m 0644 saclfile.ini debian/tmp/etc/junkbuster/acl
install -m 0644 sblock.ini debian/tmp/etc/junkbuster/blockfile
install -m 0644 strust.ini debian/tmp/etc/junkbuster/trust
install -m 0644 sforward.ini debian/tmp/etc/junkbuster/forwardfile
install -m 0644 scookie.ini debian/tmp/etc/junkbuster/cookiefile
install -m 0644 junkbuster.1 debian/tmp/usr/man/man8/junkbuster.8
debstd -m README ijbfaq.html ijbman.html debian/README.Debian debian/blockfile.sample
dpkg-gencontrol
chown -R root.root debian/tmp
chmod -R go=rX debian/tmp
dpkg --build debian/tmp ..
define checkdir
test -f debian/rules
endef
# Below here is fairly generic really
binary: binary-indep binary-arch
checkroot:
$(checkdir)
test root = "`whoami`"
.PHONY: binary binary-arch binary-indep clean checkroot
|