2018-09-04 12:46:09 +00:00

65 lines
1.7 KiB
Makefile

# $OpenBSD: Makefile,v 1.21 2018/09/04 12:46:18 espie Exp $
COMMENT = network discovery tool
DISTNAME = nedi-bsd-1.0.8
FIX_EXTRACT_PERMISSIONS = Yes
PKGNAME = nedi-1.0.8
REVISION = 12
EXTRACT_SUFX = .tgz
CATEGORIES = net
HOMEPAGE = http://www.nedi.ch/
MAINTAINER = Marcus Glocker <marcus@nazgul.ch>
# GPLv3+
PERMIT_PACKAGE_CDROM = Yes
MASTER_SITES = ${HOMEPAGE}/pub/
MODULES = lang/php
# XXX needs updating to nedi 1.6 for PHP-mysqli before it can work with PHP 7
MODPHP_VERSION = 5.6
RUN_DEPENDS = databases/mariadb,-server \
databases/p5-DBD-mysql \
databases/p5-DBI \
devel/p5-Algorithm-Diff \
devel/p5-IO-Tty \
lang/php/${MODPHP_VERSION},-bz2 \
lang/php/${MODPHP_VERSION},-gd \
lang/php/${MODPHP_VERSION},-mysql \
lang/php/${MODPHP_VERSION},-snmp \
net/p5-Net-SNMP \
net/p5-Net-Telnet \
net/rrdtool \
www/p5-LWP-UserAgent-Determined \
www/p5-PHP-Session
NO_BUILD = Yes
PKG_ARCH = *
PREFIX = ${VARBASE}/www
INSTDIR = ${PREFIX}/nedi
post-extract:
cd ${WRKSRC}; perl -pi -e 's/\r/\n/g' contrib/* html/log/msg.txt
pre-configure:
cd ${WRKSRC}; ${SUBST_CMD} inc/crontab html/log/msg.txt nedi.conf
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/nedi
cd ${WRKSRC} && cp -rp * ${PREFIX}/nedi
chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/nedi
find ${PREFIX}/nedi -type f -name '*.orig' -exec rm {} +
cd ${PREFIX}/nedi; chmod +x *.pl contrib/*.pl contrib/*.sh
.for i in nedi.conf seedlist html/log inc/crontab
cd ${PREFIX}/nedi; mv $i $i.dist
.endfor
find ${PREFIX}/nedi -perm 744 -exec chmod 644 {} +
find ${PREFIX}/nedi -perm 700 -exec chmod 644 {} +
find ${PREFIX}/nedi -perm 600 -exec chmod 644 {} +
.include <bsd.port.mk>