svn commit: r321321 - in head/net/minidlna: . files
William Grzybowski
wg at FreeBSD.org
Wed Jun 19 20:34:58 UTC 2013
Author: wg
Date: Wed Jun 19 20:34:57 2013
New Revision: 321321
URL: http://svnweb.freebsd.org/changeset/ports/321321
Log:
net/minidlna: fix run dir for packages
- Use rc.d script to install /var/{db,run}/minidlna as precmd
- Fix order (rclint)
PR: ports/179487
Submitted by: crees
Approved by: culot / jpaetzel (mentors, implicit)
Modified:
head/net/minidlna/Makefile
head/net/minidlna/files/minidlna.in
Modified: head/net/minidlna/Makefile
==============================================================================
--- head/net/minidlna/Makefile Wed Jun 19 20:12:38 2013 (r321320)
+++ head/net/minidlna/Makefile Wed Jun 19 20:34:57 2013 (r321321)
@@ -49,9 +49,6 @@ post-install:
${INSTALL_MAN} ${MAN5:S,^,${WRKSRC}/,} ${MANPREFIX}/man/man5/
${INSTALL_MAN} ${MAN8:S,^,${WRKSRC}/,} ${MANPREFIX}/man/man8/
${INSTALL_DATA} ${WRKSRC}/minidlna.conf ${PREFIX}/etc/minidlna.conf.sample
- @${MKDIR} /var/run/minidlna
- @${MKDIR} /var/db/minidlna
- @${CHOWN} ${USERS} /var/db/minidlna
@${FMT} ${PKGMESSAGE}
.include <bsd.port.mk>
Modified: head/net/minidlna/files/minidlna.in
==============================================================================
--- head/net/minidlna/files/minidlna.in Wed Jun 19 20:12:38 2013 (r321320)
+++ head/net/minidlna/files/minidlna.in Wed Jun 19 20:34:57 2013 (r321321)
@@ -1,4 +1,5 @@
#!/bin/sh
+#
# $FreeBSD$
#
# PROVIDE: minidlna
@@ -13,21 +14,21 @@
name=minidlna
rcvar=minidlna_enable
-command=%%PREFIX%%/sbin/minidlnad
load_rc_config $name
minidlna_enable=${minidlna_enable-"NO"}
minidlna_uid=${minidlna_uid-"%%USER%%"}
+command=%%PREFIX%%/sbin/minidlnad
pidfile="/var/run/minidlna/minidlna.pid"
+command_args="-P $pidfile -u $minidlna_uid -f %%PREFIX%%/etc/minidlna.conf"
+required_dirs="/var/run/minidlna /var/db/minidlna"
-start_precmd="rm -f $pidfile"
-stop_postcmd=$start_precmd
+start_precmd="install -d -o $minidlna_uid ${pidfile%/*} /var/db/minidlna"
+stop_postcmd="rm -f $pidfile"
-command_args="-P $pidfile -u $minidlna_uid -f %%PREFIX%%/etc/minidlna.conf"
extra_commands=rescan
rescan_cmd="$command -R -u $minidlna_uid -f %%PREFIX%%/etc/minidlna.conf"
-required_dirs="/var/run/minidlna /var/db/minidlna"
run_rc_command $1
More information about the svn-ports-all
mailing list