Updated build files only.
authorJohn Terpstra <jht@samba.org>
Wed, 17 Jan 2001 12:27:08 +0000 (12:27 +0000)
committerJohn Terpstra <jht@samba.org>
Wed, 17 Jan 2001 12:27:08 +0000 (12:27 +0000)
packaging/Caldera/OpenLinux/samba2.spec-lsb.tmpl
packaging/Caldera/OpenLinux/samba2.spec.tmpl
packaging/Caldera/OpenLinux/smb.conf.sample

index c535a2d85ab002e439959adfa9352956422ff940..c12c5f9313049d585cace91f559cdd60dbe963b2 100644 (file)
@@ -3,18 +3,19 @@
 %define Vendor         Caldera
 %define Dist           OpenLinux
 %define EtcSamba       /etc/samba.d
+%define LSBservedir    /srv/samba
 
 Name           : samba
 Version        : %{Version}
 Release        : %{date}
 Group          : Server/Network
 
-Summary         : Samba SMB client and server.
-Summary(de)     : Ein SBM Client und Server.
-Summary(es)     : Cliente y servidor SMB .
-Summary(fr)     : Client et serveur SMB.
-Summary(it)     : Client e server SMB.
-Summary(pt)     : Um cliente e servidor de SMB.
+Summary        : Samba SMB client and server.
+Summary(de)    : Samba SMB Client und Server.
+Summary(es)    : Cliente y servidor SMB Samba.
+Summary(fr)    : Client et serveur SMB Samba.
+Summary(it)    : Client e server SMB.
+Summary(pt)    : Cliente e servidor SMB Samba.
 
 Copyright       : Andrew Tridgell, John H Terpstra; GPL Version 2
 Packager        : Klaus Singvogel <klaus@caldera.de>
@@ -26,123 +27,80 @@ Requires           : libpam >= 0.66, SysVinit-scripts >= 1.04-6
 
 BuildRoot      : /tmp/%{Name}-%{Version}
 
-Source: ftp://ftp.samba.org/pub/samba/%{Name}-%{Version}%{date}.tar.gz
+Source: ftp://ftp.samba.org/pub/samba/%{Name}-%{Version}-%{date}.tar.gz
 Patch0: %{Name}-%{Version}-smbmount.patch
 Patch1: %{Name}-%{Version}-install.patch
 #Patch2: %{Name}-%{Version}-smbconf.patch
 
-
 %Package doc
 Group          : Server/Network
 
-Summary         : Documentation on SAMBA.
-Summary(de)     : Die Samba Dokumentation.
-Summary(es)     : Documentation de Samba.
-Summary(fr)     : Documentation pour Samba.
-Summary(it)     : Documentazione su Samba.
-Summary(pt)     : Documentação sobre o Samba.
-
+Summary        : Documentation on SAMBA.
+Summary(de)    : Die Dokumentation für Samba.
+Summary(es)    : Documentation de SAMBA.
+Summary(fr)    : Documentation pour Samba.
+Summary(it)    : Documentazione su SAMBA.
+Summary(pt)    : Documentação sobre o SAMBA.
 
 %Package -n smbfs
 Group          : System/Network
 
 Summary        : Mount and unmount commands for SMB filesystems (smbfs).
-Summary(de)     : SMB Dateisystem mounten und umounten.
-Summary(es)     : Comandos de montaje y desmontaje de sistemas de fichero SMB (smbfs).
-Summary(fr)     : Commandes pour le montage et le démontage des systèmes de fichiers SMB (smbfs).
-Summary(it)     : Comandi per montare e smontare i file system SMB (smbfs).
-Summary(pt)     : Os comandos mount e unmount para o sistema de ficheiros SMB (smbfs).
-
-
+Summary(de)    : Mount und unmount für SMB-Dateisysteme (smbfs).
+Summary(es)    : Comandos de montaje y desmontaje de sistemas de ficheros SMB (smbfs).
+Summary(fr)    : Commandes pour le montage et le démontage des systèmes de fichiers SMB (smbfs).
+Summary(it)    : Comandi per montare e smontare i file system SMB (smbfs).
+Summary(pt)    : Comandos mount e unmount para o sistema de ficheiros SMB (smbfs).
 
 %Package -n swat
 Group          : Administration/Network
 Requires        : setup >= 2.0-2, tcp_wrappers, netkit-base >= 0.17-5
 
-Summary         : Samba Web Administration Tool.
-Summary(de)     : Das Samba Web Administration Tool.
-Summary(es)     : Utilidad de administración Samba.
-Summary(fr)     : Outil d'administration Internet pour Samba.
-Summary(it)     : Strumento per l'amministrazione di Samba via Web.
-Summary(pt)     : A ferramenta Web de administração de Samba (Samba Web Administration Tool).
-
+Summary        : Samba Web Administration Tool.
+Summary(de)    : Das Samba Web Administrationstool.
+Summary(es)    : Utilidad de administración Samba.
+Summary(fr)    : Outil d'administration Internet pour Samba.
+Summary(it)    : Strumento per l'amministrazione di Samba via Web.
+Summary(pt)    : Ferramenta Web de administração de Samba (Samba Web Administration Tool).
 
 
 %Description
