source: branches/htmlform/Makefile@ 510

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

/branches/htmlform

Clean up final reference to printError(), and remove all references
(commented or otherwise) to CommonWeb.pm. Remove the file itself. See #15.
Tweak block-update template for error handling. See #3.

  • Property svn:keywords set to Id
File size: 3.3 KB
RevLine 
[417]1# $Id: Makefile 505 2011-09-27 17:41:43Z kdeugau $
2# IPDB makefile
3
4PKGNAME=ipdb
5VERSION=2.6
6RELEASE=1
7
8# Include some boilerplate Gnu makefile definitions.
9prefix = /usr/local
10
11exec_prefix = ${prefix}
12bindir = ${exec_prefix}/bin
13libdir = ${exec_prefix}/lib
14infodir = ${prefix}/info
15includedir = ${prefix}/include
16datadir = ${prefix}/share
17localedir = $(datadir)/locale
18sysconfdir = ${prefix}/etc
19mandir = ${prefix}/man
20
21INSTALL = /usr/bin/install -c
22INSTALL_PROGRAM = ${INSTALL}
23INSTALL_SCRIPT = ${INSTALL}
24INSTALL_DATA = ${INSTALL} -m 644
25INSTALLMODE= -m 0755
26INSTALLMODE2 = -m 0555
27
28DESTDIR =
29
30MANIFEST = \
[433]31 INSTALL COPYING Makefile ipdb.spec \
[417]32 \
[501]33 alloctypes.html \
34 footer.inc \
[441]35 header.inc help.html index.shtml ipdb.css \
[417]36 images/logo.png \
37 \
[433]38 cgi-bin/combineblocks.pl cgi-bin/access-pwd-update.pl \
[417]39 cgi-bin/newnode.cgi cgi-bin/CustIDCK.pm cgi-bin/freespace.pl \
40 cgi-bin/admin.cgi cgi-bin/MyIPDB.pm cgi-bin/IPDB.pm \
41 cgi-bin/main.cgi cgi-bin/checkcusts.pl cgi-bin/newcity.cgi \
[433]42 cgi-bin/allocate.pl cgi-bin/search.cgi \
[505]43 cgi-bin/snCalc.cgi cgi-bin/ipdb.psql \
[433]44 cgi-bin/consistency-check.pl \
[417]45 \
46 cgi-bin/extras/db2rwhois.pl cgi-bin/extras/rwhois-net-skel.tar.gz cgi-bin/extras/rwhois-config \
47 cgi-bin/extras/network.tmpl
48
49HTML = \
[501]50 alloctypes.html \
51 footer.inc \
52 header.inc help.html index.shtml ipdb.css
[417]53
54IMAGES = images/logo.png
55
56SCRIPTS = \
57 cgi-bin/extras/db2rwhois.pl cgi-bin/combineblocks.pl cgi-bin/access-pwd-update.pl \
58 cgi-bin/newnode.cgi cgi-bin/freespace.pl cgi-bin/admin.cgi \
59 cgi-bin/main.cgi cgi-bin/newcity.cgi cgi-bin/allocate.pl \
60 cgi-bin/search.cgi cgi-bin/consistency-check.pl
61
62MODULES = cgi-bin/IPDB.pm
63
64CONFIGMODULES = cgi-bin/MyIPDB.pm cgi-bin/CustIDCK.pm
65
66RWHOIS = \
67 cgi-bin/extras/db2rwhois.pl cgi-bin/extras/rwhois-net-skel.tar.gz cgi-bin/extras/rwhois-config \
68 cgi-bin/extras/network.tmpl
69
70DIRS = images cgi-bin cgi-bin/extras
71
72# hmm. not sure what do do about you, m'friend...
73#ip@
74
75all:
76 # nullop
77
78install:
79 @for i in $(HTML) $(IMAGES); do \
[433]80 $(INSTALL_DATA) -D $$i $(DESTDIR)${libdir}/ipdb-$(VERSION)/$$i ; \
[417]81 done
82 # munge in necessary 'use lib ...' bits so scripts can find MyIPDB.pm...
83 @for i in $(SCRIPTS) $(MODULES) $(RWHOIS); do \
[433]84 $(INSTALL_SCRIPT) -D $$i $(DESTDIR)${libdir}/ipdb-$(VERSION)/$$i ; \
85 perl -pi -e 's|##uselib##|use lib "${sysconfdir}/ipdb-$(VERSION)/";|;' $(DESTDIR)${libdir}/ipdb-$(VERSION)/$$i ; \
[417]86 done
[433]87 $(INSTALL) -d $(DESTDIR)${sysconfdir}/ipdb-$(VERSION)/
[417]88 @for i in $(CONFIGMODULES) ; do \
[433]89 $(INSTALL_DATA) $$i $(DESTDIR)${sysconfdir}/ipdb-$(VERSION)/ ; \
[417]90 done
91 # and now munge MyIPDB.pm so it can find the core library
[433]92 perl -pi -e 's|##uselib##|use lib "${libdir}/ipdb-$(VERSION)";|;' $(DESTDIR)${sysconfdir}/ipdb-$(VERSION)/MyIPDB.pm
[417]93
94#clean:
95# @for i in $(DIRS) ; do \
96# $(MAKE) -C $$i clean ; \
97# done
98
99dist:
100 mkdir $(PKGNAME)-$(VERSION)
101 tar cf - $(MANIFEST) | (cd $(PKGNAME)-$(VERSION); tar xf -)
102 /usr/bin/perl -p -e 's/#VERSION#/$(VERSION)/;s/#RELEASE#/$(RELEASE)/;s/#BETA#//g' < $(PKGNAME).spec > $(PKGNAME)-$(VERSION)/$(PKGNAME).spec
[433]103 /usr/bin/perl -p -e 's/#VERSION#/$(VERSION)/;s/#RELEASE#/$(RELEASE)/;s/#BETA#//g' < INSTALL > $(PKGNAME)-$(VERSION)/INSTALL
[417]104 perl -pi -e 's/[\d.]+;\s*##VERSION##/$(VERSION);/;' $(PKGNAME)-$(VERSION)/cgi-bin/IPDB.pm
105 tar cf $(PKGNAME)-$(VERSION).tar $(PKGNAME)-$(VERSION)
106 gzip -v -f -9 $(PKGNAME)-$(VERSION).tar
107 rm -rf $(PKGNAME)-$(VERSION)
108 # gpg --detach-sign $(PKGNAME)-$(VERSION).tar.gz
Note: See TracBrowser for help on using the repository browser.