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
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