-
-Samba provides an SMB server which can be used to provide
-network services to SMB (sometimes called "Lan Manager")
-clients, including various versions of MS Windows, OS/2,
-and other Linux machines. Samba also provides some SMB
-clients, which complement the built-in SMB filesystem
-in Linux. Samba uses NetBIOS over TCP/IP (NetBT) protocols
-and does NOT need NetBEUI (Microsoft Raw NetBIOS frame)
-protocol.
-
-Samba-2.2 features working NT Domain Control capability and 
-includes the SWAT (Samba Web Administration Tool) that 
-allows samba's smb.conf file to be remotely managed using your 
-favourite web browser. For the time being this is being
-enabled on TCP port 901 via inetd.
-
-Users are advised to use Samba-2.2 as a Windows NT4
-Domain Controller only on networks that do NOT have a Windows
-NT Domain Controller. This release does NOT as yet have
-Backup Domain control ability.
-
-Please refer to the WHATSNEW.txt document for fixup information.
-This binary release includes encrypted password support.
-
-Please read the smb.conf file and ENCRYPTION.txt in the
-docs directory for implementation details.
-
-NOTE: Caldera OpenLinux uses PAM which has integrated support
-for Shadow passwordsand for quotas. Do NOT recompile with the 
-SHADOW_PWD option enabled.
+Samba provides an SMB server which can be used to provide network
+services to SMB (sometimes called "Lan Manager") clients, including
+various versions of MS Windows, OS/2, and other Linux machines.
 
 %Description -l de
-Samba bietet einen SMB Server der benutzt werden kann um Netzwerkdienste
-verschiedenen SMB Clients (manchmal "LAN Manager" genannat) inklusive MS
-Windows und OS/2 aunzubieten. Es biete auch einige SMB Clients. Diese
-Version bietet eine fast vollständig arbeitende NT Domain Kontrolle und
-beinhaltet das neue Samba Web Administration Tool (SWAT).
+Samba stellt einen SMB Server zur Verfügung, mit dem Netzwerkdienste für SMB
+(auch "Lan Manager" genannt) Clients bereitgestellt werden können. Dies
+schließt verschiedene Versionen von MS Windows, OS/2 und andere Linux
+Maschinen ein.
 
 %Description -l es
-Samba dispone de un servidor SMB que puede utilizarse para disponer de
-servicios de red a clientes SMB, incluyendo varias versiones de MS Windows y
-OS/2. También ofrece algunos clientes SMB. Esta versión incluye la capacidad
-de Control de Dominios de NT casi funcional y también incluye la nueva
-Herramienta Administrativa por Web de Samba (SWAT)
+Samba dispone de un servidor SMB que puede utilizarse para proporcionar
+servicios de red a clientes SMB (a veces conocido como "Lan Manager"), 
+incluyendo varias versiones de MS Windows, OS/2 y otras máquinas Linux.
+
 %Description -l fr
-Samba fournit un serveur SMB qui peut être utilisé pour mettre en place un
-service de réseau vers des clients SMB (parfois appelé "LAN Manager"),
-comportant diverses version s de MS Windows et d'OS/2. Il prévoit également
-quelques clients MB. Cette version présente une fonction de contrôle de
-domaine sous NT presque fonctionnelle et intègre le nouveau programme SWAT
-(Samba Web Administration Tool).
+Samba fournit un serveur SMB qui peut être utilisé pour fournir des services
+de réseau aux clients SMB (parfois appelés "Lan Manager"), comportant
+diverses versions de MS Windows, OS/2 et d'autres machines Linux.
 
 %Description -l it
-Samba fornisce un SMB server che può essere utilzzato per fornire servizi di 
-rete a client SMB (chiamati anche "LAN Manager") tra cui varie versioni
-di MS Windows e OS/2. Questo pacchetto fornisce anche alcuni client SMB.
-Questa versione contiene quasi tutte le funzionalità del NT Domain Control
-e include anche il nuovo  Samba Web Administration Tool (SWAT).
+Samba fornisce un server SMB che può essere usato per fornire servizi
+di rete a client SMB (talvolta chiamato "Lan Manager"), comprese varie
+versioni di MS Windows, OS/2 e altre macchine Linux.
 
 %Description -l pt
