diff options
author | delphij <delphij@FreeBSD.org> | 2007-05-28 14:04:24 +0800 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2007-05-28 14:04:24 +0800 |
commit | 0595bbe06e76628f70279e5f0bbfb6de9890d65d (patch) | |
tree | 561988728dcffdba3432a45089580284dd7731ca /net/openldap23-server | |
parent | 15a552477d2e95764b62b08f858adc96e4681979 (diff) | |
download | freebsd-ports-gnome-0595bbe06e76628f70279e5f0bbfb6de9890d65d.tar.gz freebsd-ports-gnome-0595bbe06e76628f70279e5f0bbfb6de9890d65d.tar.zst freebsd-ports-gnome-0595bbe06e76628f70279e5f0bbfb6de9890d65d.zip |
Use more concise expressions for splitting the user:group string.
Submitted by: Ulrich Spoerlein <uspoerlein@gmail.com>
PR: ports/111617
Diffstat (limited to 'net/openldap23-server')
-rw-r--r-- | net/openldap23-server/Makefile | 2 | ||||
-rw-r--r-- | net/openldap23-server/files/slapd.sh.in | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/net/openldap23-server/Makefile b/net/openldap23-server/Makefile index 06bd561bca2b..147ffac4b967 100644 --- a/net/openldap23-server/Makefile +++ b/net/openldap23-server/Makefile @@ -39,7 +39,7 @@ BROKEN= incompatible OpenLDAP version: ${WANT_OPENLDAP_VER} .endif PORTREVISION_CLIENT= 0 -PORTREVISION_SERVER= 0 +PORTREVISION_SERVER= 1 .if !defined(CLIENT_ONLY) OPTIONS= SASL "With (Cyrus) SASL2 support" on \ diff --git a/net/openldap23-server/files/slapd.sh.in b/net/openldap23-server/files/slapd.sh.in index a663f674af2c..9bf2bf82401e 100644 --- a/net/openldap23-server/files/slapd.sh.in +++ b/net/openldap23-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" |