1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | PortGroup muniversal 1.0 |
---|
5 | |
---|
6 | name samba3.5.6-jmk |
---|
7 | conflicts talloc |
---|
8 | version 3.5.6 |
---|
9 | revision 1 |
---|
10 | categories net |
---|
11 | platforms darwin |
---|
12 | maintainers bismark@foofus.net |
---|
13 | description SMB/CIFS implementation + fixed hash capture |
---|
14 | long_description Samba is an software suite that provides seamless file and \ |
---|
15 | print services to SMB/CIFS clients |
---|
16 | |
---|
17 | homepage http://www.samba.org/ |
---|
18 | master_sites http://us1.samba.org/samba/ftp/stable/ \ |
---|
19 | ftp://ftp.bit.nl/mirror/samba/stable/ \ |
---|
20 | ftp://de.samba.org/samba.org/stable/ \ |
---|
21 | ftp://us4.samba.org/pub/samba/stable/ \ |
---|
22 | ftp://ru.samba.org/pub/samba/stable/ |
---|
23 | distname samba-${version} |
---|
24 | checksums md5 bf6c09ea497a166df8bd672db1d8da8f \ |
---|
25 | sha1 5eb31e8d542d5b65867cfa5290f97783ea4628d3 \ |
---|
26 | rmd160 0993c0ac080fd873860e176f3efe0ba07d1e99e1 |
---|
27 | depends_lib port:libiconv port:openssl port:popt port:cyrus-sasl2 |
---|
28 | |
---|
29 | # Parallel bug filed upstream: https://bugzilla.samba.org/show_bug.cgi?id=6278 |
---|
30 | use_parallel_build no |
---|
31 | |
---|
32 | worksrcdir ${worksrcdir}/source3 |
---|
33 | |
---|
34 | patchfiles samba-3.5.6-jmk.diff |
---|
35 | |
---|
36 | configure.cflags-append "-fno-common" |
---|
37 | configure.cppflags-append "-DHAVE_STRUCT_TIMESPEC" |
---|
38 | configure.args --with-mandir=${prefix}/share/man \ |
---|
39 | --with-libdir=${prefix}/lib/${name} \ |
---|
40 | --with-privatedir=${prefix}/var/db/smb \ |
---|
41 | --with-configdir=${prefix}/etc/${name}/ \ |
---|
42 | --with-swatdir=${prefix}/share/${name}/swat \ |
---|
43 | --with-readline=${prefix} \ |
---|
44 | --with-krb5=/usr \ |
---|
45 | --without-included-popt \ |
---|
46 | --without-readline \ |
---|
47 | --enable-cups |
---|
48 | |
---|
49 | build.args-append EXTRALDFLAGS="-lintl" |
---|
50 | |
---|
51 | post-patch { |
---|
52 | reinplace "s|-bundle|-dynamiclib|g" ${worksrcpath}/configure |
---|
53 | |
---|
54 | ### BAND-AID: libs in subdirectories of ${prefix}/lib/samba3 will |
---|
55 | ### still have unresolved symbols since the makefile doesn't contain |
---|
56 | ### any information about install location at link time... |
---|
57 | reinplace "s|@\$\(SHLD\) \$\(LDSHFLAGS\)|@\$\(SHLD\) \$\(LDSHFLAGS\) -install_name @libdir@/`basename \$@`|g" \ |
---|
58 | ${worksrcpath}/Makefile.in |
---|
59 | } |
---|
60 | |
---|
61 | platform darwin 9 { |
---|
62 | patchfiles-append patch-source_smbd_utmp_c.diff |
---|
63 | } |
---|
64 | |
---|
65 | post-destroot { |
---|
66 | xinstall -m 755 -d ${destroot}${prefix}/etc/${name}/ \ |
---|
67 | ${destroot}${prefix}/var/db/smb/ |
---|
68 | xinstall -m 644 ${worksrcpath}/../examples/smb.conf.default \ |
---|
69 | ${destroot}${prefix}/etc/${name}/smb.conf.sample |
---|
70 | system "touch ${destroot}${prefix}/etc/${name}/lmhosts.sample" |
---|
71 | system "touch ${destroot}${prefix}/var/db/smb/secrets.tdb.sample" |
---|
72 | system "echo ${destroot} > ${destroot}${prefix}/etc/${name}/paths1" |
---|
73 | system "echo ${prefix} > ${destroot}${prefix}/etc/${name}/paths2" |
---|
74 | |
---|
75 | |
---|
76 | set changeline "\ |
---|
77 | -change bin/libnetapi.dylib.0 ${prefix}/lib/${name}/libnetapi.dylib \ |
---|
78 | -change bin/libsmbclient.dylib.0 ${prefix}/lib/${name}/libsmbclient.dylib \ |
---|
79 | -change bin/libsmbsharemodes.dylib.0 ${prefix}/lib/${name}/libsmbsharemodes.dylib \ |
---|
80 | -change bin/libtalloc.dylib.1 ${prefix}/lib/${name}/libtalloc.dylib \ |
---|
81 | -change bin/libtdb.dylib.1 ${prefix}/lib/${name}/libtdb.dylib \ |
---|
82 | -change bin/audit.dylib ${prefix}/lib/${name}/vfs/audit.dylib \ |
---|
83 | -change bin/cap.dylib ${prefix}/lib/${name}/vfs/cap.dylib \ |
---|
84 | -change bin/default_quota.dylib ${prefix}/lib/${name}/vfs/default_quota.dylib \ |
---|
85 | -change bin/expand_msdfs.dylib ${prefix}/lib/${name}/vfs/expand_msdfs.dylib \ |
---|
86 | -change bin/extd_audit.dylib ${prefix}/lib/${name}/vfs/extd_audit.dylib \ |
---|
87 | -change bin/fake_perms.dylib ${prefix}/lib/${name}/vfs/fake_perms.dylib \ |
---|
88 | -change bin/full_audit.dylib ${prefix}/lib/${name}/vfs/full_audit.dylib \ |
---|
89 | -change bin/netatalk.dylib ${prefix}/lib/${name}/vfs/netatalk.dylib \ |
---|
90 | -change bin/readahead.dylib ${prefix}/lib/${name}/vfs/readahead.dylib \ |
---|
91 | -change bin/readonly.dylib ${prefix}/lib/${name}/vfs/readonly.dylib \ |
---|
92 | -change bin/recycle.dylib ${prefix}/lib/${name}/vfs/recycle.dylib \ |
---|
93 | -change bin/shadow_copy.dylib ${prefix}/lib/${name}/vfs/shadow_copy.dylib \ |
---|
94 | -change bin/shadow_copy2.dylib ${prefix}/lib/${name}/vfs/shadow_copy2.dylib \ |
---|
95 | -change bin/streams_xattr.dylib ${prefix}/lib/${name}/vfs/streams_xattr.dylib \ |
---|
96 | -change bin/xattr_tdb.dylib ${prefix}/lib/${name}/vfs/xattr_tdb.dylib" |
---|
97 | |
---|
98 | system "install_name_tool ${changeline} -id ${prefix}/lib/${name}/libnetapi.dylib ${destroot}${prefix}/lib/${name}/libnetapi.dylib" |
---|
99 | system "install_name_tool ${changeline} -id ${prefix}/lib/${name}/libsmbclient.dylib ${destroot}${prefix}/lib/${name}/libsmbclient.dylib" |
---|
100 | system "install_name_tool ${changeline} -id ${prefix}/lib/${name}/libsmbsharemodes.dylib ${destroot}${prefix}/lib/${name}/libsmbsharemodes.dylib" |
---|
101 | system "install_name_tool ${changeline} -id ${prefix}/lib/${name}/libtalloc.dylib ${destroot}${prefix}/lib/${name}/libtalloc.dylib" |
---|
102 | system "install_name_tool ${changeline} -id ${prefix}/lib/${name}/libtdb.dylib ${destroot}${prefix}/lib/${name}/libtdb.dylib" |
---|
103 | system "install_name_tool ${changeline} -id ${prefix}/lib/${name}/vfs/audit.dylib ${destroot}${prefix}/lib/${name}/vfs/audit.dylib" |
---|
104 | system "install_name_tool ${changeline} -id ${prefix}/lib/${name}/vfs/cap.dylib ${destroot}${prefix}/lib/${name}/vfs/cap.dylib" |
---|
105 | system "install_name_tool ${changeline} -id ${prefix}/lib/${name}/vfs/default_quota.dylib ${destroot}${prefix}/lib/${name}/vfs/default_quota.dylib" |
---|
106 | system "install_name_tool ${changeline} -id ${prefix}/lib/${name}/vfs/expand_msdfs.dylib ${destroot}${prefix}/lib/${name}/vfs/expand_msdfs.dylib" |
---|
107 | system "install_name_tool ${changeline} -id ${prefix}/lib/${name}/vfs/extd_audit.dylib ${destroot}${prefix}/lib/${name}/vfs/extd_audit.dylib" |
---|
108 | system "install_name_tool ${changeline} -id ${prefix}/lib/${name}/vfs/fake_perms.dylib ${destroot}${prefix}/lib/${name}/vfs/fake_perms.dylib" |
---|
109 | system "install_name_tool ${changeline} -id ${prefix}/lib/${name}/vfs/full_audit.dylib ${destroot}${prefix}/lib/${name}/vfs/full_audit.dylib" |
---|
110 | system "install_name_tool ${changeline} -id ${prefix}/lib/${name}/vfs/netatalk.dylib ${destroot}${prefix}/lib/${name}/vfs/netatalk.dylib" |
---|
111 | system "install_name_tool ${changeline} -id ${prefix}/lib/${name}/vfs/readahead.dylib ${destroot}${prefix}/lib/${name}/vfs/readahead.dylib" |
---|
112 | system "install_name_tool ${changeline} -id ${prefix}/lib/${name}/vfs/readonly.dylib ${destroot}${prefix}/lib/${name}/vfs/readonly.dylib" |
---|
113 | system "install_name_tool ${changeline} -id ${prefix}/lib/${name}/vfs/recycle.dylib ${destroot}${prefix}/lib/${name}/vfs/recycle.dylib" |
---|
114 | system "install_name_tool ${changeline} -id ${prefix}/lib/${name}/vfs/shadow_copy.dylib ${destroot}${prefix}/lib/${name}/vfs/shadow_copy.dylib" |
---|
115 | system "install_name_tool ${changeline} -id ${prefix}/lib/${name}/vfs/shadow_copy2.dylib ${destroot}${prefix}/lib/${name}/vfs/shadow_copy2.dylib" |
---|
116 | system "install_name_tool ${changeline} -id ${prefix}/lib/${name}/vfs/streams_xattr.dylib ${destroot}${prefix}/lib/${name}/vfs/streams_xattr.dylib" |
---|
117 | system "install_name_tool ${changeline} -id ${prefix}/lib/${name}/vfs/xattr_tdb.dylib ${destroot}${prefix}/lib/${name}/vfs/xattr_tdb.dylib" |
---|
118 | system "install_name_tool ${changeline} ${destroot}${prefix}/bin/eventlogadm" |
---|
119 | system "install_name_tool ${changeline} ${destroot}${prefix}/bin/ldbadd" |
---|
120 | system "install_name_tool ${changeline} ${destroot}${prefix}/bin/ldbdel" |
---|
121 | system "install_name_tool ${changeline} ${destroot}${prefix}/bin/ldbedit" |
---|
122 | system "install_name_tool ${changeline} ${destroot}${prefix}/bin/ldbmodify" |
---|
123 | system "install_name_tool ${changeline} ${destroot}${prefix}/bin/ldbsearch" |
---|
124 | system "install_name_tool ${changeline} ${destroot}${prefix}/bin/net" |
---|
125 | system "install_name_tool ${changeline} ${destroot}${prefix}/bin/nmblookup" |
---|
126 | system "install_name_tool ${changeline} ${destroot}${prefix}/bin/ntlm_auth" |
---|
127 | system "install_name_tool ${changeline} ${destroot}${prefix}/bin/pdbedit" |
---|
128 | system "install_name_tool ${changeline} ${destroot}${prefix}/bin/profiles" |
---|
129 | system "install_name_tool ${changeline} ${destroot}${prefix}/bin/rpcclient" |
---|
130 | system "install_name_tool ${changeline} ${destroot}${prefix}/bin/smbcacls" |
---|
131 | system "install_name_tool ${changeline} ${destroot}${prefix}/bin/smbclient" |
---|
132 | system "install_name_tool ${changeline} ${destroot}${prefix}/bin/smbcontrol" |
---|
133 | system "install_name_tool ${changeline} ${destroot}${prefix}/bin/smbcquotas" |
---|
134 | system "install_name_tool ${changeline} ${destroot}${prefix}/bin/smbget" |
---|
135 | system "install_name_tool ${changeline} ${destroot}${prefix}/bin/smbpasswd" |
---|
136 | system "install_name_tool ${changeline} ${destroot}${prefix}/bin/smbspool" |
---|
137 | system "install_name_tool ${changeline} ${destroot}${prefix}/bin/smbstatus" |
---|
138 | system "install_name_tool ${changeline} ${destroot}${prefix}/bin/smbtree" |
---|
139 | system "install_name_tool ${changeline} ${destroot}${prefix}/bin/tdbbackup" |
---|
140 | system "install_name_tool ${changeline} ${destroot}${prefix}/bin/tdbdump" |
---|
141 | system "install_name_tool ${changeline} ${destroot}${prefix}/bin/tdbtool" |
---|
142 | system "install_name_tool ${changeline} ${destroot}${prefix}/bin/testparm" |
---|
143 | system "install_name_tool ${changeline} ${destroot}${prefix}/sbin/nmbd" |
---|
144 | system "install_name_tool ${changeline} ${destroot}${prefix}/sbin/smbd" |
---|
145 | } |
---|
146 | |
---|
147 | livecheck.type regex |
---|
148 | livecheck.url http://us5.samba.org/samba/ftp/?M=D |
---|
149 | livecheck.regex samba-(3\\.2\[0-9a-z.\]+)\\.tar\\.gz |
---|
150 | |
---|