aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIon-Mihai Tetcu <itetcu@FreeBSD.org>2008-09-05 22:36:49 +0000
committerIon-Mihai Tetcu <itetcu@FreeBSD.org>2008-09-05 22:36:49 +0000
commitf90bc95bbb8b7d0ed5225f4be3077e67e94ee018 (patch)
treed710a330960a3bb16021b9b8806a804b556a9dde
parentdcc927e60385fe6cf227fa7a3219d5ae296b1e45 (diff)
downloadports-f90bc95bbb8b7d0ed5225f4be3077e67e94ee018.tar.gz
ports-f90bc95bbb8b7d0ed5225f4be3077e67e94ee018.zip
Notes
-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%%