pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

torsocks: Substitute every hardcoded paths in the man pages



Module Name:	pkgsrc-wip
Committed By:	Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By:	leot
Date:		Wed Jan 31 13:22:21 2018 +0100
Changeset:	49e2a5f61d8d64ce9c6a001e1bc761487a9423d3

Modified Files:
	torsocks/Makefile
	torsocks/TODO

Log Message:
torsocks: Substitute every hardcoded paths in the man pages

- Substitute every hardcoded paths in man pages via `man' SUBST class.
- Update TODO accordingly

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=49e2a5f61d8d64ce9c6a001e1bc761487a9423d3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 torsocks/Makefile | 6 ++++++
 torsocks/TODO     | 1 -
 2 files changed, 6 insertions(+), 1 deletion(-)

diffs:
diff --git a/torsocks/Makefile b/torsocks/Makefile
index 0db1c3bcc4..742696418e 100644
--- a/torsocks/Makefile
+++ b/torsocks/Makefile
@@ -44,6 +44,12 @@ 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'
+
 .include "../../mk/bsd.prefs.mk"
 
 TEST_TARGET=	check
diff --git a/torsocks/TODO b/torsocks/TODO
index 159292013e..bd2e55b9db 100644
--- a/torsocks/TODO
+++ b/torsocks/TODO
@@ -1,2 +1 @@
 - Is LIBC_PATH usage via CONFIGURE_ARGS correct, needed and portable?
-- Adjust any possible hardcoded path in man pages


Home | Main Index | Thread Index | Old Index