pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

openfortivpn: Import openfortivpn-1.17.3 as wip/openfortivpn



Module Name:	pkgsrc-wip
Committed By:	Francisco J. Tsao Santín <tsao%disroot.org@localhost>
Pushed By:	tsao
Date:		Thu Jul 21 20:56:11 2022 +0200
Changeset:	5c9581139e1b27c85b479a30974d3ccb15a99c9d

Added Files:
	openfortivpn/DESCR
	openfortivpn/Makefile
	openfortivpn/PLIST
	openfortivpn/distinfo
	openfortivpn/options.mk

Log Message:
openfortivpn: Import openfortivpn-1.17.3 as wip/openfortivpn

openfortivpn is a client for PPP+SSL VPN tunnel services.
It spawns a pppd process and operates the communication between the gateway and
this process.

It is compatible with Fortinet VPNs.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=5c9581139e1b27c85b479a30974d3ccb15a99c9d

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 openfortivpn/DESCR      |  5 +++++
 openfortivpn/Makefile   | 38 +++++++++++++++++++++++++++++++++
 openfortivpn/PLIST      |  6 ++++++
 openfortivpn/distinfo   |  5 +++++
 openfortivpn/options.mk | 56 +++++++++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 110 insertions(+)

diffs:
diff --git a/openfortivpn/DESCR b/openfortivpn/DESCR
new file mode 100644
index 0000000000..5a8a158870
--- /dev/null
+++ b/openfortivpn/DESCR
@@ -0,0 +1,5 @@
+openfortivpn is a client for PPP+SSL VPN tunnel services.
+It spawns a pppd process and operates the communication between the gateway and
+this process.
+
+It is compatible with Fortinet VPNs.
diff --git a/openfortivpn/Makefile b/openfortivpn/Makefile
new file mode 100644
index 0000000000..baf4fb85e0
--- /dev/null
+++ b/openfortivpn/Makefile
@@ -0,0 +1,38 @@
+# $NetBSD$
+DISTNAME=	openfortivpn-1.17.3
+CATEGORIES=	net
+MASTER_SITES=	${MASTER_SITE_GITHUB:=adrienverge/}
+GITHUB_TAG=	v${PKGVERSION_NOREV}
+
+MAINTAINER=	tsao%disroot.org@localhost
+HOMEPAGE=	https://github.com/adrienverge/openfortivpn/
+COMMENT=	Client for PPP+SSL VPN tunnel services, compatible with Fortinet VPNs
+LICENSE=	gnu-gpl-v3
+
+USE_TOOLS+=		aclocal autoconf automake gmake pkg-config awk
+GNU_CONFIGURE=		yes
+CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFDIR}
+BUILD_DEFS+=		PKG_SYSCONFBASE
+CONF_FILES+=		${PREFIX}/share/examples/${PKGNAME}/config ${PKG_SYSCONFDIR}/openfortivpn/config
+MAKE_DIRS_PERMS+=	${PKG_SYSCONFDIR}/openfortivpn \
+			${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 0700
+
+.include "../../mk/bsd.prefs.mk"
+
+NETSTAT_PATH?=		/usr/sbin/netstat
+PPP_PATH?=		/usr/sbin/pppd
+PPPD_PATH?=		/usr/sbin/pppd
+RESOLVCONF_PATH?=	/sbin/resolvconf
+SYSTEMDSYSTEMUNITDIR?=	/usr/lib/systemd/system
+
+.include "options.mk"
+
+.include "../../security/openssl/buildlink3.mk"
+
+pre-configure:
+	set -e && cd ${WRKSRC} && ./autogen.sh
+post-install:
+	set -e && mkdir -p ${DESTDIR}${PREFIX}/share/examples/${PKGNAME} && \
+	mv ${DESTDIR}${PKG_SYSCONFBASE}/openfortivpn/config ${DESTDIR}${PREFIX}/share/examples/${PKGNAME}/config
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/openfortivpn/PLIST b/openfortivpn/PLIST
new file mode 100644
index 0000000000..85d5b8266b
--- /dev/null
+++ b/openfortivpn/PLIST
@@ -0,0 +1,6 @@
+@comment $NetBSD$
+bin/openfortivpn
+share/examples/${PKGNAME}/config
+man/man1/openfortivpn.1
+share/openfortivpn/config.template
+@pkgdir etc/openfortivpn
diff --git a/openfortivpn/distinfo b/openfortivpn/distinfo
new file mode 100644
index 0000000000..3a7b4fe4f1
--- /dev/null
+++ b/openfortivpn/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+BLAKE2s (openfortivpn-1.17.3.tar.gz) = d4a64d248b64ef5385341cf31f4819072c90ad474b1abff77c4a76d60f6c67bc
+SHA512 (openfortivpn-1.17.3.tar.gz) = 19fd9bdc7c3f75892b4b62bade59512be702c11a7d97c4273aa40b3bef9a884f9647b49f1615ba5d37e1987fb3a4625b37eb2cb1cc22277566d2b9a4a54d24e5
+Size (openfortivpn-1.17.3.tar.gz) = 167399 bytes
diff --git a/openfortivpn/options.mk b/openfortivpn/options.mk
new file mode 100644
index 0000000000..9840b4c34f
--- /dev/null
+++ b/openfortivpn/options.mk
@@ -0,0 +1,56 @@
+# $NetBSD: options.mk$
+
+PKG_OPTIONS_VAR=	PKG_OPTIONS.openfortivpn
+PKG_SUPPORTED_OPTIONS=	openfortivpn-proc
+PKG_SUPPORTED_OPTIONS+=	openfortivpn-enable-resolvconf
+PKG_SUPPORTED_OPTIONS+=	openfortivpn-obsolete
+PKG_SUPPORTED_OPTIONS+=	openfortivpn-rt-dst
+PKG_SUPPORTED_OPTIONS+=	openfortivpn-netstat
+PKG_SUPPORTED_OPTIONS+=	openfortivpn-pppd
+PKG_SUPPORTED_OPTIONS+=	openfortivpn-ppp
+PKG_SUPPORTED_OPTIONS+=	openfortivpn-with-resolvconf
+PKG_SUPPORTED_OPTIONS+=	openfortivpn-systemdsystemunitdir
+
+.include "../../mk/bsd.options.mk"
+
+# Package-specific option-handling
+
+.if !empty(PKG_OPTIONS:Mopenfortivpn-proc)
+CONFIGURE_ARGS+=	--enable-proc
+.else
+CONFIGURE_ARGS+=	--disable-proc
+.endif
+
+.if !empty(PKG_OPTIONS:Mopenfortivpn-enable-resolvconf)
+CONFIGURE_ARGS+=	--enable-resolvconf
+.else
+CONFIGURE_ARGS+=	--disable-resolvconf
+.endif
+
+.if !empty(PKG_OPTIONS:Mopenfortivpn-obsolete)
+CONFIGURE_ARGS+=	--enable-obsolete
+.endif
+
+.if !empty(PKG_OPTIONS:Mopenfortivpn-rt-dst)
+CONFIGURE_ARGS+=	--with-rt_dst
+.endif
+
+.if !empty(PKG_OPTIONS:Mopenfortivpn-netstat)
+CONFIGURE_ARGS+=	--with-netstat=${NETSTAT_PATH:Q}
+.endif
+
+.if !empty(PKG_OPTIONS:Mopenfortivpn-pppd)
+CONFIGURE_ARGS+=	--with-pppd=${PPPD_PATH:Q}
+.endif
+
+.if !empty(PKG_OPTIONS:Mopenfortivpn-ppp)
+CONFIGURE_ARGS+=	--with-ppp=${PPP_PATH:Q}
+.endif
+
+.if !empty(PKG_OPTIONS:Mopenfortivpn-with-resolvconf)
+CONFIGURE_ARGS+=	--with-resolvconf=${RESOLVCONF_PATH:Q}
+.endif
+
+.if !empty(PKG_OPTIONS:Mopenfortivpn-systemdsystemunitdir)
+CONFIGURE_ARGS+=	--with-systemdsystemunitdir=${SYSTEMDSYSTEMUNITDIR:Q}
+.endif


Home | Main Index | Thread Index | Old Index