-O Samba fornece um servidor de SMB que pode ser usado para providenciar 
-serviços de rede aos clientes de SMB (denominado por vezes como "Lan Manager"),
-incluindo várias versões do Windows e do OS/2. Fornece também alguns clientes
-de SMB. Esta versão contém uma capacidade quase funcional de Controlo de
-Domínios NT e inclui o SWAT (Samba Web Administration Tool), uma ferramenta de
-configuração do Samba através da Web.
-
+O Samba fornece um servidor de SMB que pode ser usado para fornecer serviços de
+rede aos clientes de SMB (denominado por vezes como "Lan Manager"), incluindo
+várias versões do Windows, OS/2 e outras máquinas Linux.
 
 %Description doc
 This package contains extensive SAMBA documentation, including a FAQ,
 comprehensive usage documentation, and a number of examples.
 
 %Description -l de doc
-Dieses Paket beinhaltet eine ausführliche SAMBA Dokumentation, inklusive
+Dieses Paket enthält eine ausführliche SAMBA Dokumentation, inklusive
 einer FAQ, umfassender Gebrauchsdokumentation und einer Reihe von
 Beispielen.
 
@@ -152,8 +110,8 @@ FAQ (Preguntas de Uso Frecuente), documentaci
 ejemplos.
 
 %Description -l fr doc
-Ce paquetage contient une documentation complète sur SAMBA, y compris une FAQ
-détaillée de son utilisation et un certain nombre d'exemples.
+Ce paquetage contient une documentation complète sur Samba, y compris
+une FAQ détaillée de son utilisation et un certain nombre d'exemples.
 
 %Description -l it doc
 Questo pacchetto contiene la documentazione su SAMBA tra cui una FAQ
@@ -163,91 +121,64 @@ una esaustiva documentazione d'uso e un certo numero di esempi.
 Este pacote contém alguma documentação extensa sobre o SAMBA, incluindo a FAQ,
 alguma documentação compreensiva sobre a utilização e alguns exemplos.
 
-
 %Description -n smbfs
 This package includes the tools necessary to mount filesystems from
 SMB servers.
 
-Smbmount and smbumount are an interface to the SMB filesystem. Smbfs is
-a filesystem which understands the SMB protocol. This is the protocol
-Windows for Workgroups, Windows NT or Lan Manager use to talk to each
-other. It was inspired by samba, the program by Andrew Tridgell that
-turns any unix site into a file server for DOS or Windows clients. See
-http://samba.org/samba for this interesting program suite and lots of
-more information on SMB and NetBIOS over TCP/IP. There you also find
-explanation for conceps like NetBIOS name or share.
-
 %Description -l de -n smbfs
-Dieses Paket beinhaltet Tools zum Arbeiten mit smbfs, dem SMB Dateisystem.
-SMB ist das Protokoll welches Window for Workgroups, Windows NT und LAN
-Manager benutzen um sich miteinander zu verständigen. smbfs wurde von Samba
-inspiriert welches einen Linux oder UNIX Rechner in einen Dateiserver für
-DOS oder Windows Clients verwandelt.
+Dieses Paket enthält die nötigen Tools, um Dateisysteme von SMB-Servern
+zu mounten.
 
 %Description -l es -n smbfs
-Este paquete contiene las herramientas para trabajar con smbfs, el sistema
-de ficheros SMB. SMB es el protocolo que Windows para Trabajo en Grupo,
-Windows NT y LAN Manager utilizan para comunicarse entre ellos. smbfs fue
-inspirado por Samba, que convierte un Linux o UNIX en un servidor de ficheros
-para clientes DOS o Windows.
+este paqeute incluye las herramientas necesarias para montar sistemas de
+ficheros de servidores SMB.
 
 %Description -l fr -n smbfs
-Ce paquetage contient des outils pour travailler avec smbfs, le système de
-fichiers SMB. Il s'agit du protocole de Windows for Workgroups, de Windows
-NT, et de LAN Manager utilisé pour la discussion. Le programme smbfs est
-inspiré de Samba, qui transforme un ordina teur Linux ou UNIX en serveur de
-fichiers pour des clients DOS ou Windows.
+Ce paquetage contient les outils nécessaires pour monter des systèmes
+de fichiers sur des serveurs SMB.
 
 %Description -l it -n smbfs
-Questo pacchetto contiene strumenti per lavorare con smbfs, il filesystem
-SMB. SMB è il protocollo che usano per comunicare tra loro Windows for
-Workgroup, Windows NT e LAN Manager.smbfs è ispirato da Samba che rende
-un computer LINUX o UNIX un server per DOS o Windows.dows clients.
+Questo pacchetto contiene gli strumenti necessari per montare filesystem
+da server SMB.
 
 %Description -l pt -n smbfs
