mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
efd7d88a62
- Update to 2.6 - Pet portlint Relnotes: https://github.com/ntop/n2n/releases/tag/2.6
45 lines
1.1 KiB
Makefile
45 lines
1.1 KiB
Makefile
# Created by: Babak Farrokhi <farrokhi@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= n2n
|
|
PORTVERSION= ${PORT_V_MAJOR}.${PORT_V_MINOR}
|
|
CATEGORIES= security net net-vpn
|
|
|
|
MAINTAINER= farrokhi@FreeBSD.org
|
|
COMMENT= Layer Two Peer-to-peer VPN
|
|
|
|
LICENSE= GPLv3
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
GNU_CONFIGURE= yes
|
|
USES= autoreconf gmake ssl
|
|
|
|
PORT_V_MAJOR= 2
|
|
PORT_V_MINOR= 6
|
|
PORT_V_PATCH= 0
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= ntop
|
|
|
|
PLIST_FILES= sbin/edge \
|
|
sbin/supernode \
|
|
man/man1/supernode.1.gz \
|
|
man/man7/n2n.7.gz \
|
|
man/man8/edge.8.gz
|
|
|
|
post-patch:
|
|
@${SED} -e "s/@N2N_MAJOR@/${PORT_V_MAJOR}/g" \
|
|
-e "s/@N2N_MINOR@/${PORT_V_MINOR}/g" \
|
|
-e "s/@N2N_PATCH@/${PORT_V_PATCH}/g" \
|
|
-e "s/@N2N_VERSION_SHORT@/${PORT_V_MAJOR}.${PORT_V_MINOR}.${PORT_V_PATCH}/g" \
|
|
${WRKSRC}/configure.seed >${WRKSRC}/configure.ac
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/edge ${STAGEDIR}${PREFIX}/sbin
|
|
${INSTALL_PROGRAM} ${WRKSRC}/supernode ${STAGEDIR}${PREFIX}/sbin
|
|
${INSTALL_MAN} ${WRKSRC}/edge.8 ${STAGEDIR}${MANPREFIX}/man/man8
|
|
${INSTALL_MAN} ${WRKSRC}/supernode.1 ${STAGEDIR}${MANPREFIX}/man/man1
|
|
${INSTALL_MAN} ${WRKSRC}/n2n.7 ${STAGEDIR}${MANPREFIX}/man/man7
|
|
|
|
.include <bsd.port.mk>
|