aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/tsocks/Makefile15
-rw-r--r--net/tsocks/pkg-plist7
2 files changed, 13 insertions, 9 deletions
diff --git a/net/tsocks/Makefile b/net/tsocks/Makefile
index 6829a9daa7ad..99fae19517ae 100644
--- a/net/tsocks/Makefile
+++ b/net/tsocks/Makefile
@@ -6,7 +6,7 @@
PORTNAME= tsocks
PORTVERSION= 1.8.b5
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= net security
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
http://ftp1.sourceforge.net/tsocks/ \
@@ -94,13 +94,16 @@ post-patch:
@${REINPLACE_CMD} -e 's|ufds|fds|g' ${WRKSRC}/tsocks.c
@${REINPLACE_CMD} -e 's|/usr|${PREFIX}|' ${WRKSRC}/tsocks
-.if !defined(NOPORTDOCS)
post-install:
- @${MKDIR} ${PREFIX}/share/examples/tsocks
- ${INSTALL_DATA} ${WRKSRC}/*.example ${PREFIX}/share/examples/tsocks
${INSTALL_DATA} ${WRKSRC}/tsocks.conf.simple.example ${PREFIX}/etc/tsocks.conf.sample
- ${INSTALL_DATA} ${WRKSRC}/INSTALL ${PREFIX}/share/examples/tsocks/README
- @${CAT} ${PKGMESSAGE}
+.if !defined(NOPORTEXAMPLES)
+ @${MKDIR} ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/*.example ${EXAMPLESDIR}
.endif
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/INSTALL ${DOCSDIR}/README
+.endif
+ @${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
diff --git a/net/tsocks/pkg-plist b/net/tsocks/pkg-plist
index 4afcdab84fae..ba3a2d315947 100644
--- a/net/tsocks/pkg-plist
+++ b/net/tsocks/pkg-plist
@@ -2,7 +2,8 @@ bin/tsocks
etc/tsocks.conf.sample
lib/libtsocks.so.1
lib/libtsocks.so
-%%EXAMPLESDIR%%/tsocks.conf.complex.example
-%%EXAMPLESDIR%%/tsocks.conf.simple.example
-%%EXAMPLESDIR%%/README
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tsocks.conf.complex.example
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tsocks.conf.simple.example
+%%PORTDOCS%%%%DOCSDIR%%/README
@dirrm %%EXAMPLESDIR%%
+@dirrm %%DOCSDIR%%