-Este pacote contém algumas ferramentas para trabalhar com o smbfs, o sistema de
-ficheiros do SMB. O SMB é o protocolo que o Windows for Workgroups, Windows NT
-e o Lan Manager usam para comunicar entre si. O smbfs foi inspirado no Samba,
-que transforma uma máquina de UNIX ou Linux num servidor de ficheiros para os
-clientes de DOS ou Windows.
-
+Este pacote contém as ferramentas necessárias para montar sistema de
+ficheiros de servidores SMB.
 
 %Description -n swat
-swat allows a Samba administrator to configure the complex smb.conf
-file via a Web browser. In addition, a swat configuration page has
-help links to all the configurable options in the smb.conf file
-allowing an administrator to easily look up the effects of any change.
-
+SWAT allows a Samba administrator to configure the complex smb.conf
+file via a Web browser.  It also provides links to all the configurable 
+options in the smb.conf file allowing an administrator to easily look 
+up the effects of any change.
 
 %Description -l de -n swat
-SWAT ist das Samba Web Administration Tool. Es erlaubt einem Samba
-Administrator die komplexe smb.conf Datei via einem Web Browser zu
-konfigurieren. SWAT beitet auch Verknüpfungen zu Hilfe-Dateien für alle
-konfigurierbaren Optionen in der smb.conf Datein.
+Mit SWAT kann ein Samba-Administrator die komplexe smb.conf
+Datei mit Hilfe eines Web-Browsers konfigurieren.  Es stellt auch Links zu
+allen konfigurierbaren Optionen in der smb.conf Datei bereit, wodurch ein
+Administrator die Auswirkungen einer Änderung leicht nachvollziehen kann.
 
 %Description -l es -n swat
-SWAT es la herramienta Web de Administración Samba. Permite al administrador
-SAMBA configurar el fichero smb.conf a través de un navegador. SWAT también
-tiene enlaces de ayuda para todas las opciones configurables del fichero
-smb.conf
+SWAT permite a un administrador de Samba configurar el complejo fichero
+smb.conf mediante una navegador web. También proporciona enlaces a todas las
+opciones configurables en el fichero smb.conf, permitiendo al administrador
+comprobar fácilmente los efectos de cualquier cambio.
 
 %Description -l fr -n swat
-SWAT (Samba Web Administration Tool) permet à un administrateur Samba de
-configurer le fichier smb.conf complexe, via un navigateur Web. SWAT
-contient également des liens pour toutes les options configurables dans
-le fichier smb.conf.
+SWAT permet à un administrateur Samba de configurer le fichier smb.conf
+complexe via un navigateur Web. Il fournit également des liens d'aide pour
+toutes les options configurables dans le fichier smb.conf permettant à un
+administrateur de consulter aisément les effets d'une modification.
 
 %Description -l it -n swat
-SWAT  è il Samba Web Administration tool. Permette ad un amministratore
-Samba di configurare il complesso file smb.conf attraverso un browser
-Web. SWAT ha anche dei link di aiuto per tutte le opzioni di configurazione
-del file smb.conf.
+SWAT permette ad un amministratore Samba di configurare il complesso file
+smb.conf attraverso un browser Web. SWAT ha anche dei link di aiuto per
+tutte le opzioni di configurazione del file smb.conf.
 
 %Description -l pt -n swat
-O SWAT (Samba Web Administration Tool) é uma ferramenta de administração via 
-Web do Samba. Permite a um administrador de Samba configurar o ficheiro 
-complexo smb.conf através dum navegador Web. O SWAT também tem referências de
-ajuda para todas as opções configuráveis no ficheiro smb.conf.
+O SWAT permite a um administrador de Samba configurar o complexo ficheiro
+smb.conf através de uma interface Web. Fornece também referências para
+todas as opções configuraveis no smb.conf, permitindo a um admnistrador
+verificar rapidamente o efeite de qualquer alteração.
 
 
 %Prep
@@ -310,66 +241,83 @@ CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure \
        --with-privatedir='$(LIBDIR)' \
        --with-lockdir='$(DESTDIR)/var/lock/samba.d' \
        --with-swatdir='$(DESTDIR)/usr/share/swat' \
-       --with-smbmount --with-pam --without-smbwrapper \
-       --with-utmp --with-quotas --with-vfs --with-msdfs \
-       --with-profile --with-syslog --with-utmp --with-netatalk \
-       --with-sambabook=$(DESTDIR)/%{_defaultdocdir}/swat/using_samba
+       --with-swatdir='$(DESTDIR)/usr/share/swat' \
+       --with-sambabook='$(DESTDIR)/usr/share/swat/using_samba' \
+       --without-smbwrapper \
+       --with-smbmount \
+       --with-pam \
+       --with-profile \
+       --with-netatalk \
+       --with-quotas \
+       --with-utmp \
+       --with-posix-acls
 
-make LOGFILEBASE=/var/log/samba.d all nsswitch/libnss_wins.so
+
+make LOGFILEBASE=/var/log/samba.d all nsswitch
 
 
 %Install
 %{mkDESTDIR}
 VVS=packaging/%{Vendor}/%{Dist}
 
