aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authorswills <swills@FreeBSD.org>2015-09-17 22:52:27 +0800
committerswills <swills@FreeBSD.org>2015-09-17 22:52:27 +0800
commit9bd7d5d21ec55aea38fd8d53f19fe78c33847307 (patch)
tree85cd33b8d0b0810165dbf7816aa58da47c3e3c35 /databases
parentf4917dde9a7df62edc2efee02de17e0def7d4fdd (diff)
downloadfreebsd-ports-gnome-9bd7d5d21ec55aea38fd8d53f19fe78c33847307.tar.gz
freebsd-ports-gnome-9bd7d5d21ec55aea38fd8d53f19fe78c33847307.tar.zst
freebsd-ports-gnome-9bd7d5d21ec55aea38fd8d53f19fe78c33847307.zip
databases/memcached: don't assume group is same as user
Diffstat (limited to 'databases')
-rw-r--r--databases/memcached/Makefile2
-rw-r--r--databases/memcached/files/memcached.in3
2 files changed, 3 insertions, 2 deletions
diff --git a/databases/memcached/Makefile b/databases/memcached/Makefile
index d1ecc11cef84..3098061d17ad 100644
--- a/databases/memcached/Makefile
+++ b/databases/memcached/Makefile
@@ -3,7 +3,7 @@
PORTNAME= memcached
PORTVERSION= 1.4.24
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= databases
MASTER_SITES= http://www.memcached.org/files/ \
GOOGLE_CODE \
diff --git a/databases/memcached/files/memcached.in b/databases/memcached/files/memcached.in
index 15c8b7efb07b..26a74681bd42 100644
--- a/databases/memcached/files/memcached.in
+++ b/databases/memcached/files/memcached.in
@@ -105,7 +105,8 @@ memcached_poststop()
command=%%PREFIX%%/bin/memcached
command_args="-d -u ${memcached_user} -P ${pidfile} "
-start_precmd="install -d -o $memcached_user -g $memcached_user -m 755 $_piddir"
+memcached_group=`id -gn $memcached_user`
+start_precmd="install -d -o $memcached_user -g $memcached_group -m 755 $_piddir"
start_postcmd="${name}_poststart"
stop_postcmd="${name}_poststop"