openbsd-ports/www/racktables/Makefile

47 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.4 2013/04/17 14:25:51 sthen Exp $
COMMENT= web-based rack/IP management
DISTNAME= RackTables-0.20.4
PKGNAME= ${DISTNAME:L}
CATEGORIES= www
HOMEPAGE= http://www.racktables.org/
MAINTAINER= Stuart Henderson <sthen@openbsd.org>
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=racktables/}
MODULES= lang/php
RUN_DEPENDS= lang/php/${MODPHP_VERSION},-gd \
lang/php/${MODPHP_VERSION},-mysql \
lang/php/${MODPHP_VERSION},-pdo_mysql \
lang/php/${MODPHP_VERSION},-snmp
USE_GMAKE= Yes
NO_BUILD= Yes
NO_TEST= Yes
PKG_ARCH= *
PREFIX= /var/www
FAKE_FLAGS= DESTDIR=${WRKINST} prefix=${PREFIX} \
datadir=/var/www \
docdir=/var/www/racktables \
scriptdir=/var/www/racktables \
indexdir=/var/www/racktables/wwwroot \
staticdir=/var/www/racktables/wwwroot \
applibdir=/var/www/racktables/wwwroot/inc
INSTALL_TARGET= install install-docs
post-install:
cd ${WRKINST}/var/www; \
${INSTALL_DATA_DIR} htdocs/racktables racktables/plugins; \
echo "<?php require '../../racktables/wwwroot/index.php'; ?>" > htdocs/racktables/index.php; \
chown -R ${SHAREOWN}:${SHAREGRP} racktables htdocs/racktables
.include <bsd.port.mk>