-mkdir -p $DESTDIR/etc/{{logrotate,pam}.d,sysconfig/daemons,skel/Public}
+mkdir -p $DESTDIR/etc/{{logrotate,pam}.d,sysconfig/daemons}
 mkdir -p $DESTDIR/var/{lo{ck,g}/samba.d,spool/samba}
-mkdir -p $DESTDIR/usr/{lib,share}
-mkdir -p $DESTDIR/home/samba $DESTDIR%{EtcSamba}/codepages/src $DESTDIR/sbin
-mkdir -p $DESTDIR/tmp/Public
+mkdir -p $DESTDIR/usr/share/swat/using_samba
+mkdir -p $DESTDIR/lib/security
+mkdir -p $DESTDIR/%{LSBservedir}/{netlogon,profiles,Public}
+mkdir -p $DESTDIR/etc/skel/Samba
+mkdir -p $DESTDIR%{EtcSamba}/codepages/src $DESTDIR/sbin
 mkdir -p $DESTDIR/%{SVIdir}
 
 make LOGFILEBASE=/var/log/samba.d -C source  install
 
 strip $DESTDIR/usr/bin/smb{mount,mnt,umount}
-mv $DESTDIR/usr/bin/{make,add,conv}* $DESTDIR/usr/sbin
+#mv $DESTDIR/usr/bin/{make,add,conv}* $DESTDIR/usr/bin
 
 #cp -p source/codepages/codepage_def.??? $DESTDIR%{EtcSamba}/codepages/src
 
 # Install the nsswitch library extension file
-install -m 755 source/nsswitch/libnss_wins.so $DESTDIR/usr/lib/libnss_wins.so.2.0
+install -m 755 source/nsswitch/libnss_wins.so $DESTDIR/lib/libnss_wins.so.2.0
 # Make link for wins resolver
-ln -s libnss_wins.so.2.0 $DESTDIR/usr/lib/libnss_wins.so.2
-ln -s libnss_wins.so.2.0 $DESTDIR/usr/lib/libnss_wins.so
+ln -s libnss_wins.so.2.0 $DESTDIR/lib/libnss_wins.so.2
+ln -s libnss_wins.so.2.0 $DESTDIR/lib/libnss_wins.so
+
+# install -m 755 source/nsswitch/libnss_winbind.so $DESTDIR/lib/libnss_winbind.so.2.0
+# # Make link for winbind resolver
+# ln -s libnss_winbind.so.2.0 $DESTDIR/lib/libnss_winbind.so.2
+# ln -s libnss_winbind.so.2.0 $DESTDIR/lib/libnss_winbind.so
+
+# install -m 755 source/nsswitch/pam_winbind.so $DESTDIR/lib/security
+
+# install -m 755 source/bin/wbinfo $DESTDIR/usr/bin
 
 #lsb: cp -p $VVS/samba.init $DESTDIR/etc/rc.d/init.d/samba
 ln -s /etc/rc.d/init.d/samba $DESTDIR/usr/sbin
 
 cp -p $VVS/smb.conf.sample $DESTDIR%{EtcSamba}/smb.conf.sample
-#cp -p $VVS/smb.conf.sample $DESTDIR%{EtcSamba}/smb.conf
+cp -p $VVS/smb.conf $DESTDIR%{EtcSamba}/smb.conf
 cp -p $VVS/smbusers $DESTDIR%{EtcSamba}
 cp -p $VVS/smbprint $DESTDIR/usr/bin
-cp -p $VVS/smbadduser.perl $DESTDIR/usr/sbin/smbadduser
-cp -p $VVS/make_smbpasswd.perl $DESTDIR/usr/sbin/make_smbpasswd
-cp -p $VVS/convertsmbpasswd.perl $DESTDIR/usr/sbin/convertsmbpasswd
-cp -p $VVS/updatesmbpasswd.perl $DESTDIR/usr/sbin/updatesmbpasswd
-cp -p $VVS/findsmb $DESTDIR/usr/sbin
+cp -p $VVS/smbadduser.perl $DESTDIR/usr/bin/smbadduser
+cp -p $VVS/make_smbpasswd.perl $DESTDIR/usr/bin/make_smbpasswd
+cp -p $VVS/convertsmbpasswd.perl $DESTDIR/usr/bin/convertsmbpasswd
+cp -p $VVS/updatesmbpasswd.perl $DESTDIR/usr/bin/updatesmbpasswd
+cp -p $VVS/findsmb $DESTDIR/usr/bin
 cp -p $VVS/samba.daemon $DESTDIR/etc/sysconfig/daemons/samba
 cp -p $VVS/samba.pam $DESTDIR/etc/pam.d/samba
 cp -p $VVS/samba.logrotate $DESTDIR/etc/logrotate.d/samba
