From 54e6f1583a6066dc290ccb76556a60d697ed01aa Mon Sep 17 00:00:00 2001 From: Rowland Penny Date: Wed, 6 Sep 2017 14:38:37 +0100 Subject: packaging: Remove Solaris directory and contents Signed-off-by: Rowland Penny Reviewed-by: Volker Lendecke Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Tue Sep 12 06:46:35 CEST 2017 on sn-devel-144 --- packaging/Solaris/README | 13 -- packaging/Solaris/copyright | 1 - packaging/Solaris/makepkg.sh | 214 ---------------------------- packaging/Solaris/pkginfo.master | 14 -- packaging/Solaris/postinstall | 15 -- packaging/Solaris/preremove | 12 -- packaging/Solaris/prototype.master | 37 ----- packaging/Solaris/request | 13 -- packaging/Solaris/samba.init.master | 53 ------- packaging/Solaris/smb.conf.default | 271 ------------------------------------ 10 files changed, 643 deletions(-) delete mode 100644 packaging/Solaris/README delete mode 100644 packaging/Solaris/copyright delete mode 100644 packaging/Solaris/makepkg.sh delete mode 100644 packaging/Solaris/pkginfo.master delete mode 100644 packaging/Solaris/postinstall delete mode 100644 packaging/Solaris/preremove delete mode 100644 packaging/Solaris/prototype.master delete mode 100644 packaging/Solaris/request delete mode 100755 packaging/Solaris/samba.init.master delete mode 100644 packaging/Solaris/smb.conf.default (limited to 'packaging') diff --git a/packaging/Solaris/README b/packaging/Solaris/README deleted file mode 100644 index 3e8435ea20e..00000000000 --- a/packaging/Solaris/README +++ /dev/null @@ -1,13 +0,0 @@ - -INSTRUCTIONS: Preparing Samba packages for Solaris - -Make sure that your $PATH contains directories /usr/sfw/bin and /usr/ccs/bin - -To produce a package: - -* Type sh makepkg.sh build - -The package will be created in the /tmp directory. - -By default, the package will be built to install samba in /opt/samba -To change the default, modify the INSTALL_BASE variable in makepkg.sh diff --git a/packaging/Solaris/copyright b/packaging/Solaris/copyright deleted file mode 100644 index 1792668d174..00000000000 --- a/packaging/Solaris/copyright +++ /dev/null @@ -1 +0,0 @@ -Copyright (C) 2001 Samba Team diff --git a/packaging/Solaris/makepkg.sh b/packaging/Solaris/makepkg.sh deleted file mode 100644 index 7d7ffbb5364..00000000000 --- a/packaging/Solaris/makepkg.sh +++ /dev/null @@ -1,214 +0,0 @@ -#!/bin/sh -e -# -# Copyright (C) Shirish A Kalele 2000 -# Copyright (C) Gerald Carter 2004 -# -# script for build solaris Samba package -# - -INSTALL_BASE=/opt/samba - -SBINPROGS="smbd nmbd winbindd" -BINPROGS="findsmb nmblookup eventlogadm pdbedit rpcclient smbclient smbcquotas smbspool smbtar tdbbackup testparm wbinfo net ntlm_auth profiles smbcacls smbcontrol smbpasswd smbstatus smbtree tdbdump" -MSGFILES="de.msg en.msg fi.msg fr.msg it.msg ja.msg nl.msg pl.msg tr.msg" -VFSLIBS="audit.so default_quota.so extd_audit.so full_audit.so readonly.so shadow_copy.so cap.so expand_msdfs.so fake_perms.so netatalk.so recycle.so" -CHARSETLIBS="CP437.so CP850.so" -AUTHLIBS="script.so" - -add_dynamic_entries() -{ - # Add the binaries and docs - cd $TMPINSTALLDIR/$INSTALL_BASE - - echo "#\n# Server Binaries \n#" - for file in $SBINPROGS; do - echo f none sbin/$file 0755 root other - done - - echo "#\n# User Binaries \n#" - for file in $BINPROGS; do - echo f none bin/$file 0755 root other - done - - echo "#\n# Libraries\n#" - for file in $MSGFILES; do - echo f none lib/$file 0644 root other - done - for file in $VFSLIBS; do - echo f none lib/vfs/$file 0755 root other - done - for file in $CHARSETLIBS; do - echo f none lib/charset/$file 0755 root other - done - for file in $AUTHLIBS; do - echo f none lib/auth/$file 0755 root other - done - - echo "#\n# libsmbclient\n#" - echo f none lib/libsmbclient.so 0755 root other - echo f none include/libsmbclient.h 0644 root other - - echo "#\n# libmsrpc\n#" - - if [ -f lib/smbwrapper.so -a -f bin/smbsh ]; then - echo "#\n# smbwrapper\n#" - echo f none lib/smbwrapper.so 0755 root other - echo f none bin/smbsh 0755 root other - fi - - echo "#\n# nss_winbind.so and nss_wins.so\n#" - echo f none /lib/nss_winbind.so.1=lib/nss_winbind.so.1 0755 root other - echo f none /lib/nss_wins.so.1=lib/nss_wins.so.1 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_wins.so.1=/usr/lib/nss_wins.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 - - echo "#\n# man pages \n#" - - # Create directories for man page sections if nonexistent - cd share/man - for i in 1 2 3 4 5 6 7 8 9; do - set +e - manpages=`ls man$i 2>/dev/null` - set -e - if [ $? -eq 0 ]; then - echo d none share/man/man${i} ? ? ? - for manpage in $manpages; do - echo f none share/man/man${i}/${manpage} 0644 root other - done - fi - done -} - -##################################################################### -## BEGIN MAIN -##################################################################### - -# Try to guess the distribution base.. -DISTR_BASE=`dirname \`pwd\` |sed -e 's@/packaging$@@'` -echo "Distribution base: $DISTR_BASE" - -TMPINSTALLDIR="/tmp/`basename $DISTR_BASE`-build" -echo "Temp install dir: $TMPINSTALLDIR" -echo "Install directory: $INSTALL_BASE" - -## -## first build the source -## - -cd $DISTR_BASE/source - -if test "x$1" = "xbuild" -o ! -f bin/smbd ]; then - ./configure --prefix=$INSTALL_BASE \ - --localstatedir=/var/lib/samba \ - --with-piddir=/var/run \ - --with-logfilebase=/var/log/samba \ - --with-privatedir=/etc/samba/private \ - --with-configdir=/etc/samba \ - --with-lockdir=/var/lib/samba \ - --with-mandir=/usr/share/man \ - --with-pam --with-acl-support \ - --with-quotas --with-included-popt \ - && make - - if [ $? -ne 0 ]; then - echo "Build failed! Exiting...." - exit 1 - fi -fi - -rm -rf $TMPINSTALLDIR -mkdir -p $TMPINSTALLDIR -make DESTDIR=$TMPINSTALLDIR install - -## clear out *.old -find $TMPINSTALLDIR -name \*.old |while read x; do rm -rf "$x"; done - -## -## Now get the install locations -## -LD_LIBRARY_PATH=$DISTR_BASE/source/bin -export LD_LIBRARY_PATH -SBINDIR=`bin/smbd -b | grep SBINDIR | awk '{print $2}'` -BINDIR=`bin/smbd -b | grep BINDIR | grep -v SBINDIR | awk '{print $2}'` -CONFIGFILE=`bin/smbd -b | grep CONFIGFILE | awk '{print $2}'` -LOCKDIR=`bin/smbd -b | grep LOCKDIR | awk '{print $2}'` -CONFIGDIR=`dirname $CONFIGFILE` -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}'` -DOCDIR=$INSTALL_BASE/docs - -## -## copy some misc files that are not done as part of 'make install' -## -cp -fp nsswitch/libnss_wins.so $TMPINSTALLDIR/$LIBDIR/nss_wins.so.1 -cp -fp nsswitch/libnss_winbind.so $TMPINSTALLDIR/$LIBDIR/nss_winbind.so.1 -if [ -f bin/pam_winbind.so ]; then - cp -fp bin/pam_winbind.so $TMPINSTALLDIR/$LIBDIR/pam_winbind.so -fi -if [ -f bin/smbwrapper.so ]; then - cp -fp bin/smbwrapper.so $TMPINSTALLDIR/$INSTALL_BASE/lib -fi -if [ -f bin/smbsh ]; then - cp -fp bin/smbsh $TMPINSTALLDIR/$INSTALL_BASE/bin -fi - -mkdir -p $TMPINSTALLDIR/$INSTALL_BASE/docs -cp -p ../docs/*pdf $TMPINSTALLDIR/$INSTALL_BASE/docs - - -cd $DISTR_BASE/packaging/Solaris - -## -## Main driver -## - -# Setup version from smbd -V - -VERSION=`$TMPINSTALLDIR/$SBINDIR/smbd -V | awk '{print $2}'` -sed -e "s|__VERSION__|$VERSION|" -e "s|__ARCH__|`uname -p`|" -e "s|__BASEDIR__|$INSTALL_BASE|g" pkginfo.master > pkginfo - -sed -e "s|__BASEDIR__|$INSTALL_BASE|g" inetd.conf.master > inetd.conf -sed -e "s|__BASEDIR__|$INSTALL_BASE|g" samba.init.master > samba.init - -## -## copy over some scripts need for packagaing -## -mkdir -p $TMPINSTALLDIR/$INSTALL_BASE/scripts -for i in samba.init smb.conf.default; do - cp -fp $i $TMPINSTALLDIR/$INSTALL_BASE/scripts -done - -## -## Start building the prototype file -## -echo "CONFIGDIR=$CONFIGDIR" >> pkginfo -echo "LOGFILEBASE=$LOGFILEBASE" >> pkginfo -echo "LOCKDIR=$LOCKDIR" >> pkginfo -echo "PIDDIR=$PIDDIR" >> pkginfo -echo "PRIVATE_DIR=$PRIVATE_DIR" >> pkginfo - -cp prototype.master prototype - -# Add the dynamic part to the prototype file -(add_dynamic_entries >> prototype) - -## -## copy packaging files -## -for i in prototype pkginfo copyright preremove postinstall request; do - cp $i $TMPINSTALLDIR/$INSTALL_BASE -done - -# Create the package -pkgmk -o -d /tmp -b $TMPINSTALLDIR/$INSTALL_BASE -f prototype - -if [ $? = 0 ]; then - pkgtrans /tmp samba.pkg samba -fi - -echo The samba package is in /tmp diff --git a/packaging/Solaris/pkginfo.master b/packaging/Solaris/pkginfo.master deleted file mode 100644 index a40c76e60f1..00000000000 --- a/packaging/Solaris/pkginfo.master +++ /dev/null @@ -1,14 +0,0 @@ -PKG=samba -NAME=CIFS File and Print server -ARCH=__ARCH__ -VERSION=__VERSION__ -CATEGORY=system -VENDOR=Gerald (Jerry) Carter, Samba Team -DESC=File and printer sharing for Windows workstations -HOTLINE=Please contact your local UNIX support group -EMAIL=jerry@samba.org -CLASSES=none -INTONLY=1 -ISTATES="S s 1 2 3" -RSTATES="S s 1 2 3" -BASEDIR=__BASEDIR__ diff --git a/packaging/Solaris/postinstall b/packaging/Solaris/postinstall deleted file mode 100644 index 3586d9bc9e2..00000000000 --- a/packaging/Solaris/postinstall +++ /dev/null @@ -1,15 +0,0 @@ -cat <$1 < - -# Use the realm option only with security = ads -# Specifies the Active Directory realm the host is part of -; realm = MY_REALM - -# Backend to store user information in. New installations should -# use either tdbsam or ldapsam. smbpasswd is available for backwards -# compatibility. tdbsam requires no further configuration. -; passdb backend = tdbsam - -# Using the following line enables you to customise your configuration -# on a per machine basis. The %m gets replaced with the netbios name -# of the machine that is connecting. -# Note: Consider carefully the location in the configuration file of -# this line. The included file is read at that point. -; include = /usr/local/samba/lib/smb.conf.%m - -# Configure Samba to use multiple interfaces -# If you have multiple network interfaces then you must list them -# here. See the man page for details. -; interfaces = 192.168.12.2/24 192.168.13.2/24 - -# Browser Control Options: -# set local master to no if you don't want Samba to become a master -# browser on your network. Otherwise the normal election rules apply -; local master = no - -# OS Level determines the precedence of this server in master browser -# elections. The default value should be reasonable -; os level = 33 - -# Domain Master specifies Samba to be the Domain Master Browser. This -# allows Samba to collate browse lists between subnets. Don't use this -# if you already have a Windows NT domain controller doing this job -; domain master = yes - -# Preferred Master causes Samba to force a local browser election on startup -# and gives it a slightly higher chance of winning the election -; preferred master = yes - -# Enable this if you want Samba to be a domain logon server for -# Windows95 workstations. -; domain logons = yes - -# if you enable domain logons then you may want a per-machine or -# per user logon script -# run a specific logon batch file per workstation (machine) -; logon script = %m.bat -# run a specific logon batch file per username -; logon script = %U.bat - -# Where to store roving profiles (only for Win95 and WinNT) -# %L substitutes for this servers netbios name, %U is username -# You must uncomment the [Profiles] share below -; logon path = \\%L\Profiles\%U - -# Windows Internet Name Serving Support Section: -# WINS Support - Tells the NMBD component of Samba to enable it's WINS Server -; wins support = yes - -# WINS Server - Tells the NMBD components of Samba to be a WINS Client -# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both -; wins server = w.x.y.z - -# WINS Proxy - Tells Samba to answer name resolution queries on -# behalf of a non WINS capable client, for this to work there must be -# at least one WINS Server on the network. The default is NO. -; wins proxy = yes - -# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names -# via DNS nslookups. The default is NO. - dns proxy = no - -# These scripts are used on a domain controller or stand-alone -# machine to add or delete corresponding unix accounts -; add user script = /usr/sbin/useradd %u -; add group script = /usr/sbin/groupadd %g -; add machine script = /usr/sbin/adduser -n -g machines -c Machine -d /dev/null -s /bin/false %u -; delete user script = /usr/sbin/userdel %u -; delete user from group script = /usr/sbin/deluser %u %g -; delete group script = /usr/sbin/groupdel %g - - -#============================ Share Definitions ============================== -[homes] - comment = Home Directories - browseable = no - writable = yes - -# Un-comment the following and create the netlogon directory for Domain Logons -; [netlogon] -; comment = Network Logon Service -; path = /usr/local/samba/lib/netlogon -; guest ok = yes -; writable = no -; share modes = no - - -# Un-comment the following to provide a specific roving profile share -# the default is to use the user's home directory -;[Profiles] -; path = /usr/local/samba/profiles -; browseable = no -; guest ok = yes - - -# NOTE: If you have a BSD-style print system there is no need to -# specifically define each individual printer -[printers] - comment = All Printers - path = /usr/spool/samba - browseable = no -# Set public = yes to allow user 'guest account' to print - guest ok = no - writable = no - printable = yes - -# This one is useful for people to share files -;[tmp] -; comment = Temporary file space -; path = /tmp -; read only = no -; public = yes - -# A publicly accessible directory, but read only, except for people in -# the "staff" group -;[public] -; comment = Public Stuff -; path = /home/samba -; public = yes -; writable = yes -; printable = no -; write list = @staff - -# Other examples. -# -# A private printer, usable only by fred. Spool data will be placed in fred's -# home directory. Note that fred must have write access to the spool directory, -# wherever it is. -;[fredsprn] -; comment = Fred's Printer -; valid users = fred -; path = /homes/fred -; printer = freds_printer -; public = no -; writable = no -; printable = yes - -# A private directory, usable only by fred. Note that fred requires write -# access to the directory. -;[fredsdir] -; comment = Fred's Service -; path = /usr/somewhere/private -; valid users = fred -; public = no -; writable = yes -; printable = no - -# a service which has a different directory for each machine that connects -# this allows you to tailor configurations to incoming machines. You could -# also use the %U option to tailor it by user name. -# The %m gets replaced with the machine name that is connecting. -;[pchome] -; comment = PC Directories -; path = /usr/pc/%m -; public = no -; writable = yes - -# A publicly accessible directory, read/write to all users. Note that all files -# created in the directory by users will be owned by the default user, so -# any user with access can delete any other user's files. Obviously this -# directory must be writable by the default user. Another user could of course -# be specified, in which case all files would be owned by that user instead. -;[public] -; path = /usr/somewhere/else/public -; public = yes -; only guest = yes -; writable = yes -; printable = no - -# The following two entries demonstrate how to share a directory so that two -# users can place files there that will be owned by the specific users. In this -# setup, the directory should be writable by both users and should have the -# sticky bit set on it to prevent abuse. Obviously this could be extended to -# as many users as required. -;[myshare] -; comment = Mary's and Fred's stuff -; path = /usr/somewhere/shared -; valid users = mary fred -; public = no -; writable = yes -; printable = no -; create mask = 0765 - - -- cgit v1.2.1