aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authoritetcu <itetcu@FreeBSD.org>2008-09-06 06:36:49 +0800
committeritetcu <itetcu@FreeBSD.org>2008-09-06 06:36:49 +0800
commit4ec8b19364177e430a918d9defac878cd604e2ae (patch)
tree70fdcaa32f5702881d19ff1c1f36483d74679397 /net
parent5465d70aa9e592a79384b8a3252e08a9eaa82aae (diff)
downloadfreebsd-ports-gnome-4ec8b19364177e430a918d9defac878cd604e2ae.tar.gz
freebsd-ports-gnome-4ec8b19364177e430a918d9defac878cd604e2ae.tar.zst
freebsd-ports-gnome-4ec8b19364177e430a918d9defac878cd604e2ae.zip
- fix handling with NOPORT* defined
- use *DIR macros - bump PORTREVISION Prompted by: QAT run Approved by: maintainer timeout on QAT BotMail
Diffstat (limited to 'net')
-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%%