openbsd-ports/www/webacula/Makefile
ajacoutot 775cfae1df Import webacula-5.0.3.
Webacula, i.e. Web + Bacula is a web interface for the Bacula backup
system.

ok sthen@ robert@
2011-03-21 18:01:08 +00:00

50 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2011/03/21 18:01:08 ajacoutot Exp $
COMMENT= bacula(8) web interface
DISTNAME= webacula-5.0.3
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
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
.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.conf \
${INSTDIR}/webacula.conf.dist
${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>