Gentoo Archives: gentoo-commits

From: "Alin Nastac (mrness)" <mrness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-dialup/mgetty: ChangeLog mgetty-1.1.36.ebuild
Date: Fri, 14 Sep 2007 20:41:22
Message-Id: E1IWHrT-0005kq-QL@stork.gentoo.org
1 mrness 07/09/14 20:33:59
2
3 Modified: ChangeLog
4 Added: mgetty-1.1.36.ebuild
5 Log:
6 Use ghostscript instead acroread and add netpbm and ghostscript to run-time dependencies (#191441).
7 (Portage version: 2.1.2.12)
8
9 Revision Changes Path
10 1.74 net-dialup/mgetty/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dialup/mgetty/ChangeLog?rev=1.74&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dialup/mgetty/ChangeLog?rev=1.74&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dialup/mgetty/ChangeLog?r1=1.73&r2=1.74
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-dialup/mgetty/ChangeLog,v
19 retrieving revision 1.73
20 retrieving revision 1.74
21 diff -u -r1.73 -r1.74
22 --- ChangeLog 6 May 2007 07:57:44 -0000 1.73
23 +++ ChangeLog 14 Sep 2007 20:33:55 -0000 1.74
24 @@ -1,6 +1,14 @@
25 # ChangeLog for net-dialup/mgetty
26 # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-dialup/mgetty/ChangeLog,v 1.73 2007/05/06 07:57:44 genone Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-dialup/mgetty/ChangeLog,v 1.74 2007/09/14 20:33:55 mrness Exp $
29 +
30 +*mgetty-1.1.36 (14 Sep 2007)
31 +
32 + 14 Sep 2007; Alin Năstac <mrness@g.o>
33 + +files/mgetty-1.1.36-callback.patch, +files/mgetty-1.1.36-gentoo.patch,
34 + +files/mgetty-1.1.36-qa-fixes.patch, +mgetty-1.1.36.ebuild:
35 + Use ghostscript instead acroread and add netpbm and ghostscript to run-time
36 + dependencies (#191441).
37
38 06 May 2007; Marius Mauch <genone@g.o> mgetty-1.1.35-r2.ebuild:
39 Replacing einfo with elog
40
41
42
43 1.1 net-dialup/mgetty/mgetty-1.1.36.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dialup/mgetty/mgetty-1.1.36.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dialup/mgetty/mgetty-1.1.36.ebuild?rev=1.1&content-type=text/plain
47
48 Index: mgetty-1.1.36.ebuild
49 ===================================================================
50 # Copyright 1999-2007 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/net-dialup/mgetty/mgetty-1.1.36.ebuild,v 1.1 2007/09/14 20:33:55 mrness Exp $
53
54 inherit toolchain-funcs flag-o-matic eutils
55
56 DESCRIPTION="Fax and Voice modem programs."
57 SRC_URI="ftp://mgetty.greenie.net/pub/mgetty/source/1.1/${PN}${PV}-Jun15.tar.gz"
58 HOMEPAGE="http://mgetty.greenie.net/"
59
60 DEPEND="doc? ( virtual/tetex )
61 >=sys-apps/sed-4
62 sys-apps/gawk
63 sys-apps/groff
64 dev-lang/perl
65 sys-apps/texinfo"
66 RDEPEND="${DEPEND}
67 media-libs/netpbm
68 virtual/ghostscript"
69
70 SLOT="0"
71 LICENSE="GPL-2"
72 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~sparc ~x86"
73 IUSE="doc fidonet"
74
75 pkg_setup() {
76 enewgroup fax
77 enewuser fax -1 -1 /dev/null fax
78 }
79
80 src_unpack() {
81 unpack ${A}
82
83 cd "${S}"
84 epatch "${FILESDIR}/${P}-gentoo.patch"
85 epatch "${FILESDIR}/${P}-qa-fixes.patch"
86 epatch "${FILESDIR}/${P}-callback.patch" # add callback install to Makefile
87 epatch "${FILESDIR}/Lucent.c.patch" # Lucent modem CallerID patch - bug #80366
88
89 sed -e 's:var/log/mgetty:var/log/mgetty/mgetty:' \
90 -e 's:var/log/sendfax:var/log/mgetty/sendfax:' \
91 -e 's:\/\* \(\#define CNDFILE "dialin.config"\) \*\/:\1:' \
92 -e 's:\(\#define FAX_NOTIFY_PROGRAM\).*:\1 "/etc/mgetty+sendfax/new_fax":' \
93 "${S}/policy.h-dist" > "${S}/policy.h"
94
95 sed -i -e 's:/usr/local/lib/mgetty+sendfax:/etc/mgetty+sendfax:' faxrunq.config
96 sed -i -e 's:/usr/local/bin/g3cat:/usr/bin/g3cat:' faxrunq.config fax/faxspool.rules
97
98 sed -e "/^doc-all:/s/mgetty.asc mgetty.info mgetty.dvi mgetty.ps/mgetty.info/" \
99 -i "${S}/doc/Makefile"
100 if use doc; then
101 sed -e "s:dvips -o mgetty.ps:dvips -M -o mgetty.ps:" \
102 -e "s/^doc-all:/doc-all: mgetty.ps/" \
103 -i "${S}/doc/Makefile"
104 fi
105 }
106
107 src_compile() {
108 #Avoid "is setXid, dynamically linked and using lazy bindings" QA notices
109 append-ldflags $(bindnow-flags)
110
111 use fidonet && append-flags "-DFIDO"
112 append-flags "-DAUTO_PPP"
113
114 # parallel make fix later - 'sedscript' issue
115 make prefix=/usr \
116 CC="$(tc-getCC)" \
117 CONFDIR=/etc/mgetty+sendfax \
118 CFLAGS="${CFLAGS}" \
119 LDFLAGS="${LDFLAGS}" \
120 all vgetty || die "make failed."
121 }
122
123 src_install () {
124 dodir /var/spool
125 keepdir /var/log/mgetty
126 dodir /usr/share/info
127
128 make prefix="${D}/usr" \
129 INFODIR="${D}/usr/share/info" \
130 CONFDIR="${D}/etc/mgetty+sendfax" \
131 MAN1DIR="${D}/usr/share/man/man1" \
132 MAN4DIR="${D}/usr/share/man/man4" \
133 MAN5DIR="${D}/usr/share/man/man5" \
134 MAN8DIR="${D}/usr/share/man/man8" \
135 SBINDIR="${D}/usr/sbin" \
136 BINDIR="${D}/usr/bin" \
137 VOICE_DIR="${D}/var/spool/voice" \
138 PHONE_GROUP=fax \
139 PHONE_PERMS=755 \
140 spool="${D}/var/spool" \
141 install vgetty-install install-callback || die "make install failed."
142
143 #Install mgetty into /sbin (#119078)
144 dodir /sbin && \
145 mv "${D}"/usr/sbin/mgetty "${D}"/sbin && \
146 dosym /sbin/mgetty /usr/sbin/mgetty || die "failed to install /sbin/mgetty"
147 #Don't install ct (#106337)
148 rm "${D}"/usr/bin/ct || die "failed to remove useless ct program"
149
150 cd "${S}"
151 dodoc BUGS ChangeLog README.1st Recommend THANKS TODO \
152 doc/*.txt doc/modems.db || die "dodoc failed."
153 doinfo doc/mgetty.info || die "doinfo failed."
154
155 docinto vgetty
156 dodoc voice/{Readme,Announce,ChangeLog,Credits} || die "vgetty voice failed."
157
158 if use doc; then
159 dodoc doc/mgetty.ps || die "mgetty.ps failed"
160 fi
161
162 docinto vgetty/doc
163 dodoc voice/doc/*
164
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
172 insinto /usr/share/${PN}
173 doins -r patches frontends
174 insinto /usr/share/${PN}/voice
175 doins -r voice/{contrib,Perl,scripts}
176
177 diropts -m 0750 -o fax -g fax
178 dodir /var/spool/voice
179 keepdir /var/spool/voice/incoming
180 keepdir /var/spool/voice/messages
181 dodir /var/spool/fax
182 dodir /var/spool/fax/outgoing
183 keepdir /var/spool/fax/outgoing/locks
184 keepdir /var/spool/fax/incoming
185 }
186
187 pkg_postinst() {
188 elog "Users who wish to use the fax or voicemail capabilities must be members"
189 elog "of the group fax in order to access files"
190 elog
191 elog "If you want to grab voice messages from a remote location, you must save"
192 elog "the password in ${ROOT}var/spool/voice/.code file"
193 echo
194 ewarn "${ROOT}var/spool/voice/.code and ${ROOT}var/spool/voice/messages/Index"
195 ewarn "are not longer created by this automatically!"
196 }
197
198
199
200 --
201 gentoo-commits@g.o mailing list