source: branches/htmlform/Makefile@ 513

Last change on this file since 513 was 511, checked in by Kris Deugau, 12 years ago

/branches/htmlform

Final prep for merge back to trunk.

  • Remove lockin on /ip/ web path as with /branches/stable r507.
  • Fix a buglet with the body text color.
  • Remove the lingering header and footer template files

See #3.

  • Property svn:keywords set to Id
File size: 3.3 KB
Line 
1# $Id: Makefile 511 2012-09-27 22:13:16Z 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 = \
31 INSTALL COPYING Makefile ipdb.spec \
32 \
33 alloctypes.html \
34 help.html index.shtml ipdb.css \
35 images/logo.png \
36 \
37 cgi-bin/combineblocks.pl cgi-bin/access-pwd-update.pl \
38 cgi-bin/newnode.cgi cgi-bin/CustIDCK.pm cgi-bin/freespace.pl \
39 cgi-bin/admin.cgi cgi-bin/MyIPDB.pm cgi-bin/IPDB.pm \
40 cgi-bin/main.cgi cgi-bin/checkcusts.pl cgi-bin/newcity.cgi \
41 cgi-bin/allocate.pl cgi-bin/search.cgi \
42 cgi-bin/snCalc.cgi cgi-bin/ipdb.psql \
43 cgi-bin/consistency-check.pl \
44 \
45 cgi-bin/extras/db2rwhois.pl cgi-bin/extras/rwhois-net-skel.tar.gz cgi-bin/extras/rwhois-config \
46 cgi-bin/extras/network.tmpl
47
48HTML = \
49 alloctypes.html \
50 help.html index.shtml ipdb.css
51
52IMAGES = images/logo.png
53
54SCRIPTS = \
55 cgi-bin/extras/db2rwhois.pl cgi-bin/combineblocks.pl cgi-bin/access-pwd-update.pl \
56 cgi-bin/newnode.cgi cgi-bin/freespace.pl cgi-bin/admin.cgi \
57 cgi-bin/main.cgi cgi-bin/newcity.cgi cgi-bin/allocate.pl \
58 cgi-bin/search.cgi cgi-bin/consistency-check.pl
59
60MODULES = cgi-bin/IPDB.pm
61
62CONFIGMODULES = cgi-bin/MyIPDB.pm cgi-bin/CustIDCK.pm
63
64RWHOIS = \
65 cgi-bin/extras/db2rwhois.pl cgi-bin/extras/rwhois-net-skel.tar.gz cgi-bin/extras/rwhois-config \
66 cgi-bin/extras/network.tmpl
67
68DIRS = images cgi-bin cgi-bin/extras
69
70# hmm. not sure what do do about you, m'friend...
71#ip@
72
73all:
74 # nullop
75
76install:
77 @for i in $(HTML) $(IMAGES); do \
78 $(INSTALL_DATA) -D $$i $(DESTDIR)${libdir}/ipdb-$(VERSION)/$$i ; \
79 done
80 # munge in necessary 'use lib ...' bits so scripts can find MyIPDB.pm...
81 @for i in $(SCRIPTS) $(MODULES) $(RWHOIS); do \
82 $(INSTALL_SCRIPT) -D $$i $(DESTDIR)${libdir}/ipdb-$(VERSION)/$$i ; \
83 perl -pi -e 's|##uselib##|use lib "${sysconfdir}/ipdb-$(VERSION)/";|;' $(DESTDIR)${libdir}/ipdb-$(VERSION)/$$i ; \
84 done
85 $(INSTALL) -d $(DESTDIR)${sysconfdir}/ipdb-$(VERSION)/
86 @for i in $(CONFIGMODULES) ; do \
87 $(INSTALL_DATA) $$i $(DESTDIR)${sysconfdir}/ipdb-$(VERSION)/ ; \
88 done
89 # and now munge MyIPDB.pm so it can find the core library
90 perl -pi -e 's|##uselib##|use lib "${libdir}/ipdb-$(VERSION)";|;' $(DESTDIR)${sysconfdir}/ipdb-$(VERSION)/MyIPDB.pm
91
92#clean:
93# @for i in $(DIRS) ; do \
94# $(MAKE) -C $$i clean ; \
95# done
96
97dist:
98 mkdir $(PKGNAME)-$(VERSION)
99 tar cf - $(MANIFEST) | (cd $(PKGNAME)-$(VERSION); tar xf -)
100 /usr/bin/perl -p -e 's/#VERSION#/$(VERSION)/;s/#RELEASE#/$(RELEASE)/;s/#BETA#//g' < $(PKGNAME).spec > $(PKGNAME)-$(VERSION)/$(PKGNAME).spec
101 /usr/bin/perl -p -e 's/#VERSION#/$(VERSION)/;s/#RELEASE#/$(RELEASE)/;s/#BETA#//g' < INSTALL > $(PKGNAME)-$(VERSION)/INSTALL
102 perl -pi -e 's/[\d.]+;\s*##VERSION##/$(VERSION);/;' $(PKGNAME)-$(VERSION)/cgi-bin/IPDB.pm
103 tar cf $(PKGNAME)-$(VERSION).tar $(PKGNAME)-$(VERSION)
104 gzip -v -f -9 $(PKGNAME)-$(VERSION).tar
105 rm -rf $(PKGNAME)-$(VERSION)
106 # gpg --detach-sign $(PKGNAME)-$(VERSION).tar.gz
Note: See TracBrowser for help on using the repository browser.