2013-09-21 01:05:58 +02:00
|
|
|
# Created by: Marc G. Fournier <scrappy@FreeBSD.org>
|
2006-08-06 05:34:08 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= bsdstats
|
2015-05-05 18:48:14 +02:00
|
|
|
PORTVERSION= 6.0
|
2017-04-10 19:57:30 +02:00
|
|
|
PORTREVISION= 2
|
2006-08-06 05:34:08 +02:00
|
|
|
CATEGORIES= sysutils
|
|
|
|
DISTFILES=
|
|
|
|
|
2018-02-25 01:40:37 +01:00
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
2006-08-06 05:34:08 +02:00
|
|
|
COMMENT= Monthly script for reporting anonymous statistics about your machine
|
|
|
|
|
2015-05-05 18:48:14 +02:00
|
|
|
LICENSE= BSD4CLAUSE
|
|
|
|
|
2006-08-06 05:34:08 +02:00
|
|
|
NO_BUILD= yes
|
2010-08-19 05:06:13 +02:00
|
|
|
USE_RC_SUBR= bsdstats
|
2015-05-05 18:48:14 +02:00
|
|
|
SUB_FILES= 300.statistics bsdstats-send pkg-message
|
|
|
|
SUB_LIST+= VERSION=${PORTVERSION}
|
|
|
|
NO_ARCH= YES
|
|
|
|
|
|
|
|
OPTIONS_DEFINE= TOR
|
|
|
|
TOR_DESC= Submit securely through TOR anonymity network
|
|
|
|
|
|
|
|
PLIST_FILES= bin/bsdstats-send \
|
|
|
|
etc/periodic/monthly/300.statistics
|
2006-08-06 05:34:08 +02:00
|
|
|
|
2014-01-08 14:53:59 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
2013-10-25 17:06:30 +02:00
|
|
|
|
2015-05-05 18:48:14 +02:00
|
|
|
.if ${PORT_OPTIONS:MTOR}
|
2016-04-01 16:25:16 +02:00
|
|
|
RUN_DEPENDS+= tor:security/tor
|
2015-05-05 18:48:14 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-install:
|
|
|
|
.if ${PORT_OPTIONS:MTOR}
|
|
|
|
@${REINPLACE_CMD} -e 's|USE_TOR=NO|USE_TOR=YES|' ${WRKDIR}/300.statistics
|
|
|
|
@${REINPLACE_CMD} -e 's|# REQUIRE: LOGIN|# REQUIRE: LOGIN tor|' ${WRKDIR}/bsdstats
|
|
|
|
@${REINPLACE_CMD} -e 's|@@TOR_MESSAGE@@|Statistics will be submitted anonymously through the TOR network|' \
|
|
|
|
${WRKDIR}/pkg-message
|
2006-09-04 04:47:41 +02:00
|
|
|
.else
|
2015-05-05 18:48:14 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|@@TOR_MESSAGE@@|You can build bsdstats with TOR port option to submit anonymously|' \
|
|
|
|
${WRKDIR}/pkg-message
|
2006-09-04 04:47:41 +02:00
|
|
|
.endif
|
2006-08-06 05:34:08 +02:00
|
|
|
|
2013-10-25 17:06:30 +02:00
|
|
|
do-install:
|
|
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/etc/periodic/monthly
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/300.statistics \
|
|
|
|
${STAGEDIR}${PREFIX}/etc/periodic/monthly
|
2015-05-05 18:48:14 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/bsdstats-send \
|
|
|
|
${STAGEDIR}${PREFIX}/bin/bsdstats-send
|
2013-10-25 17:06:30 +02:00
|
|
|
|
2014-01-08 14:53:59 +01:00
|
|
|
.include <bsd.port.post.mk>
|