-cp -p $VVS/README.home $DESTDIR/etc/skel/Public/README.txt
-cp -p $VVS/README.tmp $DESTDIR/tmp/Public/README.txt
+cp -p $VVS/README.home $DESTDIR/etc/skel/Samba/README.txt
+cp -p $VVS/README.Public $DESTDIR/%{LSBservedir}/Public/README.txt
+install -m 755 $VVS/samba.init-lsb $DESTDIR/%{SVIdir}/%{Name}
 
 for f in testparm testprns; do
   ln -s $f $DESTDIR/usr/bin/smb$f
   ln -s $f.1 $DESTDIR/usr/man/man1/smb$f.1
 done
-ln -s make_smbcodepage  $DESTDIR/usr/sbin/mksmbcodepage
-ln -s make_smbpasswd $DESTDIR/usr/sbin/mksmbpasswd
-ln -sf convert_smbpasswd $DESTDIR/usr/sbin/convertsmbpasswd
+ln -s make_smbcodepage  $DESTDIR/usr/bin/mksmbcodepage
+ln -s make_smbpasswd $DESTDIR/usr/bin/mksmbpasswd
+ln -sf convert_smbpasswd $DESTDIR/usr/bin/convertsmbpasswd
 
-# startup file (for lsb)
-install -m 755 %{SOURCE3} $DESTDIR/%{SVIdir}/%{Name}
 
 cat <<-'EoH' > $DESTDIR%{EtcSamba}/lmhosts
        127.0.0.1 localhost
@@ -381,7 +329,7 @@ cat <<EoI >$DESTDIR%{NKinetdir}/swat
 swat   stream  tcp     nowait.400 root /usr/sbin/tcpd  swat
 EoI
 
-
+# -------------------- Documentation -------------------------------
 DOCD="$DESTDIR/%{_defaultdocdir}/samba-%{Version}"; mkdir -p $DOCD
 ln -sf ../Copyrights/GPL-2.0  $DOCD/COPYING
 cp -p README README-smbmount Manifest Read-Manifest-Now $DOCD
@@ -394,15 +342,17 @@ rm -rf $DOCD/docs/{htmldocs,manpages,yodldocs}
 rm -rf $DOCD/examples/{svr4-startup,printing}
 
 cp -p swat/README $DOCD/README.swat
+# -------------------- Fixing final pathes -------------------------------
 
 %{fixUP} -T $DESTDIR/%{SVIdir} -e 's:\@SVIdir\@:%{SVIdir}:'
 %{fixUP} -vT $DOCD/examples -e 's:/usr/local/bin/:/usr/bin/:g;'
+%{fixUP} -vT $DESTDIR/etc/samba.d -e 's:\@samba_home\@:%{LSBservedir}:'
 
 %{fixManPages}
 
 %{mkLists} -c samba
 cat << 'EOF' | %{mkLists} -d samba
-Public                                 base
+Samba                                  base
 ^/(etc|var|home|tmp)                   config-IGNORED
 swat                                   swat
 doc/samba-[^/]+/$                      base
@@ -412,7 +362,7 @@ man                                 IGNORED
 @default@
 EOF
 cat << 'EOF' | %{mkLists} -f -a samba
-Public/README.txt                      base
+Samba/README.txt                       base
 ^/etc                                  config-IGNORED
 /doc/samba-[^/]+/(COPYING|README$)     base
 libnss_wins.so                         base
@@ -430,12 +380,10 @@ EOF
 
 
 %Post
-#no lsb: lisa --SysV-init install samba S91 3:4:5 K09 0:1:2:6
 /usr/lib/LSB/init-install %{Name}
 
 
 %Post -n swat
-#no lsb: lisa --inetd install swat stream tcp nowait.400 root /usr/sbin/tcpd swat
 %{NKinetdReload}
 perl -pi -e '$s=1 if /^swat/;
   print "swat:ALL EXCEPT 127.0.0.1\n" if eof && ! $s' /etc/hosts.deny
@@ -443,7 +391,6 @@ perl -pi -e '$s=1 if /^swat/;
 
 %PostUn
 test "$1" = "0" || exit 0
-#no lsb: lisa --SysV-init remove samba $1
 /usr/lib/LSB/init-remove %{Name}
 # We want to remove the browse.dat and wins.dat files so they can not
 # interfer with a new version of samba!
@@ -464,12 +411,9 @@ test "$1" = "0" || exit 0
 %config %attr(644,root,root) /etc/pam.d/samba
 %config %attr(644,root,root) /etc/logrotate.d/samba
 %config %attr(-,root,root) %{EtcSamba}
-%config %attr(755,root,root) /home/samba
-
 %dir %attr(755,root,root) /var/lock/samba.d
 %dir %attr(755,root,root) /var/log/samba.d
 %dir %attr(1777,root,root) /var/spool/samba
