Annotation of pkgsrc/net/tor/Makefile, Revision 1.118.2.3
1.118.2.3! bsiegert 1: # $NetBSD: Makefile,v 1.118.2.2 2017/05/29 18:42:04 bsiegert Exp $
1.1 jschauma 2:
1.118.2.3! bsiegert 3: DISTNAME= tor-0.3.0.8
1.1 jschauma 4: CATEGORIES= net security
1.49 jschauma 5: MASTER_SITES= http://www.torproject.org/dist/
1.1 jschauma 6:
1.114 leot 7: MAINTAINER= reezer@reezer.org
1.49 jschauma 8: HOMEPAGE= http://www.torproject.org/
1.1 jschauma 9: COMMENT= Anonymizing overlay network for TCP
1.64 obache 10: LICENSE= modified-bsd
1.1 jschauma 11:
1.79 drochner 12: USE_LANGUAGES= c99
1.1 jschauma 13: USE_PKGLOCALEDIR= yes
14: GNU_CONFIGURE= yes
1.6 jschauma 15:
1.46 obache 16: CONFIGURE_ENV+= CPP=${CPP:Q}
1.79 drochner 17: CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASEDIR}
1.46 obache 18:
19: TEST_TARGET= check
20:
1.6 jschauma 21: TOR_USER?= tor
22: TOR_GROUP?= tor
1.103 bsiegert 23: PKG_GECOS.${TOR_USER}= Torifier
24: PKG_HOME.${TOR_USER}= ${VARBASE}/chroot/tor
1.46 obache 25: BUILD_DEFS+= VARBASE
1.47 obache 26: PKG_SYSCONFSUBDIR= tor
1.6 jschauma 27:
1.42 jlam 28: PKG_GROUPS_VARS+= TOR_GROUP
1.79 drochner 29: PKG_USERS_VARS= TOR_USER
1.42 jlam 30:
1.30 rillig 31: RCD_SCRIPTS= tor
1.45 obache 32: RCD_SCRIPT_SRC.tor= ${FILESDIR}/tor.in
1.6 jschauma 33: PKG_GROUPS= ${TOR_GROUP}
1.95 jperkin 34: PKG_USERS= ${TOR_USER}:${TOR_GROUP}
1.6 jschauma 35: USER_GROUP= ${TOR_USER} ${TOR_GROUP}
36:
1.95 jperkin 37: OWN_DIRS_PERMS+= ${PKG_HOME.${TOR_USER}} ${USER_GROUP} 0700
1.1 jschauma 38:
1.79 drochner 39: CONFIGURE_ARGS+= --localstatedir=${VARBASE}
1.1 jschauma 40:
41: CONF_FILES+= ${PREFIX}/share/examples/tor/torrc.sample \
1.47 obache 42: ${PKG_SYSCONFDIR}/torrc
1.1 jschauma 43:
1.118.2.2 bsiegert 44: PRINT_PLIST_AWK+= /^man\/man/ { $$0 = "$${PLIST.doc}" $$0 }
45: PRINT_PLIST_AWK+= /^share\/doc/ { $$0 = "$${PLIST.doc}" $$0 }
46:
1.95 jperkin 47: FILES_SUBST+= PKG_HOME=${PKG_HOME.${TOR_USER}}
1.79 drochner 48: FILES_SUBST+= TOR_USER=${TOR_USER} TOR_GROUP=${TOR_GROUP}
1.5 jschauma 49:
1.66 obache 50: INSTALL_MAKE_FLAGS+= sysconfdir=${PREFIX}/share/examples
51:
1.35 tv 52: CHECK_PORTABILITY_SKIP+=contrib/*
53:
1.118.2.1 bsiegert 54: .include "../../mk/bsd.prefs.mk"
55:
1.54 wiz 56: .if !empty(PKGSRC_COMPILER:Mmipspro)
57: CFLAGS+= -c99
58: .endif
59:
1.106 wiz 60: BUILDLINK_API_DEPENDS.libevent+= libevent>=2.0
1.15 drochner 61: .include "../../devel/libevent/buildlink3.mk"
1.9 jschauma 62: .include "../../devel/zlib/buildlink3.mk"
1.106 wiz 63: BUILDLINK_API_DEPENDS.openssl+= openssl>=1.0
1.54 wiz 64: .include "../../security/openssl/buildlink3.mk"
1.48 bjs 65: .include "../../mk/pthread.buildlink3.mk"
66:
67: ## We include this after other b3.mk files since we use PTHREAD_TYPE.
68: ##
69: .include "options.mk"
70:
1.1 jschauma 71: .include "../../mk/bsd.pkg.mk"
CVSweb <webmaster@jp.NetBSD.org>