From 20e1f5e1d944bb49ce949f6741c1e65483e2aa62 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Sun, 31 Oct 2004 03:11:41 +0000 Subject: r3399: a few more packaging fixes (This used to be commit 662415454b1fa91e2bd5f6cab30ec902f5f1fa9f) --- packaging/Solaris/makepkg.sh | 32 ++++++++++++++++---------------- packaging/Solaris/prototype.master | 3 +-- 2 files changed, 17 insertions(+), 18 deletions(-) (limited to 'packaging/Solaris') diff --git a/packaging/Solaris/makepkg.sh b/packaging/Solaris/makepkg.sh index 598dd641fe..6d4130b292 100644 --- a/packaging/Solaris/makepkg.sh +++ b/packaging/Solaris/makepkg.sh @@ -6,6 +6,8 @@ # script for build solaris Samba package # +INSTALL_BASE=/opt/samba + SBINPROS="smbd nmbd winbindd swat" BINPROGS="findsmb nmblookup pdbedit rpcclient smbclient smbcquotas smbspool smbtar tdbbackup testparm wbinfo net ntlm_auth profiles smbcacls smbcontrol smbpasswd smbstatus smbtree tdbdump testprns" MSGFILES="de.msg en.msg fr.msg it.msg ja.msg nl.msg pl.msg tr.msg" @@ -48,7 +50,7 @@ add_dynamic_entries() echo "#\n# nss_winbind.so\n#" echo f none /usr/lib/nss_winbind.so.1=lib/libnss_winbind.so 0755 root other - echo s none /lib/nss_winbind.so.1=/usr/lib/nss_winbind.so.1 0755 root other + echo s none /lib/nss_winbind.so.1=../usr/lib/nss_winbind.so.1 0755 root other if [ -f lib/pam_winbind.so ]; then echo f none /usr/lib/security/pam_winbind.so=lib/pam_winbind.so 0755 root other fi @@ -88,7 +90,7 @@ add_dynamic_entries() done # Create entries for docs for the beginner - echo s none docs/using_samba=swat/help/using_samba + echo s none docs/using_samba=$BASEDIR/swat/help/using_samba for file in docs/*pdf; do echo f none $file 0644 root other done @@ -112,7 +114,7 @@ echo "Assuming Samba distribution is rooted at $DISTR_BASE.." cd $DISTR_BASE/source if [ "x$1" != "xnobuild" ]; then - ./configure --prefix=/opt/samba \ + ./configure --prefix=$INSTALL_DIR \ --with-acl-support \ --with-included-popt \ --localstatedir=/var/lib/samba \ @@ -146,7 +148,6 @@ LOGFILEBASE=`bin/smbd -b | grep LOGFILEBASE | awk '{print $2}'` LIBDIR=`bin/smbd -b | grep LIBDIR | awk '{print $2}'` PIDDIR=`bin/smbd -b | grep PIDDIR | awk '{print $2}'` PRIVATE_DIR=`bin/smbd -b | grep PRIVATE_DIR | awk '{print $2}'` -INSTALL_BASE=`dirname $BINDIR` DOCDIR=$INSTALL_BASE/docs ## @@ -186,18 +187,17 @@ done ## ## Start building the prototype file ## -echo "!SBINDIR=$SBINDIR" > prototype -echo "!BINDIR=$BINDIR" >> prototype -echo "!SWATDIR=$SWATDIR" >> prototype -echo "!CONFIGDIR=$CONFIGDIR" >> prototype -echo "!LOGFILEBASE=$LOGFILEBASE" >> prototype -echo "!LIBDIR=$LIBDIR" >> prototype -echo "!PIDDIR=$PIDDIR" >> prototype -echo "!DOCDIR=$DOCDIR" >> prototype -echo "!PRIVATE_DIR=$PRIVATE_DIR" >> prototype -echo "!INSTALL_BASE=$INSTALL_BASE" >> prototype - -cat prototype.master >> prototype +echo "SBINDIR=sbin" >> pkginfo +echo "BINDIR=bin" >> pkginfo +echo "SWATDIR=swat" >> pkginfo +echo "CONFIGDIR=$CONFIGDIR" >> pkginfo +echo "LOGFILEBASE=$LOGFILEBASE" >> pkginfo +echo "LIBDIR=lib" >> pkginfo +echo "PIDDIR=$PIDDIR" >> pkginfo +echo "DOCDIR=docs" >> pkginfo +echo "PRIVATE_DIR=$PRIVATE_DIR" >> pkginfo + +cp prototype.master prototype # Add the dynamic part to the prototype file (add_dynamic_entries >> prototype) diff --git a/packaging/Solaris/prototype.master b/packaging/Solaris/prototype.master index 7ae0ca06f5..7f554378ef 100644 --- a/packaging/Solaris/prototype.master +++ b/packaging/Solaris/prototype.master @@ -3,7 +3,7 @@ # i pkginfo=./pkginfo i copyright=./copyright -i request=./request +# i request=./request i preremove=./preremove i postinstall=./postinstall i i.swat=./i.swat @@ -24,7 +24,6 @@ e swat /etc/inet/inetd.conf=scripts/inetd.conf ? ? ? # # Create the samba subtree. # -d none $INSTALL_BASE 755 root sys d none $DOCDIR 755 root other d none $CONFIGDIR 755 root sys d none $PRIVATE_DIR 700 root sys -- cgit