| @@ -1,71 +1,71 @@ | | | @@ -1,71 +1,71 @@ |
1 | # $NetBSD: Makefile,v 1.70 2010/01/21 11:47:23 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.71 2010/03/02 11:25:59 obache Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | DISTNAME= tor-0.2.1.22 | | 4 | DISTNAME= tor-0.2.1.24 |
5 | CATEGORIES= net security | | 5 | CATEGORIES= net security |
6 | MASTER_SITES= http://www.torproject.org/dist/ | | 6 | MASTER_SITES= http://www.torproject.org/dist/ |
7 | | | 7 | |
8 | MAINTAINER= athaba@inode.at | | 8 | MAINTAINER= athaba@inode.at |
9 | HOMEPAGE= http://www.torproject.org/ | | 9 | HOMEPAGE= http://www.torproject.org/ |
10 | COMMENT= Anonymizing overlay network for TCP | | 10 | COMMENT= Anonymizing overlay network for TCP |
11 | LICENSE= modified-bsd | | 11 | LICENSE= modified-bsd |
12 | | | 12 | |
13 | PKG_DESTDIR_SUPPORT= user-destdir | | 13 | PKG_DESTDIR_SUPPORT= user-destdir |
14 | | | 14 | |
15 | .include "../../mk/bsd.prefs.mk" | | 15 | .include "../../mk/bsd.prefs.mk" |
16 | | | 16 | |
17 | USE_LANGUAGES+= c99 | | 17 | USE_LANGUAGES+= c99 |
18 | USE_PKGLOCALEDIR= yes | | 18 | USE_PKGLOCALEDIR= yes |
19 | GNU_CONFIGURE= yes | | 19 | GNU_CONFIGURE= yes |
20 | | | 20 | |
21 | CONFIGURE_ENV+= CPP=${CPP:Q} | | 21 | CONFIGURE_ENV+= CPP=${CPP:Q} |
22 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASEDIR:Q} | | 22 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASEDIR:Q} |
23 | | | 23 | |
24 | TEST_TARGET= check | | 24 | TEST_TARGET= check |
25 | | | 25 | |
26 | TOR_USER?= tor | | 26 | TOR_USER?= tor |
27 | TOR_GROUP?= tor | | 27 | TOR_GROUP?= tor |
28 | PKG_HOME?= ${VARBASE}/chroot/tor | | 28 | PKG_HOME?= ${VARBASE}/chroot/tor |
29 | BUILD_DEFS+= VARBASE | | 29 | BUILD_DEFS+= VARBASE |
30 | PKG_SYSCONFSUBDIR= tor | | 30 | PKG_SYSCONFSUBDIR= tor |
31 | | | 31 | |
32 | PKG_GROUPS_VARS+= TOR_GROUP | | 32 | PKG_GROUPS_VARS+= TOR_GROUP |
33 | PKG_USERS_VARS+= TOR_USER | | 33 | PKG_USERS_VARS+= TOR_USER |
34 | | | 34 | |
35 | RCD_SCRIPTS= tor | | 35 | RCD_SCRIPTS= tor |
36 | RCD_SCRIPT_SRC.tor= ${FILESDIR}/tor.in | | 36 | RCD_SCRIPT_SRC.tor= ${FILESDIR}/tor.in |
37 | PKG_GROUPS= ${TOR_GROUP} | | 37 | PKG_GROUPS= ${TOR_GROUP} |
38 | PKG_USERS= ${TOR_USER}:${TOR_GROUP}::Torifier:${PKG_HOME} | | 38 | PKG_USERS= ${TOR_USER}:${TOR_GROUP}::Torifier:${PKG_HOME} |
39 | USER_GROUP= ${TOR_USER} ${TOR_GROUP} | | 39 | USER_GROUP= ${TOR_USER} ${TOR_GROUP} |
40 | | | 40 | |
41 | OWN_DIRS_PERMS+= ${PKG_HOME} ${USER_GROUP} 0700 | | 41 | OWN_DIRS_PERMS+= ${PKG_HOME} ${USER_GROUP} 0700 |
42 | | | 42 | |
43 | CONFIGURE_ARGS+= --localstatedir=${VARBASE:Q} | | 43 | CONFIGURE_ARGS+= --localstatedir=${VARBASE:Q} |
44 | | | 44 | |
45 | CONF_FILES+= ${PREFIX}/share/examples/tor/tor-tsocks.conf \ | | 45 | CONF_FILES+= ${PREFIX}/share/examples/tor/tor-tsocks.conf \ |
46 | ${PKG_SYSCONFDIR}/tor-tsocks.conf | | 46 | ${PKG_SYSCONFDIR}/tor-tsocks.conf |
47 | CONF_FILES+= ${PREFIX}/share/examples/tor/torrc.sample \ | | 47 | CONF_FILES+= ${PREFIX}/share/examples/tor/torrc.sample \ |
48 | ${PKG_SYSCONFDIR}/torrc | | 48 | ${PKG_SYSCONFDIR}/torrc |
49 | | | 49 | |
50 | FILES_SUBST+= PKG_HOME=${PKG_HOME:Q} | | 50 | FILES_SUBST+= PKG_HOME=${PKG_HOME:Q} |
51 | FILES_SUBST+= TOR_USER=${TOR_USER:Q} TOR_GROUP=${TOR_GROUP:Q} | | 51 | FILES_SUBST+= TOR_USER=${TOR_USER:Q} TOR_GROUP=${TOR_GROUP:Q} |
52 | | | 52 | |
53 | INSTALL_MAKE_FLAGS+= sysconfdir=${PREFIX}/share/examples | | 53 | INSTALL_MAKE_FLAGS+= sysconfdir=${PREFIX}/share/examples |
54 | | | 54 | |
55 | CHECK_PORTABILITY_SKIP+=contrib/* | | 55 | CHECK_PORTABILITY_SKIP+=contrib/* |
56 | | | 56 | |
57 | .if !empty(PKGSRC_COMPILER:Mmipspro) | | 57 | .if !empty(PKGSRC_COMPILER:Mmipspro) |
58 | CFLAGS+= -c99 | | 58 | CFLAGS+= -c99 |
59 | .endif | | 59 | .endif |
60 | | | 60 | |
61 | BUILDLINK_API_DEPENDS.libevent+= libevent>=1.2 | | 61 | BUILDLINK_API_DEPENDS.libevent+= libevent>=1.2 |
62 | .include "../../devel/libevent/buildlink3.mk" | | 62 | .include "../../devel/libevent/buildlink3.mk" |
63 | .include "../../devel/zlib/buildlink3.mk" | | 63 | .include "../../devel/zlib/buildlink3.mk" |
64 | .include "../../security/openssl/buildlink3.mk" | | 64 | .include "../../security/openssl/buildlink3.mk" |
65 | .include "../../mk/pthread.buildlink3.mk" | | 65 | .include "../../mk/pthread.buildlink3.mk" |
66 | | | 66 | |
67 | ## We include this after other b3.mk files since we use PTHREAD_TYPE. | | 67 | ## We include this after other b3.mk files since we use PTHREAD_TYPE. |
68 | ## | | 68 | ## |
69 | .include "options.mk" | | 69 | .include "options.mk" |
70 | | | 70 | |
71 | .include "../../mk/bsd.pkg.mk" | | 71 | .include "../../mk/bsd.pkg.mk" |