source: trunk/Makefile@ 211

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

/trunk

The lets-call-it-a-release commit, for sure this time!
Fill in some lingering details in the UI - company name in the
header, version on the login and footer, identify *what* you're
logging in to on the login page.

  • Property svn:keywords set to Id
File size: 3.4 KB
RevLine 
[210]1# $Id: Makefile 210 2011-12-21 20:33:48Z kdeugau $
[114]2# DNS Admin makefile
3
4PKGNAME=dnsadmin
[166]5VERSION=1.0
[114]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 = \
[199]31 INSTALL COPYING TODO Makefile new-dns.sql dns.sql dns.cgi dns-rpc.cgi DNSDB.pm \
32 vega-import.pl \
[114]33 \
[166]34 index.shtml \
[114]35 \
36 images/trash2.png images/fwd.png images/ffwd.png images/frev.png \
[201]37 images/rev.png images/DESC.png images/ASC.png images/tree_open.png images/tree_closed.png \
[114]38 \
[166]39 templates/adddomain.tmpl templates/addgroup.tmpl templates/addrec.tmpl templates/adduser.tmpl \
40 templates/axfr.tmpl templates/bulkchange.tmpl templates/bulkdomain.tmpl templates/dberr.tmpl \
41 templates/deldom.tmpl templates/delgrp.tmpl templates/delrec.tmpl templates/deluser.tmpl \
42 templates/dns.css templates/dnsq.tmpl templates/domlist.tmpl templates/edgroup.tmpl \
43 templates/editsoa.tmpl templates/footer.tmpl templates/fpnla.tmpl templates/grouptree.css \
44 templates/grouptree-ie.css templates/grpman.tmpl templates/grptree.tmpl templates/header.tmpl \
45 templates/lettsearch.tmpl templates/login.tmpl templates/log.tmpl templates/menu.tmpl \
46 templates/newdomain.tmpl templates/newgrp.tmpl templates/permlist_enabled.tmpl templates/permlist.tmpl \
47 templates/pgcount.tmpl templates/reclist.tmpl templates/record.tmpl templates/sbox.tmpl \
48 templates/soadata.tmpl templates/template.tmpl templates/updatesoa.tmpl templates/useradmin.tmpl \
49 templates/user.tmpl templates/viadns.css templates/whoisq.tmpl \
[114]50
51DIRS = \
52 images templates
53
[199]54IMAGES = \
55 images/trash2.png images/fwd.png images/ffwd.png images/frev.png \
56 images/rev.png images/DESC.png images/ASC.png
[114]57
58SCRIPTS = \
[199]59 dns.cgi dns-rpc.cgi vega-import.pl
[114]60
[166]61MODULES = DNSDB.pm
[114]62
[199]63#CONFIGMODULES = MyDNSDB.pm
[114]64
65all:
66 # nullop
67
68install:
69 @for i in $(HTML) $(IMAGES); do \
[166]70 $(INSTALL_DATA) -D $$i $(DESTDIR)${libdir}/dnsdb/$$i ; \
[114]71 done
[199]72 # munge in necessary 'use lib ...' bits so scripts can find MyDNSDB.pm...
[114]73 @for i in $(SCRIPTS) $(MODULES); do \
[166]74 $(INSTALL_SCRIPT) -D $$i $(DESTDIR)${libdir}/dnsdb/$$i ; \
75 perl -pi -e 's|##uselib##|use lib "${sysconfdir}/dnsdb/";|;' $(DESTDIR)${libdir}/dnsdb/$$i ; \
[114]76 done
[166]77 $(INSTALL) -d $(DESTDIR)${sysconfdir}/dnsdb/
[114]78 @for i in $(CONFIGMODULES) ; do \
[166]79 $(INSTALL_DATA) $$i $(DESTDIR)${sysconfdir}/dnsdb/ ; \
[114]80 done
[199]81# # and now munge MyDNSDB.pm so it can find the core library
82# perl -pi -e 's|##uselib##|use lib "${libdir}/dnsdb";|;' $(DESTDIR)${sysconfdir}/dnsdb/MyDNSDB.pm
[114]83
84#clean:
85# @for i in $(DIRS) ; do \
86# $(MAKE) -C $$i clean ; \
87# done
88
89dist:
90 mkdir $(PKGNAME)-$(VERSION)
91 tar cf - $(MANIFEST) | (cd $(PKGNAME)-$(VERSION); tar xf -)
[170]92 #/usr/bin/perl -p -e 's/#VERSION#/$(VERSION)/;s/#RELEASE#/$(RELEASE)/;s/#BETA#//g' < $(PKGNAME).spec > $(PKGNAME)-$(VERSION)/$(PKGNAME).spec
[114]93 /usr/bin/perl -p -e 's/#VERSION#/$(VERSION)/;s/#RELEASE#/$(RELEASE)/;s/#BETA#//g' < INSTALL > $(PKGNAME)-$(VERSION)/INSTALL
[199]94 perl -pi -e 's/[\d.]+;\s*##VERSION##/$(VERSION);/;' $(PKGNAME)-$(VERSION)/DNSDB.pm
[114]95 tar cf $(PKGNAME)-$(VERSION).tar $(PKGNAME)-$(VERSION)
96 gzip -v -f -9 $(PKGNAME)-$(VERSION).tar
97 rm -rf $(PKGNAME)-$(VERSION)
98 # gpg --detach-sign $(PKGNAME)-$(VERSION).tar.gz
Note: See TracBrowser for help on using the repository browser.