summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-09-27 19:45:38 +0100
committerSam James <sam@gentoo.org>2022-09-27 22:21:09 +0100
commit70b31c6195caa75f74898ecd4fbb68db3fb52e17 (patch)
tree703dfda2a56a551d8f6d5874120b073364e8a18a /net-dialup/dwun
parentdev-util/sccache: add systemd units (diff)
downloadgentoo-70b31c6195caa75f74898ecd4fbb68db3fb52e17.tar.gz
gentoo-70b31c6195caa75f74898ecd4fbb68db3fb52e17.tar.bz2
gentoo-70b31c6195caa75f74898ecd4fbb68db3fb52e17.zip
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@gentoo.org>
Diffstat (limited to 'net-dialup/dwun')
-rw-r--r--net-dialup/dwun/dwun-0.96e-r6.ebuild58
-rw-r--r--net-dialup/dwun/files/dwun-0.96e-implicit-function-declarations.patch14
-rw-r--r--net-dialup/dwun/files/dwun-0.96e-rename-configure.patch9
-rw-r--r--net-dialup/dwun/files/dwun-0.96e-respect-AR.patch11
4 files changed, 92 insertions, 0 deletions
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
+