diff options
author | James Meyer <James.meyer@operamail.com> | 2008-10-02 03:19:12 (GMT) |
---|---|---|
committer | James Meyer <James.meyer@operamail.com> | 2008-10-02 03:19:12 (GMT) |
commit | 0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a (patch) | |
tree | c0aa2c0b53c317be87eacfcb77b63f53f1f415e7 /abs/core-testing/filesystem/filesystem.install | |
download | linhes_pkgbuild-0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a.zip linhes_pkgbuild-0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a.tar.gz linhes_pkgbuild-0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a.tar.bz2 |
initial import
Diffstat (limited to 'abs/core-testing/filesystem/filesystem.install')
-rw-r--r-- | abs/core-testing/filesystem/filesystem.install | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/abs/core-testing/filesystem/filesystem.install b/abs/core-testing/filesystem/filesystem.install new file mode 100644 index 0000000..92b336f --- /dev/null +++ b/abs/core-testing/filesystem/filesystem.install @@ -0,0 +1,60 @@ +# arg 1: the new package version +post_install() { + [ -f var/log/lastlog ] || : >var/log/lastlog + [ -f var/log/wtmp ] || : >var/log/wtmp + [ -f var/run/utmp ] || : >var/run/utmp + [ -f var/log/btmp ] || (: >var/log/btmp && bin/chmod 600 var/log/btmp) + # workaround for bug #7194 + # readded due to bug #9465 + # please do not remove! + chmod 1777 var/spool/mail tmp var/tmp var/lock +} + +# arg 1: the new package version +# arg 2: the old package version +post_upgrade() { + post_install $1 + if [ ! "`grep ^optical: etc/group`" ]; then + echo "adding new groups: audio optical" + usr/sbin/groupadd -g 92 audio >/dev/null + usr/sbin/groupadd -g 93 optical >/dev/null + fi + if [ ! "`grep ^video: etc/group`" ]; then + echo "adding new groups: video floppy storage" + usr/sbin/groupadd -g 91 video >/dev/null + usr/sbin/groupadd -g 94 floppy >/dev/null + usr/sbin/groupadd -g 95 storage >/dev/null + fi + if [ ! "`grep ^log: etc/group`" ]; then + echo "adding new group: log" + usr/sbin/groupadd -g 19 log >/dev/null + fi + if [ ! "`grep ^power: etc/group`" ]; then + echo "adding new group: power" + usr/sbin/groupadd -g 98 power >/dev/null + fi + if [ ! "`grep ^network: etc/group`" ]; then + echo "adding new group: network" + usr/sbin/groupadd -g 90 network >/dev/null + fi + if [ ! "`grep ^games: etc/group`" ]; then + echo "adding new group: games" + usr/sbin/groupadd -g 50 games >/dev/null + fi + if [ ! "`grep ^uucp: etc/group`" ]; then + echo "adding new group: uucp" + usr/sbin/groupadd -g 14 uucp >/dev/null + fi + if [ ! "`grep ^http: etc/group`" ]; then + echo "adding new group: http" + usr/sbin/groupadd -g 33 http >/dev/null + fi + if [ ! "`grep ^http: etc/passwd`" ]; then + echo "adding new user http" + usr/sbin/useradd -u 33 -d /srv/http -g http -s /bin/false http >/dev/null + fi + if [ ! "`grep ^scanner: etc/group`" ]; then + echo "adding new group: scanner" + usr/sbin/groupadd -g 96 scanner >/dev/null + fi +} |