diff options
author | Xin LI <delphij@FreeBSD.org> | 2007-05-28 06:04:24 +0000 |
---|---|---|
committer | Xin LI <delphij@FreeBSD.org> | 2007-05-28 06:04:24 +0000 |
commit | ce3071d82375f4df9dc86c1c0feff88e4cbc6efc (patch) | |
tree | 8075619e4b1f71e412fc041b54e7ffb070833b6c /net/openldap24-server | |
parent | 9bf54d60d70e220705a72ade978aa32ce1034b73 (diff) | |
download | ports-ce3071d82375f4df9dc86c1c0feff88e4cbc6efc.tar.gz ports-ce3071d82375f4df9dc86c1c0feff88e4cbc6efc.zip |
Notes
Diffstat (limited to 'net/openldap24-server')
-rw-r--r-- | net/openldap24-server/Makefile | 2 | ||||
-rw-r--r-- | net/openldap24-server/files/slapd.sh.in | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/net/openldap24-server/Makefile b/net/openldap24-server/Makefile index 3bf813acbc5c..9d4d778c3186 100644 --- a/net/openldap24-server/Makefile +++ b/net/openldap24-server/Makefile @@ -39,7 +39,7 @@ BROKEN= incompatible OpenLDAP version: ${WANT_OPENLDAP_VER} .endif PORTREVISION_CLIENT= 0 -PORTREVISION_SERVER= 1 +PORTREVISION_SERVER= 2 .if !defined(CLIENT_ONLY) OPTIONS= SASL "With (Cyrus) SASL2 support" on \ diff --git a/net/openldap24-server/files/slapd.sh.in b/net/openldap24-server/files/slapd.sh.in index a663f674af2c..9bf2bf82401e 100644 --- a/net/openldap24-server/files/slapd.sh.in +++ b/net/openldap24-server/files/slapd.sh.in @@ -51,8 +51,8 @@ start_precmd() chown -RL "$slapd_owner" "%%DATABASEDIR%%" chown "$slapd_owner" "%%PREFIX%%/etc/openldap/slapd.conf" - slapd_ownername=`expr //"$slapd_owner" : //'\([^:]*\)'` - slapd_groupname=`expr //"$slapd_owner" : //'.*:\([^:]*\)'` + slapd_ownername="${slapd_owner%:*}" + slapd_groupname="${slapd_owner#*:}" if [ -n "$slapd_ownername" ]; then rc_flags="$rc_flags -u $slapd_ownername" |