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