diff --git a/net/minidlna/Makefile b/net/minidlna/Makefile index 84312f3d116d..909617bd413b 100644 --- a/net/minidlna/Makefile +++ b/net/minidlna/Makefile @@ -1,51 +1,51 @@ PORTNAME= minidlna PORTVERSION= 1.3.3 -PORTREVISION= 2 +PORTREVISION= 3 PORTEPOCH= 1 CATEGORIES= net multimedia www MAINTAINER= glebius@FreeBSD.org COMMENT= Media-server compatible with "Digital Life Network Alliance" WWW= https://minidlna.sourceforge.net LICENSE= GPLv2 LIB_DEPENDS= libsqlite3.so:databases/sqlite3 \ libexif.so:graphics/libexif \ libid3tag.so:audio/libid3tag \ libogg.so:audio/libogg \ libvorbis.so:audio/libvorbis \ libFLAC.so:audio/flac \ libavformat.so:multimedia/ffmpeg GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-db-path=/var/db/minidlna \ --with-os-url="http://www.FreeBSD.org" USES= autoreconf cpe gettext-tools iconv jpeg localbase CPE_VENDOR= minidlna_project USE_GITHUB= yes GH_ACCOUNT= glebius GH_TAGNAME= bb12721 PKGMESSAGE= ${WRKSRC}/pkg-message SUB_FILES+= pkg-message USE_RC_SUBR= minidlna SUB_LIST+= USER=${USERS} USERS= dlna GROUPS= dlna OPTIONS_DEFINE= DEBUG NLS OPTIONS_SUB= yes DEBUG_CFLAGS= -DDEBUG NLS_USES= gettext-runtime post-install: ${INSTALL_MAN} ${WRKSRC}/*.5 ${STAGEDIR}${PREFIX}/share/man/man5/ ${INSTALL_MAN} ${WRKSRC}/*.8 ${STAGEDIR}${PREFIX}/share/man/man8/ ${INSTALL_DATA} ${WRKSRC}/minidlna.conf ${STAGEDIR}${PREFIX}/etc/minidlna.conf.sample .include diff --git a/net/minidlna/files/minidlna.in b/net/minidlna/files/minidlna.in index 4329e9c00927..55e51d10ef36 100644 --- a/net/minidlna/files/minidlna.in +++ b/net/minidlna/files/minidlna.in @@ -1,31 +1,32 @@ #!/bin/sh # PROVIDE: minidlna # REQUIRE: LOGIN # KEYWORD: shutdown # # Add the following line to /etc/rc.conf[.local] to enable minidlna: # # minidlna_enable="YES" . /etc/rc.subr name=minidlna rcvar=minidlna_enable 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" start_precmd="install -d -o $minidlna_uid ${pidfile%/*} /var/db/minidlna" stop_postcmd="rm -f $pidfile" -extra_commands=rescan -rescan_cmd="$command -R -u $minidlna_uid -f %%PREFIX%%/etc/minidlna.conf" +extra_commands="rescan rebuild" +rescan_cmd="$command -r -u $minidlna_uid -f %%PREFIX%%/etc/minidlna.conf" +rebuild_cmd="$command -R -u $minidlna_uid -f %%PREFIX%%/etc/minidlna.conf" run_rc_command $1