samba: update to 3.6.24

This commit is contained in:
Sergei Reznikov
2014-06-24 14:49:56 +04:00
parent 97771effba
commit ffd2717241

View File

@@ -0,0 +1,149 @@
SUMMARY="Library bits of the samba network filesystem"
DESCRIPTION="
Samba is an Open Source/Free Software suite that provides seamless file and \
print services to SMB/CIFS clients. Samba is freely available, unlike other \
SMB/CIFS implementations, and allows for interoperability between Linux/Unix \
servers and Windows-based clients. Samba is software that can be run on a \
platform other than Microsoft Windows, for example, UNIX, Linux, IBM System \
390, OpenVMS, and other operating systems. Samba uses the TCP/IP protocol that \
is installed on the host server. When correctly configured, it allows that \
host to interact with a Microsoft Windows client or server as if it is a \
Windows file and print server."
HOMEPAGE="http://www.samba.org/"
COPYRIGHT="1992-2014 Anrew Tridgell and the Samba Team"
LICENSE="GNU GPL v3"
SRC_URI="http://ftp.samba.org/pub/samba/samba-3.6.24.tar.gz"
CHECKSUM_SHA256="11d0bd04b734731970259efc6692b8e749ff671a9b56d8cc5fa98c192ab234a7"
REVISION="1"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
DISABLE_SOURCE_PACKAGE=yes
PATCHES="samba-3.6.23.patchset"
GLOBAL_WRITABLE_FILES="
settings/samba directory keep-old
"
PROVIDES="
smbclient$secondaryArchSuffix = $portVersion
cmd:eventlogadm$secondaryArchSuffix = $portVersion
cmd:findsmb$secondaryArchSuffix = $portVersion
cmd:net$secondaryArchSuffix = $portVersion
cmd:nmbd$secondaryArchSuffix = $portVersion
cmd:nmblookup$secondaryArchSuffix = $portVersion
cmd:ntlm_auth$secondaryArchSuffix = $portVersion
cmd:pdbedit$secondaryArchSuffix = $portVersion
cmd:profiles$secondaryArchSuffix = $portVersion
cmd:rpcclient$secondaryArchSuffix = $portVersion
cmd:sharesec$secondaryArchSuffix = $portVersion
cmd:smbcacls$secondaryArchSuffix = $portVersion
cmd:smbclient$secondaryArchSuffix = $portVersion
cmd:smbcontrol$secondaryArchSuffix = $portVersion
cmd:smbcquotas$secondaryArchSuffix = $portVersion
cmd:smbd$secondaryArchSuffix = $portVersion
cmd:smbget$secondaryArchSuffix = $portVersion
cmd:smbpasswd$secondaryArchSuffix = $portVersion
cmd:smbspool$secondaryArchSuffix = $portVersion
cmd:smbstatus$secondaryArchSuffix = $portVersion
cmd:smbta_util$secondaryArchSuffix = $portVersion
cmd:smbtar$secondaryArchSuffix = $portVersion
cmd:smbtree$secondaryArchSuffix = $portVersion
# cmd:swat$secondaryArchSuffix = $portVersion
cmd:tdbbackup$secondaryArchSuffix = $portVersion
cmd:tdbdump$secondaryArchSuffix = $portVersion
cmd:tdbrestore$secondaryArchSuffix = $portVersion
cmd:testparm$secondaryArchSuffix = $portVersion
cmd:tdbtool$secondaryArchSuffix = $portVersion
lib:libnetapi$secondaryArchSuffix = $portVersion
lib:libsmbclient$secondaryArchSuffix = $portVersion
lib:libsmbsharemodes$secondaryArchSuffix = $portVersion
lib:libtalloc$secondaryArchSuffix = $portVersion
lib:libtdb$secondaryArchSuffix = $portVersion
lib:libtevent$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku >= $haikuVersion
lib:libiconv$secondaryArchSuffix
lib:libintl$secondaryArchSuffix
lib:libncurses$secondaryArchSuffix
lib:libreadline$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
BUILD_REQUIRES="
devel:libiconv$secondaryArchSuffix
devel:libintl$secondaryArchSuffix
devel:libncurses$secondaryArchSuffix
devel:libreadline$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel >= $haikuVersion
cmd:autoconf
cmd:libtoolize
cmd:perl
cmd:pkg_config
cmd:python
cmd:find
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
cmd:which
"
BUILD()
{
cd source3
sed -i 's/| \*qnx\*/| \*qnx\* | haiku\*/g' configure
LDFLAGS=-lnetwork runConfigure ./configure --disable-swat \
--with-configdir=$settingsDir/samba \
--with-privatedir=$settingsDir/samba \
--with-localedir=$dataRootDir/locale \
--with-logfilebase=sharedStateDir/log
sed -i 's/\modules\/CP850.o modules\/CP437.o//g' Makefile
sed -i 's/-lpthread//g' Makefile
sed -i 's/-lc//g' Makefile
make $jobArgs
}
INSTALL()
{
cd source3
make $jobArgs install
# move headers to the correct location
mkdir -p $(dirname $includeDir)
mv $prefix/include $includeDir/
# copy sample config file
cp ../testdata/samba3/smb.conf $settingsDir/samba
prepareInstalledDevelLibs libnetapi \
libsmbclient \
libsmbsharemodes \
libtalloc \
libtdb \
libtevent
packageEntries devel $developDir
}
PROVIDES_devel="
libsmbclient${secondaryArchSuffix}_devel = $portVersion
devel:libsmbclient$secondaryArchSuffix = $portVersion compat >= 0
devel:libnetapi$secondaryArchSuffix = $portVersion compat >= 0
devel:libsmbsharemodes$secondaryArchSuffix = $portVersion compat >= 0
devel:libtalloc$secondaryArchSuffix = $portVersion compat >= 2
devel:libtdb$secondaryArchSuffix = $portVersion compat >= 1
devel:libtevent$secondaryArchSuffix = $portVersion compat >= 0
"
REQUIRES_devel="
libsmbclient$secondaryArchSuffix == $portVersion base
"