blob: 8c32dd36e2fd901b61331db66e9e5ced08f066f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Copyright 1999-2001 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# /home/cvsroot/gentoo-x86/skel.build,v 1.7 2001/08/25 21:15:08 chadh Exp
S=${WORKDIR}/${P}
DESCRIPTION="Fax and Voice modem programs."
SRC_URI="ftp://alpha.greenie.net/pub/mgetty/source/1.1/${PN}${PV}-Apr16.tar.gz"
HOMEPAGE="http://alpha.greenie.net/mgetty"
DEPEND="sys-libs/glibc
app-text/tetex
sys-apps/gawk
sys-devel/perl"
src_compile() {
cd doc
patch -p0 < ${FILESDIR}/mgetty-${PV}-gentoo.diff
cd ..
sed -e 's/var\/log\/mgetty/var\/log\/mgetty\/mgetty/' policy.h-dist > policy.h
emake || die
cd voice
emake || die
cd ..
}
src_install () {
#you must *personally verify* that this trick doesn't install
#anything outside of DESTDIR; do this by reading and understanding
#the install part of the Makefiles. Also note that this will often
#also work for autoconf stuff (usually much more often than DESTDIR,
#which is actually quite rare.
dodir /var/spool
dodir /usr/share/info
make prefix=${D}/usr INFODIR=${D}/usr/share CONFDIR=${D}/etc/mgetty+sendfax spool=${D}/var/spool install || die
cd voice
make prefix=${D}/usr spool=${D}/var/spool install || die
#make DESTDIR=${D} install || die
#again, verify the Makefiles! We don't want anything falling outside
#of ${D}.
}
|