freebsd-ports/www/owncast/Makefile
Tobias C. Berner 48318794ca cleanup: remove 'Created by' lines
A big Thank You to the original contributors of these ports:

 *  Alex Trull <freebsd.alex@trull.org>
 *  Alonso Cardenas <acm@FreeBSD.org>
 *  Boris Samorodov <bsam@FreeBSD.org>
 *  David Shane Holden <dpejesh@yahoo.com>
 *  Felix Palmen <felix@palmen-it.de>
 *  Hirohisa Yamaguchi <umq@ueo.co.jp>
 *  Kevin Bowling <kbowling@FreeBSD.org>
 *  Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
 *  Markus Mann, CTS - FreeBSD Team <de-freebsd@ctseuro.com>
 *  Matthias Andree
 *  Matthias Fechner <mfechner@FreeBSD.org>
 *  Oleg Sidorkin <osidorkin@gmail.com>
 *  Oliver Lehmann
 *  Radim Kolar <hsn@sendmail.cz>
 *  Timothy Beyer <beyert@cs.ucr.edu>
 *  hq@FreeBSD.org
 *  johalun0@gmail.com
 *  lev@FreeBSD.org
 *  rooneg@electricjellyfish.net

With hat:	portmgr
2022-07-20 16:55:49 +02:00

54 lines
1.4 KiB
Makefile

PORTNAME= owncast
DISTVERSIONPREFIX= v
DISTVERSION= 0.0.10
PORTREVISION= 3
CATEGORIES= www
DIST_SUBDIR= ${PORTNAME}
MAINTAINER= de-freebsd@ctseuro.com
COMMENT= Self-hosted streaming service written in Go
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ffmpeg:multimedia/ffmpeg
USES= cpe go:modules
USE_RC_SUBR= owncast
CPE_VENDOR= owncast_project
GO_MODULE= github.com/owncast/owncast
_DAEMONARGS= -S -l \$${owncast_facility} -s \$${owncast_priority} -T \$${name}
_OWNCAST_USER= owncast
_OWNCAST_GROUP= owncast
SUB_LIST+= DAEMONARGS="${_DAEMONARGS}" \
OWNCAST_USER=${_OWNCAST_USER}
USERS= ${_OWNCAST_USER}
GROUPS= ${_OWNCAST_GROUP}
PLIST_SUB= OWNCAST_USER=${_OWNCAST_USER} \
OWNCAST_GROUP=${_OWNCAST_GROUP}
post-patch:
@${ECHO_CMD} ${DISTVERSION} >${WRKSRC}/VERSION
do-install:
# Go binary is statically linked and cannot be stripped, so use
# INSTALL_SCRIPT.
${INSTALL_SCRIPT} ${WRKDIR}/bin/owncast ${STAGEDIR}${PREFIX}/sbin
${MKDIR} -m 750 ${STAGEDIR}${WWWDIR}/
cd ${WRKSRC} && ${COPYTREE_SHARE} "static webroot" ${STAGEDIR}${WWWDIR}
${INSTALL_DATA} ${WRKSRC}/LICENSE ${STAGEDIR}${WWWDIR}
${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${WWWDIR}
${INSTALL_DATA} ${WRKSRC}/VERSION ${STAGEDIR}${WWWDIR}
${MKDIR} -m 750 ${STAGEDIR}${WWWDIR}/backup
${MKDIR} -m 750 ${STAGEDIR}${WWWDIR}/data
${MKDIR} -m 750 ${STAGEDIR}${WWWDIR}/hls
${MKDIR} -m 750 ${STAGEDIR}${WWWDIR}/webroot/hls
.include <bsd.port.mk>