-#%dir %attr(775,root,nobody) /home/samba
 
 
 %Files doc -f files-samba-doc
@@ -487,4 +431,4 @@ test "$1" = "0" || exit 0
 
 %ChangeLog
 * Mon Jan 01 1997 ...
-$Id: samba2.spec-lsb.tmpl,v 1.1.2.1 2001/01/16 15:48:34 jht Exp $
+$Id: samba2.spec-lsb.tmpl,v 1.1.2.2 2001/01/17 12:27:08 jht Exp $
index 8b325a947894e489aa1f28d55e5897218f6fb63e..b469958ab71b30e0fea81efb1f79c4c72c364a7e 100644 (file)
@@ -4,7 +4,7 @@
 %define Dist           OpenLinux
 %define EtcSamba       /etc/samba.d
 %define _defaultdocdir  /usr/doc
-%define LSBservedir    /srv/%{Name}
+%define LSBservedir    /srv/samba
 
 Name           : samba
 Version        : %{Version}
@@ -32,6 +32,7 @@ Source: ftp://ftp.samba.org/pub/samba/%{Name}-%{Version}-%{date}.tar.gz
 Patch0: %{Name}-%{Version}-smbmount.patch
 Patch1: %{Name}-%{Version}-install.patch
 #Patch2: %{Name}-%{Version}-smbconf.patch
+Patch3: %{Name}-%{Version}-make.patch
 
 
 %Package doc
@@ -191,6 +192,7 @@ verificar rapidamente o efeite de qualquer altera
 %patch0 -p1
 %patch1 -p1
 #%patch2 -p1
+%patch3 -p1
 
 # instead of patch (to help configuration) ...   ;^)
 %{fixUP} -vbT source/Makefile.in -e '
@@ -270,9 +272,10 @@ VVS=packaging/%{Vendor}/%{Dist}
 
 mkdir -p $DESTDIR/etc/{{rc.d/init,logrotate,pam}.d,sysconfig/daemons,skel/Samba}
 mkdir -p $DESTDIR/var/{lo{ck,g}/samba.d,spool/samba}
-mkdir -p $DESTDIR/usr{/lib/security,/share/swat/using_samba}
+mkdir -p $DESTDIR/usr/share/swat/using_samba
+mkdir -p $DESTDIR/lib/security
 mkdir -p $DESTDIR/%{LSBservedir}/{netlogon,profiles,Public}
-mkdir -p $DESTDIR/home/samba $DESTDIR%{EtcSamba}/codepages/src $DESTDIR/sbin
+mkdir -p $DESTDIR%{EtcSamba}/codepages/src $DESTDIR/sbin
 
 make -C source  install
 make LOGFILEBASE=/var/log/samba.d -C source install
@@ -288,20 +291,20 @@ install -m 755 source/nsswitch/libnss_wins.so $DESTDIR/lib/libnss_wins.so.2.0
 ln -s libnss_wins.so.2.0 $DESTDIR/lib/libnss_wins.so.2
 ln -s libnss_wins.so.2.0 $DESTDIR/lib/libnss_wins.so
 
-install -m 755 source/nsswitch/libnss_winbind.so $DESTDIR/lib/libnss_winbind.so.2.0
-# Make link for wins resolver
-ln -s libnss_winbind.so.2.0 $DESTDIR/lib/libnss_winbind.so.2
-ln -s libnss_winbind.so.2.0 $DESTDIR/lib/libnss_winbind.so
+install -m 755 source/nsswitch/libnss_winbind.so $DESTDIR/lib/libnss_winbind.so.2.0
+# # Make link for winbind resolver
+ln -s libnss_winbind.so.2.0 $DESTDIR/lib/libnss_winbind.so.2
+ln -s libnss_winbind.so.2.0 $DESTDIR/lib/libnss_winbind.so
 
-install -m 755 source/nsswitch/pam_winbind.so $DESTDIR/lib/security
+install -m 755 source/nsswitch/pam_winbind.so $DESTDIR/lib/security
 
-install -m 755 bin/wbinfo $DESTDIR/usr/bin
+# install -m 755 source/bin/wbinfo $DESTDIR/usr/bin
 
 cp -p $VVS/samba.init $DESTDIR/etc/rc.d/init.d/samba
 ln -s /etc/rc.d/init.d/samba $DESTDIR/usr/sbin
 
 cp -p $VVS/smb.conf.sample $DESTDIR%{EtcSamba}/smb.conf.sample
-#cp -p $VVS/smb.conf.sample $DESTDIR%{EtcSamba}/smb.conf
+cp -p $VVS/smb.conf $DESTDIR%{EtcSamba}/smb.conf
 cp -p $VVS/smbusers $DESTDIR%{EtcSamba}
 cp -p $VVS/smbprint $DESTDIR/usr/bin
 cp -p $VVS/smbadduser.perl $DESTDIR/usr/bin/smbadduser
