ports/158115: databases/redis does not create a neccesary dir when installed
Oleg Ginzburg
olevole at olevole.ru
Tue Jun 21 12:50:11 UTC 2011
>Number: 158115
>Category: ports
>Synopsis: databases/redis does not create a neccesary dir when installed
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Jun 21 12:50:11 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Oleg Ginzburg
>Release:
>Organization:
>Environment:
>Description:
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
diff -ruN redis.bak/Makefile redis/Makefile
--- redis.bak/Makefile 2011-06-21 15:59:26.000000000 +0400
+++ redis/Makefile 2011-06-21 16:34:25.000000000 +0400
@@ -47,4 +47,9 @@
${INSTALL_PROGRAM} ${BIN_FILES:C!^!${WRKSRC}/src/!} ${PREFIX}/bin/
${INSTALL_DATA} ${WRKDIR}/redis.conf ${PREFIX}/etc/redis.conf.sample
+post-install:
+.for f in ${REDIS_LOGDIR} ${REDIS_RUNDIR} ${REDIS_DBDIR}
+ [ -d ${f} ] || ${MKDIR} ${f} && ${CHOWN} ${USERS}:${GROUPS} ${f}
+.endfor
+
.include <bsd.port.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list