# wrap'em up all neatlike # $Id$ MANIFEST = \ delist-uri export-uridb import-cur.pl uridb.cgi URIdb.pm uridb.sql templates/ \ sa-uribl-example.cf PKGNAME=uridb VERSION=0.1.2 # bloody stupid Debian config puts OS-provided packaged sitelib under # /usr/local - by FHS defs, this is supposed to be reserved for, y'know, # **LOCAL** crap. # So we use the vendor lib directory instead. Feh. PERLLIBDIR = `eval "`perl -V:installvendorlib`"; echo $installvendorlib` ##fixme #install: # install -D DNSBL.pm $(DESTDIR)$(PERLLIBDIR)//DNS/DNSBL.pm # install -D -m 0755 export-dnsbl $(DESTDIR)${bindir}/export-dnsbl 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