blob: 68fa7eacc97393c56165ce8ec76fa128f8ed33ef (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Achim Gottinger <achim@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/net-print/LPRng/LPRng-3.6.26.ebuild,v 1.6 2001/06/24 20:13:37 achim Exp $
A=${P}.tgz
S=${WORKDIR}/${P}
DESCRIPTION="Extended implementation of the Berkley LPR print spooler"
SRC_URI="ftp://ftp.astart.com/pub/LPRng/LPRng/${A}"
HOMEPAGE="http://www.astart.com/LPRng/LPRng.html"
PROVIDE="virtual/lpr"
DEPEND="virtual/glibc >=sys-libs/ncurses-5.2 >=sys-apps/procps-2.0.6 nls? ( sys-devel/gettext )"
RDEPEND="virtual/glibc >=sys-libs/ncurses-5.2"
src_unpack() {
unpack ${A}
cd ${S}/po
rm Makefile.in.in
cp /usr/share/gettext/po/Makefile.in.in .
#rm -rf ${S}/intl
}
src_compile() {
local myconf
if [ "`use nls`" ] ; then
myconf="--enable-nls"
fi
try ./configure --host=${CHOST} --prefix=/usr --sysconfdir=/etc/lprng \
--mandir=/usr/share/man --libexecdir=/usr/lib $myconf
try make
}
src_install() {
cd ${S}
try make INSTALL_PREFIX=${D} datadir=${D}/usr/share \
gnulocaledir=${D}/usr/share/locale \
sysconfdir=${D}/etc/lprng \
POSTINSTALL="NO" install
# Fixing buggy mo installation
rm -rf ${D}/usr/share/locale
MOPREFIX=LPRng
domo po/fr.po
cd ${D}/usr/bin
chgrp lp lpr lprm
chmod g+s lpr lprm
cd ${D}/usr/sbin
chgrp lp lpc
chmod 744 lpd
chmod 555 lpc
chmod g+s lpc
dodir /var/spool/lpd/lp
chmod 775 ${D}/var/spool/lpd
chmod 755 ${D}/var/spool/lpd/lp
chgrp -R lp ${D}/var/spool/lpd
cd ${S}
dodir /etc/rc.d/init.d
cp ${FILESDIR}/lprng ${D}/etc/rc.d/init.d/lprng
insopts -m 755
insinto /usr/bin
doins ${FILESDIR}/lpdomatic
insinto /etc/lprng
insopts -m 644
doins printcap lpd.conf lpd.perms
cd ${S}
dodoc ABOUT-NLS.LPRng CHANGES CONTRIBUTORS COPYRIGHT LICENSE LINK README* UPDATE VERSION
dodoc HOWTO/*.txt HOWTO/*.ppt
docinto html
dodoc HOWTO/*.html HOWTO/*.gif
}
|