From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from dude02.hi.pengutronix.de ([2001:67c:670:100:1d::28]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kBdl2-0004VA-DI for ptxdist@pengutronix.de; Fri, 28 Aug 2020 14:45:28 +0200 Received: from mol by dude02.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1kBdl2-0006f4-0P for ptxdist@pengutronix.de; Fri, 28 Aug 2020 14:45:28 +0200 Date: Fri, 28 Aug 2020 14:45:27 +0200 From: Michael Olbrich Message-ID: <20200828124527.GA6156@pengutronix.de> References: <20200823134013.GA482575@lenoch> <20200823134316.GG482575@lenoch> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200823134316.GG482575@lenoch> Subject: Re: [ptxdist] [PATCH 6/7] openfortivpn: new package List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de On Sun, Aug 23, 2020 at 03:43:16PM +0200, Ladislav Michl wrote: > Signed-off-by: Ladislav Michl > --- > patches/openfortivpn-1.14.1/autogen.sh | 1 + > rules/openfortivpn.in | 25 +++++++++ > rules/openfortivpn.make | 72 ++++++++++++++++++++++++++ > 3 files changed, 98 insertions(+) > create mode 120000 patches/openfortivpn-1.14.1/autogen.sh > create mode 100644 rules/openfortivpn.in > create mode 100644 rules/openfortivpn.make > > diff --git a/patches/openfortivpn-1.14.1/autogen.sh b/patches/openfortivpn-1.14.1/autogen.sh > new file mode 120000 > index 000000000..9f8a4cb7d > --- /dev/null > +++ b/patches/openfortivpn-1.14.1/autogen.sh > @@ -0,0 +1 @@ > +../autogen.sh > \ No newline at end of file > diff --git a/rules/openfortivpn.in b/rules/openfortivpn.in > new file mode 100644 > index 000000000..e18643322 > --- /dev/null > +++ b/rules/openfortivpn.in > @@ -0,0 +1,25 @@ > +## SECTION=networking > + > +menuconfig OPENFORTIVPN > + tristate > + prompt "openfortivpn " > + select LIBC_PTHREAD > + select LIBC_UTIL > + select OPENSSL > + select PPP > + select SYSTEMD if OPENFORTIVPN_SYSTEMD > + help > + 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. > + > +if OPENFORTIVPN > + > +config OPENFORTIVPN_SYSTEMD > + bool > + default INITMETHOD_SYSTEMD > + > +endif > + > diff --git a/rules/openfortivpn.make b/rules/openfortivpn.make > new file mode 100644 > index 000000000..4fb6c6e62 > --- /dev/null > +++ b/rules/openfortivpn.make > @@ -0,0 +1,72 @@ > +# -*-makefile-*- > +# > +# Copyright (C) 2020 by Ladislav Michl > +# > +# For further information about the PTXdist project and license conditions > +# see the README file. > +# > + > +# > +# We provide this package > +# > +PACKAGES-$(PTXCONF_OPENFORTIVPN) += openfortivpn > + > +# > +# Paths and names > +# > +OPENFORTIVPN_VERSION := 1.14.1 > +OPENFORTIVPN_MD5 := 226472c18f0331491b42b4300e8bff7c > +OPENFORTIVPN := openfortivpn-$(OPENFORTIVPN_VERSION) > +OPENFORTIVPN_SUFFIX := tar.gz > +OPENFORTIVPN_URL := https://github.com/adrienverge/openfortivpn/archive/v$(OPENFORTIVPN_VERSION).$(OPENFORTIVPN_SUFFIX) > +OPENFORTIVPN_SOURCE := $(SRCDIR)/$(OPENFORTIVPN).$(OPENFORTIVPN_SUFFIX) > +OPENFORTIVPN_DIR := $(BUILDDIR)/$(OPENFORTIVPN) > +OPENFORTIVPN_LICENSE := GPL-3.0-or-later > +OPENFORTIVPN_LICENSE_FILES := \ > + file://LICENSE;md5=1d58d8f3da4c52035c4ad376ffabb44a \ > + file://src/main.c;startline=4;endline=15;md5=2d74bd9c818c4c3009c1c8782aaa23e7 > + > +# ---------------------------------------------------------------------------- > +# Prepare > +# ---------------------------------------------------------------------------- > + > +# > +# autoconf > +# > +OPENFORTIVPN_CONF_TOOL := autoconf > +OPENFORTIVPN_CONF_OPT := \ > + $(CROSS_AUTOCONF_USR) \ > + --enable-proc \ > + --enable-resolvconf \ > + --with-rt_dst \ > + --without-ppp \ > + --with-pppd=/usr/sbin/pppd \ > + --with-systemdsystemunitdir=/usr/lib/systemd/system > + > +# ---------------------------------------------------------------------------- > +# Target-Install > +# ---------------------------------------------------------------------------- > + > +$(STATEDIR)/openfortivpn.targetinstall: > + @$(call targetinfo) > + > + @$(call install_init, openfortivpn) > + @$(call install_fixup, openfortivpn,PRIORITY,optional) > + @$(call install_fixup, openfortivpn,SECTION,base) > + @$(call install_fixup, openfortivpn,AUTHOR,"Ladislav Michl ") > + @$(call install_fixup, openfortivpn,DESCRIPTION,"Client for PPP+SSL VPN tunnel") > + > + @$(call install_alternative, openfortivpn, 0, 0, 0644, /etc/openfortivpn/config) > + > + @$(call install_copy, openfortivpn, 0, 0, 0755, -, /usr/bin/openfortivpn) > + > +ifdef PTXCONF_OPENFORTIVPN_SYSTEMD > + @$(call install_alternative, openfortivpn, 0, 0, 0644, \ > + usr/lib/systemd/system/openfortivpn@.service) /usr/lib/systemd/system/openfortivpn@.service) Michael > +endif > + > + @$(call install_finish, openfortivpn) > + > + @$(call touch) > + > +# vim: syntax=make > -- > 2.28.0 > > > _______________________________________________ > ptxdist mailing list > ptxdist@pengutronix.de > To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de