- save users from touching mirmon.db

- fix sample command-line
(and bump)
This commit is contained in:
sthen 2010-06-08 00:26:45 +00:00
parent 247c86b658
commit 3ee42fb038
3 changed files with 11 additions and 5 deletions

View File

@ -1,8 +1,9 @@
# $OpenBSD: Makefile,v 1.1.1.1 2010/06/08 00:03:55 sthen Exp $
# $OpenBSD: Makefile,v 1.2 2010/06/08 00:26:45 sthen Exp $
COMMENT= monitors the status of mirrors
DISTNAME= mirmon-2.3
PKGNAME= ${DISTNAME}p0
CATEGORIES= net
HOMEPAGE= http://people.cs.uu.nl/henkp/mirmon/
@ -29,7 +30,8 @@ do-build:
${WRKSRC}/[Mm]irmon* ${WRKSRC}/probe
perl -pi -e 's,/etc/mirmon.conf,${SYSCONFDIR}/mirmon.conf,' \
${WRKSRC}/[Mm]irmon*
${SUBST_CMD} -c ${FILESDIR}/mirmon.conf ${WRKBUILD}/mirmon.conf
${SUBST_CMD} -c ${FILESDIR}/mirmon.conf ${WRKSRC}/mirmon.conf
touch ${WRKSRC}/mirmon.db
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mirmon/ \
@ -41,7 +43,7 @@ do-install:
${PREFIX}/man/man1
${INSTALL_DATA} ${WRKSRC}/RELEASE-NOTES ${PREFIX}/share/doc/mirmon/
${INSTALL_DATA} ${WRKSRC}/countries.list ${WRKSRC}/mirmon.conf \
${PREFIX}/share/examples/mirmon/
${WRKSRC}/mirmon.db ${PREFIX}/share/examples/mirmon/
${INSTALL_DATA} ${WRKSRC}/icons/* ${ICONDIR}/
.include <bsd.port.mk>

View File

@ -5,4 +5,4 @@ format.
mirmon should be run from cron, you may add an entry like this to
root's crontab:
@hourly ${LOCALBASE}/bin/mirmon -u _mirmon -get update
@hourly ${LOCALBASE}/bin/mirmon -get update

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2010/06/08 00:03:55 sthen Exp $
@comment $OpenBSD: PLIST,v 1.2 2010/06/08 00:26:45 sthen Exp $
@newgroup _mirmon:651
@newuser _mirmon:651:_mirmon::mirmon user:/nonexistent:/sbin/nologin
bin/mirmon
@ -15,6 +15,10 @@ share/examples/mirmon/countries.list
@sample /var/www/htdocs/mirmon/
@owner
@sample /var/db/mirmon/countries.list
share/examples/mirmon/mirmon.db
@owner _mirmon
@sample /var/db/mirmon/mirmon.db
@owner
share/examples/mirmon/icons/
@sample /var/www/htdocs/mirmon/icons/
share/examples/mirmon/icons/bar.gif