mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
samba: add recipe for 3.6.23
This commit is contained in:
28
sys-fs/samba/patches/samba-3.6.23.patchset
Normal file
28
sys-fs/samba/patches/samba-3.6.23.patchset
Normal file
@@ -0,0 +1,28 @@
|
||||
From 942e8a9a2ca249e9121181217178cb3a3ff6fc19 Mon Sep 17 00:00:00 2001
|
||||
From: Sergei Reznikov <diver@gelios.net>
|
||||
Date: Fri, 11 Apr 2014 15:46:09 +0400
|
||||
Subject: applying patch samba-3.6.23.patch
|
||||
|
||||
|
||||
diff --git a/source3/utils/net_time.c b/source3/utils/net_time.c
|
||||
index 0edb58c..2b8d365 100644
|
||||
--- a/source3/utils/net_time.c
|
||||
+++ b/source3/utils/net_time.c
|
||||
@@ -105,6 +105,14 @@ int net_time_usage(struct net_context *c, int argc, const char **argv)
|
||||
return -1;
|
||||
}
|
||||
|
||||
+#ifdef __HAIKU__
|
||||
+int settimeofday(struct timeval *tv, struct timezone *tz)
|
||||
+{
|
||||
+set_real_time_clock(tv->tv_sec);
|
||||
+return(0);
|
||||
+}
|
||||
+#endif //__HAIKU__
|
||||
+
|
||||
/* try to set the system clock */
|
||||
static int net_time_set(struct net_context *c, int argc, const char **argv)
|
||||
{
|
||||
--
|
||||
1.8.3.4
|
||||
|
||||
151
sys-fs/samba/samba-3.6.23.recipe
Normal file
151
sys-fs/samba/samba-3.6.23.recipe
Normal file
@@ -0,0 +1,151 @@
|
||||
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.23.tar.gz"
|
||||
|
||||
CHECKSUM_SHA256="25bbfa81b9a26609a0be744240b63e1f5030bbcfab684cf7aea3b86ed0db2dd0"
|
||||
|
||||
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
|
||||
|
||||
packageEntries libsmbclient
|
||||
}
|
||||
|
||||
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
|
||||
"
|
||||
Reference in New Issue
Block a user