• Home
  • History
  • Annotate
  • only in this directory
NameDateSize

..27-Nov-201523

create_packageH A D14-Mar-20142.5 KiB

dnsmasq.xmlH A D14-Mar-20141.9 KiB

READMEH A D14-Mar-20141 KiB

README-sparcH A D14-Mar-2014319

README.create_packageH A D14-Mar-20141.1 KiB

README

1From: David Connelly <dconnelly@gmail.com>
2Date: Mon, Apr 7, 2008 at 3:31 AM
3Subject: Solaris 10 service manifest
4To: dnsmasq-discuss@lists.thekelleys.org.uk
5
6
7I've found dnsmasq much easier to set up on my home server running Solaris
810 than the stock dhcp/dns server, which is probably overkill anyway for my
9simple home network needs. Since Solaris now uses SMF (Service Management
10Facility) to manage services I thought I'd create a simple service manifest
11for the dnsmasq service. The manifest currently assumes that dnsmasq has
12been installed in '/usr/local/sbin/dnsmasq' and the configuration file in
13'/usr/local/etc/dnsmasq.conf', so you may have to adjust these paths for
14your local installation. Here are the steps I followed to install and enable
15the dnsmasq service:
16  # svccfg import dnsmasq.xml
17  # svcadm enable dnsmasq
18
19To confirm that the service is enabled and online:
20
21  # svcs -l dnsmasq
22
23I've just started learning about SMF so if anyone has any
24corrections/feedback they are more than welcome.
25
26Thanks,
27David
28
29

README-sparc

1Hi Simon,
2
3I just wanted to let you know that I have built a Solaris .pkg install package of your dnsmasq utility for people to use.  Feel free to point them in my direction if you have people who want this sort of thing.
4
5http://ejesconsulting.wordpress.com/2010/05/12/gnu-dnsmasq-for-opensolaris-sparc/
6
7Thanks
8-evan
9

README.create_package

1Ok, script attached ... seems to be working ok for me, 
2tried to install and remove a few times. It does the
3right thing with the smf when installing, you can then 
4simply enable the service. Upon removal it cleans up the
5files but won't clean up the services (I think until
6a reboot) ... I've only started looking at the new 
7packages stuff in the last day or two, so I could be 
8missing something, but I can't find any way to force
9 a proper cleanup.
10
11It requires that you have a writable repository setup 
12as per the docs on the opensolaris website and it will
13create a dnsmasq package (package name is a variable 
14in the script). The script takes a version number for 
15the package and assumes that it's in the contrib/Solaris10 
16directory, it then works out the base tree directory 
17from $0.
18
19i.e.  $ contrib/Solaris10/create_package 2.52-1
20or   $ cd contrib/Solaris10; ./create_package 2.52-1
21
22It's a bit more complex than it could be because I 
23prefer putting the daemon in /usr/sbin and the config 
24in /etc, so the script will actually create a new 
25version of the existing contrib dnsmasq.xml.
26