f448683f7c
Changes in version 0.3.3.9 - 2018-07-13 Tor 0.3.3.9 moves to a new bridge authority, meaning people running bridge relays should upgrade. o Directory authority changes: - The "Bifroest" bridge authority has been retired; the new bridge authority is "Serge", and it is operated by George from the TorBSD project. Closes ticket 26771.
71 lines
1.9 KiB
Makefile
71 lines
1.9 KiB
Makefile
# $NetBSD: Makefile,v 1.133 2018/07/17 06:14:04 wiz Exp $
|
|
|
|
DISTNAME= tor-0.3.3.9
|
|
CATEGORIES= net security
|
|
MASTER_SITES= https://dist.torproject.org/
|
|
|
|
MAINTAINER= reezer@reezer.org
|
|
HOMEPAGE= http://www.torproject.org/
|
|
COMMENT= Anonymizing overlay network for TCP
|
|
LICENSE= modified-bsd
|
|
|
|
USE_LANGUAGES= c99
|
|
USE_PKGLOCALEDIR= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --localstatedir=${VARBASE}
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASEDIR}
|
|
CONFIGURE_ENV+= CPP=${CPP:Q}
|
|
|
|
# one test failure in 0.3.0.10
|
|
# https://trac.torproject.org/projects/tor/ticket/23250
|
|
TEST_TARGET= check
|
|
|
|
TOR_USER?= tor
|
|
TOR_GROUP?= tor
|
|
PKG_GECOS.${TOR_USER}= Torifier
|
|
PKG_HOME.${TOR_USER}= ${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}
|
|
USER_GROUP= ${TOR_USER} ${TOR_GROUP}
|
|
|
|
OWN_DIRS_PERMS+= ${PKG_HOME.${TOR_USER}} ${USER_GROUP} 0700
|
|
|
|
CONF_FILES+= ${PREFIX}/share/examples/tor/torrc.sample \
|
|
${PKG_SYSCONFDIR}/torrc
|
|
|
|
PRINT_PLIST_AWK+= /^man\/man/ { $$0 = "$${PLIST.doc}" $$0 }
|
|
PRINT_PLIST_AWK+= /^share\/doc/ { $$0 = "$${PLIST.doc}" $$0 }
|
|
|
|
FILES_SUBST+= PKG_HOME=${PKG_HOME.${TOR_USER}}
|
|
FILES_SUBST+= TOR_USER=${TOR_USER} TOR_GROUP=${TOR_GROUP}
|
|
|
|
INSTALL_MAKE_FLAGS+= sysconfdir=${PREFIX}/share/examples
|
|
|
|
CHECK_PORTABILITY_SKIP+=contrib/*
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if !empty(PKGSRC_COMPILER:Mmipspro)
|
|
CFLAGS+= -c99
|
|
.endif
|
|
|
|
BUILDLINK_API_DEPENDS.libevent+= libevent>=2.0
|
|
.include "../../devel/libevent/buildlink3.mk"
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
BUILDLINK_API_DEPENDS.openssl+= openssl>=1.0
|
|
.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"
|