openbsd-ports/net/php-weathermap/Makefile

54 lines
1.0 KiB
Makefile
Raw Normal View History

2011-11-16 10:56:36 -05:00
# $OpenBSD: Makefile,v 1.11 2011/11/16 15:56:37 robert Exp $
COMMENT= graphical network traffic map
2010-03-26 20:00:49 -04:00
DISTNAME= php-weathermap-0.97a
2011-11-16 10:56:36 -05:00
REVISION= 6
EXTRACT_SUFX= .zip
CATEGORIES= net www
HOMEPAGE= http://www.network-weathermap.com/
MAINTAINER= Stuart Henderson <sthen@openbsd.org>
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${HOMEPAGE}files/
2011-07-08 18:31:59 -04:00
MODULES= lang/php
2010-11-19 17:31:32 -05:00
RUN_DEPENDS= www/pear \
2011-07-08 18:31:59 -04:00
lang/php/${MODPHP_VERSION},-gd
NO_REGRESS= Yes
PKG_ARCH= *
WRKDIST= ${WRKDIR}/weathermap
PREFIX= /var/www
INSTDIR= ${PREFIX}/weathermap
SUBST_VARS= INSTDIR
2010-04-11 11:11:00 -04:00
do-configure:
perl -pi -e 's,^#!/usr/bin/php,#!${MODPHP_BIN},;' \
2010-04-11 11:11:00 -04:00
-e 's,/usr/bin/rrdtool,${LOCALBASE}/bin/rrdtool,;' \
${WRKSRC}/weathermap
do-build:
chmod 644 ${WRKSRC}/editor.*
.for i in weathermap.conf configs/simple.conf
mv ${WRKSRC}/$i ${WRKSRC}/$i-dist
.endfor
do-install:
${INSTALL_DATA_DIR} ${INSTDIR}
cd ${WRKSRC}; pax -rw * ${INSTDIR}
chown -R ${SHAREOWN}:${SHAREGRP} ${INSTDIR}
.include <bsd.port.mk>