blob: e676a52b58d1cb9d8115c457a5493034c8d985b3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Created by: Marc G. Fournier <scrappy@FreeBSD.org>
PORTNAME= bsdstats
PORTVERSION= 7.0
CATEGORIES= sysutils
DISTFILES=
MAINTAINER= scrappy@hub.org
COMMENT= Monthly script for reporting anonymous statistics about your machine
LICENSE= BSD4CLAUSE
NO_BUILD= yes
USE_RC_SUBR= bsdstats
SUB_FILES= 300.statistics bsdstats-send pkg-message
SUB_LIST+= VERSION=${PORTVERSION}
NO_ARCH= YES
PLIST_FILES= bin/bsdstats-send \
etc/periodic/monthly/300.statistics
OPTIONS_DEFINE= TOR
TOR_DESC= Submit securely through TOR anonymity network
TOR_RUN_DEPENDS= tor:security/tor
pre-install-TOR-on:
@${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
pre-install-TOR-off:
@${REINPLACE_CMD} -e 's|@@TOR_MESSAGE@@|You can build bsdstats with TOR port option to submit anonymously|' \
${WRKDIR}/pkg-message
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/etc/periodic/monthly
${INSTALL_SCRIPT} ${WRKDIR}/300.statistics \
${STAGEDIR}${PREFIX}/etc/periodic/monthly
${INSTALL_SCRIPT} ${WRKDIR}/bsdstats-send \
${STAGEDIR}${PREFIX}/bin/bsdstats-send
.include <bsd.port.mk>
|