1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-06 06:30:19 +00:00
freebsd-ports/www/vdradmin-am/Makefile
Antoine Brodin 228ab58873 Change INSTALL_DATA to install with mode 644
Remove patches and hacks that were used to work around the previous
situation
This allows to stage more ports as a regular user

Differential Revision:	https://reviews.freebsd.org/D703
Reviewed by and discussed with:	bapt
With hat:	portmgr
2014-09-04 19:26:24 +00:00

75 lines
2.4 KiB
Makefile

# Created by: Juergen Lock <nox@FreeBSD.org>
# $FreeBSD$
PORTNAME= vdradmin-am
PORTVERSION= 3.6.9
PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= http://andreas.vdr-developer.org/vdradmin-am/download/
MAINTAINER= nox@FreeBSD.org
COMMENT= Video Disk Recorder - webinterface
BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash \
p5-Locale-gettext>=0:${PORTSDIR}/devel/p5-Locale-gettext \
p5-Template-Plugin-JavaScript>=0:${PORTSDIR}/www/p5-Template-Plugin-JavaScript \
p5-Authen-SASL>=0:${PORTSDIR}/security/p5-Authen-SASL \
p5-IO-Compress>=0:${PORTSDIR}/archivers/p5-IO-Compress \
p5-IO-Socket-INET6>=0:${PORTSDIR}/net/p5-IO-Socket-INET6 \
p5-IO-Socket-SSL>=0:${PORTSDIR}/security/p5-IO-Socket-SSL \
p5-libwww>=0:${PORTSDIR}/www/p5-libwww
RUN_DEPENDS= p5-Locale-gettext>=0:${PORTSDIR}/devel/p5-Locale-gettext \
p5-Template-Plugin-JavaScript>=0:${PORTSDIR}/www/p5-Template-Plugin-JavaScript \
p5-Authen-SASL>=0:${PORTSDIR}/security/p5-Authen-SASL \
p5-IO-Compress>=0:${PORTSDIR}/archivers/p5-IO-Compress \
p5-IO-Socket-INET6>=0:${PORTSDIR}/net/p5-IO-Socket-INET6 \
p5-IO-Socket-SSL>=0:${PORTSDIR}/security/p5-IO-Socket-SSL \
p5-libwww>=0:${PORTSDIR}/www/p5-libwww
DIST_SUBDIR= vdr
PATCH_STRIP= -p1
USES= shebangfix tar:bzip2
SHEBANG_FILES= vdradmind vdradmind.pl
WRKSRC= ${WRKDIR}/${PORTNAME:S/_/-/}-${DISTVERSION}
NO_BUILD= yes
USE_RC_SUBR= vdradmind
VIDEODIR= /video
LIBDIR= ${DATADIR}
MAKE_ENV+= LIBDIR=${LIBDIR}
MAKE_ENV+= ETCDIR=${ETCDIR}
MAKE_ENV+= DOCDIR=${DOCSDIR}
MAKE_ENV+= BINDIR=${PREFIX}/bin
MAKE_ENV+= LOCDIR=${PREFIX}/share/locale
MAKE_ENV+= MANDIR=${PREFIX}/man
MAKE_ENV+= LOGDIR=/var/log/${PORTNAME}
MAKE_ENV+= CACHEDIR=/var/cache/${PORTNAME}
MAKE_ENV+= PIDFILE=/var/run/${PORTNAME}/vdradmind.pid
MAKE_ENV+= VIDEODIR=${VIDEODIR}
MAKE_ENV+= EPGIMAGES=${VIDEODIR}/epgimages
MAKE_ENV+= VDRCONF=${PREFIX}/etc/vdr
VDR_USER= vdr
VDR_GROUP= vdr
USERS= ${VDR_USER}
GROUPS= ${VDR_GROUP}
PLIST_SUB= VDR_USER=${VDR_USER}
PLIST_SUB+= VDR_GROUP=${VDR_GROUP}
PLIST_SUB+= PREFIX=${PREFIX}
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} 1s-^#!/bin/bash-#!${LOCALBASE}/bin/bash- \
${WRKSRC}/install.sh ${WRKSRC}/make.sh
do-install:
${MKDIR} ${STAGEDIR}${ETCDIR}
${INSTALL_DATA} ${FILESDIR}/vdradmind.conf ${STAGEDIR}${ETCDIR}/vdradmind.conf.sample
${MKDIR} ${STAGEDIR}/var/cache/${PORTNAME} \
${STAGEDIR}/var/log/${PORTNAME} ${STAGEDIR}/var/run/${PORTNAME}
@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} DESTDIR=${STAGEDIR} \
./install.sh)
.include <bsd.port.mk>