public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: net-dialup/dwun/, net-dialup/dwun/files/
@ 2022-09-27 21:22 Sam James
  0 siblings, 0 replies; only message in thread
From: Sam James @ 2022-09-27 21:22 UTC (permalink / raw
  To: gentoo-commits

commit:     70b31c6195caa75f74898ecd4fbb68db3fb52e17
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Sep 27 18:45:38 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Sep 27 21:21:09 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70b31c61

net-dialup/dwun: EAPI 8, fix implicit function decls, respect AR

Closes: https://bugs.gentoo.org/724968
Closes: https://bugs.gentoo.org/870676
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-dialup/dwun/dwun-0.96e-r6.ebuild               | 58 ++++++++++++++++++++++
 ...dwun-0.96e-implicit-function-declarations.patch | 14 ++++++
 .../dwun/files/dwun-0.96e-rename-configure.patch   |  9 ++++
 net-dialup/dwun/files/dwun-0.96e-respect-AR.patch  | 11 ++++
 4 files changed, 92 insertions(+)

diff --git a/net-dialup/dwun/dwun-0.96e-r6.ebuild b/net-dialup/dwun/dwun-0.96e-r6.ebuild
new file mode 100644
index 000000000000..0211e24e3a07
--- /dev/null
+++ b/net-dialup/dwun/dwun-0.96e-r6.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools toolchain-funcs
+
+DESCRIPTION="Dialer Without a Useful Name (DWUN)"
+HOMEPAGE="http://dwun.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="MIT GPL-2" # GPL-2 only for init script
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="virtual/libcrypt:="
+DEPEND="${RDEPEND}"
+
+DOCS=( AUTHORS ChangeLog QUICKSTART README TODO UPGRADING )
+
+PATCHES=(
+	"${FILESDIR}"/${P}-fno-common.patch
+	"${FILESDIR}"/${P}-rename-configure.patch
+	"${FILESDIR}"/${P}-implicit-function-declarations.patch
+	"${FILESDIR}"/${P}-respect-AR.patch
+)
+
+src_prepare() {
+	default
+
+	sed -i -e "s:TODO QUICKSTART README UPGRADING ChangeLog COPYING AUTHORS::" Makefile.in || die
+
+	eautoreconf
+}
+
+src_configure() {
+	tc-export CC
+
+	econf --with-docdir="share/doc/${PF}"
+}
+
+src_install() {
+	default
+
+	insinto /etc
+	newins doc/examples/complete-rcfile dwunrc
+	newins debian/dwunauth dwunauth
+	newinitd "${FILESDIR}/dwun" dwun
+}
+
+pkg_postinst() {
+	elog
+	elog 'Make sure you have "net-dialup/ppp" merged if you intend to use dwun'
+	elog "to control a standard PPP network link."
+	elog "See /usr/share/doc/${P}/QUICKSTART for instructions on"
+	elog "configuring dwun."
+	elog
+}

diff --git a/net-dialup/dwun/files/dwun-0.96e-implicit-function-declarations.patch b/net-dialup/dwun/files/dwun-0.96e-implicit-function-declarations.patch
new file mode 100644
index 000000000000..11248396f145
--- /dev/null
+++ b/net-dialup/dwun/files/dwun-0.96e-implicit-function-declarations.patch
@@ -0,0 +1,14 @@
+Needed for asprintf.
+
+https://bugs.gentoo.org/870676
+--- a/configure.in
++++ b/configure.in
+@@ -8,6 +8,8 @@ AC_PROG_CC
+ AC_PROG_RANLIB
+ AC_PROG_INSTALL
+ 
++AC_USE_SYSTEM_EXTENSIONS
++
+ dnl Checks for libraries.
+ AC_CHECK_LIB(crypt, crypt)
+ AC_CHECK_LIB(nsl, gethostbyname)

diff --git a/net-dialup/dwun/files/dwun-0.96e-rename-configure.patch b/net-dialup/dwun/files/dwun-0.96e-rename-configure.patch
new file mode 100644
index 000000000000..9a0a843d6efa
--- /dev/null
+++ b/net-dialup/dwun/files/dwun-0.96e-rename-configure.patch
@@ -0,0 +1,9 @@
+--- a/configure.in
++++ b/configure.in
+@@ -1,5 +1,5 @@
+ dnl Process this file with autoconf to produce a configure script.
+-AC_INIT(configure.in)
++AC_INIT(configure.ac)
+ AM_INIT_AUTOMAKE(dwun, 0.96e)
+ AM_CONFIG_HEADER(config.h)
+ 

diff --git a/net-dialup/dwun/files/dwun-0.96e-respect-AR.patch b/net-dialup/dwun/files/dwun-0.96e-respect-AR.patch
new file mode 100644
index 000000000000..b0b3a707e858
--- /dev/null
+++ b/net-dialup/dwun/files/dwun-0.96e-respect-AR.patch
@@ -0,0 +1,11 @@
+https://bugs.gentoo.org/724968
+--- a/configure.in
++++ b/configure.in
+@@ -7,6 +7,7 @@ dnl Checks for programs.
+ AC_PROG_CC
+ AC_PROG_RANLIB
+ AC_PROG_INSTALL
++AM_PROG_AR
+ 
+ AC_USE_SYSTEM_EXTENSIONS
+ 


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-09-27 21:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-27 21:22 [gentoo-commits] repo/gentoo:master commit in: net-dialup/dwun/, net-dialup/dwun/files/ Sam James

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