Changeset 433 for trunk/Makefile


Ignore:
Timestamp:
07/16/10 17:48:19 (14 years ago)
Author:
Kris Deugau
Message:

/trunk

Distribution-preparation rollup:

  • Clean up links in footer.inc
  • Extend/complete INSTALL
  • .spec file tweaks
  • Add GPL3 as COPYING
  • Remove obsoleted files from Makefile MANIFEST
  • Shuffle install process to allow side-by-side multiversion installation (sort of related to #14)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile

    r417 r433  
    2929
    3030MANIFEST = \
    31         Makefile ipdb.spec \
     31        INSTALL COPYING Makefile ipdb.spec \
    3232        \
    33         addmaster.html alloctypes.html assign.html changes.html compsearch.html \
     33        addmaster.html alloctypes.html assign.html compsearch.html \
    3434        confirm.html confirmRemove.html editDisplay.html fb-assign.html footer.inc \
    3535        header.inc help.html index.shtml ipdb.css local.css \
     
    3737        images/logo.png \
    3838        \
    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 \
    4040        cgi-bin/newnode.cgi cgi-bin/CustIDCK.pm cgi-bin/freespace.pl \
    4141        cgi-bin/admin.cgi cgi-bin/MyIPDB.pm cgi-bin/IPDB.pm \
    4242        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 \
    4444        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 \
    4646        \
    4747        cgi-bin/extras/db2rwhois.pl cgi-bin/extras/rwhois-net-skel.tar.gz cgi-bin/extras/rwhois-config \
     
    8080install:
    8181        @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 ; \
    8383        done
    8484        # munge in necessary 'use lib ...' bits so scripts can find MyIPDB.pm...
    8585        @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 ; \
    8888        done
    89         $(INSTALL) -d $(DESTDIR)${sysconfdir}/ipdb/
     89        $(INSTALL) -d $(DESTDIR)${sysconfdir}/ipdb-$(VERSION)/
    9090        @for i in $(CONFIGMODULES) ; do \
    91                 $(INSTALL_DATA) $$i $(DESTDIR)${sysconfdir}/ipdb/ ; \
     91                $(INSTALL_DATA) $$i $(DESTDIR)${sysconfdir}/ipdb-$(VERSION)/ ; \
    9292        done
    9393        # 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.pm
     94        perl -pi -e 's|##uselib##|use lib "${libdir}/ipdb-$(VERSION)";|;' $(DESTDIR)${sysconfdir}/ipdb-$(VERSION)/MyIPDB.pm
    9595
    9696#clean:
     
    103103        tar cf - $(MANIFEST) | (cd $(PKGNAME)-$(VERSION); tar xf -)
    104104        /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
    105106        perl -pi -e 's/[\d.]+;\s*##VERSION##/$(VERSION);/;' $(PKGNAME)-$(VERSION)/cgi-bin/IPDB.pm
    106107        tar cf $(PKGNAME)-$(VERSION).tar $(PKGNAME)-$(VERSION)
Note: See TracChangeset for help on using the changeset viewer.