Ticket #11659: Portfile.diff
File Portfile.diff, 2.5 KB (added by markd@…, 18 years ago) |
---|
-
Portfile
old new 2 2 3 3 PortSystem 1.0 4 4 name openldap 5 version 2. 2.285 version 2.3.34 6 6 categories databases 7 7 maintainers landonf@macports.org bchesneau@mac.com 8 8 description OpenLDAP Software 9 9 long_description OpenLDAP Software is an open source implementation \ 10 10 of the Lightweight Directory Access Protocol. 11 11 12 platforms darwin freebsd12 platforms darwin 13 13 homepage http://www.openldap.org/ 14 14 master_sites ftp://ftp.OpenLDAP.org/pub/OpenLDAP/openldap-release/ \ 15 15 http://www.openldap.org/software/download/OpenLDAP/openldap-release/ \ 16 16 ftp://ftp.nl.uu.net/pub/unix/db/openldap/openldap-release/ 17 17 distfiles ${name}-${version}.tgz 18 checksums md5 b51db7328430b9cbe527696da726f1fb18 checksums md5 143eeb6e3c163e5f52d8e744b43a5960 19 19 20 20 depends_lib port:db4 \ 21 21 port:perl5.8 \ 22 22 port:cyrus-sasl2 \ 23 23 port:openssl 24 24 25 depends_run path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup26 27 25 patchfiles patch-ltmain 28 26 29 27 configure.env LDFLAGS="-L${prefix}/lib" \ 30 CPPFLAGS="-I${prefix}/include -I${prefix}/include/db4 -I /usr/include/openssl -DBIND_8_COMPAT" \28 CPPFLAGS="-I${prefix}/include -I${prefix}/include/db4 -I${prefix}/include/openssl -DBIND_8_COMPAT" \ 31 29 LANG=C 32 30 33 31 configure.args --mandir=${prefix}/share/man \ 34 --localstatedir=${prefix}/var /run\32 --localstatedir=${prefix}/var \ 35 33 --with-cyrus-sasl \ 36 34 --with-tls \ 35 --enable-crypt \ 37 36 --enable-wrappers 38 37 38 startupitem.create yes 39 startupitem.name slapd 40 startupitem.init "PID=${prefix}/var/run/slapd.pid" 41 startupitem.start "${prefix}/libexec/slapd -u ldap -f ${prefix}/etc/openldap/slapd.conf" 42 startupitem.stop "\[ -r \${PID} \] && kill \$(cat \${PID})" 43 39 44 platform darwin 6 { 40 depends_lib-append lib:libdl:dlcompat45 depends_lib-append port:dlcompat 41 46 } 42 47 43 48 variant ipv6 { 44 49 configure.args-append --enable-ipv6 45 50 } 46 51 52 variant aci { 53 configure.args-append --enable-aci 54 } 55 47 56 pre-configure { 48 57 if { ![variant_isset ipv6]} { 49 58 configure.args-append --disable-ipv6 … … 66 75 xinstall -d -g ldap -m 700 -o ldap \ 67 76 "${destroot}${prefix}/var/run/openldap-data" 68 77 #since post-deploy doesn't exist 69 xinstall -d -m 755 -o root "${destroot}${prefix}/etc/rc.d"70 xinstall -m 755 -o root "${portpath}/files/slapd.sh" \71 "${destroot}${prefix}/etc/rc.d"72 reinplace "s|__PREFIX|${prefix}|g" \73 ${destroot}${prefix}/etc/rc.d/slapd.sh74 78 } 75 79 76 80 test.run yes