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