* On 2014-03-08 at 13:11 GMT, Coy Hile wrote: > > On Mar 8, 2014, at 3:40 AM, Jonathan Perkin <[email protected]> wrote: > > > * On 2014-03-08 at 02:57 GMT, Coy Hile wrote: > > > >> There are a couple packages that I use on some of my SmartMachines > >> which don’t (at least as of 2013Q3 pkgsrc) ship smf manifests and > >> methods: specifically openldap-server and Heimdal. I’ve got a fork > >> of joyent-pkgsrc in my own github, but in the documentation I also > >> see references to a repo called https://github.com/mamash/pk. > >> > >> Does the SMF-related go in pull request from joyent/pkgsrc or from > >> that other pk repo, or even some other repo entirely if I want to > >> propose those changes be accepted upstream? > > > > We are in the process of integrating SMF support into upstream pkgsrc, > > so patches should be relative to the joyent/release/trunk branch of > > https://github.com/joyent/pkgsrc > > Taking Postgres as an example, I see under > postgresql93-server/files/smf there are manifest.xml and > postgresql.sh. and then > > SMF_METHODS= postgresql > SMF_NAME=postgresql > > in postgresql93-server/Makefile > > Is that considered the correct way to set things up so that brake > will do the right thing? Can SMF_METHODS and SMF_NAME each have > multiple values if a package delivers more than one service? (For > example, the Heimdal package, as I would modify it, would deliver > separate services for the heimdal KDC, kadmind, and kpasswdd.)
The top of smf.mk should explain this: https://github.com/joyent/pkgsrc/blob/joyent/release/trunk/mk/smf.mk There is no way to have multiple SMF_NAME's, if you have multiple instances then you would use SMF_INSTANCES. Let me know if anything isn't clear. Thanks, -- Jonathan Perkin - Joyent, Inc. - www.joyent.com ------------------------------------------- smartos-discuss Archives: https://www.listbox.com/member/archive/184463/=now RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00 Modify Your Subscription: https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb Powered by Listbox: http://www.listbox.com
