public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: net-dialup/openl2tp/
@ 2018-08-23  2:29 Andrew Savchenko
  0 siblings, 0 replies; 4+ messages in thread
From: Andrew Savchenko @ 2018-08-23  2:29 UTC (permalink / raw
  To: gentoo-commits

commit:     583870dcd2fb795e6fafb83f47a9bc5e96f175ea
Author:     Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 23 02:26:07 2018 +0000
Commit:     Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
CommitDate: Thu Aug 23 02:29:31 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=583870dc

net-dialup/openl2tp: configure openl2tpd correctly

- Pass configuration data properly to the emake.
- Update to EAPI 7.

Thanks Jako Kroon [jaco uls.co.za] for noticing the problem.

Closes: https://bugs.gentoo.org/664266
Signed-off-by: Andrew Savchenko <bircoph <AT> gentoo.org>
Package-Manager: Portage-2.3.48, Repoman-2.3.10

 net-dialup/openl2tp/openl2tp-1.8-r1.ebuild | 126 +++++++++++++++++++++++++++++
 1 file changed, 126 insertions(+)

diff --git a/net-dialup/openl2tp/openl2tp-1.8-r1.ebuild b/net-dialup/openl2tp/openl2tp-1.8-r1.ebuild
new file mode 100644
index 00000000000..fb5611675f4
--- /dev/null
+++ b/net-dialup/openl2tp/openl2tp-1.8-r1.ebuild
@@ -0,0 +1,126 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit linux-info
+
+DESCRIPTION="Userspace tools for kernel L2TP implementation"
+HOMEPAGE="http://www.openl2tp.org/"
+SRC_URI="mirror://sourceforge/openl2tp/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+client debug dmalloc doc +examples rpc server stats"
+
+REQUIRED_USE="|| ( client server )"
+
+BDEPEND="
+	>=net-libs/rpcsvc-proto-1.3.1-r1
+	sys-devel/bison
+	sys-devel/flex
+"
+DEPEND="
+	>=net-dialup/ppp-2.4.5
+	>=net-libs/libtirpc-1.0.3
+	sys-libs/readline:=
+	dmalloc? ( dev-libs/dmalloc )
+"
+RDEPEND="${DEPEND}
+	rpc? ( net-nds/rpcbind )
+"
+
+CONFIG_CHECK="~PPPOL2TP"
+
+PATCHES=(
+	"${FILESDIR}/${P}-werror.patch"
+	"${FILESDIR}/${P}-ldflags.patch"
+	"${FILESDIR}/${P}-pppd-2.patch"
+	"${FILESDIR}/${P}-man.patch"
+	"${FILESDIR}/${P}-l2tpconfig.patch"
+	"${FILESDIR}/${P}-parallelbuild.patch"
+	"${FILESDIR}/${P}-optionsfile.patch"
+	"${FILESDIR}/${P}-clientip_as_ipparam.patch"
+	"${FILESDIR}/${P}-setkey.patch"
+	"${FILESDIR}/${P}-unused-var.patch"
+	"${FILESDIR}/${P}-configure-Makefile.patch"
+	"${FILESDIR}/${P}-cflags.patch"
+	"${FILESDIR}/${P}-tirpc.patch"
+)
+
+src_prepare() {
+	default
+	sed -i 's/CFLAGS.optimize/CFLAGS_optimize/g' Makefile */Makefile || die "Makefile sed failed"
+}
+
+src_configure() {
+	myconf=
+
+	use client	|| myconf+=" L2TP_FEATURE_LAC_SUPPORT=n
+							 L2TP_FEATURE_LAIC_SUPPORT=n
+							 L2TP_FEATURE_LAOC_SUPPORT=n "
+
+	use server	|| myconf+=" L2TP_FEATURE_LNS_SUPPORT=n
+							 L2TP_FEATURE_LNIC_SUPPORT=n
+							 L2TP_FEATURE_LNOC_SUPPORT=n "
+
+	use rpc		|| myconf+=" L2TP_FEATURE_RPC_MANAGEMENT=n "
+
+	use stats	&& myconf+=" L2TP_FEATURE_LOCAL_STAT_FILE=y "
+	use debug	&& myconf+=" L2TP_DEBUG=y "
+	use dmalloc	&& myconf+=" USE_DMALLOC=y "
+
+	echo ${myconf} > "${T}/myconf"
+}
+
+src_compile() {
+	emake $(cat "${T}/myconf")
+}
+
+src_install() {
+	emake $(cat "${T}/myconf") DESTDIR="${D}" install
+
+	if use examples; then
+		docinto event_socket
+		dodoc doc/{event_sock_example.c,README.event_sock}
+		docinto
+		dodoc -r "${FILESDIR}"/examples
+	fi
+
+	if use doc; then
+		dodoc doc/*.txt
+		newdoc plugins/README README.plugins
+		dodoc -r ipsec
+	fi
+
+	newinitd "${FILESDIR}"/openl2tpd.initd openl2tpd
+	# init.d script is quite different for RPC and non-RPC versions.
+	use rpc || sed -i s/userpc=\"yes\"/userpc=\"no\"/ "${D}/etc/init.d/openl2tpd" || die "sed failed"
+	newconfd "${FILESDIR}"/openl2tpd.confd openl2tpd
+}
+
+pkg_postinst() {
+	if use rpc; then
+		ewarn
+		ewarn "RPC control does not provide any auth checks for control connection."
+		ewarn "Unless you need this you should disable it, for reference:"
+		ewarn "http://forums.openl2tp.org/viewtopic.php?f=4&t=41"
+		ewarn
+		ewarn "Therefore DO NOT USE RPC IN INSECURE ENVIRONMENTS!"
+	else
+		ewarn
+		ewarn "Without RPC support you won't be able to use l2tpconfig."
+		ewarn "Please read http://forums.openl2tp.org/viewtopic.php?f=4&t=41"
+		ewarn "for more information about the security risk before enabling."
+		ewarn
+		ewarn "If you are using numerical strings (e.g. login name containing only"
+		ewarn "digits) or special characters in password, please use double quotes"
+		ewarn "to enclose them."
+	fi
+	if use stats; then
+		ewarn
+		ewarn "To enable status files openl2tpd must be started with -S option."
+		ewarn "Upstream warns about runtime overhead with status files enabled."
+	fi
+}


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: net-dialup/openl2tp/
@ 2018-08-23  2:29 Andrew Savchenko
  0 siblings, 0 replies; 4+ messages in thread
From: Andrew Savchenko @ 2018-08-23  2:29 UTC (permalink / raw
  To: gentoo-commits

commit:     f9aae1c7721080d702b2e98621c58afaa95387e9
Author:     Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 23 02:28:33 2018 +0000
Commit:     Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
CommitDate: Thu Aug 23 02:29:32 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9aae1c7

net-dialup/openl2tp: remove old

Signed-off-by: Andrew Savchenko <bircoph <AT> gentoo.org>
Package-Manager: Portage-2.3.48, Repoman-2.3.10

 net-dialup/openl2tp/openl2tp-1.8.ebuild | 127 --------------------------------
 1 file changed, 127 deletions(-)

diff --git a/net-dialup/openl2tp/openl2tp-1.8.ebuild b/net-dialup/openl2tp/openl2tp-1.8.ebuild
deleted file mode 100644
index 707cccebd5a..00000000000
--- a/net-dialup/openl2tp/openl2tp-1.8.ebuild
+++ /dev/null
@@ -1,127 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit linux-info
-
-DESCRIPTION="Userspace tools for kernel L2TP implementation"
-HOMEPAGE="http://www.openl2tp.org/"
-SRC_URI="mirror://sourceforge/openl2tp/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="+client debug dmalloc doc +examples rpc server stats"
-
-REQUIRED_USE="|| ( client server )"
-
-CDEPEND="
-	>=net-dialup/ppp-2.4.5
-	>=net-libs/libtirpc-1.0.3
-	sys-libs/readline:=
-	dmalloc? ( dev-libs/dmalloc )
-"
-DEPEND="${CDEPEND}
-	>=net-libs/rpcsvc-proto-1.3.1-r1
-	sys-devel/bison
-	sys-devel/flex
-"
-RDEPEND="${CDEPEND}
-	rpc? ( net-nds/rpcbind )
-"
-
-CONFIG_CHECK="~PPPOL2TP"
-
-PATCHES=(
-	"${FILESDIR}/${P}-werror.patch"
-	"${FILESDIR}/${P}-ldflags.patch"
-	"${FILESDIR}/${P}-pppd-2.patch"
-	"${FILESDIR}/${P}-man.patch"
-	"${FILESDIR}/${P}-l2tpconfig.patch"
-	"${FILESDIR}/${P}-parallelbuild.patch"
-	"${FILESDIR}/${P}-optionsfile.patch"
-	"${FILESDIR}/${P}-clientip_as_ipparam.patch"
-	"${FILESDIR}/${P}-setkey.patch"
-	"${FILESDIR}/${P}-unused-var.patch"
-	"${FILESDIR}/${P}-configure-Makefile.patch"
-	"${FILESDIR}/${P}-cflags.patch"
-	"${FILESDIR}/${P}-tirpc.patch"
-)
-
-src_prepare() {
-	default
-	sed -i 's/CFLAGS.optimize/CFLAGS_optimize/g' Makefile */Makefile || die "Makefile sed failed"
-}
-
-src_configure() {
-	declare -a myconf	# not local, should be used at src_compile()
-
-	use client	|| myconf+=( L2TP_FEATURE_LAC_SUPPORT=n
-							 L2TP_FEATURE_LAIC_SUPPORT=n
-							 L2TP_FEATURE_LAOC_SUPPORT=n )
-
-	use server	|| myconf+=( L2TP_FEATURE_LNS_SUPPORT=n
-							 L2TP_FEATURE_LNIC_SUPPORT=n
-							 L2TP_FEATURE_LNOC_SUPPORT=n )
-
-	use rpc		|| myconf+=( L2TP_FEATURE_RPC_MANAGEMENT=n )
-
-	use stats	&& myconf+=( L2TP_FEATURE_LOCAL_STAT_FILE=y )
-	use debug	&& myconf+=( L2TP_DEBUG=y )
-	use dmalloc	&& myconf+=( USE_DMALLOC=y )
-
-	# pppd plugin is only needed for pppd < 2.4.5
-	unset PPPD_SUBDIR
-}
-
-src_compile() {
-	emake ${myconf[@]}
-}
-
-src_install() {
-	emake ${myconf[@]} DESTDIR="${D}" install
-
-	if use examples; then
-		docinto event_socket
-		dodoc doc/{event_sock_example.c,README.event_sock}
-		docinto
-		dodoc -r "${FILESDIR}"/examples
-	fi
-
-	if use doc; then
-		dodoc doc/*.txt
-		newdoc plugins/README README.plugins
-		dodoc -r ipsec
-	fi
-
-	newinitd "${FILESDIR}"/openl2tpd.initd openl2tpd
-	# init.d script is quite different for RPC and non-RPC versions.
-	use rpc || sed -i s/userpc=\"yes\"/userpc=\"no\"/ "${D}/etc/init.d/openl2tpd" || die "sed failed"
-	newconfd "${FILESDIR}"/openl2tpd.confd openl2tpd
-}
-
-pkg_postinst() {
-	if use rpc; then
-		ewarn
-		ewarn "RPC control does not provide any auth checks for control connection."
-		ewarn "Unless you need this you should disable it, for reference:"
-		ewarn "http://forums.openl2tp.org/viewtopic.php?f=4&t=41"
-		ewarn
-		ewarn "Therefore DO NOT USE RPC IN INSECURE ENVIRONMENTS!"
-	else
-		ewarn
-		ewarn "Without RPC support you won't be able to use l2tpconfig."
-		ewarn "Please read http://forums.openl2tp.org/viewtopic.php?f=4&t=41"
-		ewarn "for more information about the security risk before enabling."
-		ewarn
-		ewarn "If you are using numerical strings (e.g. login name containing only"
-		ewarn "digits) or special characters in password, please use double quotes"
-		ewarn "to enclose them."
-	fi
-	if use stats; then
-		ewarn
-		ewarn "To enable status files openl2tpd must be started with -S option."
-		ewarn "Upstream warns about runtime overhead with status files enabled."
-	fi
-}


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: net-dialup/openl2tp/
@ 2020-07-11  7:55 Andrew Savchenko
  0 siblings, 0 replies; 4+ messages in thread
From: Andrew Savchenko @ 2020-07-11  7:55 UTC (permalink / raw
  To: gentoo-commits

commit:     aaa2cf3a8fc796ba2d3ffe60ba976109fc422e6d
Author:     Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 11 07:41:33 2020 +0000
Commit:     Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
CommitDate: Sat Jul 11 07:55:41 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aaa2cf3a

net-dialup/openl2tp: update homepage

Package-Manager: Portage-2.3.82, Repoman-2.3.20
Signed-off-by: Andrew Savchenko <bircoph <AT> gentoo.org>

 net-dialup/openl2tp/openl2tp-1.8-r1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net-dialup/openl2tp/openl2tp-1.8-r1.ebuild b/net-dialup/openl2tp/openl2tp-1.8-r1.ebuild
index fb5611675f4..2d42d7523f4 100644
--- a/net-dialup/openl2tp/openl2tp-1.8-r1.ebuild
+++ b/net-dialup/openl2tp/openl2tp-1.8-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -6,7 +6,7 @@ EAPI=7
 inherit linux-info
 
 DESCRIPTION="Userspace tools for kernel L2TP implementation"
-HOMEPAGE="http://www.openl2tp.org/"
+HOMEPAGE="https://sourceforge.net/projects/openl2tp/"
 SRC_URI="mirror://sourceforge/openl2tp/${P}.tar.gz"
 
 LICENSE="GPL-2"


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: net-dialup/openl2tp/
@ 2020-07-12 14:15 Andrew Savchenko
  0 siblings, 0 replies; 4+ messages in thread
From: Andrew Savchenko @ 2020-07-12 14:15 UTC (permalink / raw
  To: gentoo-commits

commit:     319d3752f5ca9a54c2bb8a754ff61896401922bd
Author:     Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 12 14:07:53 2020 +0000
Commit:     Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
CommitDate: Sun Jul 12 14:15:14 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=319d3752

net-dialup/openl2tp: remove old

Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Andrew Savchenko <bircoph <AT> gentoo.org>

 net-dialup/openl2tp/openl2tp-1.8-r1.ebuild | 128 -----------------------------
 1 file changed, 128 deletions(-)

diff --git a/net-dialup/openl2tp/openl2tp-1.8-r1.ebuild b/net-dialup/openl2tp/openl2tp-1.8-r1.ebuild
deleted file mode 100644
index 8a763797d12..00000000000
--- a/net-dialup/openl2tp/openl2tp-1.8-r1.ebuild
+++ /dev/null
@@ -1,128 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit linux-info
-
-DESCRIPTION="Userspace tools for kernel L2TP implementation"
-HOMEPAGE="https://sourceforge.net/projects/openl2tp/"
-SRC_URI="mirror://sourceforge/openl2tp/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="+client debug dmalloc doc +examples rpc server stats"
-
-REQUIRED_USE="|| ( client server )"
-
-BDEPEND="
-	>=net-libs/rpcsvc-proto-1.3.1-r1
-	sys-devel/bison
-	sys-devel/flex
-"
-DEPEND="
-	>=net-dialup/ppp-2.4.5
-	>=net-libs/libtirpc-1.0.3
-	sys-libs/readline:=
-	dmalloc? ( dev-libs/dmalloc )
-"
-RDEPEND="${DEPEND}
-	rpc? ( net-nds/rpcbind )
-"
-
-CONFIG_CHECK="~PPPOL2TP"
-
-PATCHES=(
-	"${FILESDIR}/${P}-werror.patch"
-	"${FILESDIR}/${P}-ldflags.patch"
-	"${FILESDIR}/${P}-pppd-2.patch"
-	"${FILESDIR}/${P}-man.patch"
-	"${FILESDIR}/${P}-l2tpconfig.patch"
-	"${FILESDIR}/${P}-parallelbuild.patch"
-	"${FILESDIR}/${P}-optionsfile.patch"
-	"${FILESDIR}/${P}-clientip_as_ipparam.patch"
-	"${FILESDIR}/${P}-setkey.patch"
-	"${FILESDIR}/${P}-unused-var.patch"
-	"${FILESDIR}/${P}-configure-Makefile.patch"
-	"${FILESDIR}/${P}-cflags.patch"
-	"${FILESDIR}/${P}-tirpc.patch"
-	"${FILESDIR}/${P}-native-tc.patch"
-	"${FILESDIR}/${P}-musl.patch"
-)
-
-src_prepare() {
-	default
-	sed -i 's/CFLAGS.optimize/CFLAGS_optimize/g' Makefile */Makefile || die "Makefile sed failed"
-}
-
-src_configure() {
-	myconf=
-
-	use client	|| myconf+=" L2TP_FEATURE_LAC_SUPPORT=n
-							 L2TP_FEATURE_LAIC_SUPPORT=n
-							 L2TP_FEATURE_LAOC_SUPPORT=n "
-
-	use server	|| myconf+=" L2TP_FEATURE_LNS_SUPPORT=n
-							 L2TP_FEATURE_LNIC_SUPPORT=n
-							 L2TP_FEATURE_LNOC_SUPPORT=n "
-
-	use rpc		|| myconf+=" L2TP_FEATURE_RPC_MANAGEMENT=n "
-
-	use stats	&& myconf+=" L2TP_FEATURE_LOCAL_STAT_FILE=y "
-	use debug	&& myconf+=" L2TP_DEBUG=y "
-	use dmalloc	&& myconf+=" USE_DMALLOC=y "
-
-	echo ${myconf} > "${T}/myconf"
-}
-
-src_compile() {
-	emake $(cat "${T}/myconf")
-}
-
-src_install() {
-	emake $(cat "${T}/myconf") DESTDIR="${D}" install
-
-	if use examples; then
-		docinto event_socket
-		dodoc doc/{event_sock_example.c,README.event_sock}
-		docinto
-		dodoc -r "${FILESDIR}"/examples
-	fi
-
-	if use doc; then
-		dodoc doc/*.txt
-		newdoc plugins/README README.plugins
-		dodoc -r ipsec
-	fi
-
-	newinitd "${FILESDIR}"/openl2tpd.initd openl2tpd
-	# init.d script is quite different for RPC and non-RPC versions.
-	use rpc || sed -i s/userpc=\"yes\"/userpc=\"no\"/ "${D}/etc/init.d/openl2tpd" || die "sed failed"
-	newconfd "${FILESDIR}"/openl2tpd.confd openl2tpd
-}
-
-pkg_postinst() {
-	if use rpc; then
-		ewarn
-		ewarn "RPC control does not provide any auth checks for control connection."
-		ewarn "Unless you need this you should disable it, for reference:"
-		ewarn "http://forums.openl2tp.org/viewtopic.php?f=4&t=41"
-		ewarn
-		ewarn "Therefore DO NOT USE RPC IN INSECURE ENVIRONMENTS!"
-	else
-		ewarn
-		ewarn "Without RPC support you won't be able to use l2tpconfig."
-		ewarn "Please read http://forums.openl2tp.org/viewtopic.php?f=4&t=41"
-		ewarn "for more information about the security risk before enabling."
-		ewarn
-		ewarn "If you are using numerical strings (e.g. login name containing only"
-		ewarn "digits) or special characters in password, please use double quotes"
-		ewarn "to enclose them."
-	fi
-	if use stats; then
-		ewarn
-		ewarn "To enable status files openl2tpd must be started with -S option."
-		ewarn "Upstream warns about runtime overhead with status files enabled."
-	fi
-}


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-07-12 14:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-23  2:29 [gentoo-commits] repo/gentoo:master commit in: net-dialup/openl2tp/ Andrew Savchenko
  -- strict thread matches above, loose matches on Subject: below --
2020-07-12 14:15 Andrew Savchenko
2020-07-11  7:55 Andrew Savchenko
2018-08-23  2:29 Andrew Savchenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox