openbsd-ports/www/bacula-web/Makefile
2012-09-14 06:35:09 +00:00

50 lines
1.0 KiB
Makefile

# $OpenBSD: Makefile,v 1.2 2012/09/14 06:35:09 ajacoutot Exp $
COMMENT= monitoring and reporting tool for bacula(8)
V= 5.2.10
DISTNAME= bacula-web.${V}
PKGNAME= bacula-web-${V}
CATEGORIES= www sysutils
HOMEPAGE= http://www.bacula-web.org/
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${HOMEPAGE}tl_files/downloads/
MODULES= lang/php
RUN_DEPENDS= lang/php/${MODPHP_VERSION},-gd
NO_BUILD= Yes
NO_REGRESS= Yes
PKG_ARCH= *
PREFIX= /var/www
INSTDIR= ${PREFIX}/bacula-web
TINSTDIR= ${TRUEPREFIX}/bacula-web
SUBST_VARS= INSTDIR TINSTDIR
do-extract:
mkdir ${WRKDIST}
cd ${WRKDIST}; \
for archive in ${EXTRACT_ONLY}; do \
case $$archive in \
${EXTRACT_CASES} \
esac; \
done
do-install:
cp -Rp ${WRKSRC} ${INSTDIR}
rm ${PREFIX}/bacula-web/application/config/config.php.sample.orig
${SUBST_CMD} -c ${FILESDIR}/bacula-web.conf \
${INSTDIR}/bacula-web.conf.dist
chown -R ${SHAREOWN}:${SHAREGRP} ${INSTDIR}
.include <bsd.port.mk>