aboutsummaryrefslogtreecommitdiff
path: root/databases/redis-devel
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2014-10-20 10:41:12 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2014-10-20 10:41:12 +0000
commit3edc030b9f4ebc1bbc06d185768d69e2c64ffbb8 (patch)
tree3d6314d033c4766fbdd388045ee572b66126c245 /databases/redis-devel
parent5e68477fdca3becc68abb61fa02acbf53b0f68df (diff)
downloadports-3edc030b9f4ebc1bbc06d185768d69e2c64ffbb8.tar.gz
ports-3edc030b9f4ebc1bbc06d185768d69e2c64ffbb8.zip
Notes
Diffstat (limited to 'databases/redis-devel')
-rw-r--r--databases/redis-devel/Makefile3
-rw-r--r--databases/redis-devel/pkg-plist20
2 files changed, 8 insertions, 15 deletions
diff --git a/databases/redis-devel/Makefile b/databases/redis-devel/Makefile
index 126f41ab5448..297cffa284cc 100644
--- a/databases/redis-devel/Makefile
+++ b/databases/redis-devel/Makefile
@@ -93,6 +93,9 @@ do-install:
${INSTALL_PROGRAM} ${BIN_FILES:C!^!${WRKSRC}/src/!} ${STAGEDIR}${PREFIX}/bin/
${INSTALL_DATA} ${WRKDIR}/redis.conf ${STAGEDIR}${PREFIX}/etc/redis.conf.sample
${INSTALL_DATA} ${WRKSRC}/sentinel.conf ${STAGEDIR}${PREFIX}/etc/sentinel.conf.sample
+ ${MKDIR} ${STAGEDIR}${REDIS_LOGDIR} \
+ ${STAGEDIR}${REDIS_DBDIR} \
+ ${STAGEDIR}${REDIS_RUNDIR}
regression-test: build
@cd ${WRKSRC} && ${TCLSH} tests/test_helper.tcl
diff --git a/databases/redis-devel/pkg-plist b/databases/redis-devel/pkg-plist
index 090c9e89523e..669df02bf189 100644
--- a/databases/redis-devel/pkg-plist
+++ b/databases/redis-devel/pkg-plist
@@ -4,18 +4,8 @@ bin/redis-check-dump
bin/redis-cli
bin/redis-sentinel
bin/redis-server
-@unexec if cmp -s %D/etc/redis.conf %D/etc/redis.conf.sample; then rm -f %D/etc/redis.conf; fi
-etc/redis.conf.sample
-@exec [ -f %B/redis.conf ] || cp %B/%f %B/redis.conf
-@unexec if cmp -s %D/etc/sentinel.conf %D/etc/sentinel.conf.sample; then rm -f %D/etc/sentinel.conf; fi
-etc/sentinel.conf.sample
-@exec [ -f %B/sentinel.conf ] || cp %B/%f %B/sentinel.conf
-@exec [ -d %%REDIS_DBDIR%% ] || mkdir -p %%REDIS_DBDIR%%
-@exec chown %%REDIS_USER%%:%%REDIS_GROUP%% %%REDIS_DBDIR%%
-@unexec if [ -z ${UPGRADE_PORT} ] ; then rmdir %%REDIS_DBDIR%% 2>/dev/null; fi
-@exec [ -d %%REDIS_LOGDIR%% ] || mkdir -p %%REDIS_LOGDIR%%
-@exec chown %%REDIS_USER%%:%%REDIS_GROUP%% %%REDIS_LOGDIR%%
-@unexec if [ -z ${UPGRADE_PORT} ] ; then rmdir %%REDIS_LOGDIR%% 2>/dev/null; fi
-@exec [ -d %%REDIS_RUNDIR%% ] || mkdir -p %%REDIS_RUNDIR%%
-@exec chown %%REDIS_USER%%:%%REDIS_GROUP%% %%REDIS_RUNDIR%%
-@unexec if [ -z ${UPGRADE_PORT} ] ; then rmdir %%REDIS_RUNDIR%% 2>/dev/null; fi
+@sample etc/redis.conf.sample
+@sample etc/sentinel.conf.sample
+@dir(%%REDIS_USER%%,%%REDIS_GROUP%%,) %%REDIS_DBDIR%%
+@dir(%%REDIS_USER%%,%%REDIS_GROUP%%,) %%REDIS_LOGDIR%%
+@dir(%%REDIS_USER%%,%%REDIS_GROUP%%,) %%REDIS_RUNDIR%%