source: trunk/dnsbl/Makefile@ 32

Last change on this file since 32 was 32, checked in by Kris Deugau, 13 years ago

/trunk/dnsbl

Changeset to improve export speed on DNSBL database. By keeping
IP counts for each block, and directly tracking the parent of
each block and IP, an export taking ~90 seconds can be brought
down under 20.

  • updated initial tabledef SQL
  • Add addparents.sql SQL tabeldef and setparents.pl data update script
  • Tweak reporting of IP since it now requires the parent block(s) so the parent field can be filled in

Also add delist-ip script and Makefile

File size: 1.0 KB
Line 
1# wrap'em up all neatlike
2# $Id$
3
4# reqs:
5# libnetaddr-ip-perl
6# libdbd-pg-perl
7# rbldnsd
8
9MANIFEST = \
10 Makefile dnsbl.sql DNSBL.pm dnsbl.cgi export-dnsbl browse.cgi templates/ \
11 add-parents.sql setparents.pl
12
13PKGNAME=dnsbl
14VERSION=0.2.0
15
16# bloody stupid Debian config puts OS-provided packaged sitelib under
17# /usr/local - by FHS defs, this is supposed to be reserved for, y'know,
18# **LOCAL** crap.
19# So we use the vendor lib directory instead. Feh.
20
21PERLLIBDIR = `eval "`perl -V:installvendorlib`"; echo $installvendorlib`
22
23install:
24 install -D DNSBL.pm $(DESTDIR)$(PERLLIBDIR)/DNSBL.pm
25 install -D -m 0755 export-dnsbl $(DESTDIR)${bindir}/export-dnsbl
26
27dist:
28 mkdir $(PKGNAME)-$(VERSION)
29 tar -c --exclude .svn -f - $(MANIFEST) | (cd $(PKGNAME)-$(VERSION); tar xvf -)
30# /usr/bin/perl -p -e 's/#VERSION#/$(VERSION)/' < $(PKGNAME).spec > $(PKGNAME)-$(VERSION)/$(PKGNAME).spec
31 tar cvf $(PKGNAME)-$(VERSION).tar $(PKGNAME)-$(VERSION)
32 gzip -v -f -9 $(PKGNAME)-$(VERSION).tar
33 rm -rf $(PKGNAME)-$(VERSION)
34 # gpg --detach-sign $(PKGNAME)-$(VERSION).tar.gz
Note: See TracBrowser for help on using the repository browser.