diff options
author | Achim Gottinger <achim@gentoo.org> | 2000-08-13 12:10:50 +0000 |
---|---|---|
committer | Achim Gottinger <achim@gentoo.org> | 2000-08-13 12:10:50 +0000 |
commit | 13961b1ff5b7c535279a0a50cf461546180a4262 (patch) | |
tree | f35d9715dacb8d7ca759b23a2a48da6e403c948b /net-print | |
parent | *** empty log message *** (diff) | |
download | historical-13961b1ff5b7c535279a0a50cf461546180a4262.tar.gz historical-13961b1ff5b7c535279a0a50cf461546180a4262.tar.bz2 historical-13961b1ff5b7c535279a0a50cf461546180a4262.zip |
*** empty log message ***
Diffstat (limited to 'net-print')
-rw-r--r-- | net-print/LPRng/LPRng-3.6.19-r1.ebuild | 47 | ||||
-rw-r--r-- | net-print/LPRng/files/digest | 1 | ||||
-rwxr-xr-x | net-print/LPRng/files/lprng | 71 |
3 files changed, 119 insertions, 0 deletions
diff --git a/net-print/LPRng/LPRng-3.6.19-r1.ebuild b/net-print/LPRng/LPRng-3.6.19-r1.ebuild new file mode 100644 index 000000000000..c3775eb59028 --- /dev/null +++ b/net-print/LPRng/LPRng-3.6.19-r1.ebuild @@ -0,0 +1,47 @@ +# 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.19-r1.ebuild,v 1.1 2000/08/13 12:10:49 achim Exp $ + +P=LPRng-3.6.19 +A=${P}.tgz +S=${WORKDIR}/${P} +CATEGORY="net-print" +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" + +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() { + cd ${S} + ./configure --host=${CHOST} --prefix=/usr --sysconfdir=/etc/lprng \ + --enable-nls --with-catgets --with-included-gettext + make +} + +src_install() { + cd ${S} + make INSTALL_PREFIX=${D} datadir=${D}/usr/share gnulocaledir=${D}/usr/share/locale install + + prepman + + rm -rf ${D}/usr/share/locale + MOPREFIX=LPRng + domo po/fr.po + cp ${O}/files/lprng ${D}/etc/rc.d/init.d/lprng + 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 +} + + + diff --git a/net-print/LPRng/files/digest b/net-print/LPRng/files/digest new file mode 100644 index 000000000000..9ffbd3fa1032 --- /dev/null +++ b/net-print/LPRng/files/digest @@ -0,0 +1 @@ +MD5 3943e3f21e925f4e3f8fae268281b0c2 LPRng-3.6.19.tgz diff --git a/net-print/LPRng/files/lprng b/net-print/LPRng/files/lprng new file mode 100755 index 000000000000..b05f4caab1a3 --- /dev/null +++ b/net-print/LPRng/files/lprng @@ -0,0 +1,71 @@ +#!/bin/sh +#RCUPDATE:3 4:75: + +LPD_PATH="/usr/sbin/lpd" +INSTALL="/bin/install -c" +LPD_PERMS_PATH="/etc/lprng/lpd.perms" +LPD_CONF_PATH="/etc/lprng/lpd.conf" +PRINTCAP_PATH="/etc/lprng/printcap" +SYSCONFDIR=/etc/lprng +SBINDIR=/usr/sbin +FILTER_DIR=/usr/libexec/filters +LOCKFILE="/var/run/lpd" +PSHOWALL="-ax" +VERSION=3.6.19 +# +# -- START -- +# $Id: lprng,v 1.1 2000/08/13 12:10:50 achim Exp $ +# +# lpd This shell script takes care of starting and stopping +# lpd (printer daemon). +# Taken from the RedHat Linux 6.2 distribution for the lpd startup +# modified to make things a little more robust +# +# chkconfig: 2345 60 60 +# description: lpd is the print daemon required for lpr to work properly. \ +# It is basically a server that arbitrates print jobs to printer(s). +# processname: lpd +# config: /etc/printcap + +# Source function library. + +. /etc/rc.d/config/functions + + +[ -f "${LPD_PATH}" ] || exit 0 +[ -f /etc/printcap ] || exit 0 + +RETVAL=0 +SERVICE=lpd +opts="start stop restart status" + +# See how we were called. + +function start() { + # Start daemons. + ebegin "Starting lpd: " + start-stop-daemon --start --quiet --exec ${LPD_PATH} + eend $? "Started $SERVICE." "Error Starting $SERVICE" +} +function stop() { + + # Stop daemons. + ebegin "Shutting down lpd: " + start-stop-daemon --stop --quiet --pidfile ${LOCKFILE} --exec ${LPD_PATH} + eend $? "Stopped $SERVICE." "Error Stopping $SERVICE." +} + +function restart() { + + stop + start +} + +function status() { + + lpc lpd + +} + +doservice ${@} + |