Changeset 216 for trunk/Makefile
- Timestamp:
- 01/04/12 23:25:56 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Makefile
r210 r216 47 47 templates/pgcount.tmpl templates/reclist.tmpl templates/record.tmpl templates/sbox.tmpl \ 48 48 templates/soadata.tmpl templates/template.tmpl templates/updatesoa.tmpl templates/useradmin.tmpl \ 49 templates/user.tmpl templates/viadns.css templates/whoisq.tmpl \ 49 templates/user.tmpl templates/whoisq.tmpl \ 50 \ 51 dnsdb.conf 50 52 51 53 DIRS = \ … … 61 63 MODULES = DNSDB.pm 62 64 63 #CONFIGMODULES = MyDNSDB.pm 65 TEMPLATES = \ 66 templates/adddomain.tmpl templates/addgroup.tmpl templates/addrec.tmpl templates/adduser.tmpl \ 67 templates/axfr.tmpl templates/bulkchange.tmpl templates/bulkdomain.tmpl templates/dberr.tmpl \ 68 templates/deldom.tmpl templates/delgrp.tmpl templates/delrec.tmpl templates/deluser.tmpl \ 69 templates/dns.css templates/dnsq.tmpl templates/domlist.tmpl templates/edgroup.tmpl \ 70 templates/editsoa.tmpl templates/footer.tmpl templates/fpnla.tmpl templates/grouptree.css \ 71 templates/grouptree-ie.css templates/grpman.tmpl templates/grptree.tmpl templates/header.tmpl \ 72 templates/lettsearch.tmpl templates/login.tmpl templates/log.tmpl templates/menu.tmpl \ 73 templates/newdomain.tmpl templates/newgrp.tmpl templates/permlist_enabled.tmpl templates/permlist.tmpl \ 74 templates/pgcount.tmpl templates/reclist.tmpl templates/record.tmpl templates/sbox.tmpl \ 75 templates/soadata.tmpl templates/template.tmpl templates/updatesoa.tmpl templates/useradmin.tmpl \ 76 templates/user.tmpl templates/whoisq.tmpl 77 78 CONFIGFILES = dnsdb.conf 64 79 65 80 all: … … 67 82 68 83 install: 69 @for i in $( HTML) $(IMAGES); do \70 $(INSTALL_DATA) -D $$i $(DESTDIR)${ libdir}/dnsdb/$$i ; \84 @for i in $(IMAGES) $(TEMPLATES); do \ 85 $(INSTALL_DATA) -D $$i $(DESTDIR)${datadir}/dnsdb-$(VERSION)/$$i ; \ 71 86 done 72 # munge in necessary 'use lib ...' bits so scripts can find MyDNSDB.pm... 87 @# munge in necessary 'use lib ...' bits so scripts can find libs and config... 88 @# datadir is correct; no arch-specific files 73 89 @for i in $(SCRIPTS) $(MODULES); do \ 74 $(INSTALL_SCRIPT) -D $$i $(DESTDIR)${libdir}/dnsdb/$$i ; \ 75 perl -pi -e 's|##uselib##|use lib "${sysconfdir}/dnsdb/";|;' $(DESTDIR)${libdir}/dnsdb/$$i ; \ 90 $(INSTALL_SCRIPT) -D $$i $(DESTDIR)${datadir}/dnsdb-$(VERSION)/$$i ; \ 91 perl -pi -e 's|use lib '.'; ##uselib##|use lib "${datadir}/dnsdb-$(VERSION)/";|;' $(DESTDIR)${datadir}/dnsdb-$(VERSION)/$$i ; \ 92 perl -pi -e 's|use lib '.'; ##uselib##|use lib "${datadir}/dnsdb-$(VERSION)/";|;' $(DESTDIR)${datadir}/dnsdb-$(VERSION)/$$i ; \ 76 93 done 77 $(INSTALL) -d $(DESTDIR)${sysconfdir}/dnsdb/ 78 @for i in $(CONFIGMODULES) ; do \ 79 $(INSTALL_DATA) $$i $(DESTDIR)${sysconfdir}/dnsdb/ ; \ 94 @$(INSTALL) -d $(DESTDIR)${sysconfdir}/dnsdb/ 95 @# install an example config file with all known settings 96 @for i in $(CONFIGFILES) ; do \ 97 if [ -e $(DESTDIR)${sysconfdir}/dnsdb/$$i ]; then \ 98 echo "refusing to overwrite existing config file, created as $$i.new" ; \ 99 $(INSTALL_DATA) $$i $(DESTDIR)${sysconfdir}/dnsdb/$$i.new ; \ 100 else \ 101 $(INSTALL_DATA) $$i $(DESTDIR)${sysconfdir}/dnsdb/ ; \ 102 fi \ 80 103 done 81 104 # # and now munge MyDNSDB.pm so it can find the core library … … 96 119 gzip -v -f -9 $(PKGNAME)-$(VERSION).tar 97 120 rm -rf $(PKGNAME)-$(VERSION) 98 #gpg --detach-sign $(PKGNAME)-$(VERSION).tar.gz121 gpg --detach-sign $(PKGNAME)-$(VERSION).tar.gz
Note:
See TracChangeset
for help on using the changeset viewer.