Changeset 433 for trunk/Makefile
- Timestamp:
- 07/16/10 17:48:19 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Makefile
r417 r433 29 29 30 30 MANIFEST = \ 31 Makefile ipdb.spec \31 INSTALL COPYING Makefile ipdb.spec \ 32 32 \ 33 addmaster.html alloctypes.html assign.html c hanges.html compsearch.html \33 addmaster.html alloctypes.html assign.html compsearch.html \ 34 34 confirm.html confirmRemove.html editDisplay.html fb-assign.html footer.inc \ 35 35 header.inc help.html index.shtml ipdb.css local.css \ … … 37 37 images/logo.png \ 38 38 \ 39 cgi-bin/ updatecust.php cgi-bin/combineblocks.pl cgi-bin/access-pwd-update.pl \39 cgi-bin/combineblocks.pl cgi-bin/access-pwd-update.pl \ 40 40 cgi-bin/newnode.cgi cgi-bin/CustIDCK.pm cgi-bin/freespace.pl \ 41 41 cgi-bin/admin.cgi cgi-bin/MyIPDB.pm cgi-bin/IPDB.pm \ 42 42 cgi-bin/main.cgi cgi-bin/checkcusts.pl cgi-bin/newcity.cgi \ 43 cgi-bin/allocate.pl cgi-bin/search.cgi cgi-bin/editcust.php\43 cgi-bin/allocate.pl cgi-bin/search.cgi \ 44 44 cgi-bin/snCalc.cgi cgi-bin/CommonWeb.pm cgi-bin/ipdb.psql \ 45 cgi-bin/ list-cust.php cgi-bin/consistency-check.pl \45 cgi-bin/consistency-check.pl \ 46 46 \ 47 47 cgi-bin/extras/db2rwhois.pl cgi-bin/extras/rwhois-net-skel.tar.gz cgi-bin/extras/rwhois-config \ … … 80 80 install: 81 81 @for i in $(HTML) $(IMAGES); do \ 82 $(INSTALL_DATA) -D $$i $(DESTDIR)${libdir}/ipdb /$$i ; \82 $(INSTALL_DATA) -D $$i $(DESTDIR)${libdir}/ipdb-$(VERSION)/$$i ; \ 83 83 done 84 84 # munge in necessary 'use lib ...' bits so scripts can find MyIPDB.pm... 85 85 @for i in $(SCRIPTS) $(MODULES) $(RWHOIS); do \ 86 $(INSTALL_SCRIPT) -D $$i $(DESTDIR)${libdir}/ipdb /$$i ; \87 perl -pi -e 's|##uselib##|use lib "${sysconfdir}/ipdb /";|;' $(DESTDIR)${libdir}/ipdb/$$i ; \86 $(INSTALL_SCRIPT) -D $$i $(DESTDIR)${libdir}/ipdb-$(VERSION)/$$i ; \ 87 perl -pi -e 's|##uselib##|use lib "${sysconfdir}/ipdb-$(VERSION)/";|;' $(DESTDIR)${libdir}/ipdb-$(VERSION)/$$i ; \ 88 88 done 89 $(INSTALL) -d $(DESTDIR)${sysconfdir}/ipdb /89 $(INSTALL) -d $(DESTDIR)${sysconfdir}/ipdb-$(VERSION)/ 90 90 @for i in $(CONFIGMODULES) ; do \ 91 $(INSTALL_DATA) $$i $(DESTDIR)${sysconfdir}/ipdb / ; \91 $(INSTALL_DATA) $$i $(DESTDIR)${sysconfdir}/ipdb-$(VERSION)/ ; \ 92 92 done 93 93 # and now munge MyIPDB.pm so it can find the core library 94 perl -pi -e 's|##uselib##|use lib "${libdir}/ipdb ";|;' $(DESTDIR)${sysconfdir}/ipdb/MyIPDB.pm94 perl -pi -e 's|##uselib##|use lib "${libdir}/ipdb-$(VERSION)";|;' $(DESTDIR)${sysconfdir}/ipdb-$(VERSION)/MyIPDB.pm 95 95 96 96 #clean: … … 103 103 tar cf - $(MANIFEST) | (cd $(PKGNAME)-$(VERSION); tar xf -) 104 104 /usr/bin/perl -p -e 's/#VERSION#/$(VERSION)/;s/#RELEASE#/$(RELEASE)/;s/#BETA#//g' < $(PKGNAME).spec > $(PKGNAME)-$(VERSION)/$(PKGNAME).spec 105 /usr/bin/perl -p -e 's/#VERSION#/$(VERSION)/;s/#RELEASE#/$(RELEASE)/;s/#BETA#//g' < INSTALL > $(PKGNAME)-$(VERSION)/INSTALL 105 106 perl -pi -e 's/[\d.]+;\s*##VERSION##/$(VERSION);/;' $(PKGNAME)-$(VERSION)/cgi-bin/IPDB.pm 106 107 tar cf $(PKGNAME)-$(VERSION).tar $(PKGNAME)-$(VERSION)
Note:
See TracChangeset
for help on using the changeset viewer.