Ticket #23405: openldap.Portfile.trac23405_v1.diff
File openldap.Portfile.trac23405_v1.diff, 1.1 KB (added by cgilmour@…, 15 years ago) |
---|
-
Portfile
old new 48 48 configure.args-append --enable-aci 49 49 } 50 50 51 variant no_root description {Install openldap as MacPorts install user.} { 52 startupitem.create no 53 } 54 51 55 pre-build { 52 56 system "cd ${workpath}/${worksrcdir} && \ 53 57 make depend" … … 55 59 56 60 pre-destroot { 57 61 # should be in pre-deploy.... 58 addgroup ldap 59 set gid [existsgroup ldap] 60 adduser ldap gid=${gid} 62 if { ! [variant_isset no_root] } { 63 addgroup ldap 64 set gid [existsgroup ldap] 65 adduser ldap gid=${gid} 66 } 61 67 } 62 68 63 69 post-destroot { 64 xinstall -d -g ldap -m 700 -o ldap \ 65 "${destroot}${prefix}/var/run/openldap-data" 70 if { ! [variant_isset no_root] } { 71 xinstall -d -g ldap -m 700 -o ldap \ 72 "${destroot}${prefix}/var/run/openldap-data" 73 } 66 74 # Delete the duplicate .conf files (leaves .conf.default) so upgrades won't overwrite .conf files. 67 75 file delete -force ${destroot}${prefix}/etc/openldap/slapd.conf 68 76 file delete -force ${destroot}${prefix}/etc/openldap/ldap.conf