blob: 26a9263a26bba733fc2913699c35e2f24612da79 (
plain)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
# $NetBSD: Makefile,v 1.63 2009/02/27 22:53:47 wiz Exp $
#
DISTNAME= tor-0.2.0.34
PKGREVISION= 1
CATEGORIES= net security
MASTER_SITES= http://www.torproject.org/dist/
MAINTAINER= athaba@inode.at
HOMEPAGE= http://www.torproject.org/
COMMENT= Anonymizing overlay network for TCP
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../mk/bsd.prefs.mk"
USE_LANGUAGES+= c99
USE_PKGLOCALEDIR= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV+= CPP=${CPP:Q}
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASEDIR:Q}
TEST_TARGET= check
TOR_USER?= tor
TOR_GROUP?= tor
PKG_HOME?= ${VARBASE}/chroot/tor
BUILD_DEFS+= VARBASE
PKG_SYSCONFSUBDIR= tor
PKG_GROUPS_VARS+= TOR_GROUP
PKG_USERS_VARS+= TOR_USER
RCD_SCRIPTS= tor
RCD_SCRIPT_SRC.tor= ${FILESDIR}/tor.in
PKG_GROUPS= ${TOR_GROUP}
PKG_USERS= ${TOR_USER}:${TOR_GROUP}::Torifier:${PKG_HOME}
USER_GROUP= ${TOR_USER} ${TOR_GROUP}
OWN_DIRS_PERMS+= ${PKG_HOME} ${USER_GROUP} 0700
CONFIGURE_ARGS+= --localstatedir=${VARBASE:Q}
CONF_FILES+= ${PREFIX}/share/examples/tor/tor-tsocks.conf \
${PKG_SYSCONFDIR}/tor-tsocks.conf
CONF_FILES+= ${PREFIX}/share/examples/tor/torrc.sample \
${PKG_SYSCONFDIR}/torrc
FILES_SUBST+= PKG_HOME=${PKG_HOME:Q}
FILES_SUBST+= TOR_USER=${TOR_USER:Q} TOR_GROUP=${TOR_GROUP:Q}
CHECK_PORTABILITY_SKIP+=contrib/*
.if !empty(PKGSRC_COMPILER:Mmipspro)
CFLAGS+= -c99
.endif
post-install:
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/tor
${INSTALL_DATA} ${WRKSRC}/src/config/torrc.sample \
${DESTDIR}${PREFIX}/share/examples/tor/torrc.sample
${INSTALL_DATA} ${WRKSRC}/contrib/tor-tsocks.conf \
${DESTDIR}${PREFIX}/share/examples/tor/tor-tsocks.conf
BUILDLINK_API_DEPENDS.libevent+= libevent>=1.2
.include "../../devel/libevent/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
## We include this after other b3.mk files since we use PTHREAD_TYPE.
##
.include "options.mk"
.include "../../mk/bsd.pkg.mk"
|