2012-12-09 20:43:48 +01:00
|
|
|
# Created by: Mikhail Teterin <mi@aldan.algebra.com>
|
2011-02-28 01:15:23 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= serviio
|
2020-05-04 10:12:12 +02:00
|
|
|
PORTVERSION= 2.1
|
2018-05-16 22:19:06 +02:00
|
|
|
#PORTREVISION= 1
|
2011-02-28 01:15:23 +01:00
|
|
|
CATEGORIES= net multimedia java www
|
|
|
|
MASTER_SITES= http://download.serviio.org/releases/
|
|
|
|
EXTRACT_SUFX= -linux.tar.gz
|
|
|
|
|
2012-12-09 20:43:48 +01:00
|
|
|
MAINTAINER= netchild@FreeBSD.org
|
2011-02-28 01:15:23 +01:00
|
|
|
COMMENT= Transcoding DLNA-server implemented in Java
|
|
|
|
|
2016-04-01 16:16:16 +02:00
|
|
|
RUN_DEPENDS= ffmpeg:multimedia/ffmpeg
|
2011-02-28 01:15:23 +01:00
|
|
|
|
|
|
|
NO_BUILD= yes
|
|
|
|
USE_JAVA= yes
|
2015-02-06 09:40:33 +01:00
|
|
|
JAVA_VERSION= 1.8
|
2014-05-26 11:24:47 +02:00
|
|
|
USES= dos2unix
|
2014-05-27 18:00:36 +02:00
|
|
|
DOS2UNIX_GLOB= derby.properties
|
2011-02-28 01:15:23 +01:00
|
|
|
|
|
|
|
PKGMESSAGE= ${WRKSRC}/pkg-message
|
2016-02-27 22:16:16 +01:00
|
|
|
SUB_FILES+= pkg-message serviiod
|
2011-02-28 01:15:23 +01:00
|
|
|
USE_RC_SUBR= serviio
|
|
|
|
SUB_LIST+= USER=${USERS}
|
|
|
|
RESTRICTED= License does not allow selling
|
2013-04-29 10:57:12 +02:00
|
|
|
EXTRACT_AFTER_ARGS=--exclude junit.jar \
|
2012-06-05 04:44:56 +02:00
|
|
|
--exclude org.restlet.ext.net.jar
|
2011-02-28 01:15:23 +01:00
|
|
|
|
|
|
|
USERS= dlna
|
|
|
|
GROUPS= dlna
|
|
|
|
|
|
|
|
do-install:
|
2014-06-03 22:15:47 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}/plugins
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/*.jar \
|
|
|
|
${STAGEDIR}${JAVAJARDIR}/${PORTNAME}/
|
|
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/etc/${PORTNAME}
|
2012-12-09 20:43:48 +01:00
|
|
|
.for f in application-profiles profiles log4j
|
2014-06-03 22:15:47 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/config/$f.xml \
|
2015-02-06 09:40:33 +01:00
|
|
|
${STAGEDIR}${ETCDIR}/$f.xml.sample
|
2011-02-28 01:15:23 +01:00
|
|
|
.endfor
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/console-log4j.properties \
|
2015-02-06 09:40:33 +01:00
|
|
|
${STAGEDIR}${ETCDIR}/console-log4j.properties.sample
|
2014-06-03 22:15:47 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/serviiod ${STAGEDIR}${PREFIX}/sbin
|
2011-02-28 01:15:23 +01:00
|
|
|
|
2019-07-05 22:47:46 +02:00
|
|
|
# to be used with a non-standard PREFIX for just this port
|
|
|
|
# e.g. PREFIX=/porttest
|
|
|
|
mkplist:
|
|
|
|
${FIND} ${STAGEDIR}${PREFIX}/ -type f | ${SED} -e "s:${STAGEDIR}${PREFIX}/::g ; s:share/java/classes:%%JAVAJARDIR%%:g ; s:etc/serviio:@sample %%ETCDIR%%:g" | ${GREP} -v etc/rc.d | ${SORT} >${PLIST}.new
|
|
|
|
# ${FIND} ${STAGEDIR}${PREFIX}/ -type d | ${SED} -e "s:${STAGEDIR}${PREFIX}/:@dirrm :g ; s:etc/serviio:%%ETCDIR%%:g ; s:share/java/classes:%%JAVAJARDIR%%:g" | ${SORT} -r >>${PLIST}.new
|
|
|
|
|
2011-02-28 01:15:23 +01:00
|
|
|
.include <bsd.port.mk>
|