openbsd-ports/net/php-weathermap/Makefile
sthen d1c6f80880 use REVISION, checked with before/after make show=PKGNAMES (plus some
extra-careful checking where there are complicated PSEUDO_FLAVORS).
2010-07-12 22:07:37 +00:00

53 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.4 2010/07/12 22:07:40 sthen Exp $
COMMENT= graphical network traffic map
DISTNAME= php-weathermap-0.97a
REVISION= 0
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/
RUN_DEPENDS= :pear-*:www/pear \
:php5-gd-*:www/php5/extensions,-gd \
:php5-core-*:www/php5/core
NO_REGRESS= Yes
PKG_ARCH= *
WRKDIST= ${WRKDIR}/weathermap
PREFIX= /var/www
INSTDIR= ${PREFIX}/weathermap
SUBST_VARS= INSTDIR
do-configure:
perl -pi -e 's,^#!/usr/bin/php,#!${LOCALBASE}/bin/php,;' \
-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>