diff options
Diffstat (limited to 'net-print/lprng')
-rw-r--r-- | net-print/lprng/Manifest | 10 | ||||
-rw-r--r-- | net-print/lprng/files/lprng-3.8.27-certs.diff | 38 | ||||
-rw-r--r-- | net-print/lprng/files/lprng-3.8.28-krb.diff | 11 | ||||
-rw-r--r-- | net-print/lprng/files/lprng-3.8.28-make.diff | 11 | ||||
-rw-r--r-- | net-print/lprng/files/lprng-init | 38 | ||||
-rw-r--r-- | net-print/lprng/files/printcap | 23 | ||||
-rw-r--r-- | net-print/lprng/lprng-3.8.35-r3.ebuild | 80 | ||||
-rw-r--r-- | net-print/lprng/metadata.xml | 12 |
8 files changed, 223 insertions, 0 deletions
diff --git a/net-print/lprng/Manifest b/net-print/lprng/Manifest new file mode 100644 index 000000000000..06f44fe0b2b3 --- /dev/null +++ b/net-print/lprng/Manifest @@ -0,0 +1,10 @@ +AUX lprng-3.8.27-certs.diff 1120 SHA256 5e824162b235375337a421876ce543e28f53b4d25f790d6747af73807d060f68 SHA512 14d88ff3a78632f5f3ef69fd64a20adc745ca1169b3b7dc57d0374f279946b1be5c60e29370e1513222ebd1055d5840e8e3e843166e958be70119b42cbdfb4de WHIRLPOOL 56c91bc03a0f70a728fe1b86931a176dba73416ba685a771f4e081838d79a05dc0464e7e3b8408d5103d2d4429563528b05c6a0beb0d47b398282950949e9a72 +AUX lprng-3.8.28-krb.diff 428 SHA256 265955a2c521bab8c3f5a12da9b148a0558015fdcc299400361941f0e95b7a77 SHA512 70d7ea3d86d361d402063099e77aeb3d5dfc6e68823e2d00cfa1d3551d6a463a11ec736195d803faccf52dd82cc1965f4164d33536c794aab46b28bfd8f64788 WHIRLPOOL f118f064e29a93ae4b12be7ff134466e72d648a59f6f3544c232a8a60d2883dbc0342f12334d3fe319740c09275eebf44fe2883791ace84ffe814b0944eceeb3 +AUX lprng-3.8.28-make.diff 364 SHA256 0b52d36f0be51120489056be1064b8b44201c6d1f9f1412b51e55e7591a2dec7 SHA512 bddbcb12596daf86b9d4fdf270a57549626522081d46ae89eafa4eb4aee173a701732093646fb0f448653a94715e90eea379a7716839ec5769dea5e16c9b12f0 WHIRLPOOL 5b941c4f0e78c77080753f0c1f91ffc474c376ae9dfc5efeef9130f82b65ffe41696e4072062bcfec11206d5c83ef9a24f291dc08e5046f5a09d2a16d6a14682 +AUX lprng-init 944 SHA256 0d17c9f8db52283bae322c23ded57915c1286d27c405ab040f65f7f29a25d994 SHA512 10fbee633d27a8692f90af7f506e5144c3cbf614e9ecec6b910a590466a8c9aaf65d5778425504ac238e245d1c24e85953bb26b2a5df957f393683d2a9783cd5 WHIRLPOOL 2690bcf09a08bd689f6d0779e3376892a12b679d0c0becfcf139ea90d343d93959d26222fbe2cdf7a93a824da2fecc05ba79e587979d8716c1d5af900741efe7 +AUX printcap 551 SHA256 963014e115b4e97a95369bf0fb6022969aca0e00f1f7b0ddb777ff4d00d7aefb SHA512 f2536090359cca27c78c6f2bda89fef61dba9a0cf402364a685491c91c6ee1d7e4d693349b45a9ed576dbffcc64de0f09cb111e7cb89c844ccf68bcaa016bce9 WHIRLPOOL e933e90ae1b677215375e6882f8d028c401c3bb44a2d671bc405221217fff31ad2291f46eaa8b5fe237a819c70e2b42db4cbcdc32898e74c4ddc52bcf563c3b0 +DIST LPRng-3.8.35.tgz 12512453 SHA256 c9909a0b94f8611b8d2faeb1199e292a53b74bf7d16c363b810dce25b7623c37 SHA512 ddebf23087b6c98c89369af26a2e46194c01243490ae47b025afde8ffcf0b1c05b9689702296c1a8aa38c2c38934df094d8cc7e922ab1ac27f51ce19f3676771 WHIRLPOOL f4806cfae0a1f08b7328fd15d4886303c678b6b20f903688cf6a11f3b245ede7ab8f2158fec01946919411858e8cd9405fcebb847b98acd78bea9effae91d415 +EBUILD lprng-3.8.35-r3.ebuild 1993 SHA256 89a6565851c4e0cc755b6d219cff885c8fbb7b361682b168c2f69f1d477c2a53 SHA512 f18b181140d20c37c0b30ba47baa7b74360d7376430ba5f6db3e02f94ca586035b86ad9aad39edb713fb797240d3fcf3710adbe3912a2b94b72016569c5043fb WHIRLPOOL 437e170154a8a11550a0cd5a72ba9985bb49915ef35c319f2ed4f32a1ec5231824992e98783072b2e8c2ed89134317eda4e98315e53c1c899c45b213df442b0f +MISC ChangeLog 3026 SHA256 9c212b27ac1b24ff9ad3fcb8723e265750de771e31d72daca7e940c4bb55c718 SHA512 df5193fdefb8e18edde2aa76df4ff207998f1b2cc62bdaa52617a1f312098abc8e7cf44748e207069498f6518c068f7fca7301e5bc1a66d4ea5b3e51ea7ea236 WHIRLPOOL 0dbc21d6ff41b8e915596b145ab49c4788ea24748fa5a6a996a51c8b8488fb627dbced9e43d9589103b3009c790d2aa09dc2367bfe34c22961f88207ea30a1a5 +MISC ChangeLog-2015 9080 SHA256 f745c227b62cd29a66b1729ad6658d91c5f5cec778f134d7ba00ff9116f2f2cf SHA512 aa038daa34bd495c3cdb5f5d3675b72987f40f0105d876f53cfc78096d4e1872cc97196b08559dd654d15014d2e011ed0e927f211705dea5dfc59b13e2730fde WHIRLPOOL 2e2ba1a20975e5debfbce92157e86aef3f145db94537b11f3e21050e6a0f633657482f08ed52ee041fde86149610aca6ae8e9a0201af79a507432821d06ee5f3 +MISC metadata.xml 366 SHA256 637caeafdf7c66c86075f8cdff49030868960be28500c6ff142459961976a8b6 SHA512 6117e79cf777aa49a3212eea42384e1cfb8b54c3a759d8c98a89f516da2b4a503a01a0a4e785b1d030b2299bc6bf640e29cf7dfff0197605a75bf538e3dd1dd5 WHIRLPOOL eff7317aa6f05e46934ffb033d040e35caf35e9ca4f22aecda4ba8f1fc42d99a24344d0270cf22c46305ab1b50952f05117f54cccd701a83ad45d0d28e783de1 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-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..115c8adf3ed7 --- /dev/null +++ b/net-print/lprng/files/lprng-init @@ -0,0 +1,38 @@ +#!/sbin/openrc-run +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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..c851e8e2e826 --- /dev/null +++ b/net-print/lprng/files/printcap @@ -0,0 +1,23 @@ +# /etc/printcap: printer capability database. +# +# 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-r3.ebuild b/net-print/lprng/lprng-3.8.35-r3.ebuild new file mode 100644 index 000000000000..0848108f239f --- /dev/null +++ b/net-print/lprng/lprng-3.8.35-r3.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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/cups-filters[foomatic] 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..568181659c37 --- /dev/null +++ b/net-print/lprng/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>mgorny@gentoo.org</email> + <name>Michał Górny</name> + </maintainer> +<maintainer type="project"> + <email>printing@gentoo.org</email> + <name>Gentoo Printing Project</name> + </maintainer> +</pkgmetadata> |