svn commit: r569192 - head/net/wireguard-tools

Bernhard Froehlich decke at FreeBSD.org
Thu Mar 25 09:51:24 UTC 2021


Author: decke
Date: Thu Mar 25 09:51:23 2021
New Revision: 569192
URL: https://svnweb.freebsd.org/changeset/ports/569192

Log:
  net/wireguard-tools: Make sure our rc.d script is always called "wireguard"
  independent if we are using the wg-quick or lite version because it is
  what users expect and are used to.

Modified:
  head/net/wireguard-tools/Makefile

Modified: head/net/wireguard-tools/Makefile
==============================================================================
--- head/net/wireguard-tools/Makefile	Thu Mar 25 09:49:03 2021	(r569191)
+++ head/net/wireguard-tools/Makefile	Thu Mar 25 09:51:23 2021	(r569192)
@@ -2,7 +2,7 @@
 
 PORTNAME=	wireguard-tools
 PORTVERSION=	1.0.20210315
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	net net-vpn
 MASTER_SITES=	https://git.zx2c4.com/wireguard-tools/snapshot/
 
@@ -48,5 +48,14 @@ post-patch:
 	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
 		${WRKSRC}/completion/wg-quick.bash-completion \
 		${WRKSRC}/wg-quick/freebsd.bash
+
+install-rc-script:
+	@${ECHO_MSG} "===> Staging rc.d startup script(s)"
+	@for i in ${USE_RC_SUBR}; do \
+		_prefix=${PREFIX}; \
+		[ "${PREFIX}" = "/usr" ] && _prefix="" ; \
+		${INSTALL_SCRIPT} ${WRKDIR}/$${i} ${STAGEDIR}$${_prefix}/etc/rc.d/wireguard; \
+		${ECHO_CMD} "@(root,wheel,0755) $${_prefix}/etc/rc.d/wireguard" >> ${TMPPLIST}; \
+	done
 
 .include <bsd.port.mk>


More information about the svn-ports-head mailing list