pkgsrc/net/torsocks/Makefile
leot 36467a15bb torsocks: Update net/torsocks to 2.3.0
pkgsrc changes:
 - Update MASTER_SITES to avoid MASTER_SITE_DEBIAN

Changes:
2018-11-19 torsocks 2.3.0
 * Fix a bunch of stuff in the wrapper script, #24967
 * gethostbyaddr_r: always assign result
 * log: Remove log line when logging is stopped
 * gethostbyaddr_r: Don't put garbage in data->hostname
 * gethostbyaddr_r: Populate h_addrtype field
 * log: Avoid crash or file corruption when closing logs
 * connect: Always pass .onion IP cookie to connection object
 * Merge remote-tracking branch 'yawning/bug23715'
 * Make torsocks always connect to the configured Tor port
 * test: Make getpeername test connect to moria1
 * socks5: Always use ATYP 0x03 for CONNECT command
 * Merge remote-tracking branch 'upstream/master'
 * doc: Clarify the libc limitation in README
 * accept4: Initialize libc symbol early
 * Bug 23715: Support memfd_create(2).
 * test: Detect if tor is running in test_fd_passing
 * No tab in the README
 * Merge remote-tracking branch 'debian/bugfix/typo-subsytem'
 * Merge remote-tracking branch 'debian/bugfix/typo-catched'
 * Merge remote-tracking branch 'debian/bugfix/typo-conect'
 * doc: Add autogen.sh step to README
 * Add a -q/--quiet to torsocks
 * tests: Add a check for a running Tor
 * Make cpp conditional for definition of handle_mmap match use
 * utils: Add useful function for later use
 * man: Some words were missing
 * Remove clang warnings
 * Add missing quotes to variable in torsocks.in
 * Fix check_addr() to return either 0 or 1
 * Ignore stderr for getcap command
 * syscall: Add seccomp, gettimeofday, clock_gettime, fork
 * Fix typo: conect -> connect.
 * Fix typo: subsytem -> subsystem.
 * Fix typo: catched -> caught.
2018-11-20 23:42:59 +00:00

55 lines
1.6 KiB
Makefile

# $NetBSD: Makefile,v 1.2 2018/11/20 23:42:59 leot Exp $
DISTNAME= torsocks-2.3.0
CATEGORIES= net
MASTER_SITES= https://people.torproject.org/~dgoulet/torsocks/
EXTRACT_SUFX= .tar.xz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://gitweb.torproject.org/torsocks.git
COMMENT= Library to torify applications
LICENSE= gnu-gpl-v2
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+= --with-conf=${PKG_SYSCONFDIR}/torsocks.conf
EGDIR= ${PREFIX}/share/examples/torsocks
CONF_FILES= ${EGDIR}/torsocks.conf \
${PKG_SYSCONFDIR}/torsocks.conf
SUBST_CLASSES+= configure
SUBST_STAGE.configure= pre-configure
SUBST_MESSAGE.configure= Fixing non-standard test(1) == operator
SUBST_FILES.configure= configure
SUBST_SED.configure= -e '/test/ s/ == / = /g'
SUBST_CLASSES+= confdir
SUBST_STAGE.confdir= pre-configure
SUBST_MESSAGE.confdir= Adjusting confdir
SUBST_FILES.confdir= doc/Makefile.in
SUBST_SED.confdir= -e '/^confdir/ s;/tor;;'
SUBST_CLASSES+= conffile
SUBST_STAGE.conffile= pre-configure
SUBST_MESSAGE.conffile= Adjusting DEFAULT_CONF_FILE
SUBST_FILES.conffile= src/common/defaults.h
SUBST_SED.conffile= -e '/DEFAULT_CONF_FILE/ s;"/tor/";"/";'
SUBST_CLASSES+= man
SUBST_STAGE.man= pre-configure
SUBST_MESSAGE.man= Fix hardcoded paths in man pages
SUBST_FILES.man= doc/torsocks.1 doc/torsocks.8 doc/torsocks.conf.5
SUBST_SED.man= -e 's;/etc/tor;${PKG_SYSCONFDIR};g'
TEST_TARGET= check
post-install:
${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
cd ${DESTDIR}${PREFIX} && ${RM} -fr share/doc
${MV} ${DESTDIR}${PKG_SYSCONFDIR}/torsocks.conf \
${DESTDIR}${EGDIR}/torsocks.conf
.include "../../mk/bsd.pkg.mk"