diff options
Diffstat (limited to 'net/amnezia-tools/Makefile')
-rw-r--r-- | net/amnezia-tools/Makefile | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/net/amnezia-tools/Makefile b/net/amnezia-tools/Makefile new file mode 100644 index 000000000000..ead229b31481 --- /dev/null +++ b/net/amnezia-tools/Makefile @@ -0,0 +1,41 @@ +PORTNAME= amnezia +DISTVERSIONPREFIX= v +DISTVERSION= 1.0.20241018 +PORTREVISION= 2 +CATEGORIES= net net-vpn +PKGNAMESUFFIX= -tools + +MAINTAINER= vova@zote.me +COMMENT= Fast, modern and secure VPN Tunnel with AmneziaVPN anti-detection +WWW= https://github.com/amnezia-vpn/amneziawg-tools/ + +LICENSE= GPLv2 + +RUN_DEPENDS= bash:shells/bash + +USES= gmake shebangfix +USE_GITHUB= yes +GH_ACCOUNT= amnezia-vpn +GH_PROJECT= amneziawg-tools +USE_RC_SUBR= ${PORTNAME} + +SHEBANG_FILES= wg-quick/freebsd.bash + +MAKE_ARGS+= DEBUG=no WITH_BASHCOMPLETION=yes WITH_SYSTEMDUNITS=no +MAKE_ENV+= MANDIR="${PREFIX}/share/man" \ + SYSCONFDIR="${PREFIX}/etc" + +WRKSRC_SUBDIR= src + +post-patch: + @${REINPLACE_CMD} -e 's|wg s|awg s|g; \ + s|/usr/local/etc/wireguard|${ETCDIR}|' \ + ${WRKSRC}/completion/wg-quick.bash-completion + @${REINPLACE_CMD} -e 's|%%ETCDIR%%|${ETCDIR}|' \ + ${WRKSRC}/wg-quick/freebsd.bash + +post-install: + @${RMDIR} ${STAGEDIR}${ETCDIR}/amneziawg + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/awg + +.include <bsd.port.mk> |