From 79b73e62ee23bc28a169ec4cee1740ba688e972d Mon Sep 17 00:00:00 2001 From: David O'Neill Date: Fri, 5 Jan 2001 17:59:31 +0000 Subject: Sync up packaging updates that didn't make it to HEAD. (This used to be commit c6f7358535eb96112e055d60d39c1595601d3056) --- packaging/SGI/STATUS..LCK | 0 packaging/SGI/idb.pl | 3 +-- packaging/SGI/inetd.sh | 12 ++++++++++-- packaging/SGI/inst.msg | 2 +- packaging/SGI/removeswat.sh | 12 ++++++++++-- packaging/SGI/startswat.sh | 12 ++++++++++-- 6 files changed, 32 insertions(+), 9 deletions(-) delete mode 100644 packaging/SGI/STATUS..LCK (limited to 'packaging/SGI') diff --git a/packaging/SGI/STATUS..LCK b/packaging/SGI/STATUS..LCK deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/packaging/SGI/idb.pl b/packaging/SGI/idb.pl index 4d472dc070..82a49ee31a 100755 --- a/packaging/SGI/idb.pl +++ b/packaging/SGI/idb.pl @@ -208,7 +208,7 @@ while (@sorted) { print IDB "d 0755 root sys usr/samba/src/$nextfile $SRCPFX/$nextfile $PKG.src.samba\n"; } else { - if (grep((/\.sh$/ | /configure$/ | /configure\.developer/ | /config\.guess/ | /config\.sub/ | /\.pl$/ | /mkman$/),$nextfile)) { + if (grep((/\.sh$/ | /configure$/ | /configure\.developer/ | /config\.guess/ | /config\.sub/ | /\.pl$/ | /mkman$/ | /pcp\/Install/ | /pcp\/Remove/),$nextfile)) { print IDB "f 0755 root sys usr/samba/src/$nextfile $SRCPFX/$nextfile $PKG.src.samba\n"; } else { @@ -233,7 +233,6 @@ while (@swatfiles) { print IDB "d 0755 root sys usr/samba/var $SRCPFX/packaging/SGI $PKG.sw.base\n"; print IDB "d 0755 root sys usr/samba/var/locks $SRCPFX/packaging/SGI $PKG.sw.base\n"; -print IDB "f 0644 root sys usr/samba/var/locks/STATUS..LCK $SRCPFX/packaging/SGI/STATUS..LCK $PKG.sw.base\n"; if ($PKG eq "samba_irix") { while(@books) { diff --git a/packaging/SGI/inetd.sh b/packaging/SGI/inetd.sh index 8c4c6cb8d8..1d403978ae 100755 --- a/packaging/SGI/inetd.sh +++ b/packaging/SGI/inetd.sh @@ -8,8 +8,12 @@ chkconfig samba off # # add SAMBA deamons to inetd.conf # -cp /etc/inetd.conf /etc/inetd.O -sed -e "/^netbios/D" -e "/^#SAMBA/D" /etc/inetd.O > /etc/inetd.conf +cp /etc/inetd.conf /etc/inetd.conf.O + +if [ $? -ne 0 ]; then exit 1; fi +if [ ! -r /etc/inetd.conf.O -o ! -w /etc/inetd.conf ]; then exit 1; fi + +sed -e "/^netbios/D" -e "/^#SAMBA/D" /etc/inetd.conf.O > /etc/inetd.conf echo '#SAMBA services' >> /etc/inetd.conf echo netbios-ssn stream tcp nowait root /usr/samba/bin/smbd smbd >> /etc/inetd.conf echo netbios-ns dgram udp wait root /usr/samba/bin/nmbd nmbd -S >> /etc/inetd.conf @@ -18,6 +22,10 @@ echo netbios-ns dgram udp wait root /usr/samba/bin/nmbd nmbd -S >> /etc # add SAMBA service ports to /etc/services # cp /etc/services /etc/services.O + +if [ $? -ne 0 ]; then exit 1; fi +if [ ! -r /etc/services.O -o ! -w /etc/services ]; then exit 1; fi + sed -e "/^netbios/D" -e "/^#SAMBA/D" /etc/services.O > /etc/services echo '#SAMBA services' >> /etc/services echo 'netbios-ns 137/udp # SAMBA' >> /etc/services diff --git a/packaging/SGI/inst.msg b/packaging/SGI/inst.msg index 248e990c4a..4d8bab389c 100755 --- a/packaging/SGI/inst.msg +++ b/packaging/SGI/inst.msg @@ -12,7 +12,7 @@ echo echo http://`hostname`:901 echo echo The original versions of /etc/services and -echo /etc/inetd.conf were saved echo with a .O extension. +echo /etc/inetd.conf were saved with a .O extension. echo echo If you do not wish SWAT to be enabled you may echo run the script /usr/samba/scripts/removeswat.sh diff --git a/packaging/SGI/removeswat.sh b/packaging/SGI/removeswat.sh index 6834b25665..7a4745345b 100755 --- a/packaging/SGI/removeswat.sh +++ b/packaging/SGI/removeswat.sh @@ -2,13 +2,21 @@ # # remove SWAT deamon from inetd.conf # -cp /etc/inetd.conf /etc/inetd.O -sed -e "/^swat/D" -e "/^#SWAT/D" /etc/inetd.O > /etc/inetd.conf +cp /etc/inetd.conf /etc/inetd.conf.O + +if [ $? -ne 0 ]; then exit 1; fi +if [ ! -r /etc/inetd.conf.O -o ! -w /etc/inetd.conf ]; then exit 1; fi + +sed -e "/^swat/D" -e "/^#SWAT/D" /etc/inetd.conf.O > /etc/inetd.conf # # remove SWAT service port from /etc/services # cp /etc/services /etc/services.O + +if [ $? -ne 0 ]; then exit 1; fi +if [ ! -r /etc/services.O -o ! -w /etc/services ]; then exit 1; fi + sed -e "/^swat/D" -e "/^#SWAT/D" /etc/services.O > /etc/services # diff --git a/packaging/SGI/startswat.sh b/packaging/SGI/startswat.sh index c2fc9fb467..2a0333020f 100755 --- a/packaging/SGI/startswat.sh +++ b/packaging/SGI/startswat.sh @@ -2,8 +2,12 @@ # # add SWAT deamon to inetd.conf # -cp /etc/inetd.conf /etc/inetd.O -sed -e "/^swat/D" -e "/^#SWAT/D" /etc/inetd.O > /etc/inetd.conf +cp /etc/inetd.conf /etc/inetd.conf.O + +if [ $? -ne 0 ]; then exit 1; fi +if [ ! -r /etc/inetd.conf.O -o ! -w /etc/inetd.conf ]; then exit 1; fi + +sed -e "/^swat/D" -e "/^#SWAT/D" /etc/inetd.conf.O > /etc/inetd.conf echo '#SWAT services' >> /etc/inetd.conf echo swat stream tcp nowait root /usr/samba/bin/swat swat >> /etc/inetd.conf @@ -11,6 +15,10 @@ echo swat stream tcp nowait root /usr/samba/bin/swat swat >> /etc/inetd.con # add SWAT service port to /etc/services # cp /etc/services /etc/services.O + +if [ $? -ne 0 ]; then exit 1; fi +if [ ! -r /etc/services.O -o ! -w /etc/services ]; then exit 1; fi + sed -e "/^swat/D" -e "/^#SWAT/D" /etc/services.O > /etc/services echo '#SWAT services' >> /etc/services echo 'swat 901/tcp # SWAT' >> /etc/services -- cgit