source: trunk/dports/net/samba3/Portfile

Last change on this file was 152905, checked in by ryandesign@…, 12 months ago

samba3: fix whitespace

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 13.6 KB
Line 
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# $Id: Portfile 152905 2016-09-20 12:12:50Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           conflicts_build 1.0
6
7name                samba3
8conflicts           talloc
9version             3.6.25
10categories          net
11platforms           darwin
12maintainers         nomaintainer
13license             GPL-3
14description         SMB/CIFS implementation
15long_description    Samba is an software suite that provides seamless file and \
16                    print services to SMB/CIFS clients. \
17                    OpenSSL based options are disabled by default \
18                    due to licensing issues.
19
20homepage            http://www.samba.org/
21master_sites        http://mirror.kent.ac.uk/sites/ftp.samba.org/ \
22                    http://us1.samba.org/samba/ftp/stable/ \
23                    ftp://ftp.bit.nl/mirror/samba/stable/ \
24                    ftp://de.samba.org/samba.org/stable/ \
25                    ftp://us4.samba.org/pub/samba/stable/ \
26                    ftp://ru.samba.org/pub/samba/stable/
27distname            samba-${version}
28worksrcdir          ${worksrcdir}/source3
29
30checksums           rmd160  4df673ddac2a3fc8590820c8651e10f0dac90281 \
31                    sha256  8f2c8a7f2bd89b0dfd228ed917815852f7c625b2bc0936304ac3ed63aaf83751
32
33depends_lib         port:popt port:zlib port:readline port:ncurses
34
35conflicts_build     samba4
36
37configure.ldflags-append -lintl
38configure.args      --libdir=${prefix}/lib/${name} \
39                    --with-privatedir=${prefix}/var/db/smb \
40                    --with-configdir=${prefix}/etc/${name} \
41                    --with-swatdir=${prefix}/share/${name}/swat \
42                    --with-readline=${prefix} \
43                    --without-included-popt \
44                    --disable-avahi \
45                    --enable-cups \
46                    --without-ldap \
47                    --without-krb5
48
49patchfiles          patch-Makefile.in.diff \
50                    patch-configure.diff \
51                    patch-source_pkgconfig_all_pc_in.diff
52
53variant kerberos description "Enable Kerberos support" {
54    configure.args-delete --without-krb5
55    depends_lib-append port:kerberos5
56}
57
58variant openldap description "Enable OpenLDAP support" {
59    configure.args-delete --without-ldap
60    depends_lib-append port:openldap
61}
62
63platform darwin 9 {
64    patchfiles-append   patch-source_smbd_utmp_c.diff
65}
66
67post-destroot {
68    xinstall -m 755 -d ${destroot}${prefix}/etc/${name}/ \
69        ${destroot}${prefix}/var/db/smb/
70    xinstall -m 644 ${worksrcpath}/../examples/smb.conf.default \
71        ${destroot}${prefix}/etc/${name}/smb.conf.sample
72    xinstall -d -m 755 ${destroot}${prefix}/lib/pkgconfig
73    copy {*}[glob ${worksrcpath}/pkgconfig/*.pc] ${destroot}${prefix}/lib/pkgconfig
74    system "touch ${destroot}${prefix}/etc/${name}/lmhosts.sample"
75    system "touch ${destroot}${prefix}/var/db/smb/secrets.tdb.sample"
76
77    set changeline "\
78        -change bin/libnetapi.dylib.0 ${prefix}/lib/samba3/libnetapi.dylib \
79        -change bin/libsmbclient.dylib.0 ${prefix}/lib/samba3/libsmbclient.dylib \
80        -change bin/libsmbsharemodes.dylib.0 ${prefix}/lib/samba3/libsmbsharemodes.dylib \
81        -change bin/libtalloc.dylib.2 ${prefix}/lib/samba3/libtalloc.dylib \
82        -change bin/libtevent.dylib.0 ${prefix}/lib/samba3/libtevent.dylib \
83        -change bin/libtdb.dylib.1 ${prefix}/lib/samba3/libtdb.dylib \
84        -change bin/script.dylib ${prefix}/lib/samba3/auth/script.dylib \
85        -change bin/CP437.dylib ${prefix}/lib/samba3/charset/CP437.dylib \
86        -change bin/CP850.dylib ${prefix}/lib/samba3/charset/CP850.dylib \
87        -change bin/macosxfs.dylib ${prefix}/lib/samba3/charset/macosxfs.dylib \
88        -change bin/autorid.dylib ${prefix}/lib/samba3/idmap/autorid.dylib \
89        -change bin/pam_smbpass.dylib ${prefix}/lib/samba3/security/pam_smbpass.dylib \
90        -change bin/acl_tdb.dylib ${prefix}/lib/samba3/vfs/acl_tdb.dylib \
91        -change bin/acl_xattr.dylib ${prefix}/lib/samba3/vfs/acl_xattr.dylib \
92        -change bin/audit.dylib ${prefix}/lib/samba3/vfs/audit.dylib \
93        -change bin/cap.dylib ${prefix}/lib/samba3/vfs/cap.dylib \
94        -change bin/catia.dylib ${prefix}/lib/samba3/vfs/catia.dylib \
95        -change bin/crossrename.dylib ${prefix}/lib/samba3/vfs/crossrename.dylib \
96        -change bin/default_quota.dylib ${prefix}/lib/samba3/vfs/default_quota.dylib \
97        -change bin/expand_msdfs.dylib ${prefix}/lib/samba3/vfs/expand_msdfs.dylib \
98        -change bin/extd_audit.dylib ${prefix}/lib/samba3/vfs/extd_audit.dylib \
99        -change bin/fake_perms.dylib ${prefix}/lib/samba3/vfs/fake_perms.dylib \
100        -change bin/full_audit.dylib ${prefix}/lib/samba3/vfs/full_audit.dylib \
101        -change bin/linux_xfs_sgid.dylib ${prefix}/lib/samba3/vfs/linux_xfs_sgid.dylib \
102        -change bin/netatalk.dylib ${prefix}/lib/samba3/vfs/netatalk.dylib \
103        -change bin/preopen.dylib ${prefix}/lib/samba3/vfs/preopen.dylib \
104        -change bin/readahead.dylib ${prefix}/lib/samba3/vfs/readahead.dylib \
105        -change bin/readonly.dylib ${prefix}/lib/samba3/vfs/readonly.dylib \
106        -change bin/recycle.dylib ${prefix}/lib/samba3/vfs/recycle.dylib \
107        -change bin/scannedonly.dylib ${prefix}/lib/samba3/vfs/scannedonly.dylib \
108        -change bin/shadow_copy.dylib ${prefix}/lib/samba3/vfs/shadow_copy.dylib \
109        -change bin/shadow_copy2.dylib ${prefix}/lib/samba3/vfs/shadow_copy2.dylib \
110        -change bin/smb_traffic_analyzer.dylib ${prefix}/lib/samba3/vfs/smb_traffic_analyzer.dylib \
111        -change bin/streams_depot.dylib ${prefix}/lib/samba3/vfs/streams_depot.dylib \
112        -change bin/streams_xattr.dylib ${prefix}/lib/samba3/vfs/streams_xattr.dylib \
113        -change bin/time_audit.dylib ${prefix}/lib/samba3/vfs/time_audit.dylib \
114        -change bin/xattr_tdb.dylib ${prefix}/lib/samba3/vfs/xattr_tdb.dylib"
115
116    system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/libnetapi.dylib ${destroot}${prefix}/lib/samba3/libnetapi.dylib"
117    system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/libsmbclient.dylib ${destroot}${prefix}/lib/samba3/libsmbclient.dylib"
118    system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/libsmbsharemodes.dylib ${destroot}${prefix}/lib/samba3/libsmbsharemodes.dylib"
119    system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/libtalloc.dylib ${destroot}${prefix}/lib/samba3/libtalloc.dylib"
120    system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/libtevent.dylib ${destroot}${prefix}/lib/samba3/libtevent.dylib"
121    system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/libtdb.dylib ${destroot}${prefix}/lib/samba3/libtdb.dylib"
122    system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/auth/script.dylib ${destroot}${prefix}/lib/samba3/auth/script.dylib"
123    system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/charset/CP437.dylib ${destroot}${prefix}/lib/samba3/charset/CP437.dylib"
124    system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/charset/CP850.dylib ${destroot}${prefix}/lib/samba3/charset/CP850.dylib"
125    system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/charset/macosxfs.dylib ${destroot}${prefix}/lib/samba3/charset/macosxfs.dylib"
126    system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/idmap/autorid.dylib ${destroot}${prefix}/lib/samba3/idmap/autorid.dylib"
127    system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/security/pam_smbpass.dylib ${destroot}${prefix}/lib/samba3/security/pam_smbpass.dylib"
128    system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/vfs/acl_tdb.dylib ${destroot}${prefix}/lib/samba3/vfs/acl_tdb.dylib"
129    system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/vfs/acl_xattr.dylib ${destroot}${prefix}/lib/samba3/vfs/acl_xattr.dylib"
130    system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/vfs/audit.dylib ${destroot}${prefix}/lib/samba3/vfs/audit.dylib"
131    system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/vfs/cap.dylib ${destroot}${prefix}/lib/samba3/vfs/cap.dylib"
132    system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/vfs/catia.dylib ${destroot}${prefix}/lib/samba3/vfs/catia.dylib"
133    system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/vfs/crossrename.dylib ${destroot}${prefix}/lib/samba3/vfs/crossrename.dylib"
134    system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/vfs/default_quota.dylib ${destroot}${prefix}/lib/samba3/vfs/default_quota.dylib"
135    if {[file exists ${destroot}${prefix}/lib/samba3/vfs/dirsort.dylib]} {
136        system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/vfs/dirsort.dylib ${destroot}${prefix}/lib/samba3/vfs/dirsort.dylib"
137    }
138    system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/vfs/expand_msdfs.dylib ${destroot}${prefix}/lib/samba3/vfs/expand_msdfs.dylib"
139    system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/vfs/extd_audit.dylib ${destroot}${prefix}/lib/samba3/vfs/extd_audit.dylib"
140    system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/vfs/fake_perms.dylib ${destroot}${prefix}/lib/samba3/vfs/fake_perms.dylib"
141    system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/vfs/full_audit.dylib ${destroot}${prefix}/lib/samba3/vfs/full_audit.dylib"
142    system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/vfs/linux_xfs_sgid.dylib ${destroot}${prefix}/lib/samba3/vfs/linux_xfs_sgid.dylib"
143    system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/vfs/netatalk.dylib ${destroot}${prefix}/lib/samba3/vfs/netatalk.dylib"
144    system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/vfs/preopen.dylib ${destroot}${prefix}/lib/samba3/vfs/preopen.dylib"
145    system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/vfs/readahead.dylib ${destroot}${prefix}/lib/samba3/vfs/readahead.dylib"
146    system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/vfs/readonly.dylib ${destroot}${prefix}/lib/samba3/vfs/readonly.dylib"
147    system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/vfs/recycle.dylib ${destroot}${prefix}/lib/samba3/vfs/recycle.dylib"
148    system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/vfs/scannedonly.dylib ${destroot}${prefix}/lib/samba3/vfs/scannedonly.dylib"
149    system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/vfs/shadow_copy.dylib ${destroot}${prefix}/lib/samba3/vfs/shadow_copy.dylib"
150    system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/vfs/shadow_copy2.dylib ${destroot}${prefix}/lib/samba3/vfs/shadow_copy2.dylib"
151    system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/vfs/smb_traffic_analyzer.dylib ${destroot}${prefix}/lib/samba3/vfs/smb_traffic_analyzer.dylib"
152    system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/vfs/streams_depot.dylib ${destroot}${prefix}/lib/samba3/vfs/streams_depot.dylib"
153    system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/vfs/streams_xattr.dylib ${destroot}${prefix}/lib/samba3/vfs/streams_xattr.dylib"
154    if {[file exists ${destroot}${prefix}/lib/samba3/vfs/syncops.dylib]} {
155        system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/vfs/syncops.dylib ${destroot}${prefix}/lib/samba3/vfs/syncops.dylib"
156    }
157    system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/vfs/time_audit.dylib ${destroot}${prefix}/lib/samba3/vfs/time_audit.dylib"
158    system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/vfs/xattr_tdb.dylib ${destroot}${prefix}/lib/samba3/vfs/xattr_tdb.dylib"
159    system "install_name_tool ${changeline} ${destroot}${prefix}/bin/eventlogadm"
160    system "install_name_tool ${changeline} ${destroot}${prefix}/bin/net"
161    system "install_name_tool ${changeline} ${destroot}${prefix}/bin/nmblookup"
162    system "install_name_tool ${changeline} ${destroot}${prefix}/bin/ntlm_auth"
163    system "install_name_tool ${changeline} ${destroot}${prefix}/bin/pdbedit"
164    system "install_name_tool ${changeline} ${destroot}${prefix}/bin/profiles"
165    system "install_name_tool ${changeline} ${destroot}${prefix}/bin/rpcclient"
166    system "install_name_tool ${changeline} ${destroot}${prefix}/bin/sharesec"
167    system "install_name_tool ${changeline} ${destroot}${prefix}/bin/smbcacls"
168    system "install_name_tool ${changeline} ${destroot}${prefix}/bin/smbclient"
169    system "install_name_tool ${changeline} ${destroot}${prefix}/bin/smbcontrol"
170    system "install_name_tool ${changeline} ${destroot}${prefix}/bin/smbcquotas"
171    system "install_name_tool ${changeline} ${destroot}${prefix}/bin/smbget"
172    system "install_name_tool ${changeline} ${destroot}${prefix}/bin/smbpasswd"
173    system "install_name_tool ${changeline} ${destroot}${prefix}/bin/smbspool"
174    system "install_name_tool ${changeline} ${destroot}${prefix}/bin/smbstatus"
175    system "install_name_tool ${changeline} ${destroot}${prefix}/bin/smbta-util"
176    system "install_name_tool ${changeline} ${destroot}${prefix}/bin/smbtree"
177    system "install_name_tool ${changeline} ${destroot}${prefix}/bin/tdbbackup"
178    system "install_name_tool ${changeline} ${destroot}${prefix}/bin/tdbdump"
179    system "install_name_tool ${changeline} ${destroot}${prefix}/bin/tdbrestore"
180    system "install_name_tool ${changeline} ${destroot}${prefix}/bin/tdbtool"
181    system "install_name_tool ${changeline} ${destroot}${prefix}/bin/testparm"
182    system "install_name_tool ${changeline} ${destroot}${prefix}/sbin/nmbd"
183    system "install_name_tool ${changeline} ${destroot}${prefix}/sbin/smbd"
184    system "install_name_tool ${changeline} ${destroot}${prefix}/sbin/swat"
185}
186
187livecheck.type      regex
188livecheck.url       http://us5.samba.org/samba/ftp/?M=D
189livecheck.regex     samba-(3\\.6\[0-9a-z.\]+)\\.tar\\.gz
Note: See TracBrowser for help on using the repository browser.