1 |
pinkbyte 13/02/24 22:14:10 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mgetty-1.1.37.ebuild |
5 |
Log: |
6 |
Version bump |
7 |
|
8 |
(Portage version: 2.2.0_alpha163/cvs/Linux x86_64, signed Manifest commit with key 0x1F357D42) |
9 |
|
10 |
Revision Changes Path |
11 |
1.103 net-dialup/mgetty/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dialup/mgetty/ChangeLog?rev=1.103&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dialup/mgetty/ChangeLog?rev=1.103&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dialup/mgetty/ChangeLog?r1=1.102&r2=1.103 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-dialup/mgetty/ChangeLog,v |
20 |
retrieving revision 1.102 |
21 |
retrieving revision 1.103 |
22 |
diff -u -r1.102 -r1.103 |
23 |
--- ChangeLog 24 Feb 2013 20:55:57 -0000 1.102 |
24 |
+++ ChangeLog 24 Feb 2013 22:14:10 -0000 1.103 |
25 |
@@ -1,6 +1,14 @@ |
26 |
# ChangeLog for net-dialup/mgetty |
27 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-dialup/mgetty/ChangeLog,v 1.102 2013/02/24 20:55:57 pinkbyte Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/mgetty/ChangeLog,v 1.103 2013/02/24 22:14:10 pinkbyte Exp $ |
30 |
+ |
31 |
+*mgetty-1.1.37 (24 Feb 2013) |
32 |
+ |
33 |
+ 24 Feb 2013; Sergey Popov <pinkbyte@g.o> +mgetty-1.1.37.ebuild, |
34 |
+ +files/mgetty-1.1.37-gentoo.patch, +files/mgetty-1.1.37-nofax.patch, |
35 |
+ +files/mgetty-1.1.37-qa-fixes.patch: |
36 |
+ Version bump: EAPI 5, QA fixes, add blocker to net-misc/efax due to manpage |
37 |
+ file collision |
38 |
|
39 |
24 Feb 2013; Sergey Popov <pinkbyte@g.o> mgetty-1.1.36-r3.ebuild: |
40 |
Change awk dependency to virtual/awk, wrt bug #455666 |
41 |
|
42 |
|
43 |
|
44 |
1.1 net-dialup/mgetty/mgetty-1.1.37.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dialup/mgetty/mgetty-1.1.37.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dialup/mgetty/mgetty-1.1.37.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: mgetty-1.1.37.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2013 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/net-dialup/mgetty/mgetty-1.1.37.ebuild,v 1.1 2013/02/24 22:14:10 pinkbyte Exp $ |
54 |
|
55 |
EAPI=5 |
56 |
inherit eutils flag-o-matic toolchain-funcs user |
57 |
|
58 |
DESCRIPTION="fax and voice modem programs" |
59 |
SRC_URI="ftp://mgetty.greenie.net/pub/mgetty/source/1.1/${PN}${PV}-Jun05.tar.gz" |
60 |
HOMEPAGE="http://mgetty.greenie.net/" |
61 |
|
62 |
DEPEND="doc? ( virtual/latex-base virtual/texi2dvi ) |
63 |
>=sys-apps/sed-4 |
64 |
sys-apps/groff |
65 |
dev-lang/perl |
66 |
sys-apps/texinfo |
67 |
virtual/awk |
68 |
fax? ( |
69 |
!net-misc/efax |
70 |
!net-misc/hylafax |
71 |
)" |
72 |
RDEPEND="${DEPEND} |
73 |
fax? ( media-libs/netpbm app-text/ghostscript-gpl )" |
74 |
|
75 |
SLOT="0" |
76 |
LICENSE="GPL-2" |
77 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" |
78 |
IUSE="doc +fax fidonet" |
79 |
|
80 |
pkg_setup() { |
81 |
enewgroup fax |
82 |
enewuser fax -1 -1 /dev/null fax |
83 |
} |
84 |
|
85 |
src_prepare() { |
86 |
epatch "${FILESDIR}/${P}-gentoo.patch" |
87 |
epatch "${FILESDIR}/${P}-qa-fixes.patch" |
88 |
epatch "${FILESDIR}/${PN}-1.1.36-callback.patch" # add callback install to Makefile |
89 |
epatch "${FILESDIR}/Lucent.c.patch" # Lucent modem CallerID patch - bug #80366 |
90 |
use fax || epatch "${FILESDIR}/${P}-nofax.patch" # don't install fax related files - bug #195467 |
91 |
epatch "${FILESDIR}/${PN}-1.1.36-tmpfile.patch" # fix security bug 235806 |
92 |
|
93 |
sed -e 's:var/log/mgetty:var/log/mgetty/mgetty:' \ |
94 |
-e 's:var/log/sendfax:var/log/mgetty/sendfax:' \ |
95 |
-e 's:\/\* \(\#define CNDFILE "dialin.config"\) \*\/:\1:' \ |
96 |
-e 's:\(\#define FAX_NOTIFY_PROGRAM\).*:\1 "/etc/mgetty+sendfax/new_fax":' \ |
97 |
"${S}/policy.h-dist" > "${S}/policy.h" || die 'creating policy.h failed' |
98 |
|
99 |
sed -i -e 's:/usr/local/lib/mgetty+sendfax:/etc/mgetty+sendfax:' faxrunq.config || die 'changing mgetty config dir failed' |
100 |
sed -i -e 's:/usr/local/bin/g3cat:/usr/bin/g3cat:' faxrunq.config fax/faxspool.rules || die 'changing g3cat path failed' |
101 |
|
102 |
sed -e "/^doc-all:/s/mgetty.asc mgetty.info mgetty.dvi mgetty.ps/mgetty.info/" \ |
103 |
-i "${S}/doc/Makefile" || die 'first sed on doc/Makefile failed' |
104 |
if use doc; then |
105 |
sed -e "s/^doc-all:/doc-all: mgetty.ps/" \ |
106 |
-i "${S}/doc/Makefile" || die 'second sed on doc/Makefile failed' |
107 |
fi |
108 |
} |
109 |
|
110 |
src_compile() { |
111 |
use fidonet && append-cppflags "-DFIDO" |
112 |
append-cppflags "-DAUTO_PPP" |
113 |
# bug #299421 |
114 |
VARTEXFONTS="${T}"/fonts emake -j1 prefix=/usr \ |
115 |
CC="$(tc-getCC)" \ |
116 |
CONFDIR=/etc/mgetty+sendfax \ |
117 |
CFLAGS="${CFLAGS} ${CPPFLAGS}" \ |
118 |
LDFLAGS="${LDFLAGS}" \ |
119 |
all vgetty |
120 |
} |
121 |
|
122 |
src_install () { |
123 |
# parallelization issue: vgetty-install target fails if install target |
124 |
# isn't finished |
125 |
local targets |
126 |
for targets in install "vgetty-install install-callback"; do |
127 |
emake prefix="${D}/usr" \ |
128 |
INFODIR="${D}/usr/share/info" \ |
129 |
CONFDIR="${D}/etc/mgetty+sendfax" \ |
130 |
MAN1DIR="${D}/usr/share/man/man1" \ |
131 |
MAN4DIR="${D}/usr/share/man/man4" \ |
132 |
MAN5DIR="${D}/usr/share/man/man5" \ |
133 |
MAN8DIR="${D}/usr/share/man/man8" \ |
134 |
SBINDIR="${D}/usr/sbin" \ |
135 |
BINDIR="${D}/usr/bin" \ |
136 |
VOICE_DIR="${D}/var/spool/voice" \ |
137 |
PHONE_GROUP=fax \ |
138 |
PHONE_PERMS=755 \ |
139 |
spool="${D}/var/spool" \ |
140 |
${targets} |
141 |
done |
142 |
|
143 |
keepdir /var/log/mgetty |
144 |
|
145 |
#Install mgetty into /sbin (#119078) |
146 |
dodir /sbin && \ |
147 |
mv "${D}"/usr/sbin/mgetty "${D}"/sbin && \ |
148 |
dosym /sbin/mgetty /usr/sbin/mgetty || die "failed to install /sbin/mgetty" |
149 |
#Don't install ct (#106337) |
150 |
rm "${D}"/usr/bin/ct || die "failed to remove useless ct program" |
151 |
|
152 |
dodoc BUGS ChangeLog README.1st Recommend THANKS TODO \ |
153 |
doc/*.txt doc/modems.db |
154 |
doinfo doc/mgetty.info |
155 |
|
156 |
docinto vgetty |
157 |
dodoc voice/{Readme,Announce,ChangeLog,Credits} |
158 |
|
159 |
if use doc; then |
160 |
dodoc doc/mgetty.ps |
161 |
fi |
162 |
|
163 |
docinto vgetty/doc |
164 |
dodoc voice/doc/* |
165 |
|
166 |
if use fax; then |
167 |
mv samples/new_fax.all samples_new_fax.all || die "move failed." |
168 |
docinto samples |
169 |
dodoc samples/* |
170 |
|
171 |
docinto samples/new_fax |
172 |
dodoc samples_new_fax.all/* |
173 |
fi |
174 |
|
175 |
if ! use fax; then |
176 |
insinto /usr/share/${PN}/frontends |
177 |
doins -r frontends/{voice,network} |
178 |
else |
179 |
insinto /usr/share/${PN} |
180 |
doins -r frontends |
181 |
fi |
182 |
insinto /usr/share/${PN} |
183 |
doins -r patches |
184 |
insinto /usr/share/${PN}/voice |
185 |
doins -r voice/{contrib,Perl,scripts} |
186 |
|
187 |
diropts -m 0750 -o fax -g fax |
188 |
dodir /var/spool/voice |
189 |
keepdir /var/spool/voice/incoming |
190 |
keepdir /var/spool/voice/messages |
191 |
if use fax; then |
192 |
dodir /var/spool/fax |
193 |
dodir /var/spool/fax/outgoing |
194 |
keepdir /var/spool/fax/outgoing/locks |
195 |
keepdir /var/spool/fax/incoming |
196 |
fi |
197 |
} |
198 |
|
199 |
pkg_postinst() { |
200 |
elog "Users who wish to use the fax or voicemail capabilities must be members" |
201 |
elog "of the group fax in order to access files" |
202 |
elog |
203 |
elog "If you want to grab voice messages from a remote location, you must save" |
204 |
elog "the password in /var/spool/voice/.code file" |
205 |
echo |
206 |
ewarn "/var/spool/voice/.code and /var/spool/voice/messages/Index" |
207 |
ewarn "are not longer created by this automatically!" |
208 |
} |