Changeset 166 for trunk/Makefile
- Timestamp:
- 11/11/11 17:22:56 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Makefile
r114 r166 1 # $Id $1 # $Id: Makefile 417 2010-06-30 21:48:03Z kdeugau $ 2 2 # DNS Admin makefile 3 3 4 4 PKGNAME=dnsadmin 5 VERSION= 05 VERSION=1.0 6 6 RELEASE=1 7 7 … … 31 31 INSTALL COPYING TODO Makefile dnsadmin.spec new-dns.sql dns.sql dns.cgi DNSDB.pm \ 32 32 \ 33 index.shtml 33 index.shtml \ 34 34 \ 35 35 images/trash2.png images/fwd.png images/ffwd.png images/frev.png \ 36 36 images/rev.png images/DESC.png images/ASC.png \ 37 37 \ 38 templates/fpnla.tmpl templates/updatesoa.tmpl templates/log.tmpl templates/newgrp.tmpl \ 39 templates/lettsearch.tmpl templates/delgrp.tmpl templates/deldom.tmpl templates/footer.tmpl \ 40 templates/header.tmpl templates/reclist.tmpl templates/adddomain.tmpl templates/deluser.tmpl \ 41 templates/editsoa.tmpl templates/pgcount.tmpl templates/dns.css templates/dnsq.tmpl \ 42 templates/grptree.tmpl templates/addgroup.tmpl templates/useradmin.tmpl templates/addrec.tmpl \ 43 templates/login.tmpl templates/adduser.tmpl templates/sbox.tmpl templates/record.tmpl \ 44 templates/whoisq.tmpl templates/domlist.tmpl templates/menu.tmpl \ 45 templates/soadata.tmpl templates/newdomain.tmpl templates/grpman.tmpl templates/axfr.tmpl \ 46 templates/newuser.tmpl templates/delrec.tmpl 38 templates/adddomain.tmpl templates/addgroup.tmpl templates/addrec.tmpl templates/adduser.tmpl \ 39 templates/axfr.tmpl templates/bulkchange.tmpl templates/bulkdomain.tmpl templates/dberr.tmpl \ 40 templates/deldom.tmpl templates/delgrp.tmpl templates/delrec.tmpl templates/deluser.tmpl \ 41 templates/dns.css templates/dnsq.tmpl templates/domlist.tmpl templates/edgroup.tmpl \ 42 templates/editsoa.tmpl templates/footer.tmpl templates/fpnla.tmpl templates/grouptree.css \ 43 templates/grouptree-ie.css templates/grpman.tmpl templates/grptree.tmpl templates/header.tmpl \ 44 templates/lettsearch.tmpl templates/login.tmpl templates/log.tmpl templates/menu.tmpl \ 45 templates/newdomain.tmpl templates/newgrp.tmpl templates/permlist_enabled.tmpl templates/permlist.tmpl \ 46 templates/pgcount.tmpl templates/reclist.tmpl templates/record.tmpl templates/sbox.tmpl \ 47 templates/soadata.tmpl templates/template.tmpl templates/updatesoa.tmpl templates/useradmin.tmpl \ 48 templates/user.tmpl templates/viadns.css templates/whoisq.tmpl \ 47 49 48 50 DIRS = \ 49 51 images templates 50 51 ##work52 HTML = \53 addmaster.html alloctypes.html assign.html changes.html compsearch.html \54 confirm.html confirmRemove.html editDisplay.html fb-assign.html footer.inc \55 header.inc help.html index.shtml ipdb.css local.css \56 newcity.html newnode.html nodesearch.html startsn.html updated.html57 52 58 53 IMAGES = images/logo.png … … 64 59 cgi-bin/search.cgi cgi-bin/consistency-check.pl 65 60 66 MODULES = cgi-bin/IPDB.pm61 MODULES = DNSDB.pm 67 62 68 63 CONFIGMODULES = cgi-bin/MyIPDB.pm cgi-bin/CustIDCK.pm … … 73 68 install: 74 69 @for i in $(HTML) $(IMAGES); do \ 75 $(INSTALL_DATA) -D $$i $(DESTDIR)${libdir}/ ipdb/$$i ; \70 $(INSTALL_DATA) -D $$i $(DESTDIR)${libdir}/dnsdb/$$i ; \ 76 71 done 77 72 # munge in necessary 'use lib ...' bits so scripts can find MyIPDB.pm... 78 73 @for i in $(SCRIPTS) $(MODULES); do \ 79 $(INSTALL_SCRIPT) -D $$i $(DESTDIR)${libdir}/ ipdb/$$i ; \80 perl -pi -e 's|##uselib##|use lib "${sysconfdir}/ ipdb/";|;' $(DESTDIR)${libdir}/ipdb/$$i ; \74 $(INSTALL_SCRIPT) -D $$i $(DESTDIR)${libdir}/dnsdb/$$i ; \ 75 perl -pi -e 's|##uselib##|use lib "${sysconfdir}/dnsdb/";|;' $(DESTDIR)${libdir}/dnsdb/$$i ; \ 81 76 done 82 $(INSTALL) -d $(DESTDIR)${sysconfdir}/ ipdb/77 $(INSTALL) -d $(DESTDIR)${sysconfdir}/dnsdb/ 83 78 @for i in $(CONFIGMODULES) ; do \ 84 $(INSTALL_DATA) $$i $(DESTDIR)${sysconfdir}/ ipdb/ ; \79 $(INSTALL_DATA) $$i $(DESTDIR)${sysconfdir}/dnsdb/ ; \ 85 80 done 86 81 # # and now munge MyIPDB.pm so it can find the core library 87 # perl -pi -e 's|##uselib##|use lib "${libdir}/ ipdb";|;' $(DESTDIR)${sysconfdir}/ipdb/MyIPDB.pm82 # perl -pi -e 's|##uselib##|use lib "${libdir}/dnsdb";|;' $(DESTDIR)${sysconfdir}/ipdb/MyIPDB.pm 88 83 89 84 #clean: … … 102 97 rm -rf $(PKGNAME)-$(VERSION) 103 98 # gpg --detach-sign $(PKGNAME)-$(VERSION).tar.gz 104 # $Id: Makefile 417 2010-06-30 21:48:03Z kdeugau $105 # DNS Admin makefile106 107 PKGNAME=dnsadmin108 VERSION=0109 RELEASE=1110 111 # Include some boilerplate Gnu makefile definitions.112 prefix = /usr/local113 114 exec_prefix = ${prefix}115 bindir = ${exec_prefix}/bin116 libdir = ${exec_prefix}/lib117 infodir = ${prefix}/info118 includedir = ${prefix}/include119 datadir = ${prefix}/share120 localedir = $(datadir)/locale121 sysconfdir = ${prefix}/etc122 mandir = ${prefix}/man123 124 INSTALL = /usr/bin/install -c125 INSTALL_PROGRAM = ${INSTALL}126 INSTALL_SCRIPT = ${INSTALL}127 INSTALL_DATA = ${INSTALL} -m 644128 INSTALLMODE= -m 0755129 INSTALLMODE2 = -m 0555130 131 DESTDIR =132 133 MANIFEST = \134 INSTALL COPYING TODO Makefile dnsadmin.spec new-dns.sql dns.sql dns.cgi DNSDB.pm \135 \136 index.shtml137 \138 images/trash2.png images/fwd.png images/ffwd.png images/frev.png \139 images/rev.png images/DESC.png images/ASC.png \140 \141 templates/fpnla.tmpl templates/updatesoa.tmpl templates/log.tmpl templates/newgrp.tmpl \142 templates/lettsearch.tmpl templates/delgrp.tmpl templates/deldom.tmpl templates/footer.tmpl \143 templates/header.tmpl templates/reclist.tmpl templates/adddomain.tmpl templates/deluser.tmpl \144 templates/editsoa.tmpl templates/pgcount.tmpl templates/dns.css templates/dnsq.tmpl \145 templates/grptree.tmpl templates/addgroup.tmpl templates/useradmin.tmpl templates/addrec.tmpl \146 templates/login.tmpl templates/adduser.tmpl templates/sbox.tmpl templates/record.tmpl \147 templates/whoisq.tmpl templates/domlist.tmpl templates/menu.tmpl \148 templates/soadata.tmpl templates/newdomain.tmpl templates/grpman.tmpl templates/axfr.tmpl \149 templates/newuser.tmpl templates/delrec.tmpl150 151 DIRS = \152 images templates153 154 ##work155 HTML = \156 addmaster.html alloctypes.html assign.html changes.html compsearch.html \157 confirm.html confirmRemove.html editDisplay.html fb-assign.html footer.inc \158 header.inc help.html index.shtml ipdb.css local.css \159 newcity.html newnode.html nodesearch.html startsn.html updated.html160 161 IMAGES = images/logo.png162 163 SCRIPTS = \164 cgi-bin/extras/db2rwhois.pl cgi-bin/combineblocks.pl cgi-bin/access-pwd-update.pl \165 cgi-bin/newnode.cgi cgi-bin/freespace.pl cgi-bin/admin.cgi \166 cgi-bin/main.cgi cgi-bin/newcity.cgi cgi-bin/allocate.pl \167 cgi-bin/search.cgi cgi-bin/consistency-check.pl168 169 MODULES = cgi-bin/IPDB.pm170 171 CONFIGMODULES = cgi-bin/MyIPDB.pm cgi-bin/CustIDCK.pm172 173 all:174 # nullop175 176 install:177 @for i in $(HTML) $(IMAGES); do \178 $(INSTALL_DATA) -D $$i $(DESTDIR)${libdir}/ipdb/$$i ; \179 done180 # munge in necessary 'use lib ...' bits so scripts can find MyIPDB.pm...181 @for i in $(SCRIPTS) $(MODULES); do \182 $(INSTALL_SCRIPT) -D $$i $(DESTDIR)${libdir}/ipdb/$$i ; \183 perl -pi -e 's|##uselib##|use lib "${sysconfdir}/ipdb/";|;' $(DESTDIR)${libdir}/ipdb/$$i ; \184 done185 $(INSTALL) -d $(DESTDIR)${sysconfdir}/ipdb/186 @for i in $(CONFIGMODULES) ; do \187 $(INSTALL_DATA) $$i $(DESTDIR)${sysconfdir}/ipdb/ ; \188 done189 # # and now munge MyIPDB.pm so it can find the core library190 # perl -pi -e 's|##uselib##|use lib "${libdir}/ipdb";|;' $(DESTDIR)${sysconfdir}/ipdb/MyIPDB.pm191 192 #clean:193 # @for i in $(DIRS) ; do \194 # $(MAKE) -C $$i clean ; \195 # done196 197 dist:198 mkdir $(PKGNAME)-$(VERSION)199 tar cf - $(MANIFEST) | (cd $(PKGNAME)-$(VERSION); tar xf -)200 /usr/bin/perl -p -e 's/#VERSION#/$(VERSION)/;s/#RELEASE#/$(RELEASE)/;s/#BETA#//g' < $(PKGNAME).spec > $(PKGNAME)-$(VERSION)/$(PKGNAME).spec201 /usr/bin/perl -p -e 's/#VERSION#/$(VERSION)/;s/#RELEASE#/$(RELEASE)/;s/#BETA#//g' < INSTALL > $(PKGNAME)-$(VERSION)/INSTALL202 perl -pi -e 's/[\d.]+;\s*##VERSION##/$(VERSION);/;' $(PKGNAME)-$(VERSION)/cgi-bin/IPDB.pm203 tar cf $(PKGNAME)-$(VERSION).tar $(PKGNAME)-$(VERSION)204 gzip -v -f -9 $(PKGNAME)-$(VERSION).tar205 rm -rf $(PKGNAME)-$(VERSION)206 # gpg --detach-sign $(PKGNAME)-$(VERSION).tar.gz
Note:
See TracChangeset
for help on using the changeset viewer.