Changeset 199


Ignore:
Timestamp:
12/13/11 15:05:26 (12 years ago)
Author:
Kris Deugau
Message:

/trunk

Cleanup:

  • Indicate that add is the default method for vega-import.pl
  • Add replace tag in DNSDB.pm for correct version number
  • Clean up Makefile MANIFEST and processing to remove lingering copy-paste-isms
Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/DNSDB.pm

    r198 r199  
    2222use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS);
    2323
    24 $VERSION        = 0.1;
     24$VERSION        = 0.1;    ##VERSION##
    2525@ISA            = qw(Exporter);
    2626@EXPORT_OK      = qw(
  • trunk/Makefile

    r170 r199  
    2929
    3030MANIFEST = \
    31         INSTALL COPYING TODO Makefile dnsadmin.spec new-dns.sql dns.sql dns.cgi DNSDB.pm \
     31        INSTALL COPYING TODO Makefile new-dns.sql dns.sql dns.cgi dns-rpc.cgi DNSDB.pm \
     32        vega-import.pl \
    3233        \
    3334        index.shtml \
     
    5152        images templates
    5253
    53 IMAGES = images/logo.png
     54IMAGES = \
     55        images/trash2.png images/fwd.png images/ffwd.png images/frev.png \
     56        images/rev.png images/DESC.png images/ASC.png
    5457
    5558SCRIPTS = \
    56         cgi-bin/extras/db2rwhois.pl cgi-bin/combineblocks.pl cgi-bin/access-pwd-update.pl \
    57         cgi-bin/newnode.cgi cgi-bin/freespace.pl cgi-bin/admin.cgi \
    58         cgi-bin/main.cgi cgi-bin/newcity.cgi cgi-bin/allocate.pl \
    59         cgi-bin/search.cgi cgi-bin/consistency-check.pl
     59        dns.cgi dns-rpc.cgi vega-import.pl
    6060
    6161MODULES = DNSDB.pm
    6262
    63 CONFIGMODULES = cgi-bin/MyIPDB.pm cgi-bin/CustIDCK.pm
     63#CONFIGMODULES = MyDNSDB.pm
    6464
    6565all:
     
    7070                $(INSTALL_DATA) -D $$i $(DESTDIR)${libdir}/dnsdb/$$i ; \
    7171        done
    72         # munge in necessary 'use lib ...' bits so scripts can find MyIPDB.pm...
     72        # munge in necessary 'use lib ...' bits so scripts can find MyDNSDB.pm...
    7373        @for i in $(SCRIPTS) $(MODULES); do \
    7474                $(INSTALL_SCRIPT) -D $$i $(DESTDIR)${libdir}/dnsdb/$$i ; \
     
    7979                $(INSTALL_DATA) $$i $(DESTDIR)${sysconfdir}/dnsdb/ ; \
    8080        done
    81 #       # and now munge MyIPDB.pm so it can find the core library
    82 #       perl -pi -e 's|##uselib##|use lib "${libdir}/dnsdb";|;' $(DESTDIR)${sysconfdir}/ipdb/MyIPDB.pm
     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
    8383
    8484#clean:
     
    9292        #/usr/bin/perl -p -e 's/#VERSION#/$(VERSION)/;s/#RELEASE#/$(RELEASE)/;s/#BETA#//g' < $(PKGNAME).spec > $(PKGNAME)-$(VERSION)/$(PKGNAME).spec
    9393        /usr/bin/perl -p -e 's/#VERSION#/$(VERSION)/;s/#RELEASE#/$(RELEASE)/;s/#BETA#//g' < INSTALL > $(PKGNAME)-$(VERSION)/INSTALL
    94         perl -pi -e 's/[\d.]+;\s*##VERSION##/$(VERSION);/;' $(PKGNAME)-$(VERSION)/cgi-bin/IPDB.pm
     94        perl -pi -e 's/[\d.]+;\s*##VERSION##/$(VERSION);/;' $(PKGNAME)-$(VERSION)/DNSDB.pm
    9595        tar cf $(PKGNAME)-$(VERSION).tar $(PKGNAME)-$(VERSION)
    9696        gzip -v -f -9 $(PKGNAME)-$(VERSION).tar
  • trunk/vega-import.pl

    r194 r199  
    2424if ($ARGV[0] && $ARGV[0] !~ /^(add|replace)$/) {
    2525  die "Usage:  vega-import.pl [add|replace]\n".
    26         "       add      Import VegaDNS data as a subgroup of the default root group\n".
     26        "       add      Import VegaDNS data as a subgroup of the default root group (default)\n".
    2727        "       replace  Wipe all existing data and import VegaDNS data into the root group\n";
    2828}
Note: See TracChangeset for help on using the changeset viewer.