1 |
commit: 70b31c6195caa75f74898ecd4fbb68db3fb52e17 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 27 18:45:38 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 27 21:21:09 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70b31c61 |
7 |
|
8 |
net-dialup/dwun: EAPI 8, fix implicit function decls, respect AR |
9 |
|
10 |
Closes: https://bugs.gentoo.org/724968 |
11 |
Closes: https://bugs.gentoo.org/870676 |
12 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
13 |
|
14 |
net-dialup/dwun/dwun-0.96e-r6.ebuild | 58 ++++++++++++++++++++++ |
15 |
...dwun-0.96e-implicit-function-declarations.patch | 14 ++++++ |
16 |
.../dwun/files/dwun-0.96e-rename-configure.patch | 9 ++++ |
17 |
net-dialup/dwun/files/dwun-0.96e-respect-AR.patch | 11 ++++ |
18 |
4 files changed, 92 insertions(+) |
19 |
|
20 |
diff --git a/net-dialup/dwun/dwun-0.96e-r6.ebuild b/net-dialup/dwun/dwun-0.96e-r6.ebuild |
21 |
new file mode 100644 |
22 |
index 000000000000..0211e24e3a07 |
23 |
--- /dev/null |
24 |
+++ b/net-dialup/dwun/dwun-0.96e-r6.ebuild |
25 |
@@ -0,0 +1,58 @@ |
26 |
+# Copyright 1999-2022 Gentoo Authors |
27 |
+# Distributed under the terms of the GNU General Public License v2 |
28 |
+ |
29 |
+EAPI=8 |
30 |
+ |
31 |
+inherit autotools toolchain-funcs |
32 |
+ |
33 |
+DESCRIPTION="Dialer Without a Useful Name (DWUN)" |
34 |
+HOMEPAGE="http://dwun.sourceforge.net/" |
35 |
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
36 |
+ |
37 |
+LICENSE="MIT GPL-2" # GPL-2 only for init script |
38 |
+SLOT="0" |
39 |
+KEYWORDS="~amd64 ~x86" |
40 |
+ |
41 |
+RDEPEND="virtual/libcrypt:=" |
42 |
+DEPEND="${RDEPEND}" |
43 |
+ |
44 |
+DOCS=( AUTHORS ChangeLog QUICKSTART README TODO UPGRADING ) |
45 |
+ |
46 |
+PATCHES=( |
47 |
+ "${FILESDIR}"/${P}-fno-common.patch |
48 |
+ "${FILESDIR}"/${P}-rename-configure.patch |
49 |
+ "${FILESDIR}"/${P}-implicit-function-declarations.patch |
50 |
+ "${FILESDIR}"/${P}-respect-AR.patch |
51 |
+) |
52 |
+ |
53 |
+src_prepare() { |
54 |
+ default |
55 |
+ |
56 |
+ sed -i -e "s:TODO QUICKSTART README UPGRADING ChangeLog COPYING AUTHORS::" Makefile.in || die |
57 |
+ |
58 |
+ eautoreconf |
59 |
+} |
60 |
+ |
61 |
+src_configure() { |
62 |
+ tc-export CC |
63 |
+ |
64 |
+ econf --with-docdir="share/doc/${PF}" |
65 |
+} |
66 |
+ |
67 |
+src_install() { |
68 |
+ default |
69 |
+ |
70 |
+ insinto /etc |
71 |
+ newins doc/examples/complete-rcfile dwunrc |
72 |
+ newins debian/dwunauth dwunauth |
73 |
+ newinitd "${FILESDIR}/dwun" dwun |
74 |
+} |
75 |
+ |
76 |
+pkg_postinst() { |
77 |
+ elog |
78 |
+ elog 'Make sure you have "net-dialup/ppp" merged if you intend to use dwun' |
79 |
+ elog "to control a standard PPP network link." |
80 |
+ elog "See /usr/share/doc/${P}/QUICKSTART for instructions on" |
81 |
+ elog "configuring dwun." |
82 |
+ elog |
83 |
+} |
84 |
|
85 |
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 |
86 |
new file mode 100644 |
87 |
index 000000000000..11248396f145 |
88 |
--- /dev/null |
89 |
+++ b/net-dialup/dwun/files/dwun-0.96e-implicit-function-declarations.patch |
90 |
@@ -0,0 +1,14 @@ |
91 |
+Needed for asprintf. |
92 |
+ |
93 |
+https://bugs.gentoo.org/870676 |
94 |
+--- a/configure.in |
95 |
++++ b/configure.in |
96 |
+@@ -8,6 +8,8 @@ AC_PROG_CC |
97 |
+ AC_PROG_RANLIB |
98 |
+ AC_PROG_INSTALL |
99 |
+ |
100 |
++AC_USE_SYSTEM_EXTENSIONS |
101 |
++ |
102 |
+ dnl Checks for libraries. |
103 |
+ AC_CHECK_LIB(crypt, crypt) |
104 |
+ AC_CHECK_LIB(nsl, gethostbyname) |
105 |
|
106 |
diff --git a/net-dialup/dwun/files/dwun-0.96e-rename-configure.patch b/net-dialup/dwun/files/dwun-0.96e-rename-configure.patch |
107 |
new file mode 100644 |
108 |
index 000000000000..9a0a843d6efa |
109 |
--- /dev/null |
110 |
+++ b/net-dialup/dwun/files/dwun-0.96e-rename-configure.patch |
111 |
@@ -0,0 +1,9 @@ |
112 |
+--- a/configure.in |
113 |
++++ b/configure.in |
114 |
+@@ -1,5 +1,5 @@ |
115 |
+ dnl Process this file with autoconf to produce a configure script. |
116 |
+-AC_INIT(configure.in) |
117 |
++AC_INIT(configure.ac) |
118 |
+ AM_INIT_AUTOMAKE(dwun, 0.96e) |
119 |
+ AM_CONFIG_HEADER(config.h) |
120 |
+ |
121 |
|
122 |
diff --git a/net-dialup/dwun/files/dwun-0.96e-respect-AR.patch b/net-dialup/dwun/files/dwun-0.96e-respect-AR.patch |
123 |
new file mode 100644 |
124 |
index 000000000000..b0b3a707e858 |
125 |
--- /dev/null |
126 |
+++ b/net-dialup/dwun/files/dwun-0.96e-respect-AR.patch |
127 |
@@ -0,0 +1,11 @@ |
128 |
+https://bugs.gentoo.org/724968 |
129 |
+--- a/configure.in |
130 |
++++ b/configure.in |
131 |
+@@ -7,6 +7,7 @@ dnl Checks for programs. |
132 |
+ AC_PROG_CC |
133 |
+ AC_PROG_RANLIB |
134 |
+ AC_PROG_INSTALL |
135 |
++AM_PROG_AR |
136 |
+ |
137 |
+ AC_USE_SYSTEM_EXTENSIONS |
138 |
+ |