Last active
August 29, 2015 14:07
-
-
Save slowfranklin/7e8ff89182e90143cd6c to your computer and use it in GitHub Desktop.
Samba 4.1.12 Portfile and Patches
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/buildtools/wafadmin/Tools/cc.py b/buildtools/wafadmin/Tools/cc.py | |
index 903a1c5..083fd18 100644 | |
--- a/buildtools/wafadmin/Tools/cc.py | |
+++ b/buildtools/wafadmin/Tools/cc.py | |
@@ -88,7 +88,7 @@ def c_hook(self, node): | |
raise Utils.WafError('Have you forgotten to set the feature "cc" on %s?' % str(self)) | |
return task | |
-cc_str = '${CC} ${CCFLAGS} ${CPPFLAGS} ${_CCINCFLAGS} ${_CCDEFFLAGS} ${CC_SRC_F}${SRC} ${CC_TGT_F}${TGT}' | |
+cc_str = '${CC} ${CCFLAGS} ${_CCINCFLAGS} ${CPPFLAGS} ${_CCDEFFLAGS} ${CC_SRC_F}${SRC} ${CC_TGT_F}${TGT}' | |
cls = Task.simple_task_type('cc', cc_str, 'GREEN', ext_out='.o', ext_in='.c', shell=False) | |
cls.scan = ccroot.scan | |
cls.vars.append('CCDEPS') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/crypto/md5.h b/lib/crypto/md5.h | |
index edae27f..ec6128e 100644 | |
--- a/lib/crypto/md5.h | |
+++ b/lib/crypto/md5.h | |
@@ -18,6 +18,7 @@ | |
#elif defined(HAVE_COMMONCRYPTO_COMMONDIGEST_H) | |
#include <CommonCrypto/CommonDigest.h> | |
+#define MD5_CTX CC_MD5_CTX | |
#define MD5Init(c) CC_MD5_Init(c) | |
#define MD5Update(c,d,l) CC_MD5_Update(c,d,l) | |
#define MD5Final(m, c) CC_MD5_Final((unsigned char *)m,c) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $Id: Portfile 120565 2014-06-01 16:53:49Z cal@macports.org $ | |
PortSystem 1.0 | |
name samba4 | |
version 4.1.12 | |
revision 2 | |
categories net | |
platforms darwin | |
maintainers mww | |
license GPL-3 | |
description SMB/CIFS server and client, ALPHA release | |
long_description Samba is an software suite that provides seamless file \ | |
and print services to SMB/CIFS clients. \ | |
This is an ALPHA release! | |
homepage http://www.samba.org/ | |
master_sites http://ftp.samba.org/pub/samba/stable/ | |
distname samba-${version} | |
checksums md5 232016d7581a1ba11e991ec2674553c4 | |
depends_lib port:gnutls port:readline port:libiconv port:popt port:sqlite3 port:zlib port:gettext | |
patch.pre_args -p1 | |
patchfiles md5.patch \ | |
verbose-build.patch \ | |
cc.patch | |
configure.args --without-acl-support | |
destroot.target-append installman | |
post-destroot { | |
# add a postfix of '4' to all executables to avoid file conflicts | |
foreach dir {bin sbin} { | |
foreach bin [glob -directory "${destroot}${prefix}/${dir}" -type f *] { | |
file rename "${bin}" "${bin}4" | |
} | |
} | |
# ..and also to the manpages | |
foreach dir [glob -directory "${destroot}${prefix}/share/man" "man\[138\]"] { | |
foreach man [glob -directory "${dir}" -type f *] { | |
file rename "${man}" [string range "${man}" 0 [expr [string last . "${man}"] - 1]]4[string range "${man}" [string last . "${man}"] [string length "${man}"]] | |
} | |
} | |
} | |
livecheck.type regex | |
livecheck.url http://us4.samba.org/samba/ftp/samba4/?M=D | |
livecheck.regex samba-(\[0-9a-z.\]+)\\.tar\\.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Makefile b/Makefile | |
index 5f220fa..3dc19af 100644 | |
--- a/Makefile | |
+++ b/Makefile | |
@@ -5,7 +5,7 @@ WAF_BINARY=$(PYTHON) ./buildtools/bin/waf | |
WAF=WAF_MAKE=1 $(WAF_BINARY) | |
all: | |
- $(WAF) build | |
+ $(WAF) build -v | |
install: | |
$(WAF) install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment