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