openbsd-ports/www/webacula/Makefile
ajacoutot aecc5f034e Do not try to load rewrite_module if it's already loaded.
Tighten zendframework dependency.
2011-03-28 13:38:38 +00:00

52 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.7 2011/03/28 13:38:38 ajacoutot Exp $
COMMENT= bacula(8) web interface
DISTNAME= webacula-5.0.3
REVISION= 5
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/}
RUN_DEPENDS= www/php5/extensions,-gd \
php5-pdo_pgsql-*|php5-pdo_mysql-*|php5-pdo_sqlite-*:www/php5/extensions,-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/webacula.conf
.for i in install/webacula_mysql_create_database.sh \
install/webacula_postgresql_create_database.sh \
install/webacula_postgresql_make_tables.sh \
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>