2012-04-22 07:41:55 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.20 2012/04/22 11:41:55 ajacoutot Exp $
|
2011-03-21 14:01:08 -04:00
|
|
|
|
|
|
|
COMMENT= bacula(8) web interface
|
|
|
|
|
2012-02-01 07:59:06 -05:00
|
|
|
DISTNAME= webacula-5.5.1
|
2012-04-22 07:41:55 -04:00
|
|
|
REVISION= 1
|
2011-03-22 09:02:35 -04:00
|
|
|
|
2011-03-21 14:01:08 -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/}
|
|
|
|
|
2011-07-08 19:01:39 -04:00
|
|
|
MODULES= lang/php
|
|
|
|
RUN_DEPENDS= lang/php/${MODPHP_VERSION},-gd \
|
2012-01-11 17:27:26 -05:00
|
|
|
php-pdo_pgsql-${MODPHP_VSPEC}|php-pdo_mysql-${MODPHP_VSPEC}|php-pdo_sqlite-${MODPHP_VSPEC}:lang/php/${MODPHP_VERSION},-pdo_pgsql \
|
2011-03-28 09:38:38 -04:00
|
|
|
www/zendframework>=1.10.8p1 \
|
2011-11-24 10:12:25 -05:00
|
|
|
sysutils/bacula,-main
|
2011-03-21 14:01:08 -04:00
|
|
|
|
|
|
|
NO_BUILD= Yes
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
PKG_ARCH= *
|
|
|
|
|
|
|
|
PREFIX= /var/www
|
|
|
|
INSTDIR= ${PREFIX}/webacula
|
|
|
|
TINSTDIR= ${TRUEPREFIX}/webacula
|
|
|
|
SUBST_VARS= INSTDIR TINSTDIR
|
|
|
|
|
2012-02-01 07:59:06 -05:00
|
|
|
pre-configure:
|
|
|
|
perl -pi -e 's,bin/bash,/bin/sh,g' \
|
|
|
|
${WRKSRC}/install/{MySql,PostgreSql}/{10_make_tables.sh,20_acl_make_tables.sh}
|
|
|
|
|
2011-03-21 14:01:08 -04:00
|
|
|
do-install:
|
|
|
|
mv ${WRKSRC} ${INSTDIR}
|
2011-03-23 03:41:45 -04:00
|
|
|
${SUBST_CMD} ${INSTDIR}/application/config.ini \
|
2011-07-28 05:24:35 -04:00
|
|
|
${INSTDIR}/install/apache/webacula.conf
|
2012-02-01 07:59:06 -05:00
|
|
|
.for i in install/db.conf application/config.ini html/.htaccess
|
2011-03-21 14:01:08 -04:00
|
|
|
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 \
|
2012-02-01 07:59:06 -05:00
|
|
|
-or -name \*.project -or -name \*.beforesubst \
|
|
|
|
-or -name \*.original | xargs rm
|
2011-03-21 14:01:08 -04:00
|
|
|
chown -R ${BINOWN}:${BINGRP} ${INSTDIR}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|