# wrap'em up all neatlike
# $Id: Makefile 42 2012-03-04 21:08:43Z kdeugau $

# reqs:
# libnetaddr-ip-perl
# libdbd-pg-perl
# rbldnsd

MANIFEST = \
	browse.cgi check-iplist.pl delist-ip export-dnsbl index.shtml Makefile \
	dnsbl.cgi DNSBL.pm dnsbl.sql templates/ addparents.sql setparents.pl \
	COPYING sa-dnsbl-example.cf

PKGNAME=dnsbl
VERSION=0.2.2

all:

dist:
	mkdir $(PKGNAME)-$(VERSION)
	tar -c --exclude .svn -f - $(MANIFEST) | (cd $(PKGNAME)-$(VERSION); tar xvf -)
#	/usr/bin/perl -p -e 's/#VERSION#/$(VERSION)/' < $(PKGNAME).spec > $(PKGNAME)-$(VERSION)/$(PKGNAME).spec
	tar cvf $(PKGNAME)-$(VERSION).tar $(PKGNAME)-$(VERSION)
	gzip -v -f -9 $(PKGNAME)-$(VERSION).tar
	rm -rf $(PKGNAME)-$(VERSION)
	# gpg --detach-sign $(PKGNAME)-$(VERSION).tar.gz