@@ -424,4 +427,4 @@ lisa --inetd disable swat $1
 
 %ChangeLog
 * Mon Jan 01 1997 ...
-$Id: samba2.spec.tmpl,v 1.1.6.1 2001/01/16 15:48:35 jht Exp $
+$Id: samba2.spec.tmpl,v 1.1.6.2 2001/01/17 12:27:08 jht Exp $
index a00803ca18e8dce47182a3fa79c8947470342bc8..b91e989009b8a998b414de22e132fc739b61d45c 100644 (file)
@@ -15,7 +15,7 @@
 [global]
 
 # workgroup = NT-Domain-Name or Workgroup-Name
-   workgroup = WORKGROUP
+   workgroup = MYGROUP
 
 # server string is the equivalent of the NT Description field
    server string = Samba Server on Caldera OpenLinux
@@ -37,7 +37,7 @@
 # It should not be necessary to specify the print system type unless
 # it is non-standard. Currently supported print systems include:
 # bsd, sysv, plp, lprng, aix, hpux, qnx
-   printing = lprng
+   printing = cups
 
 # Uncomment this if you want a guest account, you must add this to /etc/passwd
 # otherwise the user "nobody" is used
 
 # this tells Samba to use a separate log file for each machine
 # that connects
-;  log file = /var/log/samba.d/smb.%m
+  log file = /var/log/samba.d/smb.%m
 
 # Put a capping on the size of the log files (in Kb).
-   max log size = 50
+   max log size = 200
 
 # Security mode. Most people will want user level security. See
 # security_level.txt for details.
 
 # Password Level allows matching of _n_ characters of the password for
 # all combinations of upper and lower case.
-;  password level = 8
-;  username level = 8
+  password level = 8
+  username level = 8
 
 # You may wish to use password encryption. Please read
 # ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.
 # Do not enable this option unless you have read those documents
-;  encrypt passwords = yes
-;  smb passwd file = /etc/samba.d/smbpasswd
+  encrypt passwords = yes
+  smb passwd file = /etc/samba.d/smbpasswd
 
 # The following are needed to allow password changing from Windows to
 # update the Linux sytsem password also.
@@ -78,7 +78,7 @@
 ;  passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
 
 # Unix users can map to different SMB User names
-;  username map = /etc/samba.d/smbusers
+  username map = /etc/samba.d/smbusers
 
 # Using the following line enables you to customise your configuration
 # on a per machine basis. The %m gets replaced with the netbios name
@@ -87,7 +87,7 @@
 
 # Most people will find that this option gives better performance.
 # See speed.txt and the manual pages for details
-   socket options = TCP_NODELAY 
+   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
 
 # Configure Samba to use multiple interfaces
 # If you have multiple network interfaces then you must list them
 
 # OS Level determines the precedence of this server in master browser
 # elections. The default value should be reasonable
-;   os level = 33
+   os level = 20
 
 # Domain Master specifies Samba to be the Domain Master Browser. This
 # allows Samba to collate browse lists between subnets. Don't use this
 # 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
+   logon path = \\%L\Profiles\%U
 
 # All NetBIOS names must be resolved to IP Addresses
 # 'Name Resolve Order' allows the named resolution mechanism to be specified
 ; (it is named 'public' as it is intended to be used by other sharing
 ; technologies (like NetWare, appletalk) too and may get disclosed due
 ; to weak protocols! -- hmm, are there less secure protocols than NFS? :)
-   path = %H/Public
+   path = %H/Samba
    valid users = %S
+   users = %S
    only user = yes
    browseable = no
    writable = yes
    create mask = 0750
 
 # Un-comment the following and create the netlogon directory for Domain Logons
-[netlogon]
-  comment = Samba Network Logon Service
-;   path = /home/samba/netlogon
-  guest ok = yes
-  writable = no
-  share modes = no
+[netlogon]
+  comment = Samba Network Logon Service
+  path = @samba_home@/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 = /home/samba/profiles
-;    browseable = no
-;    guest ok = yes
+[profiles]
+    path = @samba_home@/profiles
+    browseable = no
+    guest ok = yes
 
 
 # NOTE: If you have a BSD-style print system there is no need to 
 
 # A publicly accessible directory, but read only, except for people in
 # the "users" group
-;[public]
-;   comment = Public Stuff
-;   path = /home/public
-;   browseable = yes
-;   public = yes
+[public]
+   comment = Public Stuff
+   path = @samba_home@/public
+   browseable = yes
+   read only = yes
+   public = no
+   printable = no
 ;   writable = yes
-;   printable = no
 # access may be controlled by these options
 ;  read list = user1, user2, @group
 ;  valid users = user1, user3