On Fri, Mar 09, 2007, David Stenglein wrote: > I see this as a feature on the website, but I can't easily find references to > it in mailling lists or the wiki. > > First, a little background and what I want. I've build a couple of systems > like > openpkg (although not nearly as complete) > and one iteration had a concept of a configuration package seperate from a > binary package. There could be many config > packages that depended on the same binary package. For instance you could have > to webservers, one represented by > fooweb1-apache-config and fooweb2-apache-config. These two packages would > depend on apache and would run the > binaries with two different configurations. > > Now, I'd like to know how close I can get to this with openpkg. I see lsync, > but I'm not sure it fits the bill. It seems more > oriented around managing unpackaged software inside of an instance, rather > than > composing a virtual instance from a > base instance plus specific tools. I could certainly be wrong, since there > could be a way to make it work. You could maybe > lsync from app specific instances to a master instance. > > In a simple case, where I don't have any other install dependencies, I could > just create new instances for each apache. This > would work but would get somewhat wasteful.
Well, OpenPKG by default doesn't use directly this approach with the stand-alone config packages you describe. But if you look at LAMP-based packages like "cacti", "wordpress", "drupal", etc. you will see that they all depend on the same "apache" package but all run their own dedicated Apache with an own configuration. So, with OpenPKG you can achieve what you wish. If you in additional then set "apache_enable=no" in <prefix>/etc/rc.conf the original "apache" package not even starts up by itself. Then only the Apaches in your config packages would fire up. The same approach you can do with other packages, too. Ralf S. Engelschall [EMAIL PROTECTED] www.engelschall.com ______________________________________________________________________ OpenPKG http://openpkg.org User Communication List openpkg-users@openpkg.org