mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Roland Hieber <rhi@pengutronix.de>
To: Ladislav Michl <ladis@linux-mips.org>
Cc: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH 6/7] openfortivpn: new package
Date: Sun, 23 Aug 2020 21:56:31 +0200	[thread overview]
Message-ID: <20200823195631.ksz5fe3635wvzmjh@pengutronix.de> (raw)
In-Reply-To: <20200823134316.GG482575@lenoch>

On Sun, Aug 23, 2020 at 03:43:16PM +0200, Ladislav Michl wrote:
> Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
> ---
>  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 <ladis@linux-mips.org>
> +#
> +# 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 \

There is an exception at the end, which SPDX doesn't know about. I think
we should specify this as "GPL-3.0-or-later WITH unknown-exception" to
distinguish it from the plain GPL-3.0.

> +	file://src/main.c;startline=4;endline=15;md5=2d74bd9c818c4c3009c1c8782aaa23e7

Also there is LICENSE.OpenSSL, is this used anywhere?

> +
> +# ----------------------------------------------------------------------------
> +# 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 <ladis@linux-mips.org>")
> +	@$(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)

Missing / at the start of the file name.

 - Roland

> +endif
> +
> +	@$(call install_finish, openfortivpn)
> +
> +	@$(call touch)
> +
> +# vim: syntax=make
> -- 
> 2.28.0

-- 
Roland Hieber, Pengutronix e.K.          | r.hieber@pengutronix.de     |
Steuerwalder Str. 21                     | https://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

  reply	other threads:[~2020-08-23 19:56 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-23 13:40 [ptxdist] [PATCH 0/7] NetworkManager stack update Ladislav Michl
2020-08-23 13:40 ` [ptxdist] [PATCH 1/7] libmbim: version bump 1.18.2 -> 1.24.2 Ladislav Michl
2020-10-06  8:18   ` [ptxdist] [APPLIED] " Michael Olbrich
2020-08-23 13:41 ` [ptxdist] [PATCH 2/7] libqmi: version bump 1.24.4 -> 1.26.2 Ladislav Michl
2020-08-30 21:37   ` [ptxdist] [PATCH v2 " Ladislav Michl
2020-10-06  8:18     ` [ptxdist] [APPLIED] " Michael Olbrich
2020-08-23 13:41 ` [ptxdist] [PATCH 3/7] modemmanager: version bump 1.12.6 -> 1.14.2 Ladislav Michl
2020-10-06  8:18   ` [ptxdist] [APPLIED] " Michael Olbrich
2020-08-23 13:42 ` [ptxdist] [PATCH 4/7] networkmanager: version bump 1.26.0 -> 1.26.2 Ladislav Michl
2020-10-06  8:18   ` [ptxdist] [APPLIED] " Michael Olbrich
2020-08-23 13:42 ` [ptxdist] [PATCH 5/7] networkmanager-openvpn: version bump 1.8.4 -> 1.8.12 Ladislav Michl
2020-08-28 10:49   ` Michael Olbrich
2020-08-28 14:59     ` [ptxdist] [PATCH v2 " Ladislav Michl
2020-10-06  8:18       ` [ptxdist] [APPLIED] " Michael Olbrich
2020-08-23 13:43 ` [ptxdist] [PATCH 6/7] openfortivpn: new package Ladislav Michl
2020-08-23 19:56   ` Roland Hieber [this message]
2020-08-24  8:22     ` Ladislav Michl
2020-08-24  9:05       ` Roland Hieber
2020-08-24  9:14         ` Roland Hieber
2020-08-24 10:08         ` Ladislav Michl
2020-08-24 15:35           ` Roland Hieber
2020-08-25  7:40         ` [ptxdist] [PATCH v2 " Ladislav Michl
2020-08-25 11:04           ` Roland Hieber
2020-08-25 13:14             ` [ptxdist] [PATCH v3 " Ladislav Michl
2020-08-28 12:45   ` [ptxdist] [PATCH " Michael Olbrich
2020-08-28 14:57     ` [ptxdist] [PATCH v4 " Ladislav Michl
2020-10-06  8:18       ` [ptxdist] [APPLIED] " Michael Olbrich
2020-08-23 13:43 ` [ptxdist] [PATCH 7/7] networkmanager-fortisslvpn: " Ladislav Michl
2020-10-06  8:18   ` [ptxdist] [APPLIED] " Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200823195631.ksz5fe3635wvzmjh@pengutronix.de \
    --to=rhi@pengutronix.de \
    --cc=ladis@linux-mips.org \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox