From 70b31c6195caa75f74898ecd4fbb68db3fb52e17 Mon Sep 17 00:00:00 2001 From: Sam James Date: Tue, 27 Sep 2022 19:45:38 +0100 Subject: 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 --- 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(+) create mode 100644 net-dialup/dwun/dwun-0.96e-r6.ebuild create mode 100644 net-dialup/dwun/files/dwun-0.96e-implicit-function-declarations.patch create mode 100644 net-dialup/dwun/files/dwun-0.96e-rename-configure.patch create mode 100644 net-dialup/dwun/files/dwun-0.96e-respect-AR.patch (limited to 'net-dialup') 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 + -- cgit v1.2.3-65-gdbad