2012-01-26 03:03:56 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.9 2012/01/26 08:03:57 ajacoutot Exp $
|
2010-06-07 20:03:55 -04:00
|
|
|
|
|
|
|
COMMENT= monitors the status of mirrors
|
|
|
|
|
2011-06-13 20:35:36 -04:00
|
|
|
DISTNAME= mirmon-2.4
|
2012-01-26 03:03:56 -05:00
|
|
|
REVISION= 0
|
2010-06-07 20:03:55 -04:00
|
|
|
|
|
|
|
CATEGORIES= net
|
|
|
|
HOMEPAGE= http://people.cs.uu.nl/henkp/mirmon/
|
|
|
|
|
|
|
|
MAINTAINER= Stuart Henderson <sthen@openbsd.org>
|
|
|
|
|
|
|
|
# free license, see head of ${WRKSRC}/Mirmon.pm
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
MASTER_SITES= ${HOMEPAGE}
|
|
|
|
|
|
|
|
MODULES= perl
|
|
|
|
ICONDIR= ${PREFIX}/share/examples/mirmon/icons
|
|
|
|
|
2010-11-19 17:31:32 -05:00
|
|
|
RUN_DEPENDS= net/rsync net/wget
|
2010-10-18 14:36:45 -04:00
|
|
|
USE_GROFF = Yes
|
2010-06-07 20:03:55 -04:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
PKG_ARCH= *
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
perl -pi -e 's,/usr/bin/(rsync|wget),${LOCALBASE}/bin/\1,' \
|
|
|
|
${WRKSRC}/[Mm]irmon* ${WRKSRC}/probe
|
|
|
|
perl -pi -e 's,/etc/mirmon.conf,${SYSCONFDIR}/mirmon.conf,' \
|
|
|
|
${WRKSRC}/[Mm]irmon*
|
2010-06-07 20:26:45 -04:00
|
|
|
${SUBST_CMD} -c ${FILESDIR}/mirmon.conf ${WRKSRC}/mirmon.conf
|
|
|
|
touch ${WRKSRC}/mirmon.db
|
2010-06-07 20:03:55 -04:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mirmon/ \
|
|
|
|
${PREFIX}/share/examples/mirmon/ ${ICONDIR}/icons/
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/mirmon.pl ${PREFIX}/bin/mirmon
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/Mirmon.pm ${PREFIX}/${P5SITE}/
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/probe ${PREFIX}/bin/mirmon-probe
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/mirmon.1 ${WRKSRC}/mirmon.pm.1 \
|
|
|
|
${PREFIX}/man/man1
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/RELEASE-NOTES ${PREFIX}/share/doc/mirmon/
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/countries.list ${WRKSRC}/mirmon.conf \
|
2010-06-07 20:26:45 -04:00
|
|
|
${WRKSRC}/mirmon.db ${PREFIX}/share/examples/mirmon/
|
2010-06-07 20:03:55 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/icons/* ${ICONDIR}/
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|