freebsd-ports/net/serviio/Makefile
Stefan Eßer b7f05445c0 Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.

This commit implements such a proposal and moves one of the WWW: entries
of each pkg-descr file into the respective port's Makefile. A heuristic
attempts to identify the most relevant URL in case there is more than
one WWW: entry in some pkg-descr file. URLs that are not moved into the
Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr
files in order to preserve them.

There are 1256 ports that had no WWW: entries in pkg-descr files. These
ports will not be touched in this commit.

The portlint port has been adjusted to expect a WWW entry in each port
Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as
deprecated.

Approved by:		portmgr (tcberner)
2022-09-07 23:10:59 +02:00

57 lines
1.8 KiB
Makefile

PORTNAME= serviio
PORTVERSION= 2.2.1
PORTREVISION= 0
CATEGORIES= net multimedia java www
MASTER_SITES= https://download.serviio.org/releases/
EXTRACT_SUFX= -linux.tar.gz
MAINTAINER= netchild@FreeBSD.org
COMMENT= Transcoding DLNA-server implemented in Java
WWW= https://www.serviio.org/
# Converted from RESTRICTED
LICENSE= serviio
LICENSE_NAME= serviio
LICENSE_TEXT= License does not allow selling
LICENSE_PERMS= auto-accept
RUN_DEPENDS= ffmpeg:multimedia/ffmpeg
NO_BUILD= yes
USE_JAVA= yes
JAVA_VERSION= 1.8
USES= dos2unix
DOS2UNIX_GLOB= derby.properties
PKGMESSAGE= ${WRKSRC}/pkg-message
SUB_FILES+= pkg-message serviiod
USE_RC_SUBR= serviio
SUB_LIST+= USER=${USERS}
EXTRACT_AFTER_ARGS=--exclude junit.jar \
--exclude org.restlet.ext.net.jar
USERS= dlna
GROUPS= dlna
do-install:
${MKDIR} ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}/plugins
${INSTALL_DATA} ${WRKSRC}/lib/*.jar \
${STAGEDIR}${JAVAJARDIR}/${PORTNAME}/
${MKDIR} ${STAGEDIR}${PREFIX}/etc/${PORTNAME}
.for f in application-profiles profiles log4j2
${INSTALL_DATA} ${WRKSRC}/config/$f.xml \
${STAGEDIR}${ETCDIR}/$f.xml.sample
.endfor
${INSTALL_DATA} ${WRKSRC}/config/serviio.jks \
${STAGEDIR}${ETCDIR}/serviio.jks.sample
${INSTALL_DATA} ${FILESDIR}/console-log4j.properties \
${STAGEDIR}${ETCDIR}/console-log4j.properties.sample
${INSTALL_SCRIPT} ${WRKDIR}/serviiod ${STAGEDIR}${PREFIX}/sbin
# 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
.include <bsd.port.mk>