diff -uNr null/group-fink passwd/group-fink --- null/group-fink 1969-12-31 19:00:00.000000000 -0500 +++ passwd/group-fink 2007-02-04 10:25:17.000000000 -0500 @@ -0,0 +1,30 @@ +# +# Fink group additions +# +# IDs are in the range 250..299 +# +# commented out entries are provided by the system and assumed by fink +# +#lp:*:26: +#postfix:*:27: +#postdrop:*:28: +#qtss:*:76: +#mailman:*:78: +#clamav:*:82: +#jabber:*:84: +news:*:250: +postgres:*:252:postgres +games:*:253: +canna:*:254: +maildrop:*:256: +tomcat:*:257: +opennms:*:259: +distcc:*:262:distcc,root +messagebus:*:263:messagebus +icecast:*:264:icecast +gdm:*:265:gdm +fink-bld:*:266:fink-bld +ossec:*:267:ossec,ossecm,ossece,ossecr +rt:*:271: +dovecot:*:272:dovecot +haldaemon:*:273:haldaemon diff -uNr null/passwd-fink.in passwd/passwd-fink.in --- null/passwd-fink.in 1969-12-31 19:00:00.000000000 -0500 +++ passwd/passwd-fink.in 2007-02-04 10:28:51.000000000 -0500 @@ -0,0 +1,36 @@ +# +# Fink passwd additions +# +# IDs are in the range 250..299 +# +# commented out entries are provided by the system and assumed by fink +# +# note that the cyrusimap user was previously called cyrus by fink +# +#lp:*:26:26::0:0:Printing Services:/var/spool/cups:/dev/null +#postfix:*:27:27::0:0:postfix:/var/spool/postfix:/bin/false +#eppc:*:71:71::0:0:Apple Events User:/var/empty:/usr/bin/false +#qtss:*:76:76::0:0:QuickTime Streaming Server:/var/empty:/usr/bin/false +#cyrusimap:*:77:6::0:0:Cyrus User:/var/imap:/usr/bin/false +#mailman:*:78:78::0:0:Mailman user:/var/empty:/usr/bin/false +#appserver:*:79:79::0:0:Application Server:/var/empty:/usr/bin/false +#clamav:*:82:82::0:0:Clamav User:/var/virusmails:/bin/tcsh +#jabber:*:84:84::0:0:Jabber User:/var/empty:/usr/bin/false +news:*:250:250::0:0:News Server:/dev/null:/dev/null +postgres:*:252:252::0:0:PostgreSQL Database Server:/var/empty:/dev/null +games:*:253:253::0:0:Game Files Owner:/dev/null:/dev/null +canna:*:254:254::0:0:Canna Japanese Input Server:/dev/null:/dev/null +tomcat:*:257:257::0:0:Tomcat Servlet Engine:@PREFIX@/var/empty:/usr/bin/false +opennms:*:259:259::0:0:OpenNMS Network Management:@PREFIX@/var/opennms:/dev/null +distcc:*:262:262::0:0:distcc daemon,,,:@PREFIX@/var/spool/distcc:/dev/null +messagebus:*:263:263::0:0:messagebus (dbus) daemon,,,:@PREFIX@/var/run/dbus:/dev/null +icecast:*:264:264::0:0:Icecast Server:/var/empty:/usr/bin/false +gdm:*:265:265::0:0:gdm Login GUI priv-sep:/var/empty:/usr/bin/false +fink-bld:*:266:266::0:0:Fink Build System:/var/empty:/usr/bin/false +ossec:*:267:267::0:0:OSSec HIDS Monitor Daemon:@PREFIX@/var/ossec:/usr/bin/false +ossecm:*:268:267::0:0:OSSec HIDS Mail Daemon:@PREFIX@/var/ossec:/usr/bin/false +ossece:*:269:267::0:0:OSSec HIDS Daemon:@PREFIX@/var/ossec:/usr/bin/false +ossecr:*:270:267::0:0:OSSec HIDS Remote Daemon:@PREFIX@/var/ossec:/usr/bin/false +rt:*:271:271::0:0:Reqest Tracker:/dev/null:/dev/null +dovecot:*:272:272::0:0:Dovecot IMAP Server Daemon:/dev/null:/dev/null +haldaemon:*:273:273::0:0:Hardware Abstraction Layer Daemon:/dev/null:/dev/null diff -uNr null/update-passwd.in passwd/update-passwd.in --- null/update-passwd.in 1969-12-31 19:00:00.000000000 -0500 +++ passwd/update-passwd.in 2007-02-04 10:25:06.000000000 -0500 @@ -0,0 +1,64 @@ +#!/bin/sh +# +# Merge Fink's passwd and group additions into NetInfo +# + +if [ `id -u` -ne 0 ]; then + echo "You must be root to run update-passwd." + exit 1 +fi + +PREFIX=@PREFIX@ + +if [ ! -f "$PREFIX/etc/passwd-fink" ]; then + echo "The file $PREFIX/etc/passwd-fink is missing." + echo "update-passwd can not continue without this file." + exit 1 +fi + +if [ ! -f "$PREFIX/etc/group-fink" ]; then + echo "The file $PREFIX/etc/group-fink is missing." + echo "update-passwd can not continue without this file." + exit 1 +fi + +echo +echo "The following user entries will be added to your NetInfo database:" +grep -v "^#" $PREFIX/etc/passwd-fink + +echo +echo "The following group entries will be added to your NetInfo database:" +grep -v "^#" $PREFIX/etc/group-fink + +echo +if [ "x$1" = "xpostinst" ]; then + echo "Existing entries with these names or numbers will be overwritten or" + echo "otherwise affected by this. On the other hand, some Fink packages will" + echo "not work unless these entries are in the NetInfo database. You can make" + echo "adjustments to the files $PREFIX/etc/passwd-fink and" + echo "$PREFIX/etc/group-fink now (from another window), then say yes here. Or" + echo "you can say no here and add the users and groups manually (e.g. on your" + echo "central NetInfo server). If you don't know what all of this is about," + echo "just say yes." +else + echo "Existing entries with these names or numbers will be overwritten or" + echo "otherwise affected by this." +fi +/bin/echo "Do you want to continue? [Y/n] \c" +read answer + +answer=`echo $answer | sed 's/^[yY].*$/y/'` + +if [ -z "$answer" -o "x$answer" = "xy" ]; then + echo + echo "Merging user info..." + niload passwd . <$PREFIX/etc/passwd-fink + echo "Merging group info..." + niload group . <$PREFIX/etc/group-fink + echo "Done." +else + echo "Okay, not adding the entries." +fi +echo + +exit 0