openbsd-ports/net/mirmon/Makefile
gonzalo b61f015afb Little update for Mirmon to 2.6:
o Fixed sorting of 'fake' domain ; ucfirst not is required.
o Capitalize region names ; fake domains (like 'Master') should be
  ucfirst, and go to the top of the report list ; 'proper' regions
  are sorted 'lc'. The ISO-country-list is now utf8,
  Capitalized and complete.
o Faster probe-load averaging by always probing the average number
  of mirrors. The 'ok' and 'not ok' mirrors are averaged separately.
o Show 'project_name' when reporting changes in the mirror-list.
o Show 'path' for rsync urls in the report like 'site::path'.

While here GROFF is not needed.

Ok sthen@ (maintainer)
2012-09-28 11:40:39 +00:00

49 lines
1.5 KiB
Makefile

# $OpenBSD: Makefile,v 1.10 2012/09/28 11:40:39 gonzalo Exp $
COMMENT= monitors the status of mirrors
DISTNAME= mirmon-2.6
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
RUN_DEPENDS= net/rsync net/wget
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*
${SUBST_CMD} -c ${FILESDIR}/mirmon.conf ${WRKSRC}/mirmon.conf
touch ${WRKSRC}/mirmon.db
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 \
${WRKSRC}/mirmon.db ${PREFIX}/share/examples/mirmon/
${INSTALL_DATA} ${WRKSRC}/icons/* ${ICONDIR}/
.include <bsd.port.mk>