Changeset 528 for trunk


Ignore:
Timestamp:
06/25/13 17:48:53 (12 years ago)
Author:
Kris Deugau
Message:

/trunk

Refiddle Makefile

  • Update MANIFEST to just include the file sublists instead of duplicating entries
  • Update file sublists and MANIFEST to reflect added and removed files
  • Fix ##uselib## substitution on 'make install' so that it really substitutes; seems to have been a combination of conflicting quoting and special characters
Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile

    r427 r528  
    4646        INSTALL COPYING TODO Makefile dnsadmin.spec \
    4747        \
    48         new-dns.sql dns.sql dns.cgi dns-rpc.cgi textrecs.cgi DNSDB.pm vega-import.pl export.pl \
     48        dns.sql dns-1.0-1.2.sql \
     49        \
     50        $(SCRIPTS) $(MODULES) \
    4951        \
    5052        index.shtml \
    5153        \
    52         images/trash2.png images/fwd.png images/ffwd.png images/frev.png \
    53         images/rev.png images/DESC.png images/ASC.png images/tree_open.png images/tree_closed.png \
     54        $(IMAGES) \
    5455        \
    55         templates/adddomain.tmpl templates/addgroup.tmpl templates/addrec.tmpl templates/adduser.tmpl \
    56         templates/axfr.tmpl templates/bulkchange.tmpl templates/bulkdomain.tmpl templates/dberr.tmpl \
    57         templates/deldom.tmpl templates/delgrp.tmpl templates/delloc.tmpl templates/delrec.tmpl \
    58         templates/delrevzone.tmpl templates/deluser.tmpl \
    59         templates/dns.css templates/dnsq.tmpl templates/domlist.tmpl templates/edgroup.tmpl \
    60         templates/editsoa.tmpl templates/footer.tmpl templates/fpnla.tmpl templates/grouptree.css \
    61         templates/grouptree-ie.css templates/grpman.tmpl templates/grptree.tmpl templates/header.tmpl \
    62         templates/lettsearch.tmpl templates/login.tmpl templates/log.tmpl templates/menu.tmpl \
    63         templates/newdomain.tmpl templates/newgrp.tmpl templates/permlist_enabled.tmpl templates/permlist.tmpl \
    64         templates/pgcount.tmpl templates/reclist.tmpl templates/record.tmpl templates/sbox.tmpl \
    65         templates/soadata.tmpl templates/template.tmpl templates/textrecs.tmpl templates/updatesoa.tmpl \
    66         templates/useradmin.tmpl templates/user.tmpl templates/whoisq.tmpl \
     56        $(TEMPLATES) \
    6757        \
    6858        dnsdb.conf
     
    7262
    7363IMAGES = \
    74         images/trash2.png images/fwd.png images/ffwd.png images/frev.png \
    75         images/rev.png images/DESC.png images/ASC.png
     64        images/ASC.png images/DESC.png \
     65        images/ffwd.png images/frev.png images/fwd.png images/rev.png \
     66        images/trash2.png \
     67        images/tree_closed.png images/tree_open.png
    7668
    7769SCRIPTS = \
    78         dns.cgi dns-rpc.cgi textrecs.cgi vega-import.pl export.pl
     70        compact-recs.pl dns.cgi dns-rpc.cgi export.pl textrecs.cgi tiny-import.pl vega-import.pl
    7971
    8072MODULES = DNSDB.pm
    8173
    8274TEMPLATES = \
    83         templates/adddomain.tmpl templates/addgroup.tmpl templates/addrec.tmpl templates/adduser.tmpl \
    84         templates/axfr.tmpl templates/bulkchange.tmpl templates/bulkdomain.tmpl templates/dberr.tmpl \
    85         templates/deldom.tmpl templates/delgrp.tmpl templates/delloc.tmpl templates/delrec.tmpl \
    86         templates/delrevzone.tmpl templates/deluser.tmpl \
     75        templates/adddomain.tmpl templates/addgroup.tmpl templates/addrec.tmpl templates/addrevzone.tmpl \
     76        templates/adduser.tmpl templates/axfr.tmpl templates/badpage.tmpl templates/bulkchange.tmpl \
     77        templates/bulkdomain.tmpl templates/dberr.tmpl templates/deldom.tmpl templates/delgrp.tmpl \
     78        templates/delloc.tmpl templates/delrec.tmpl templates/delrevzone.tmpl templates/deluser.tmpl \
    8779        templates/dns.css templates/dnsq.tmpl templates/domlist.tmpl templates/edgroup.tmpl \
    8880        templates/editsoa.tmpl templates/footer.tmpl templates/fpnla.tmpl templates/grouptree.css \
    8981        templates/grouptree-ie.css templates/grpman.tmpl templates/grptree.tmpl templates/header.tmpl \
    90         templates/lettsearch.tmpl templates/login.tmpl templates/log.tmpl templates/menu.tmpl \
    91         templates/newdomain.tmpl templates/newgrp.tmpl templates/permlist_enabled.tmpl templates/permlist.tmpl \
    92         templates/pgcount.tmpl templates/reclist.tmpl templates/record.tmpl templates/sbox.tmpl \
    93         templates/soadata.tmpl templates/template.tmpl templates/textrecs.tmpl templates/updatesoa.tmpl \
    94         templates/useradmin.tmpl templates/user.tmpl templates/whoisq.tmpl
     82        templates/lettsearch.tmpl templates/location.tmpl templates/loclist.tmpl templates/login.tmpl \
     83        templates/log.tmpl templates/menu.tmpl templates/msgblock.tmpl templates/newdomain.tmpl \
     84        templates/newgrp.tmpl templates/newrevzone.tmpl templates/permlist.tmpl \
     85        templates/pgcount.tmpl templates/reclist.tmpl templates/record.tmpl templates/revzones.tmpl \
     86        templates/sbox.tmpl templates/soadata.tmpl templates/template.tmpl templates/textrecs.tmpl \
     87        templates/updatesoa.tmpl templates/useradmin.tmpl templates/user.tmpl templates/whoisq.tmpl
    9588
    9689CONFIGFILES = dnsdb.conf
     
    108101        @for i in $(SCRIPTS) $(MODULES); do \
    109102                $(INSTALL_SCRIPT) -D $$i $(DESTDIR)${datadir}/$(PKG_LEAF)/$$i ; \
    110                 perl -pi -e 's|use lib '.';     ##uselib##|use lib "${datadir}/$(PKG_LEAF)/";|;' $(DESTDIR)${datadir}/$(PKG_LEAF)/$$i ; \
    111                 perl -pi -e 's|use lib '.';     ##uselib##|use lib "${datadir}/$(PKG_LEAF)/";|;' $(DESTDIR)${datadir}/$(PKG_LEAF)/$$i ; \
     103                perl -pi -e "s|use lib '.';\s+##uselib##|use lib '${datadir}/$(PKG_LEAF)/';|;" $(DESTDIR)${datadir}/$(PKG_LEAF)/$$i ; \
    112104        done
    113105        @$(INSTALL) -d $(DESTDIR)${sysconfdir}/$(CFG_LEAF)/
     
    120112                        $(INSTALL_DATA) $$i $(DESTDIR)${sysconfdir}/$(CFG_LEAF)/ ; \
    121113                fi ; \
    122                 perl -pi -e 's|"/etc/dnsdb";    ##CFG_LEAF##|"${sysconfdir}/$(CFG_LEAF)";|;' $(DESTDIR)${datadir}/$(PKG_LEAF)/DNSDB.pm ; \
     114                perl -pi -e 's|"/etc/dnsdb/dnsdb.conf",\s+##CFG_LEAF##|"${sysconfdir}/$(CFG_LEAF)/dnsdb.conf",|;' $(DESTDIR)${datadir}/$(PKG_LEAF)/DNSDB.pm ; \
    123115        done
    124 #       # and now munge MyDNSDB.pm so it can find the core library
    125 #       perl -pi -e 's|##uselib##|use lib "${libdir}/dnsdb";|;' $(DESTDIR)${sysconfdir}/dnsdb/MyDNSDB.pm
    126116
    127117#clean:
  • trunk/compact-recs.pl

    r491 r528  
    2323use warnings;
    2424
    25 use lib '.';
     25use lib '.';    ##uselib##
    2626use DNSDB;
    2727
  • trunk/tiny-import.pl

    r522 r528  
    2626use warnings;
    2727
    28 use lib '.';
     28use lib '.';    ##uselib##
    2929use DNSDB;
    3030
Note: See TracChangeset for help on using the changeset viewer.