summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Wendel <lanius@gentoo.org>2005-06-06 22:53:22 +0000
committerHeinrich Wendel <lanius@gentoo.org>2005-06-06 22:53:22 +0000
commitfbbcb6ed40f33c918835d8406d9624a4ee2125f2 (patch)
treec0d2ac6706c0646ed9328bfe123cc3b532826a98 /net-print/lprng/lprng-3.8.27-r2.ebuild
parentfix (diff)
downloadgentoo-2-fbbcb6ed40f33c918835d8406d9624a4ee2125f2.tar.gz
gentoo-2-fbbcb6ed40f33c918835d8406d9624a4ee2125f2.tar.bz2
gentoo-2-fbbcb6ed40f33c918835d8406d9624a4ee2125f2.zip
(Portage version: 2.0.51.19)
Diffstat (limited to 'net-print/lprng/lprng-3.8.27-r2.ebuild')
-rw-r--r--net-print/lprng/lprng-3.8.27-r2.ebuild88
1 files changed, 88 insertions, 0 deletions
diff --git a/net-print/lprng/lprng-3.8.27-r2.ebuild b/net-print/lprng/lprng-3.8.27-r2.ebuild
new file mode 100644
index 000000000000..3bd365b0d073
--- /dev/null
+++ b/net-print/lprng/lprng-3.8.27-r2.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-print/lprng/lprng-3.8.27-r2.ebuild,v 1.1 2005/06/06 22:53:22 lanius Exp $
+
+inherit eutils flag-o-matic
+
+IUSE="nls kerberos"
+
+MY_PN=LPRng
+
+S=${WORKDIR}/${MY_PN}-${PV}
+DESCRIPTION="Extended implementation of the Berkeley LPR print spooler"
+HOMEPAGE="http://www.lprng.com/"
+KEYWORDS="~x86 ~ppc ~sparc ~alpha ~hppa ~amd64 ~mips"
+SRC_URI="ftp://ftp.lprng.com/pub/${MY_PN}/${MY_PN}/${MY_PN}-${PV}.tgz"
+
+PROVIDE="virtual/lpr"
+
+DEPEND="virtual/libc
+ sys-process/procps
+ nls? ( sys-devel/gettext )
+ kerberos? ( virtual/krb5 )"
+
+RDEPEND="virtual/libc
+ sys-process/procps
+ !virtual/lpr
+ foomaticdb? ( net-print/foomatic )"
+
+LICENSE="|| ( GPL-2 Artistic )"
+SLOT="0"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${P}-certs.diff
+}
+
+src_compile() {
+ local myconf
+ use nls && myconf="--enable-nls"
+ use kerberos && myconf="--enable-kerberos"
+ # wont compile with -O3, needs -O2
+ replace-flags -O[3-9] -O2
+
+ ./configure \
+ --prefix=/usr \
+ --disable-setuid \
+ --with-userid=lp \
+ --with-groupid=lp \
+ --with-lpd_conf_path=/etc/lprng/lpd.conf \
+ --with-lpd_perms_path=/etc/lprng/lpd.perms \
+ --libexecdir=/usr/lib \
+ --sysconfdir=/etc/lprng \
+ --mandir=/usr/share/man \
+ --host=${CHOST} ${myconf} || die
+
+ make || die "printer on fire!"
+}
+
+src_install() {
+ dodir /var/spool/lpd
+ diropts -m 700 -o lp -g lp
+ dodir /var/spool/lpd/lp
+
+ make install \
+ DESTDIR=${D} \
+ POSTINSTALL="NO" \
+ gnulocaledir=${D}/usr/share/locale || die
+
+ # now included in foomatic 3.0
+ #exeinto /usr/bin
+ #doexe ${FILESDIR}/lpdomatic
+
+ dodoc CHANGES COPYRIGHT LICENSE README VERSION \
+ HOWTO/LPRng-HOWTO.pdf ${FILESDIR}/printcap \
+ lpd.conf lpd.perms
+ dohtml HOWTO/*
+
+ insinto /etc/lprng
+ doins ${FILESDIR}/printcap lpd.conf lpd.perms
+ dosym /etc/lprng/printcap /etc/printcap
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/lprng-init lprng
+}
+
+pkg_postinst() {
+ einfo "If printing does not work, try 'checkpc'/'checkpc -f'"
+}