Ticket #32636: Porfile-3.6.3.diff
File Porfile-3.6.3.diff, 13.3 KB (added by ranauei@…, 13 years ago) |
---|
-
Portfile
old new 5 5 6 6 name samba3 7 7 conflicts talloc 8 version 3.2.15 9 revision 2 8 version 3.6.3 10 9 categories net 11 10 platforms darwin 12 11 maintainers mww openmaintainer 13 12 license GPL-3 14 13 description SMB/CIFS implementation 15 14 long_description Samba is an software suite that provides seamless file and \ 16 15 print services to SMB/CIFS clients 17 16 18 17 homepage http://www.samba.org/ 19 master_sites http://us1.samba.org/samba/ftp/stable/ \ 20 ftp://ftp.bit.nl/mirror/samba/stable/ \ 21 ftp://de.samba.org/samba.org/stable/ \ 22 ftp://us4.samba.org/pub/samba/stable/ \ 23 ftp://ru.samba.org/pub/samba/stable/ 18 master_sites http://mirror.kent.ac.uk/sites/ftp.samba.org/ \ 19 http://us1.samba.org/samba/ftp/stable/ \ 20 ftp://ftp.bit.nl/mirror/samba/stable/ \ 21 ftp://de.samba.org/samba.org/stable/ \ 22 ftp://us4.samba.org/pub/samba/stable/ \ 23 ftp://ru.samba.org/pub/samba/stable/ 24 24 distname samba-${version} 25 checksums md5 5a3bcc4927c9643b9f42970d0815b18f \ 26 sha1 52240aa9f2f5584f1978d788024fa2d6cb208e56 \ 27 rmd160 0046aeaf5b91c34bbc9a387c714caf41ca84d1ae 28 depends_lib port:libiconv port:openssl port:popt port:cyrus-sasl2 29 30 # Parallel bug filed upstream: https://bugzilla.samba.org/show_bug.cgi?id=6278 31 use_parallel_build no 32 33 worksrcdir ${worksrcdir}/source 34 35 configure.cflags-append "-fno-common" 36 configure.cppflags-append "-DHAVE_STRUCT_TIMESPEC" 37 configure.args --with-mandir=${prefix}/share/man \ 38 --with-libdir=${prefix}/lib/${name} \ 39 --with-privatedir=${prefix}/var/db/smb \ 40 --with-configdir=${prefix}/etc/samba3/ \ 41 --with-swatdir=${prefix}/share/${name}/swat \ 42 --with-readline=${prefix} \ 43 --with-krb5=/usr \ 44 --without-included-popt \ 45 --without-readline \ 46 --enable-cups 47 48 post-patch { 49 reinplace "s|-bundle|-dynamiclib|g" ${worksrcpath}/configure 50 51 ### BAND-AID: libs in subdirectories of ${prefix}/lib/samba3 will 52 ### still have unresolved symbols since the makefile doesn't contain 53 ### any information about install location at link time... 54 reinplace "s|@\$\(SHLD\) \$\(LDSHFLAGS\)|@\$\(SHLD\) \$\(LDSHFLAGS\) -install_name @libdir@/`basename \$@`|g" \ 55 ${worksrcpath}/Makefile.in 56 } 25 worksrcdir ${worksrcdir}/source3 26 27 checksums sha256 67e2409f2d5e4d5cb947c95f583498105038857b84cc73c08dacd4e2cbc66074 \ 28 rmd160 fd04fd5897f0f34f257c504de911e1ab34ff3e25 29 30 depends_lib port:openssl \ 31 port:popt \ 32 port:cyrus-sasl2 33 34 configure.ldflags-append -lintl 35 configure.args --libdir=${prefix}/lib/${name} \ 36 --with-privatedir=${prefix}/var/db/smb \ 37 --with-configdir=${prefix}/etc/${name} \ 38 --with-swatdir=${prefix}/share/${name}/swat \ 39 --with-readline=${prefix} \ 40 --without-included-popt \ 41 --enable-cups 57 42 58 43 platform darwin 9 { 59 44 patchfiles-append patch-source_smbd_utmp_c.diff 60 45 } 61 46 62 47 post-destroot { 63 xinstall -m 755 -d ${destroot}${prefix}/etc/ samba3/ \48 xinstall -m 755 -d ${destroot}${prefix}/etc/${name}/ \ 64 49 ${destroot}${prefix}/var/db/smb/ 65 50 xinstall -m 644 ${worksrcpath}/../examples/smb.conf.default \ 66 ${destroot}${prefix}/etc/ samba3/smb.conf.sample67 system "touch ${destroot}${prefix}/etc/ samba3/lmhosts.sample"51 ${destroot}${prefix}/etc/${name}/smb.conf.sample 52 system "touch ${destroot}${prefix}/etc/${name}/lmhosts.sample" 68 53 system "touch ${destroot}${prefix}/var/db/smb/secrets.tdb.sample" 69 54 70 55 set changeline "\ 71 56 -change bin/libnetapi.dylib.0 ${prefix}/lib/samba3/libnetapi.dylib \ 72 57 -change bin/libsmbclient.dylib.0 ${prefix}/lib/samba3/libsmbclient.dylib \ 73 58 -change bin/libsmbsharemodes.dylib.0 ${prefix}/lib/samba3/libsmbsharemodes.dylib \ 74 -change bin/libtalloc.dylib. 1${prefix}/lib/samba3/libtalloc.dylib \59 -change bin/libtalloc.dylib.2 ${prefix}/lib/samba3/libtalloc.dylib \ 75 60 -change bin/libtdb.dylib.1 ${prefix}/lib/samba3/libtdb.dylib \ 61 -change bin/script.dylib ${prefix}/lib/samba3/auth/script.dylib \ 62 -change bin/CP437.dylib ${prefix}/lib/samba3/charset/CP437.dylib \ 63 -change bin/CP850.dylib ${prefix}/lib/samba3/charset/CP850.dylib \ 64 -change bin/macosxfs.dylib ${prefix}/lib/samba3/charset/macosxfs.dylib \ 65 -change bin/autorid.dylib ${prefix}/lib/samba3/idmap/autorid.dylib \ 66 -change bin/pam_smbpass.dylib ${prefix}/lib/samba3/security/pam_smbpass.dylib \ 67 -change bin/acl_tdb.dylib ${prefix}/lib/samba3/vfs/acl_tdb.dylib \ 68 -change bin/acl_xattr.dylib ${prefix}/lib/samba3/vfs/acl_xattr.dylib \ 76 69 -change bin/audit.dylib ${prefix}/lib/samba3/vfs/audit.dylib \ 77 70 -change bin/cap.dylib ${prefix}/lib/samba3/vfs/cap.dylib \ 71 -change bin/catia.dylib ${prefix}/lib/samba3/vfs/catia.dylib \ 72 -change bin/crossrename.dylib ${prefix}/lib/samba3/vfs/crossrename.dylib \ 78 73 -change bin/default_quota.dylib ${prefix}/lib/samba3/vfs/default_quota.dylib \ 79 74 -change bin/expand_msdfs.dylib ${prefix}/lib/samba3/vfs/expand_msdfs.dylib \ 80 75 -change bin/extd_audit.dylib ${prefix}/lib/samba3/vfs/extd_audit.dylib \ 81 76 -change bin/fake_perms.dylib ${prefix}/lib/samba3/vfs/fake_perms.dylib \ 82 77 -change bin/full_audit.dylib ${prefix}/lib/samba3/vfs/full_audit.dylib \ 78 -change bin/linux_xfs_sgid.dylib ${prefix}/lib/samba3/vfs/linux_xfs_sgid.dylib \ 83 79 -change bin/netatalk.dylib ${prefix}/lib/samba3/vfs/netatalk.dylib \ 80 -change bin/preopen.dylib ${prefix}/lib/samba3/vfs/preopen.dylib \ 84 81 -change bin/readahead.dylib ${prefix}/lib/samba3/vfs/readahead.dylib \ 85 82 -change bin/readonly.dylib ${prefix}/lib/samba3/vfs/readonly.dylib \ 86 83 -change bin/recycle.dylib ${prefix}/lib/samba3/vfs/recycle.dylib \ 84 -change bin/scannedonly.dylib ${prefix}/lib/samba3/vfs/scannedonly.dylib \ 87 85 -change bin/shadow_copy.dylib ${prefix}/lib/samba3/vfs/shadow_copy.dylib \ 88 86 -change bin/shadow_copy2.dylib ${prefix}/lib/samba3/vfs/shadow_copy2.dylib \ 87 -change bin/smb_traffic_analyzer.dylib ${prefix}/lib/samba3/vfs/smb_traffic_analyzer.dylib \ 88 -change bin/streams_depot.dylib ${prefix}/lib/samba3/vfs/streams_depot.dylib \ 89 89 -change bin/streams_xattr.dylib ${prefix}/lib/samba3/vfs/streams_xattr.dylib \ 90 -change bin/time_audit.dylib ${prefix}/lib/samba3/vfs/time_audit.dylib \ 90 91 -change bin/xattr_tdb.dylib ${prefix}/lib/samba3/vfs/xattr_tdb.dylib" 91 92 92 93 system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/libnetapi.dylib ${destroot}${prefix}/lib/samba3/libnetapi.dylib" … … 94 95 system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/libsmbsharemodes.dylib ${destroot}${prefix}/lib/samba3/libsmbsharemodes.dylib" 95 96 system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/libtalloc.dylib ${destroot}${prefix}/lib/samba3/libtalloc.dylib" 96 97 system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/libtdb.dylib ${destroot}${prefix}/lib/samba3/libtdb.dylib" 98 system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/auth/script.dylib ${destroot}${prefix}/lib/samba3/auth/script.dylib" 99 system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/charset/CP437.dylib ${destroot}${prefix}/lib/samba3/charset/CP437.dylib" 100 system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/charset/CP850.dylib ${destroot}${prefix}/lib/samba3/charset/CP850.dylib" 101 system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/charset/macosxfs.dylib ${destroot}${prefix}/lib/samba3/charset/macosxfs.dylib" 102 system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/idmap/autorid.dylib ${destroot}${prefix}/lib/samba3/idmap/autorid.dylib" 103 system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/security/pam_smbpass.dylib ${destroot}${prefix}/lib/samba3/security/pam_smbpass.dylib" 104 system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/vfs/acl_tdb.dylib ${destroot}${prefix}/lib/samba3/vfs/acl_tdb.dylib" 105 system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/vfs/acl_xattr.dylib ${destroot}${prefix}/lib/samba3/vfs/acl_xattr.dylib" 97 106 system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/vfs/audit.dylib ${destroot}${prefix}/lib/samba3/vfs/audit.dylib" 98 107 system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/vfs/cap.dylib ${destroot}${prefix}/lib/samba3/vfs/cap.dylib" 108 system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/vfs/catia.dylib ${destroot}${prefix}/lib/samba3/vfs/catia.dylib" 109 system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/vfs/crossrename.dylib ${destroot}${prefix}/lib/samba3/vfs/crossrename.dylib" 99 110 system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/vfs/default_quota.dylib ${destroot}${prefix}/lib/samba3/vfs/default_quota.dylib" 100 111 system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/vfs/expand_msdfs.dylib ${destroot}${prefix}/lib/samba3/vfs/expand_msdfs.dylib" 101 112 system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/vfs/extd_audit.dylib ${destroot}${prefix}/lib/samba3/vfs/extd_audit.dylib" 102 113 system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/vfs/fake_perms.dylib ${destroot}${prefix}/lib/samba3/vfs/fake_perms.dylib" 103 114 system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/vfs/full_audit.dylib ${destroot}${prefix}/lib/samba3/vfs/full_audit.dylib" 115 system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/vfs/linux_xfs_sgid.dylib ${destroot}${prefix}/lib/samba3/vfs/linux_xfs_sgid.dylib" 104 116 system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/vfs/netatalk.dylib ${destroot}${prefix}/lib/samba3/vfs/netatalk.dylib" 117 system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/vfs/preopen.dylib ${destroot}${prefix}/lib/samba3/vfs/preopen.dylib" 105 118 system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/vfs/readahead.dylib ${destroot}${prefix}/lib/samba3/vfs/readahead.dylib" 106 119 system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/vfs/readonly.dylib ${destroot}${prefix}/lib/samba3/vfs/readonly.dylib" 107 120 system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/vfs/recycle.dylib ${destroot}${prefix}/lib/samba3/vfs/recycle.dylib" 121 system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/vfs/scannedonly.dylib ${destroot}${prefix}/lib/samba3/vfs/scannedonly.dylib" 108 122 system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/vfs/shadow_copy.dylib ${destroot}${prefix}/lib/samba3/vfs/shadow_copy.dylib" 109 123 system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/vfs/shadow_copy2.dylib ${destroot}${prefix}/lib/samba3/vfs/shadow_copy2.dylib" 124 system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/vfs/smb_traffic_analyzer.dylib ${destroot}${prefix}/lib/samba3/vfs/smb_traffic_analyzer.dylib" 125 system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/vfs/streams_depot.dylib ${destroot}${prefix}/lib/samba3/vfs/streams_depot.dylib" 110 126 system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/vfs/streams_xattr.dylib ${destroot}${prefix}/lib/samba3/vfs/streams_xattr.dylib" 127 system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/vfs/time_audit.dylib ${destroot}${prefix}/lib/samba3/vfs/time_audit.dylib" 111 128 system "install_name_tool ${changeline} -id ${prefix}/lib/samba3/vfs/xattr_tdb.dylib ${destroot}${prefix}/lib/samba3/vfs/xattr_tdb.dylib" 112 129 system "install_name_tool ${changeline} ${destroot}${prefix}/bin/eventlogadm" 113 system "install_name_tool ${changeline} ${destroot}${prefix}/bin/ldbadd"114 system "install_name_tool ${changeline} ${destroot}${prefix}/bin/ldbdel"115 system "install_name_tool ${changeline} ${destroot}${prefix}/bin/ldbedit"116 system "install_name_tool ${changeline} ${destroot}${prefix}/bin/ldbmodify"117 system "install_name_tool ${changeline} ${destroot}${prefix}/bin/ldbsearch"118 130 system "install_name_tool ${changeline} ${destroot}${prefix}/bin/net" 119 131 system "install_name_tool ${changeline} ${destroot}${prefix}/bin/nmblookup" 120 132 system "install_name_tool ${changeline} ${destroot}${prefix}/bin/ntlm_auth" 121 133 system "install_name_tool ${changeline} ${destroot}${prefix}/bin/pdbedit" 122 134 system "install_name_tool ${changeline} ${destroot}${prefix}/bin/profiles" 123 135 system "install_name_tool ${changeline} ${destroot}${prefix}/bin/rpcclient" 136 system "install_name_tool ${changeline} ${destroot}${prefix}/bin/sharesec" 124 137 system "install_name_tool ${changeline} ${destroot}${prefix}/bin/smbcacls" 125 138 system "install_name_tool ${changeline} ${destroot}${prefix}/bin/smbclient" 126 139 system "install_name_tool ${changeline} ${destroot}${prefix}/bin/smbcontrol" … … 129 142 system "install_name_tool ${changeline} ${destroot}${prefix}/bin/smbpasswd" 130 143 system "install_name_tool ${changeline} ${destroot}${prefix}/bin/smbspool" 131 144 system "install_name_tool ${changeline} ${destroot}${prefix}/bin/smbstatus" 145 system "install_name_tool ${changeline} ${destroot}${prefix}/bin/smbta-util" 132 146 system "install_name_tool ${changeline} ${destroot}${prefix}/bin/smbtree" 133 147 system "install_name_tool ${changeline} ${destroot}${prefix}/bin/tdbbackup" 134 148 system "install_name_tool ${changeline} ${destroot}${prefix}/bin/tdbdump" 149 system "install_name_tool ${changeline} ${destroot}${prefix}/bin/tdbrestore" 135 150 system "install_name_tool ${changeline} ${destroot}${prefix}/bin/tdbtool" 136 151 system "install_name_tool ${changeline} ${destroot}${prefix}/bin/testparm" 137 152 system "install_name_tool ${changeline} ${destroot}${prefix}/sbin/nmbd" … … 141 156 142 157 livecheck.type regex 143 158 livecheck.url http://us5.samba.org/samba/ftp/?M=D 144 livecheck.regex samba-(3\\.2\[0-9a-z.\]+)\\.tar\\.gz 145 159 livecheck.regex samba-(3\\.6\[0-9a-z.\]+)\\.tar\\.gz