1 |
commit: e77c55978265b1f8ab7d4919f3a16a9c6f624e97 |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Feb 28 20:55:21 2021 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 28 20:56:01 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e77c5597 |
7 |
|
8 |
net-dialup/mgetty: drop old version |
9 |
|
10 |
Package-Manager: Portage-3.0.16, Repoman-3.0.2 |
11 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
12 |
|
13 |
net-dialup/mgetty/files/Lucent.c.patch | 17 --- |
14 |
net-dialup/mgetty/mgetty-1.2.1-r2.ebuild | 178 ------------------------------- |
15 |
2 files changed, 195 deletions(-) |
16 |
|
17 |
diff --git a/net-dialup/mgetty/files/Lucent.c.patch b/net-dialup/mgetty/files/Lucent.c.patch |
18 |
deleted file mode 100644 |
19 |
index 35b4b3e0b61..00000000000 |
20 |
--- a/net-dialup/mgetty/files/Lucent.c.patch |
21 |
+++ /dev/null |
22 |
@@ -1,17 +0,0 @@ |
23 |
-diff -Nru mgetty-1.1.31.orig/voice/libvoice/Lucent.c mgetty-1.1.31/voice/libvoice/Lucent.c |
24 |
---- mgetty-1.1.31.orig/voice/libvoice/Lucent.c 2004-11-20 16:13:01.000000000 -0500 |
25 |
-+++ mgetty-1.1.31/voice/libvoice/Lucent.c 2004-11-20 16:39:11.000000000 -0500 |
26 |
-@@ -96,6 +96,13 @@ |
27 |
- if (voice_command("AT+VLS=0", "OK") != VMA_USER_1) |
28 |
- lprintf(L_WARN, "can't deselect all input/output devices"); |
29 |
- |
30 |
-+ /* the Lucent chips DO support Caller ID, this command is OK */ |
31 |
-+ /* Just borrowed from the V253modem.c file */ |
32 |
-+ /* enable callerid (if supported) and setformat */ |
33 |
-+ if (voice_command("AT+VCID=1", "OK") != VMA_USER_1) |
34 |
-+ lprintf(L_WARN, "can't set caller ID output"); |
35 |
-+ /* mgetty supports formated callerid output */ |
36 |
-+ |
37 |
- voice_modem_state = IDLE; |
38 |
- return(OK); |
39 |
- } |
40 |
|
41 |
diff --git a/net-dialup/mgetty/mgetty-1.2.1-r2.ebuild b/net-dialup/mgetty/mgetty-1.2.1-r2.ebuild |
42 |
deleted file mode 100644 |
43 |
index 7e6986ebec4..00000000000 |
44 |
--- a/net-dialup/mgetty/mgetty-1.2.1-r2.ebuild |
45 |
+++ /dev/null |
46 |
@@ -1,178 +0,0 @@ |
47 |
-# Copyright 1999-2021 Gentoo Authors |
48 |
-# Distributed under the terms of the GNU General Public License v2 |
49 |
- |
50 |
-EAPI=7 |
51 |
- |
52 |
-inherit flag-o-matic toolchain-funcs |
53 |
- |
54 |
-DESCRIPTION="A programm for sending and receiving fax and voice" |
55 |
-HOMEPAGE="http://mgetty.greenie.net/" |
56 |
-SRC_URI="ftp://mgetty.greenie.net/pub/mgetty/source/$(ver_cut 1-2)/${P}.tar.gz" |
57 |
- |
58 |
-DEPEND=" |
59 |
- dev-lang/perl |
60 |
- sys-apps/groff |
61 |
- sys-apps/texinfo |
62 |
- virtual/awk |
63 |
- fax? ( !net-misc/efax ) |
64 |
-" |
65 |
- |
66 |
-RDEPEND=" |
67 |
- ${DEPEND} |
68 |
- acct-group/fax |
69 |
- acct-user/fax |
70 |
- fax? ( |
71 |
- app-text/ghostscript-gpl |
72 |
- media-libs/netpbm |
73 |
- ) |
74 |
-" |
75 |
- |
76 |
-SLOT="0" |
77 |
-LICENSE="GPL-2" |
78 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" |
79 |
-IUSE="+fax fidonet split-usr" |
80 |
- |
81 |
-PATCHES=( |
82 |
- "${FILESDIR}"/${PN}-1.1.36-callback.patch |
83 |
- "${FILESDIR}"/${PN}-1.1.36-tmpfile.patch |
84 |
- "${FILESDIR}"/${PN}-1.1.37-qa-fixes.patch |
85 |
- "${FILESDIR}"/${PN}-1.2.1-Lucent.c.patch |
86 |
- "${FILESDIR}"/${PN}-1.2.1-gentoo.patch |
87 |
-) |
88 |
- |
89 |
-src_prepare() { |
90 |
- default |
91 |
- |
92 |
- chmod +x mkidirs || die |
93 |
- |
94 |
- # don't install fax related files - bug #195467 |
95 |
- use fax || eapply "${FILESDIR}/${PN}-1.1.37-nofax.patch" |
96 |
- |
97 |
- sed -i -e 's:/usr/local/lib/mgetty+sendfax:/etc/mgetty+sendfax:' faxrunq.config || die 'changing mgetty config dir failed' |
98 |
- sed -i -e 's:/usr/local/bin/g3cat:/usr/bin/g3cat:' faxrunq.config fax/faxspool.rules || die 'changing g3cat path failed' |
99 |
- |
100 |
- sed -e "/^doc-all:/s/mgetty.asc mgetty.info mgetty.dvi mgetty.ps/mgetty.info/" \ |
101 |
- -i doc/Makefile || die 'first sed on doc/Makefile failed' |
102 |
- |
103 |
- sed -i \ |
104 |
- -e 's:^CC=:CC?=:g' \ |
105 |
- -e 's:^CFLAGS=:CFLAGS?=:g' \ |
106 |
- {,*/}Makefile || die |
107 |
- sed -i \ |
108 |
- -e 's:^AR=:AR?=:g' \ |
109 |
- -e 's:^CFLAGS=:CFLAGS+= -I..:g' \ |
110 |
- -e 's:^RANLIB=:RANLIB?=:g' \ |
111 |
- */Makefile || die |
112 |
-} |
113 |
- |
114 |
-src_configure() { |
115 |
- tc-export AR CC RANLIB |
116 |
- use fidonet && append-cppflags "-DFIDO" |
117 |
- append-cppflags "-DAUTO_PPP" |
118 |
- |
119 |
- sed -e 's:var/log/mgetty:var/log/mgetty/mgetty:' \ |
120 |
- -e 's:var/log/sendfax:var/log/mgetty/sendfax:' \ |
121 |
- -e 's:\/\* \(\#define CNDFILE "dialin.config"\) \*\/:\1:' \ |
122 |
- -e 's:\(\#define FAX_NOTIFY_PROGRAM\).*:\1 "/etc/mgetty+sendfax/new_fax":' \ |
123 |
- policy.h-dist > policy.h || die 'creating policy.h failed' |
124 |
- |
125 |
- sed -i \ |
126 |
- -e "s/\$(CFLAGS) -o newslock/${CFLAGS} ${LDFLAGS} -Wall -o newslock/" \ |
127 |
- -e "s/\$(LDLAGS)/${LDFLAGS}/" \ |
128 |
- {,fax/}Makefile || die |
129 |
-} |
130 |
- |
131 |
-src_compile() { |
132 |
- local target |
133 |
- for target in mgetty sedscript all vgetty;do |
134 |
- VARTEXFONTS="${T}"/fonts emake prefix=/usr \ |
135 |
- CONFDIR=/etc/mgetty+sendfax \ |
136 |
- CFLAGS="${CFLAGS} ${CPPFLAGS}" \ |
137 |
- LDFLAGS="${LDFLAGS}" \ |
138 |
- ${target} |
139 |
- done |
140 |
-} |
141 |
- |
142 |
-src_install() { |
143 |
- # parallelization issue: vgetty-install target fails if install target |
144 |
- # isn't finished |
145 |
- local target |
146 |
- for target in install "vgetty-install install-callback"; do |
147 |
- emake prefix="${D}/usr" \ |
148 |
- INFODIR="${D}/usr/share/info" \ |
149 |
- CONFDIR="${D}/etc/mgetty+sendfax" \ |
150 |
- MAN1DIR="${D}/usr/share/man/man1" \ |
151 |
- MAN4DIR="${D}/usr/share/man/man4" \ |
152 |
- MAN5DIR="${D}/usr/share/man/man5" \ |
153 |
- MAN8DIR="${D}/usr/share/man/man8" \ |
154 |
- SBINDIR="${D}/usr/sbin" \ |
155 |
- BINDIR="${D}/usr/bin" \ |
156 |
- VOICE_DIR="${D}/var/spool/voice" \ |
157 |
- PHONE_GROUP=fax \ |
158 |
- PHONE_PERMS=755 \ |
159 |
- spool="${D}/var/spool" \ |
160 |
- ${target} |
161 |
- done |
162 |
- |
163 |
- keepdir /var/log/mgetty |
164 |
- |
165 |
- # Install mgetty into /sbin (#119078) |
166 |
- if use split-usr; then |
167 |
- dodir /sbin |
168 |
- mv "${D}"/usr/sbin/mgetty "${D}"/sbin || die |
169 |
- dosym ../../sbin/mgetty /usr/sbin/mgetty |
170 |
- fi |
171 |
- |
172 |
- # Don't install ct (#106337) |
173 |
- rm "${D}"/usr/bin/ct || die "failed to remove useless ct program" |
174 |
- |
175 |
- dodoc BUGS ChangeLog README.1st Recommend THANKS TODO \ |
176 |
- doc/*.txt doc/modems.db |
177 |
- doinfo doc/mgetty.info |
178 |
- |
179 |
- docinto vgetty |
180 |
- dodoc voice/{Readme,Announce,ChangeLog,Credits} |
181 |
- |
182 |
- docinto vgetty/doc |
183 |
- dodoc voice/doc/* |
184 |
- |
185 |
- if use fax; then |
186 |
- mv samples/new_fax.all samples_new_fax.all || die "move failed." |
187 |
- docinto samples |
188 |
- dodoc samples/* |
189 |
- |
190 |
- docinto samples/new_fax |
191 |
- dodoc samples_new_fax.all/* |
192 |
- fi |
193 |
- |
194 |
- if ! use fax; then |
195 |
- insinto /usr/share/${PN}/frontends |
196 |
- doins -r frontends/{voice,network} |
197 |
- else |
198 |
- insinto /usr/share/${PN} |
199 |
- doins -r frontends |
200 |
- fi |
201 |
- insinto /usr/share/${PN} |
202 |
- doins -r patches |
203 |
- insinto /usr/share/${PN}/voice |
204 |
- doins -r voice/{contrib,Perl,scripts} |
205 |
- |
206 |
- diropts -m 0750 -o fax -g fax |
207 |
- dodir /var/spool/voice |
208 |
- keepdir /var/spool/voice/incoming |
209 |
- keepdir /var/spool/voice/messages |
210 |
- if use fax; then |
211 |
- dodir /var/spool/fax |
212 |
- dodir /var/spool/fax/outgoing |
213 |
- keepdir /var/spool/fax/outgoing/locks |
214 |
- keepdir /var/spool/fax/incoming |
215 |
- fi |
216 |
-} |
217 |
- |
218 |
-pkg_postinst() { |
219 |
- elog "Users who wish to use the fax or voicemail capabilities must be members" |
220 |
- elog "of the group fax in order to access files" |
221 |
- elog |
222 |
- elog "If you want to grab voice messages from a remote location, you must save" |
223 |
- elog "the password in /var/spool/voice/.code file" |
224 |
-} |