From 66735f3d33e32b24a2438296430e9328624af118 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 9 May 2017 16:33:49 +0200 Subject: [PATCH] packaging: Remove SWAT references from Solaris Signed-off-by: Andreas Schneider Reviewed-by: David Disseldorp --- packaging/Solaris/i.swat | 44 ----------------------------- packaging/Solaris/inetd.conf.master | 1 - packaging/Solaris/makepkg.sh | 31 +++----------------- packaging/Solaris/prototype.master | 9 ------ packaging/Solaris/r.swat | 16 ----------- packaging/Solaris/request | 4 --- packaging/Solaris/services | 1 - 7 files changed, 4 insertions(+), 102 deletions(-) delete mode 100644 packaging/Solaris/i.swat delete mode 100644 packaging/Solaris/inetd.conf.master delete mode 100644 packaging/Solaris/r.swat delete mode 100644 packaging/Solaris/services diff --git a/packaging/Solaris/i.swat b/packaging/Solaris/i.swat deleted file mode 100644 index d07d2798d85..00000000000 --- a/packaging/Solaris/i.swat +++ /dev/null @@ -1,44 +0,0 @@ -while read src dest -do - sed -e '/^swat.*swat$/d' $dest >/tmp/$$swat || exit 2 - cat $src >>/tmp/$$swat || exit 2 - - # Use cp;rm instead of mv because $dest might be a symlink - cp -f /tmp/$$swat $dest || exit 2 - rm -f /tmp/$$swat -done - -if [ "$1" = ENDOFCLASS ] -then - - # If local install, restart inetd - if [ -z "${PKG_INSTALL_ROOT}" ] - then - TARGET=`hostname` - kill -HUP `ps -e -o pid,comm | grep inetd | awk '{print $1}'` - else - TARGET="" - fi - - cat < samba.init ## copy over some scripts need for packagaing ## mkdir -p $TMPINSTALLDIR/$INSTALL_BASE/scripts -for i in inetd.conf samba.init smb.conf.default services; do +for i in samba.init smb.conf.default; do cp -fp $i $TMPINSTALLDIR/$INSTALL_BASE/scripts done @@ -223,7 +200,7 @@ cp prototype.master prototype ## ## copy packaging files ## -for i in prototype pkginfo copyright preremove postinstall request i.swat r.swat; do +for i in prototype pkginfo copyright preremove postinstall request; do cp $i $TMPINSTALLDIR/$INSTALL_BASE done diff --git a/packaging/Solaris/prototype.master b/packaging/Solaris/prototype.master index 6cf1cc717df..ec9f76d94bc 100644 --- a/packaging/Solaris/prototype.master +++ b/packaging/Solaris/prototype.master @@ -6,8 +6,6 @@ i copyright=./copyright # i request=./request i preremove=./preremove i postinstall=./postinstall -i i.swat=./i.swat -i r.swat=./r.swat # # Stuff that goes into the system areas of the filesystem. # @@ -17,12 +15,6 @@ f initscript /etc/init.d/samba=scripts/samba.init 0744 root sys d initscript /etc/rc3.d ? ? ? f initscript /sbin/samba=scripts/samba.init 0750 root root # -# Stuff to set up SWAT -# -d swat /etc/inet ? ? ? -e swat /etc/inet/services=scripts/services ? ? ? -e swat /etc/inet/inetd.conf=scripts/inetd.conf ? ? ? -# # Create the samba subtree. # d none docs 755 root other @@ -36,7 +28,6 @@ d none lib 0755 root other d none lib/charset 0755 root other d none lib/vfs 0755 root other d none include 0755 root other -d none swat 0755 root other d none $LOGFILEBASE 0755 root other d none $PIDDIR 0755 root other # diff --git a/packaging/Solaris/r.swat b/packaging/Solaris/r.swat deleted file mode 100644 index 11c776646da..00000000000 --- a/packaging/Solaris/r.swat +++ /dev/null @@ -1,16 +0,0 @@ -while read dest -do - sed -e '/^swat.*swat$/d' $dest >/tmp/$$swat || exit 2 - # Use cp;rm; instead of mv because $dest might be a symlink - cp -f /tmp/$$swat $dest || exit 2 - rm -f /tmp/$$swat -done - -if [ "$1" = ENDOFCLASS ] -then - if [ -z "$PKG_INSTALL_ROOT" ] - then - kill -HUP `ps -e -o pid,comm | grep inetd | awk '{print $1}'` - fi -fi - diff --git a/packaging/Solaris/request b/packaging/Solaris/request index 59cdd0ab22a..f9cfb597729 100644 --- a/packaging/Solaris/request +++ b/packaging/Solaris/request @@ -6,10 +6,6 @@ resp=`ckyorn -d y -p "Do you wish to have Samba start whenever the system boots $VALSTR -r "^[yY]" $resp [ $? -eq 0 ] && CLASSES="$CLASSES initscript" -resp=`ckyorn -d y -p "Do you wish to set up the Samba Web Admin Tool (SWAT)? (default:y) " -Q` -$VALSTR -r "^[yY]" $resp -[ $? -eq 0 ] && CLASSES="$CLASSES swat" - cat >$1 <