blob: ceb69077721a00078b52a82f23ecc8bb6c057e7f (
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
|
# Created by: Yuri Victorovich <yuri@rawbw.com>
# $FreeBSD$
PORTNAME= vm-to-tor
PORTVERSION= 1.0
CATEGORIES= security net
MAINTAINER= yuri@FreeBSD.org
COMMENT= Connect virtual machines to the tor network
LICENSE= BSD4CLAUSE
RUN_DEPENDS= tor:security/tor \
tiny-network-utilities>=1.0:net/tiny-network-utilities
USE_GITHUB= yes
GH_ACCOUNT= yurivict
NO_BUILD= yes
NO_ARCH= yes
SUB_FILES= pkg-message
PLIST_FILES+= etc/rc.d/${PORTNAME} bin/vm-ctrl
PLIST_FILES+= "@sample etc/${PORTNAME}.rc.conf.simple.sample"
PLIST_FILES+= "@sample etc/${PORTNAME}.rc.conf.complex.sample"
post-patch:
@${REINPLACE_CMD} 's|"/usr/local"|"${LOCALBASE}"|' \
${WRKSRC}/${PORTNAME}
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
-e 's|etc/rc\.conf\.|etc/${PORTNAME}.rc.conf.|' \
${WRKSRC}/rc.conf.*.sample
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/etc/rc.d
${INSTALL_SCRIPT} ${WRKSRC}/vm-ctrl ${STAGEDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/rc.conf.simple.sample \
${STAGEDIR}${PREFIX}/etc/${PORTNAME}.rc.conf.simple.sample
${INSTALL_SCRIPT} ${WRKSRC}/rc.conf.complex.sample \
${STAGEDIR}${PREFIX}/etc/${PORTNAME}.rc.conf.complex.sample
.include <bsd.port.mk>
|