1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

audio/firefly: support stage

- Use @sample

Approved by:	portmgr (stage blanket)
This commit is contained in:
William Grzybowski 2014-06-27 15:55:12 +00:00
parent 95ea7cdc22
commit f1da4c1d3e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=359557
2 changed files with 15 additions and 20 deletions

View File

@ -23,7 +23,6 @@ LIB_DEPENDS= libogg.so:${PORTSDIR}/audio/libogg \
libid3tag.so:${PORTSDIR}/audio/libid3tag
GNU_CONFIGURE= yes
NO_STAGE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
@ -37,7 +36,10 @@ USE_RC_SUBR= mt-daapd
USERS= ${DAAPD_USER}
GROUPS= ${DAAPD_GROUP}
PLIST_SUB+= DAAPD_DBDIR=${DAAPD_DBDIR}
PLIST_SUB+= DAAPD_DBDIR=${DAAPD_DBDIR} \
DAAPD_USER=${DAAPD_USER} \
DAAPD_GROUP=${DAAPD_GROUP} \
DATADIR=${DATADIR}
USE_LDCONFIG= yes
@ -66,25 +68,17 @@ post-patch:
post-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in README AUTHORS COPYING CREDITS \
ChangeLog INSTALL NEWS TODO
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor
.endif
@[ -f ${PREFIX}/etc/mt-daapd.conf.sample ] || \
${INSTALL_DATA} ${WRKSRC}/contrib/mt-daapd.conf \
${PREFIX}/etc/mt-daapd.conf.sample
@${MKDIR} ${DAAPD_DBDIR}
@${MKDIR} ${DATADIR}
@${CHMOD} 0755 ${DAAPD_DBDIR}
@${CHMOD} 0755 ${DATADIR}
@${CHOWN} ${DAAPD_USER}:${DAAPD_GROUP} ${DAAPD_DBDIR}
@${CHOWN} ${DAAPD_USER}:${DAAPD_GROUP} ${DATADIR}
@${ECHO_MSG} "This port installs a sample configuration file in"
@${ECHO_MSG} "${LOCALBASE}/etc/mt-daapd.conf.sample"
@${ECHO_MSG} "You probably should move/copy this file to mt-daapd.conf"
@${ECHO_MSG} "and customize to fit your needs."
${INSTALL_DATA} ${WRKSRC}/contrib/mt-daapd.conf \
${STAGEDIR}${PREFIX}/etc/mt-daapd.conf.sample
@${MKDIR} ${STAGEDIR}${DAAPD_DBDIR}
@${MKDIR} ${STAGEDIR}${DATADIR}
@${CHMOD} 0755 ${STAGEDIR}${DAAPD_DBDIR}
@${CHMOD} 0755 ${STAGEDIR}${DATADIR}
.include <bsd.port.mk>

View File

@ -1,7 +1,6 @@
@unexec if cmp -s %D/etc/mt-daapd.conf.sample %D/etc/mt-daapd.conf; then rm -f %D/etc/mt-daapd.conf; fi
@sample etc/mt-daapd.conf.sample
bin/mt-daapd-ssc.sh
bin/wavstreamer
etc/mt-daapd.conf.sample
lib/mt-daapd/plugins/out-daap.a
lib/mt-daapd/plugins/out-daap.la
lib/mt-daapd/plugins/out-daap.so
@ -67,6 +66,8 @@ share/mt-daapd/admin-root/xiph-license.html
share/mt-daapd/admin-root/xiph-license.txt
share/mt-daapd/admin-root/zlib-license.html
share/mt-daapd/admin-root/zlib-license.txt
@exec chown %%DAAPD_USER%%:%%DAAPD_GROUP%% %%DAAPD_DBDIR%%
@exec chown %%DAAPD_USER%%:%%DAAPD_GROUP%% %%DATADIR%%
@dirrmtry share/mt-daapd/admin-root/lib-js/script.aculo.us
@dirrmtry share/mt-daapd/admin-root/lib-js
@dirrmtry share/mt-daapd/admin-root