| @@ -1,78 +1,78 @@ | | | @@ -1,78 +1,78 @@ |
1 | # $NetBSD: Makefile,v 1.83 2011/10/06 18:06:15 drochner Exp $ | | 1 | # $NetBSD: Makefile,v 1.84 2011/10/30 17:49:18 drochner Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | DISTNAME= tor-0.2.2.33 | | 4 | DISTNAME= tor-0.2.2.34 |
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 | # MASTER_SITES redirects to https, and ftp(1) cannot handle that. | | 7 | # MASTER_SITES redirects to https, and ftp(1) cannot handle that. |
8 | FETCH_USING= curl | | 8 | FETCH_USING= curl |
9 | | | 9 | |
10 | MAINTAINER= athaba@users.sourceforge.net | | 10 | MAINTAINER= athaba@users.sourceforge.net |
11 | HOMEPAGE= http://www.torproject.org/ | | 11 | HOMEPAGE= http://www.torproject.org/ |
12 | COMMENT= Anonymizing overlay network for TCP | | 12 | COMMENT= Anonymizing overlay network for TCP |
13 | LICENSE= modified-bsd | | 13 | LICENSE= modified-bsd |
14 | | | 14 | |
15 | PKG_DESTDIR_SUPPORT= user-destdir | | 15 | PKG_DESTDIR_SUPPORT= user-destdir |
16 | | | 16 | |
17 | .include "../../mk/bsd.prefs.mk" | | 17 | .include "../../mk/bsd.prefs.mk" |
18 | | | 18 | |
19 | USE_LANGUAGES= c99 | | 19 | USE_LANGUAGES= c99 |
20 | # tor is not documented to require GNU make, but it fails to build on | | 20 | # tor is not documented to require GNU make, but it fails to build on |
21 | # NetBSD 5.1 with (system) BSD make. Reported to | | 21 | # NetBSD 5.1 with (system) BSD make. Reported to |
22 | # tor-talk@lists.torproject.org on 20110907. | | 22 | # tor-talk@lists.torproject.org on 20110907. |
23 | USE_TOOLS+= gmake | | 23 | USE_TOOLS+= gmake |
24 | USE_PKGLOCALEDIR= yes | | 24 | USE_PKGLOCALEDIR= yes |
25 | GNU_CONFIGURE= yes | | 25 | GNU_CONFIGURE= yes |
26 | | | 26 | |
27 | CONFIGURE_ENV+= CPP=${CPP:Q} | | 27 | CONFIGURE_ENV+= CPP=${CPP:Q} |
28 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASEDIR} | | 28 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASEDIR} |
29 | | | 29 | |
30 | TEST_TARGET= check | | 30 | TEST_TARGET= check |
31 | | | 31 | |
32 | TOR_USER?= tor | | 32 | TOR_USER?= tor |
33 | TOR_GROUP?= tor | | 33 | TOR_GROUP?= tor |
34 | PKG_HOME?= ${VARBASE}/chroot/tor | | 34 | PKG_HOME?= ${VARBASE}/chroot/tor |
35 | BUILD_DEFS+= VARBASE | | 35 | BUILD_DEFS+= VARBASE |
36 | PKG_SYSCONFSUBDIR= tor | | 36 | PKG_SYSCONFSUBDIR= tor |
37 | | | 37 | |
38 | PKG_GROUPS_VARS+= TOR_GROUP | | 38 | PKG_GROUPS_VARS+= TOR_GROUP |
39 | PKG_USERS_VARS= TOR_USER | | 39 | PKG_USERS_VARS= TOR_USER |
40 | | | 40 | |
41 | RCD_SCRIPTS= tor | | 41 | RCD_SCRIPTS= tor |
42 | RCD_SCRIPT_SRC.tor= ${FILESDIR}/tor.in | | 42 | RCD_SCRIPT_SRC.tor= ${FILESDIR}/tor.in |
43 | PKG_GROUPS= ${TOR_GROUP} | | 43 | PKG_GROUPS= ${TOR_GROUP} |
44 | PKG_USERS= ${TOR_USER}:${TOR_GROUP}::Torifier:${PKG_HOME} | | 44 | PKG_USERS= ${TOR_USER}:${TOR_GROUP}::Torifier:${PKG_HOME} |
45 | USER_GROUP= ${TOR_USER} ${TOR_GROUP} | | 45 | USER_GROUP= ${TOR_USER} ${TOR_GROUP} |
46 | | | 46 | |
47 | OWN_DIRS_PERMS+= ${PKG_HOME} ${USER_GROUP} 0700 | | 47 | OWN_DIRS_PERMS+= ${PKG_HOME} ${USER_GROUP} 0700 |
48 | | | 48 | |
49 | CONFIGURE_ARGS+= --localstatedir=${VARBASE} | | 49 | CONFIGURE_ARGS+= --localstatedir=${VARBASE} |
50 | | | 50 | |
51 | CONF_FILES+= ${PREFIX}/share/examples/tor/tor-tsocks.conf \ | | 51 | CONF_FILES+= ${PREFIX}/share/examples/tor/tor-tsocks.conf \ |
52 | ${PKG_SYSCONFDIR}/tor-tsocks.conf | | 52 | ${PKG_SYSCONFDIR}/tor-tsocks.conf |
53 | CONF_FILES+= ${PREFIX}/share/examples/tor/torrc.sample \ | | 53 | CONF_FILES+= ${PREFIX}/share/examples/tor/torrc.sample \ |
54 | ${PKG_SYSCONFDIR}/torrc | | 54 | ${PKG_SYSCONFDIR}/torrc |
55 | | | 55 | |
56 | FILES_SUBST+= PKG_HOME=${PKG_HOME} | | 56 | FILES_SUBST+= PKG_HOME=${PKG_HOME} |
57 | FILES_SUBST+= TOR_USER=${TOR_USER} TOR_GROUP=${TOR_GROUP} | | 57 | FILES_SUBST+= TOR_USER=${TOR_USER} TOR_GROUP=${TOR_GROUP} |
58 | | | 58 | |
59 | INSTALL_MAKE_FLAGS+= sysconfdir=${PREFIX}/share/examples | | 59 | INSTALL_MAKE_FLAGS+= sysconfdir=${PREFIX}/share/examples |
60 | | | 60 | |
61 | CHECK_PORTABILITY_SKIP+=contrib/* | | 61 | CHECK_PORTABILITY_SKIP+=contrib/* |
62 | | | 62 | |
63 | .if !empty(PKGSRC_COMPILER:Mmipspro) | | 63 | .if !empty(PKGSRC_COMPILER:Mmipspro) |
64 | CFLAGS+= -c99 | | 64 | CFLAGS+= -c99 |
65 | .endif | | 65 | .endif |
66 | | | 66 | |
67 | BUILD_DEPENDS+= asciidoc-[0-9]*:../../textproc/asciidoc | | 67 | BUILD_DEPENDS+= asciidoc-[0-9]*:../../textproc/asciidoc |
68 | BUILDLINK_API_DEPENDS.libevent+= libevent>=1.2 | | 68 | BUILDLINK_API_DEPENDS.libevent+= libevent>=1.2 |
69 | .include "../../devel/libevent/buildlink3.mk" | | 69 | .include "../../devel/libevent/buildlink3.mk" |
70 | .include "../../devel/zlib/buildlink3.mk" | | 70 | .include "../../devel/zlib/buildlink3.mk" |
71 | .include "../../security/openssl/buildlink3.mk" | | 71 | .include "../../security/openssl/buildlink3.mk" |
72 | .include "../../mk/pthread.buildlink3.mk" | | 72 | .include "../../mk/pthread.buildlink3.mk" |
73 | | | 73 | |
74 | ## We include this after other b3.mk files since we use PTHREAD_TYPE. | | 74 | ## We include this after other b3.mk files since we use PTHREAD_TYPE. |
75 | ## | | 75 | ## |
76 | .include "options.mk" | | 76 | .include "options.mk" |
77 | | | 77 | |
78 | .include "../../mk/bsd.pkg.mk" | | 78 | .include "../../mk/bsd.pkg.mk" |