On 7/14/12 12:18 PM, Hanspeter Niederstrasser wrote:
> On 7/13/2012 4:11 PM, David R. Morrison wrote:
>>
>> On Jul 13, 2012, at 1:46 PM, Hanspeter Niederstrasser 
>> <f...@snaggledworks.com> wrote:
>>
>>> Currently, if a new passwd-package is created, passwd-core gets a new
>>> version and so all the other passwd-* packages need to be rebuilt and
>>> reinstalled (which includes running dscl again for each one).
>>>
>>> I propose taking the passwd-* packages and moving them off from the
>>> SplitOffs and to separate .info files.  This way, when a new passwd-*
>>> package is created, passwd-core is updated to hold the new user:group
>>> info in /sw/etc/{group,passwd}-fink and the new passwd-foo package just
>>> needs to Dep on the new passwd-core version.  The other passwd-*
>>> packages are untouched and don't need to be reinstalled because of a
>>> version bump.
>>>
>>> Benefits: existing passwd-* packages are not unnecessarily bumped when
>>> passwd-core is changed.  dscl no longer called X times for a single new
>>> package.
>>>
>>> Drawbacks: each passwd-* pkg gets its own info file, and so any passwd
>>> wide changes needs to make sure all the passwd packages get it if needed
>>> (say a new removal procedure) and no file is accidentally missed.
>>>
>>> Hanspeter
>>>
>> Sounds like a good idea to me.
>>
>>    -- Dave
> 
> This is a first draft on how the new individualized packages will look like:
> 
> Package: passwd-dovecot
> Version: 20100305
> Revision: 6
> Description: User and group entries for the Dovecot IMAP server daemon
> License: Public Domain
> Maintainer: Fink Core Group <fink-c...@lists.sourceforge.net>
> Depends: passwd-core (>= 20120713-1)
> Source: none
> CompileScript: true
> InstallScript: <<
>       mkdir -p %i/share/doc/%n
>       cp %p/share/doc/passwd-core/README %i/share/doc/%n
> <<
> PostInstScript: <<
>       %p/sbin/update-passwd postinst %n
> <<
> 
> The new version for Depends: passwd-core is for a local revision that 
> will carry a README (current-in-Fink doesn't) and that passwd-* packages 
> will copy into their deb.
> 
> I've also been toying about with having PostInstScript having some sort 
> of sanity check before running update-passwd, perhaps a 'does this user 
> already exist?' check, but haven't really gotten anywhere.
> 
> Hanspeter
> 

I can probably come up with something like what's in Fink::Configure to
go in update-passwd.


-- 
Alexander Hansen, Ph.D.
Fink User Liaison
My package updates: http://finkakh.wordpress.com/

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to