openbsd-ports/www/webacula/Makefile

53 lines
1.3 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.3 2011/03/22 15:43:53 ajacoutot Exp $
COMMENT= bacula(8) web interface
DISTNAME= webacula-5.0.3
REVISION= 1
2011-03-22 09:02:35 -04:00
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 \
2011-03-22 09:02:35 -04:00
www/zendframework \
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
.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>