summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /net-print/lprng
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'net-print/lprng')
-rw-r--r--net-print/lprng/Manifest1
-rw-r--r--net-print/lprng/files/lprng-3.8.27-certs.diff38
-rw-r--r--net-print/lprng/files/lprng-3.8.28-krb.diff11
-rw-r--r--net-print/lprng/files/lprng-3.8.28-lpq.diff11
-rw-r--r--net-print/lprng/files/lprng-3.8.28-make.diff11
-rw-r--r--net-print/lprng/files/lprng-init39
-rw-r--r--net-print/lprng/files/printcap24
-rw-r--r--net-print/lprng/lprng-3.8.35-r2.ebuild80
-rw-r--r--net-print/lprng/metadata.xml9
9 files changed, 224 insertions, 0 deletions
diff --git a/net-print/lprng/Manifest b/net-print/lprng/Manifest
new file mode 100644
index 000000000000..15f48e5bfaf5
--- /dev/null
+++ b/net-print/lprng/Manifest
@@ -0,0 +1 @@
+DIST LPRng-3.8.35.tgz 12512453 SHA256 c9909a0b94f8611b8d2faeb1199e292a53b74bf7d16c363b810dce25b7623c37 SHA512 ddebf23087b6c98c89369af26a2e46194c01243490ae47b025afde8ffcf0b1c05b9689702296c1a8aa38c2c38934df094d8cc7e922ab1ac27f51ce19f3676771 WHIRLPOOL f4806cfae0a1f08b7328fd15d4886303c678b6b20f903688cf6a11f3b245ede7ab8f2158fec01946919411858e8cd9405fcebb847b98acd78bea9effae91d415
diff --git a/net-print/lprng/files/lprng-3.8.27-certs.diff b/net-print/lprng/files/lprng-3.8.27-certs.diff
new file mode 100644
index 000000000000..13b9051aea0c
--- /dev/null
+++ b/net-print/lprng/files/lprng-3.8.27-certs.diff
@@ -0,0 +1,38 @@
+--- LPRng-3.8.27/src/lprng_certs.orig 2004-12-20 00:29:21.000000000 +0100
++++ LPRng-3.8.27/src/lprng_certs.sh 2004-12-20 00:33:49.000000000 +0100
+@@ -320,7 +320,9 @@
+ # set default values
+
+
+-CFG=/tmp/$$.sslcfg
++TMPDIR=`mktemp -d -t lprng.XXXXXX` || { echo "$0: Cannot create temporary directory!" >&2 ; exit 1; }
++trap "/bin/rm -rf ${TMPDIR}" 0 1 2 3 13 15
++CFG=$TMPDIR/sslcfg
+
+ OPENSSL=/usr/bin/openssl
+ CA_KEY=//etc/lprng/ssl.ca/ca.key
+@@ -508,14 +510,14 @@
+ shift
+ if [ "$1" = "" ] ; then usage; fi;
+ if [ ! -f "$1" ] ; then useage; fi;
+- sed -n -e '/BEGIN.*PRIVATE KEY/,/END.*PRIVATE KEY/p' $1 >/tmp/$$.key
+- sed -e '/BEGIN.*PRIVATE KEY/,/END.*PRIVATE KEY/d' $1 >/tmp/$$.crt
+- STEP="" encrypt /tmp/$$.key
++ sed -n -e '/BEGIN.*PRIVATE KEY/,/END.*PRIVATE KEY/p' $1 >$TMPDIR/key
++ sed -e '/BEGIN.*PRIVATE KEY/,/END.*PRIVATE KEY/d' $1 >$TMPDIR/crt
++ STEP="" encrypt $TMPDIR/key
+ status=$?
+ echo STATUS $status
+ if [ $status = 0 ] ; then
+ mv $1 $1.orig
+- cat /tmp/$$.crt /tmp/$$.key >$1
++ cat $TMPDIR/crt $TMPDIR/key >$1
+ fi
+ ;;
+
+@@ -845,5 +847,4 @@
+ exit 1
+ ;;
+ esac
+-rm -f ${CFG}
+ exit $RET
diff --git a/net-print/lprng/files/lprng-3.8.28-krb.diff b/net-print/lprng/files/lprng-3.8.28-krb.diff
new file mode 100644
index 000000000000..76381e560d06
--- /dev/null
+++ b/net-print/lprng/files/lprng-3.8.28-krb.diff
@@ -0,0 +1,11 @@
+--- LPRng-3.8.28/src/common/krb5_auth.c.org 2004-09-24 22:19:57.000000000 +0200
++++ LPRng-3.8.28/src/common/krb5_auth.c 2006-10-13 09:19:44.000000000 +0200
+@@ -922,7 +922,7 @@
+ nstored = 0;
+ }
+
+- if ((cc = Read_fd_len_timeout(transfer_timeout, fd, len_buf, 4)) != 4) {
++ if ((cc = Read_fd_len_timeout(transfer_timeout, fd, (char*)len_buf, 4)) != 4) {
+ /* XXX can't read enough, pipe must have closed */
+ return(0);
+ }
diff --git a/net-print/lprng/files/lprng-3.8.28-lpq.diff b/net-print/lprng/files/lprng-3.8.28-lpq.diff
new file mode 100644
index 000000000000..51fc500b34e7
--- /dev/null
+++ b/net-print/lprng/files/lprng-3.8.28-lpq.diff
@@ -0,0 +1,11 @@
+--- LPRng-3.8.28/src/common/lpq.c.orig 2004-09-24 22:19:58.000000000 +0200
++++ LPRng-3.8.28/src/common/lpq.c 2006-06-26 15:42:57.000000000 +0200
+@@ -449,7 +449,7 @@
+ if( (pid = dofork(0)) == 0 ){
+ setuid( OriginalRUID );
+ close_on_exec(3);
+- execl(CLEAR,0);
++ execl(CLEAR, CLEAR, (char*) NULL);
+ exit(1);
+ } else if( pid < 0 ){
+ LOGERR_DIE(LOG_ERR) _("fork() failed") );
diff --git a/net-print/lprng/files/lprng-3.8.28-make.diff b/net-print/lprng/files/lprng-3.8.28-make.diff
new file mode 100644
index 000000000000..66c742dd994f
--- /dev/null
+++ b/net-print/lprng/files/lprng-3.8.28-make.diff
@@ -0,0 +1,11 @@
+--- LPRng-3.8.28/Makefile.in.orig 2004-09-24 22:19:52.000000000 +0200
++++ LPRng-3.8.28/Makefile.in 2006-06-27 09:26:13.000000000 +0200
+@@ -42,7 +42,7 @@
+ LPD_CONF_PATH=\"@LPD_CONF_PATH@\"
+ PRINTCAP_PATH=\"@PRINTCAP_PATH@\"
+ LPD_PATH=\"@LPD_DIR@/lpd\"
+-SHELL="@SHELL@"
++SHELL=@SHELL@
+ LOCKFILE=\"@LOCKFILE@\"
+ CONFIG_SUBDIR="@CONFIG_SUBDIR@"
+ PSHOWALL="@PSHOWALL@"
diff --git a/net-print/lprng/files/lprng-init b/net-print/lprng/files/lprng-init
new file mode 100644
index 000000000000..992e7e7eb4a3
--- /dev/null
+++ b/net-print/lprng/files/lprng-init
@@ -0,0 +1,39 @@
+#!/sbin/runscript
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+depend() {
+ need net
+}
+
+checkconfig() {
+ if [ ! -e /etc/lprng/lpd.conf ] ; then
+ eerror "You need an /etc/lprng/lpd.conf file first"
+ eerror "There is a sample in /usr/share/doc/LPRng"
+ return 1
+ fi
+ if [ ! -e /etc/lprng/printcap ] ; then
+ eerror "You need an /etc/lprng/printcap file first"
+ eerror "There is a sample in /usr/share/doc/LPRng"
+ return 1
+ fi
+ if [ ! -e /etc/lprng/lpd.perms ] ; then
+ eerror "You need an /etc/lprng/lpd.perms file first"
+ eerror "There is a sample in /usr/share/doc/LPRng"
+ return 1
+ fi
+}
+
+start() {
+ checkconfig || return 1
+ ebegin "Starting lpd"
+ start-stop-daemon --start --pidfile "/var/run/lpd.515" --quiet --exec /usr/sbin/lpd
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping lpd"
+ start-stop-daemon --stop --pidfile "/var/run/lpd.515" --quiet --exec /usr/sbin/lpd
+ eend $?
+}
diff --git a/net-print/lprng/files/printcap b/net-print/lprng/files/printcap
new file mode 100644
index 000000000000..500aec20c21f
--- /dev/null
+++ b/net-print/lprng/files/printcap
@@ -0,0 +1,24 @@
+# /etc/printcap: printer capability database.
+# $Id$
+#
+# You can use the filter entries df, tf, cf, gf etc. for your
+# own filters. See the printcap(5) manpage for more details.
+
+lp|Generic dot-matrix printer entry
+ :lp=/dev/lp1
+ :sd=/var/spool/lpd/lp
+ :af=/var/log/lp-acct
+ :lf=/var/log/lp-errs
+ :pl#66
+ :pw#80
+ :pc#150
+ :mx#0
+ :sh
+
+# rlp|Remote printer entry
+# :lp=
+# :rm=remotehost
+# :rp=remoteprinter
+# :sd=/var/spool/lpd/remote
+# :mx#0
+# :sh
diff --git a/net-print/lprng/lprng-3.8.35-r2.ebuild b/net-print/lprng/lprng-3.8.35-r2.ebuild
new file mode 100644
index 000000000000..4ad29b2ba634
--- /dev/null
+++ b/net-print/lprng/lprng-3.8.35-r2.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit eutils flag-o-matic
+
+MY_PN=LPRng
+DESCRIPTION="Extended implementation of the Berkeley LPR print spooler"
+HOMEPAGE="http://www.lprng.com/"
+SRC_URI="ftp://ftp.lprng.com/pub/${MY_PN}/${MY_PN}/${MY_PN}-${PV}.tgz"
+
+LICENSE="|| ( GPL-2 Artistic )"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sh sparc x86"
+IUSE="foomaticdb kerberos nls ssl"
+
+RDEPEND="sys-process/procps
+ ssl? ( dev-libs/openssl )
+ foomaticdb? ( net-print/foomatic-filters net-print/foomatic-db )
+ !>=net-print/cups-1.6.2-r4[-lprng-compat]
+ !<net-print/cups-1.6.2-r4"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )
+ kerberos? ( app-crypt/mit-krb5 )"
+
+S=${WORKDIR}/${MY_PN}-${PV}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-3.8.27-certs.diff
+ epatch "${FILESDIR}"/${PN}-3.8.28-make.diff
+ epatch "${FILESDIR}"/${PN}-3.8.28-krb.diff
+}
+
+src_configure() {
+ # wont compile with -O3, needs -O2
+ replace-flags -O[3-9] -O2
+
+ econf \
+ $(use_enable nls) \
+ $(use_enable kerberos) \
+ $(use_enable ssl) \
+ --disable-setuid \
+ --disable-werror \
+ --with-userid=lp \
+ --with-groupid=lp \
+ --with-lpd_conf_path=/etc/lprng/lpd.conf \
+ --with-lpd_perms_path=/etc/lprng/lpd.perms \
+ --libexecdir=/usr/libexec/lprng \
+ --sysconfdir=/etc/lprng \
+ --disable-strip
+}
+
+src_compile() {
+ # bash is necessary due to bashisms in libtool
+ emake -j1 SHELL=/bin/bash
+}
+
+src_install() {
+ dodir /var/spool/lpd
+ diropts -m 700 -o lp -g lp
+ dodir /var/spool/lpd/lp
+
+ emake install \
+ DESTDIR="${D}" \
+ POSTINSTALL="NO" \
+ gnulocaledir="${D}"/usr/share/locale
+
+ dodoc CHANGES README VERSION "${FILESDIR}"/printcap lpd.conf lpd.perms
+
+ insinto /etc/lprng
+ doins "${FILESDIR}"/printcap lpd.conf lpd.perms
+ dosym /etc/lprng/printcap /etc/printcap
+ newinitd "${FILESDIR}"/lprng-init lprng
+}
+
+pkg_postinst() {
+ einfo "If printing does not work, try 'checkpc'/'checkpc -f'"
+}
diff --git a/net-print/lprng/metadata.xml b/net-print/lprng/metadata.xml
new file mode 100644
index 000000000000..b04e4cfadbc6
--- /dev/null
+++ b/net-print/lprng/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>printing</herd>
+ <maintainer>
+ <email>mgorny@gentoo.org</email>
+ <name>Michał Górny</name>
+ </maintainer>
+</pkgmetadata>