[csw-devel] SF.net SVN: gar:[7058] csw/mgar/pkg/samba/trunk

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Sun Nov 1 02:48:16 CET 2009


Revision: 7058
          http://gar.svn.sourceforge.net/gar/?rev=7058&view=rev
Author:   bdwalton
Date:     2009-11-01 01:48:15 +0000 (Sun, 01 Nov 2009)

Log Message:
-----------
samba: store old notes from phil

Added Paths:
-----------
    csw/mgar/pkg/samba/trunk/legacy_notes/
    csw/mgar/pkg/samba/trunk/legacy_notes/BUILD.NOTES
    csw/mgar/pkg/samba/trunk/legacy_notes/Makefile.patch
    csw/mgar/pkg/samba/trunk/legacy_notes/makepkg.sh.diff
    csw/mgar/pkg/samba/trunk/legacy_notes/pkginfo.master

Added: csw/mgar/pkg/samba/trunk/legacy_notes/BUILD.NOTES
===================================================================
--- csw/mgar/pkg/samba/trunk/legacy_notes/BUILD.NOTES	                        (rev 0)
+++ csw/mgar/pkg/samba/trunk/legacy_notes/BUILD.NOTES	2009-11-01 01:48:15 UTC (rev 7058)
@@ -0,0 +1,55 @@
+INSTRUCTIONS (reasons for it lower down)
+
+# edit source/Makefile and change SHELL to /bin/bash
+# patch <~/pkgs/samba/Makefile.patch
+
+cd packaging/Solaris
+patch <~/pkgs/samba/makepkg.sh.diff
+
+# tweak pkginfo.master as desired, for test package
+bash ./makepkg.sh build
+
+You should then manually KILL IT, when it starts the compile phase.
+ Then cd ../../source, and edit out -z text from Makefile, and
+ do a make.
+
+ (Where does it come from!?!? It's not in Makefile.in ?!!)
+
+------------------------------------------------------------
+
+PROBLEMS:
+
+bombs out  after loong time, with error under
+ source/lib/ldb with <undefined> reference or something
+  from ldb_module.o
+
+both gcc and cc die.
+Apparently, it's because samba does "bad things" with 
+reallocation of what should be read-only code in shared libs.
+This makes it 'inefficient', by itself.
+  Unfortunately,"-z text" makes it a fatal flaw.. so, have to
+   manually remove that flag from Makefile, after configure!!
+http://docsun.cites.uiuc.edu/sun_docs/C/solaris_9/SUNWdev/LLM/p24.html
+
+Additionally, need to change SHELL=/bin/sh to SHELL=bin/bash in Makefile
+
+LD_OPTIONS='-R/opt/csw/lib/$ISALIST -R$ORIGIN/../lib -R/opt/csw/lib -L/opt/csw/lib'
+
+
+TO PACKAGE UP THEIR WAY:
+Need to patch paths, and use
+packaging/Solaris/makepkg.sh.csw
+
+Which also has to hack LD_LIBRARY_PATH because they script does naughty things
+
+plus, errors in final packaging:
+
+    no object for <lib/libsmbclient.a> found in root directory
+    no object for <lib/libmsrpc.so> found in root directory
+    no object for <lib/libmsrpc.a> found in root directory
+    no object for <include/libmsrpc.h> found in root directory
+    no object for <docs/*pdf> found in root directory
+# libsmbclient libmsrpc
+
+Late note: patch the sample smb.conf.default to have /var/opt
+instead of /usr/local/samba/var reference

Added: csw/mgar/pkg/samba/trunk/legacy_notes/Makefile.patch
===================================================================
--- csw/mgar/pkg/samba/trunk/legacy_notes/Makefile.patch	                        (rev 0)
+++ csw/mgar/pkg/samba/trunk/legacy_notes/Makefile.patch	2009-11-01 01:48:15 UTC (rev 7058)
@@ -0,0 +1,4 @@
+86c86
+< SHELL=/bin/sh
+---
+> SHELL=/bin/bash

Added: csw/mgar/pkg/samba/trunk/legacy_notes/makepkg.sh.diff
===================================================================
--- csw/mgar/pkg/samba/trunk/legacy_notes/makepkg.sh.diff	                        (rev 0)
+++ csw/mgar/pkg/samba/trunk/legacy_notes/makepkg.sh.diff	2009-11-01 01:48:15 UTC (rev 7058)
@@ -0,0 +1,152 @@
+*** makepkg.sh	Thu Sep 18 08:49:02 2008
+--- makepkg.sh.csw	Mon Oct 27 18:57:08 2008
+***************
+*** 4,12 ****
+  # Copyright (C) Gerald Carter    2004
+  #
+  # script for build solaris Samba package
+! #
+  
+! INSTALL_BASE=/opt/samba
+  
+  SBINPROGS="smbd nmbd winbindd swat"
+  BINPROGS="findsmb nmblookup eventlogadm pdbedit rpcclient smbclient smbcquotas smbspool smbtar tdbbackup testparm wbinfo net ntlm_auth profiles smbcacls smbcontrol smbpasswd smbstatus smbtree tdbdump"
+--- 4,19 ----
+  # Copyright (C) Gerald Carter    2004
+  #
+  # script for build solaris Samba package
+! # Modified slightly by Philip Brown, to adhere to CSW standards
+! #  http://www.opencsw.org/
+! 
+! # Even though the link flags are *NICE* and use -$ORIGIN/../lib, #
+! # the build/install scripts do wierd things, and call smbd from its SOURCE TREE location.
+! # which then breaks dynamic libs. arg. SO need to override only for install purposes.
+! LD_LIBRARY_PATH='$ORIGIN:$ORIGIN/../lib'
+! export LD_LIBRARY_PATH
+  
+! INSTALL_BASE=/opt/csw
+  
+  SBINPROGS="smbd nmbd winbindd swat"
+  BINPROGS="findsmb nmblookup eventlogadm pdbedit rpcclient smbclient smbcquotas smbspool smbtar tdbbackup testparm wbinfo net ntlm_auth profiles smbcacls smbcontrol smbpasswd smbstatus smbtree tdbdump"
+***************
+*** 50,62 ****
+  	
+  	echo "#\n# libsmbclient\n#"
+  	echo f none lib/libsmbclient.so 0755 root other
+! 	echo f none lib/libsmbclient.a 0755 root other
+  	echo f none include/libsmbclient.h 0644 root other
+  
+  	echo "#\n# libmsrpc\n#"
+! 	echo f none lib/libmsrpc.so 0755 root other
+! 	echo f none lib/libmsrpc.a 0755 root other
+! 	echo f none include/libmsrpc.h 0644 root other
+  
+  	if [ -f lib/smbwrapper.so -a -f bin/smbsh ]; then
+  		echo "#\n# smbwrapper\n#"
+--- 57,71 ----
+  	
+  	echo "#\n# libsmbclient\n#"
+  	echo f none lib/libsmbclient.so 0755 root other
+! #static lib doesnt get built. rather than try to "fix" this, dont bother. --CSW
+! #	echo f none lib/libsmbclient.a 0755 root other
+  	echo f none include/libsmbclient.h 0644 root other
+  
++ #libmsrpc doesnt seem to get built. so dont try to package it after all. --CSW
+  	echo "#\n# libmsrpc\n#"
+! #	echo f none lib/libmsrpc.so 0755 root other
+! #	echo f none lib/libmsrpc.a 0755 root other
+! #	echo f none include/libmsrpc.h 0644 root other
+  
+  	if [ -f lib/smbwrapper.so -a -f bin/smbsh ]; then
+  		echo "#\n# smbwrapper\n#"
+***************
+*** 76,92 ****
+  	echo "#\n# man pages \n#"
+  
+  	# Create directories for man page sections if nonexistent
+! 	cd man
+  	for i in 1 2 3 4 5 6 7 8 9; do
+  		manpages=`ls man$i 2>/dev/null`
+  		if [ $? -eq 0 ]; then
+! 			echo d none man/man${i} ? ? ?
+  			for manpage in $manpages; do
+! 				echo f none man/man${i}/${manpage} 0644 root other
+  			done
+  		fi
+  	done
+! 	cd ..
+  
+  	echo "#\n# SWAT \n#"
+  	list=`find swat -type d | grep -v "/.svn$"`
+--- 85,101 ----
+  	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
+  		manpages=`ls man$i 2>/dev/null`
+  		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
+! 	cd ../..
+  
+  	echo "#\n# SWAT \n#"
+  	list=`find swat -type d | grep -v "/.svn$"`
+***************
+*** 103,111 ****
+  		fi
+  	done
+  
+  	# Create entries for docs for the beginner
+! 	echo 's none docs/using_samba=$BASEDIR/swat/using_samba'
+! 	for file in docs/*pdf; do
+  		echo f none $file 0644 root other
+  	done
+  }
+--- 112,122 ----
+  		fi
+  	done
+  
++ 	mkdir share/doc
++ 	mv docs share/doc/samba
+  	# Create entries for docs for the beginner
+! 	echo 's none share/doc/samba/using_samba=$BASEDIR/swat/using_samba'
+! 	for file in share/doc/samba/*pdf; do
+  		echo f none $file 0644 root other
+  	done
+  }
+***************
+*** 128,141 ****
+  
+  cd $DISTR_BASE/source
+  
+! if test "x$1" = "xbuild" ]; 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-pam --with-acl-support \
+  		--with-quotas --with-included-popt \
+  	&& make
+--- 139,152 ----
+  
+  cd $DISTR_BASE/source
+  
+! if test "x$1" = "xbuild" ; then
+  	./configure --prefix=$INSTALL_BASE \
+! 		--localstatedir=/var/opt/csw/samba \
+  		--with-piddir=/var/run \
+  		--with-logfilebase=/var/log/samba \
+! 		--with-privatedir=/etc/opt/csw/samba/private \
+! 		--with-configdir=/etc/opt/csw/samba \
+! 		--with-lockdir=/var/opt/csw/samba \
+  		--with-pam --with-acl-support \
+  		--with-quotas --with-included-popt \
+  	&& make

Added: csw/mgar/pkg/samba/trunk/legacy_notes/pkginfo.master
===================================================================
--- csw/mgar/pkg/samba/trunk/legacy_notes/pkginfo.master	                        (rev 0)
+++ csw/mgar/pkg/samba/trunk/legacy_notes/pkginfo.master	2009-11-01 01:48:15 UTC (rev 7058)
@@ -0,0 +1,11 @@
+PKG=samba
+NAME=TEST PACKAGE FOR SAMBA 3.2.4 BINARIES
+ARCH=__ARCH__
+VERSION=__VERSION__
+CATEGORY=system
+EMAIL=phil at opencsw.org
+CLASSES=none
+INTONLY=1
+ISTATES="S s 1 2 3"
+RSTATES="S s 1 2 3"
+BASEDIR=__BASEDIR__


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list