aboutsummaryrefslogtreecommitdiff
path: root/net/vtun
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2014-06-10 06:34:08 +0000
committerCy Schubert <cy@FreeBSD.org>2014-06-10 06:34:08 +0000
commit395255dd511b1790c71543e8974fadbe9a8c4b6a (patch)
treec481e061866cc6a43bb2d6c1e9c1df97290b91f5 /net/vtun
parent02104a616027d9ad4e2208b3ca5d34d8eb492f18 (diff)
downloadports-395255dd511b1790c71543e8974fadbe9a8c4b6a.tar.gz
ports-395255dd511b1790c71543e8974fadbe9a8c4b6a.zip
Notes
Diffstat (limited to 'net/vtun')
-rw-r--r--net/vtun/Makefile16
-rw-r--r--net/vtun/files/patch-Makefile.in11
-rw-r--r--net/vtun/pkg-plist13
3 files changed, 27 insertions, 13 deletions
diff --git a/net/vtun/Makefile b/net/vtun/Makefile
index 09f3fcfbd72d..fb57e7f6b364 100644
--- a/net/vtun/Makefile
+++ b/net/vtun/Makefile
@@ -9,11 +9,7 @@ MASTER_SITES= SF
MAINTAINER= cy@FreeBSD.org
COMMENT= Virtual Tunnels over TCP/IP networks with traffic shaping
-LIB_DEPENDS= lzo2.2:${PORTSDIR}/archivers/lzo2
-
-MAN5= vtund.conf.5
-MAN8= vtund.8
-MLINKS= vtund.8 vtun.8
+LIB_DEPENDS= liblzo2.so:${PORTSDIR}/archivers/lzo2
USE_OPENSSL= yes
GNU_CONFIGURE= yes
@@ -30,7 +26,6 @@ ALL_TARGET= vtund
DOCS= ChangeLog Credits FAQ README README.LZO README.Setup \
README.Shaper TODO
-NO_STAGE= yes
.include <bsd.port.pre.mk>
.if ${CC} == "clang" || ${CXX} == "clang++" || ${OSVERSION} >= 1000026
@@ -43,13 +38,14 @@ EXTRA_PATCHES+= ${FILESDIR}/extra-tun_dev.c
.endif
post-install:
- @${STRIP_CMD} ${PREFIX}/sbin/vtund
- @${INSTALL_DATA} ${WRKSRC}/vtund.conf ${PREFIX}/etc/vtund.conf.example
+ @${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/vtund
+ @${INSTALL_DATA} ${WRKSRC}/vtund.conf ${STAGEDIR}${PREFIX}/etc/vtund.conf.example
.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
.for doc in ${DOCS}
- @${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
+ @${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR}
.endfor
.endif
+ @${LN} -s ${STAGEDIR}${PREFIX}/man/man8/vtund.8 ${STAGEDIR}${PREFIX}/man/man1/vtun.1
.include <bsd.port.post.mk>
diff --git a/net/vtun/files/patch-Makefile.in b/net/vtun/files/patch-Makefile.in
index d44506f17458..a2855d917a1a 100644
--- a/net/vtun/files/patch-Makefile.in
+++ b/net/vtun/files/patch-Makefile.in
@@ -1,5 +1,14 @@
--- Makefile.in.orig 2012-07-08 21:55:38.000000000 -0700
-+++ Makefile.in 2012-10-01 12:36:55.710386405 -0700
++++ Makefile.in 2014-06-09 23:06:38.000000000 -0700
+@@ -28,7 +28,7 @@
+ LEXFLAGS = -t
+
+ INSTALL = @INSTALL@
+-INSTALL_OWNER = -o root -g 0
++INSTALL_OWNER =
+
+ prefix = @prefix@
+ exec_prefix = @exec_prefix@
@@ -55,7 +55,7 @@
CONFIGURE_FILES = Makefile config.status config.cache config.h config.log
diff --git a/net/vtun/pkg-plist b/net/vtun/pkg-plist
index 04f0a33ff918..46f79ffabbf9 100644
--- a/net/vtun/pkg-plist
+++ b/net/vtun/pkg-plist
@@ -1,6 +1,12 @@
+@owner root
+@group wheel
@unexec if cmp -s %D/etc/vtund.conf.example %D/etc/vtund.conf; then rm -f %D/etc/vtund.conf; fi
etc/vtund.conf.example
sbin/vtund
+man/man5/vtund.conf.5.gz
+man/man8/vtund.8.gz
+man/man8/vtun.8.gz
+man/man1/vtun.1.gz
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
%%PORTDOCS%%%%DOCSDIR%%/Credits
%%PORTDOCS%%%%DOCSDIR%%/FAQ
@@ -10,5 +16,8 @@ sbin/vtund
%%PORTDOCS%%%%DOCSDIR%%/README.Shaper
%%PORTDOCS%%%%DOCSDIR%%/TODO
%%PORTDOCS%%@dirrm %%DOCSDIR%%
-@exec rm -rf /var/log/vtund
-@exec rm -rf /var/lock/vtund
+@unexec rm -rf "/var/log/vtund"
+@unexec rm -rf "/var/lock/vtund"
+@unexec rmdir "/var/lock/vtund" >/dev/null 2>&1 || :
+@unexec rmdir "/var/lock" >/dev/null 2>&1 || :
+@unexec rmdir "/var/log/vtund" >/dev/null 2>&1 || :