[csw-pkgsubmissions] newpkgs dhcp, dhcp_devel

Philip Brown phil at bolthole.com
Sat Jan 8 17:09:46 CET 2011


Hi Peter,

since you already use a class action script for
f cswcpsampleconf /var/opt/csw/dhcp/db/dhcpd.leases.CSW

would you be willing to change that to use cswcptemplates instead?

The changes you would have to make to the package would be as follows:

1. move it to be
f cswcptemplates
/opt/csw/etc/templates/CSWdhcp/var/opt/csw/dhcp/db/dhcpd.leases.CSW

2. add
d none /opt/csw/etc/templates/CSWdhcp/var/opt/csw/dhcp/db

3. adjust dependancies to use CSWcas-cptemplates


or in theory you could update your gar, and try out the tweak I just
added for it.
So in that case, I think you would change your Makefile as follows:

===================================================================
--- Makefile    (revision 12261)
+++ Makefile    (working copy)
@@ -49,7 +49,8 @@
 INSTALL_SCRIPTS = custom

 INITSMF = /etc/opt/csw/init.d/cswdhcpd
-SAMPLECONF = /etc/opt/csw/dhcpd.conf /etc/opt/csw/dhclient.conf
/var/opt/csw/dhcp/db/dhcpd.leases
+SAMPLECONF = /etc/opt/csw/dhcpd.conf /etc/opt/csw/dhclient.conf
+CPTEMPLATES = /opt/csw/etc/templates/CSWdhcp/var/opt/csw/dhcp/db/dhcpd.leases

 SPKG_SOURCEURL = https://www.isc.org/software/dhcp

@@ -67,5 +68,6 @@
        @ginstall -d $(DESTDIR)$(docdir)/$(NAME)
        @cp $(FILEDIR)/CSWdhcp.README.CSW $(DESTDIR)$(docdir)/$(NAME)/README.CSW
        @ginstall -d $(DESTDIR)/var/opt/csw/$(NAME)/db
-       @touch $(DESTDIR)/var/opt/csw/$(NAME)/db/dhcpd.leases
+       @mkdir -p
$(DESTDIR)/opt/csw/etc/templates/CSWdhcp/var/opt/csw/$(NAME)/db
+       @touch $(DESTDIR)/opt/csw/etc/templates/CSWdhcp/var/opt/csw/$(NAME)/db/dhcpd.leases
        @$(MAKECOOKIE)



=================

There's probably a better way to do it in gar, but since Ben says he
is "too busy", I took a quick whack at it.


More information about the pkgsubmissions mailing list