openbsd-ports/net/smokeping/Makefile

63 lines
1.6 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.27 2013/01/06 07:54:13 ajacoutot Exp $
2002-11-10 15:04:49 -05:00
COMMENT= latency logging and graphing system
2002-11-10 15:04:49 -05:00
DISTNAME= smokeping-2.6.8
REVISION= 0
2002-11-10 15:04:49 -05:00
CATEGORIES= net
MASTER_SITES= ${HOMEPAGE}pub/
2002-11-10 15:04:49 -05:00
HOMEPAGE= http://oss.oetiker.ch/smokeping/
2002-11-10 15:04:49 -05:00
MAINTAINER= Stuart Henderson <sthen@openbsd.org>
2002-11-10 15:04:49 -05:00
# GPLv2+
2002-11-10 15:04:49 -05:00
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
2002-11-10 15:04:49 -05:00
PERMIT_DISTFILES_FTP= Yes
BUILD_DEPENDS= ${RUN_DEPENDS}
RUN_DEPENDS= devel/p5-Config-Grammar \
2010-11-19 17:31:32 -05:00
net/fping \
net/p5-SNMP_Session \
net/p5-Socket6 \
net/rrdtool,-perl \
2010-11-19 17:31:32 -05:00
security/p5-Digest-HMAC \
www/fcgi \
www/p5-CGI-Session \
www/p5-libwww
SYSCONFDIR= ${BASESYSCONFDIR}/smokeping
2002-11-10 15:04:49 -05:00
NO_REGRESS= Yes
USE_GMAKE= Yes
2004-02-02 12:35:01 -05:00
PKG_ARCH= *
2002-11-10 15:04:49 -05:00
CONFIGURE_STYLE= gnu
CONFIGURE_ENV= PERL5LIB=${LOCALBASE}/libdata/perl5/site_perl
CONFIGURE_ARGS= --with-htdocs-dir=/var/www/htdocs/smokeping
FAKE_FLAGS= sysconfdir=${PREFIX}/share/examples/smokeping
2002-11-10 15:04:49 -05:00
PMDIR= libdata/perl5/site_perl
SUBST_VARS= PMDIR
pre-configure:
@cd ${WRKSRC} && ${SUBST_CMD} \
etc/config.dist.in bin/smokeping bin/smokeping_cgi bin/tSmoke
post-install:
-mv ${PREFIX}/share/examples/smokeping/examples/* \
${PREFIX}/share/examples/smokeping; \
rmdir ${PREFIX}/share/examples/smokeping/examples
rm -f ${WRKINST}/var/www/htdocs/smokeping/smokeping.fcgi.dist
printf "#!/bin/sh\nexec ${LOCALBASE}/bin/smokeping_cgi ${SYSCONFDIR}/config\n" > \
${WRKINST}/var/www/htdocs/smokeping/smokeping.fcgi
chmod +x ${WRKINST}/var/www/htdocs/smokeping/smokeping.fcgi
chown -R ${SHAREOWN}:${SHAREGRP} ${WRKINST}/var/www
${INSTALL_DATA} ${FILESDIR}/httpd.conf \
${PREFIX}/share/examples/smokeping/httpd.conf
2002-11-10 15:04:49 -05:00
.include <bsd.port.mk>