openbsd-ports/net/smokeping/Makefile

76 lines
2.3 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.21 2008/07/16 11:51:46 sthen 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.3.6
PKGNAME= ${DISTNAME}p1
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
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
RUN_DEPENDS= ::databases/p5-ldap \
::devel/p5-Config-Grammar \
::net/fping \
::net/p5-Net-DNS \
::net/p5-Net-Telnet \
::net/p5-SNMP_Session \
::security/p5-Authen-Radius \
::security/p5-Digest-HMAC \
::www/p5-CGI-SpeedyCGI \
::www/p5-libwww \
:p5-RRD-*:net/rrdtool,-perl
2002-11-10 15:04:49 -05:00
NO_REGRESS= Yes
NO_BUILD= Yes
2004-02-02 12:35:01 -05:00
PKG_ARCH= *
2002-11-10 15:04:49 -05:00
PMDIR= libdata/perl5/site_perl
SUBST_VARS= PMDIR
2007-12-19 12:54:51 -05:00
WWWDIR= ${PREFIX}/share/examples/smokeping
2002-11-10 15:04:49 -05:00
do-install:
@perl -pi -e "s|%%SYSCONFDIR%%|${SYSCONFDIR}|g; \
s|%%LOCALBASE%%|${LOCALBASE}|g;" \
${WRKSRC}/etc/config.dist
@perl -pi -e "s|%%SYSCONFDIR%%|${SYSCONFDIR}|g" \
< ${WRKSRC}/bin/smokeping.dist > ${WRKSRC}/bin/smokeping
${INSTALL_SCRIPT} ${WRKSRC}/bin/smokeping ${PREFIX}/bin/smokeping
@perl -pi -e "s|%%SYSCONFDIR%%|${SYSCONFDIR}|g; \
s|%%LOCALBASE%%|${LOCALBASE}|g" \
< ${WRKSRC}/htdocs/smokeping.cgi.dist \
> ${WRKSRC}/htdocs/smokeping.cgi
2007-12-19 12:54:51 -05:00
${INSTALL_DATA_DIR} ${WWWDIR}
${INSTALL_SCRIPT} ${WRKSRC}/htdocs/smokeping.cgi ${WWWDIR}
cd ${WRKSRC}/htdocs/; tar cf - cropper | tar xf - -C ${WWWDIR}
${INSTALL_DATA_DIR} ${PREFIX}/${PMDIR}/Smokeping
cd ${WRKSRC}/lib/; tar cf - Smokeping* | \
tar xf - -C ${PREFIX}/${PMDIR}/
2002-11-10 15:04:49 -05:00
${INSTALL_MAN} ${WRKSRC}/doc/smokeping*.1 ${PREFIX}/man/man1
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/smokeping
2007-12-19 12:54:51 -05:00
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/smokeping/examples
2002-11-10 15:04:49 -05:00
${INSTALL_DATA} ${WRKSRC}/doc/*.txt ${PREFIX}/share/doc/smokeping
2007-12-19 12:54:51 -05:00
${INSTALL_DATA} ${WRKSRC}/doc/examples/* \
${PREFIX}/share/doc/smokeping/examples
.for dir in matchers probes sorters
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/smokeping/${dir}
${INSTALL_DATA} ${WRKSRC}/doc/Smokeping/${dir}/*.txt \
${PREFIX}/share/doc/smokeping/${dir}
.endfor
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/smokeping
.for file in basepage.html config smokemail tmail smokeping_secrets
2002-11-10 15:04:49 -05:00
${INSTALL_DATA} ${WRKSRC}/etc/${file}.dist \
${PREFIX}/share/examples/smokeping/${file}
.endfor
.include <bsd.port.mk>