49 lines
1.2 KiB
Makefile
49 lines
1.2 KiB
Makefile
# $OpenBSD: Makefile,v 1.12 2011/09/16 12:00:09 espie Exp $
|
|
|
|
COMMENT= bacula(8) web interface
|
|
|
|
DISTNAME= webacula-5.5
|
|
REVISION= 0
|
|
|
|
CATEGORIES= www sysutils
|
|
|
|
HOMEPAGE= http://webacula.sourceforge.net/
|
|
|
|
# GPLv3
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=webacula/}
|
|
|
|
MODULES= lang/php
|
|
RUN_DEPENDS= lang/php/${MODPHP_VERSION},-gd \
|
|
php-pdo_pgsql-*|php-pdo_mysql-*|php-pdo_sqlite-*:lang/php/${MODPHP_VERSION},-pdo_pgsql \
|
|
www/zendframework>=1.10.8p1 \
|
|
sysutils/bacula,pgsql,-server
|
|
|
|
NO_BUILD= Yes
|
|
NO_REGRESS= Yes
|
|
PKG_ARCH= *
|
|
|
|
PREFIX= /var/www
|
|
INSTDIR= ${PREFIX}/webacula
|
|
TINSTDIR= ${TRUEPREFIX}/webacula
|
|
SUBST_VARS= INSTDIR TINSTDIR
|
|
|
|
do-install:
|
|
mv ${WRKSRC} ${INSTDIR}
|
|
${SUBST_CMD} ${INSTDIR}/application/config.ini \
|
|
${INSTDIR}/install/apache/webacula.conf
|
|
.for i in install/db.conf application/config.ini
|
|
mv ${INSTDIR}/$i ${INSTDIR}/$i.dist
|
|
.endfor
|
|
${SUBST_CMD} -c ${FILESDIR}/webacula-chroot-bconsole.sh \
|
|
${INSTDIR}/webacula-chroot-bconsole
|
|
find ${INSTDIR} -type f -name \*.orig -or -name \*.gitignore \
|
|
-or -name \*.project -or -name \*.beforesubst | xargs rm
|
|
chown -R ${BINOWN}:${BINGRP} ${INSTDIR}
|
|
|
|
.include <bsd.port.mk>
|