pkgsrc/net/tor/Makefile
2007-09-11 15:26:14 +00:00

63 lines
1.9 KiB
Makefile

# $NetBSD: Makefile,v 1.45 2007/09/11 15:26:14 obache Exp $
#
DISTNAME= tor-0.1.2.16
PKGREVISION= 1
CATEGORIES= net security
MASTER_SITES= http://tor.eff.org/dist/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://tor.eff.org/
COMMENT= Anonymizing overlay network for TCP
.include "../../mk/bsd.prefs.mk"
USE_LANGUAGES+= c99
USE_PKGLOCALEDIR= yes
GNU_CONFIGURE= yes
TOR_USER?= tor
TOR_GROUP?= tor
PKG_HOME?= /var/chroot/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} 0755
CONFIGURE_ARGS+= --localstatedir=${VARBASE:Q}
CONFIGURE_ARGS+= --with-libevent-dir=${LOCALBASE}
CONF_FILES+= ${PREFIX}/share/examples/tor/tor-tsocks.conf \
${PKG_SYSCONFDIR}/tor/tor-tsocks.conf
CONF_FILES+= ${PREFIX}/share/examples/tor/torrc.sample \
${PKG_SYSCONFDIR}/tor/torrc
FILES_SUBST+= PKG_HOME=${PKG_HOME:Q}
FILES_SUBST+= TOR_USER=${TOR_USER:Q} TOR_GROUP=${TOR_GROUP:Q}
CHECK_PORTABILITY_SKIP+=contrib/*
post-install:
${INSTALL_DATA_DIR} ${PKG_SYSCONFDIR}/tor
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/tor
${INSTALL_DATA} ${WRKSRC}/src/config/torrc.sample \
${PREFIX}/share/examples/tor/torrc.sample
${INSTALL_DATA} ${WRKSRC}/contrib/tor-tsocks.conf \
${PREFIX}/share/examples/tor/tor-tsocks.conf
${INSTALL_DATA_DIR} ${PREFIX}/${RCD_SCRIPTS_EXAMPLEDIR}
BUILDLINK_API_DEPENDS.libevent+= libevent>=1.1a
# XXX the pkgsrc libevent builtin.mk does not detect the version of a builtin
# libevent, so we need to force use of the pkgsrc one
USE_BUILTIN.libevent= no
.include "../../devel/libevent/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"