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