mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
46 lines
1.1 KiB
Makefile
46 lines
1.1 KiB
Makefile
COMMENT= web-based rack/IP management
|
|
|
|
DISTNAME= RackTables-0.22.0
|
|
PKGNAME= ${DISTNAME:L}
|
|
REVISION= 1
|
|
CATEGORIES= www
|
|
|
|
HOMEPAGE= https://www.racktables.org/
|
|
|
|
# GPLv2
|
|
PERMIT_PACKAGE= Yes
|
|
|
|
SITES= ${SITE_SOURCEFORGE:=racktables/}
|
|
|
|
MODULES= lang/php
|
|
# 8.2: see https://github.com/RackTables/racktables/pull/285
|
|
|
|
RUN_DEPENDS= lang/php/${MODPHP_VERSION},-gd \
|
|
lang/php/${MODPHP_VERSION},-pdo_mysql \
|
|
lang/php/${MODPHP_VERSION},-snmp \
|
|
net/p5-Net-Telnet
|
|
|
|
USE_GMAKE= Yes
|
|
NO_BUILD= Yes
|
|
NO_TEST= Yes
|
|
PKG_ARCH= *
|
|
|
|
PREFIX= ${VARBASE}/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>
|