diff options
author | Heinrich Wendel <lanius@gentoo.org> | 2005-06-07 17:02:33 +0000 |
---|---|---|
committer | Heinrich Wendel <lanius@gentoo.org> | 2005-06-07 17:02:33 +0000 |
commit | 7fa0aa70bae28d68bf9e545ebc37e74c5b9b8117 (patch) | |
tree | 70d88c2bdd06c7055364c206e39d3784fd772297 /net-print/hplip | |
parent | fix depend (diff) | |
download | historical-7fa0aa70bae28d68bf9e545ebc37e74c5b9b8117.tar.gz historical-7fa0aa70bae28d68bf9e545ebc37e74c5b9b8117.tar.bz2 historical-7fa0aa70bae28d68bf9e545ebc37e74c5b9b8117.zip |
intial import
Package-Manager: portage-2.0.51.19
Diffstat (limited to 'net-print/hplip')
-rw-r--r-- | net-print/hplip/ChangeLog | 10 | ||||
-rw-r--r-- | net-print/hplip/Manifest | 15 | ||||
-rw-r--r-- | net-print/hplip/files/digest-hplip-0.9.3 | 2 | ||||
-rw-r--r-- | net-print/hplip/files/hplip.init.d | 40 | ||||
-rw-r--r-- | net-print/hplip/hplip-0.9.3.ebuild | 88 | ||||
-rw-r--r-- | net-print/hplip/metadata.xml | 5 |
6 files changed, 160 insertions, 0 deletions
diff --git a/net-print/hplip/ChangeLog b/net-print/hplip/ChangeLog new file mode 100644 index 000000000000..203346a63c54 --- /dev/null +++ b/net-print/hplip/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for net-print/hplip +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/ChangeLog,v 1.1 2005/06/07 17:02:33 lanius Exp $ + +*hplip-0.9.3 (07 Jun 2005) + + 07 Jun 2005; Heinrich Wendel <lanius@gentoo.org> +metadata.xml, + +hplip-0.9.3.ebuild: + initial import, bug #73709 + diff --git a/net-print/hplip/Manifest b/net-print/hplip/Manifest new file mode 100644 index 000000000000..22921a1abbde --- /dev/null +++ b/net-print/hplip/Manifest @@ -0,0 +1,15 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +MD5 2f70bc6c9aad8d51e84720e9804c7768 hplip-0.9.3.ebuild 2555 +MD5 7f754108004c5742179c28a99a0467f7 ChangeLog 350 +MD5 26b4b081d538c195dc39bcb2ec8e6f3a metadata.xml 161 +MD5 ce4ebffecf6776bf8b594d515f151b0e files/digest-hplip-0.9.3 146 +MD5 5243cb60063760c1f71d7d026720421e files/hplip.init.d 898 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.1 (GNU/Linux) + +iD8DBQFCpdNPevY57Fted3ERApICAJ9T7I7eF1+nNSYZqGfvJbGTbbib0gCg1Rbg +2mRmh644X/MBpAJrfsTW+0U= +=delJ +-----END PGP SIGNATURE----- diff --git a/net-print/hplip/files/digest-hplip-0.9.3 b/net-print/hplip/files/digest-hplip-0.9.3 new file mode 100644 index 000000000000..b2317375469d --- /dev/null +++ b/net-print/hplip/files/digest-hplip-0.9.3 @@ -0,0 +1,2 @@ +MD5 da1de128875173238c65303c7540a555 hplip-0.9.3.tar.gz 10855639 +MD5 73c8a89d1fd5ecfad1da91d28208db82 foomatic-db-hpijs-1.5-20050607.tar.gz 87246 diff --git a/net-print/hplip/files/hplip.init.d b/net-print/hplip/files/hplip.init.d new file mode 100644 index 000000000000..b7425ace6646 --- /dev/null +++ b/net-print/hplip/files/hplip.init.d @@ -0,0 +1,40 @@ +#!/sbin/runscript +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/files/hplip.init.d,v 1.1 2005/06/07 17:02:33 lanius Exp $ + +depend() { + before cupsd + after hotplug + use net +} + +start() { + ebegin "Starting hpiod" + start-stop-daemon --start --quiet --exec /usr/sbin/hpiod + eend $? + + ebegin "Starting hpssd" + start-stop-daemon --quiet --start --exec /usr/share/hplip/hpssd.py \ + --pidfile /var/run/hpssd.pid >/dev/null 2>&1 + eend $? +} + +stop() { + ebegin "Stopping hpiod" + start-stop-daemon --stop --quiet -n hpiod + eend $? + + ebegin "Stopping hpssd" + start-stop-daemon --stop --pidfile /var/run/hpssd.pid + RETVAL=$? + for PIDFILE in /var/run/*; do + case "$( basename $PIDFILE )" in + hpguid-*.pid) + read PID < $PIDFILE + kill $PID + rm $PIDFILE + esac + done + eend $RETVAL +} diff --git a/net-print/hplip/hplip-0.9.3.ebuild b/net-print/hplip/hplip-0.9.3.ebuild new file mode 100644 index 000000000000..32d7a296f0b2 --- /dev/null +++ b/net-print/hplip/hplip-0.9.3.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/hplip/hplip-0.9.3.ebuild,v 1.1 2005/06/07 17:02:33 lanius Exp $ + +inherit eutils + +DB_V=1.5-20050607 +DESCRIPTION="HP Linux Imaging and Printing System. Includes net-print/hpijs, scanner drivers and service tools." +HOMEPAGE="http://hpinkjet.sourceforge.net/" +SRC_URI="mirror://sourceforge/hpinkjet/${P}.tar.gz + foomaticdb? ( http://www.linuxprinting.org/download/foomatic/foomatic-db-hpijs-${DB_V}.tar.gz )" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="foomaticdb snmp X qt ppds scanner" + +DEPEND="dev-lang/python + snmp? ( >=net-analyzer/net-snmp-5.0.9 ) + !net-print/hpijs + !net-print/hpoj" + +RDEPEND="virtual/ghostscript + >=dev-lang/python-2.2.0 + scanner? ( >=media-gfx/sane-backends-1.0.9 ) + scanner? ( || ( X? ( >=media-gfx/xsane-0.89 ) >=media-gfx/sane-frontends-1.0.9 ) ) + qt? ( >=dev-python/PyQt-3.11 x11-libs/qt ) + usb? ( dev-libs/libusb sys-apps/hotplug ) + foomaticdb? ( >=net-print/foomatic ) + cups? ( net-print/cups ) + ${DEPEND}" + + +src_compile() { + myconf="${myconf} --disable-cups-install --disable-foomatic-install" + + use snmp || myconf="${myconf} --disable-network-build" + + econf ${myconf} || die "Error: econf failed!" + emake || die "Error: emake failed!" +} + + +src_install() { + make DESTDIR=${D} install + + exeinto /etc/init.d + newexe ${FILESDIR}/hplip.init.d hplip + + if use scanner; then + insinto /etc/sane.d + echo "hpaio" > dll.conf + doins dll.conf + + dodir /usr/lib/sane + dosym /usr/lib/libsane-hpaio.la /usr/lib/sane/libsane-hpaio.la + dosym /usr/lib/libsane-hpaio.so /usr/lib/sane/libsane-hpaio.so + dosym /usr/lib/libsane-hpaio.so.1 /usr/lib/sane/libsane-hpaio.so.1 + dosym /usr/lib/libsane-hpaio.so.1.0.0 /usr/lib/sane/libsane-hpaio.so.1.0.0 + else + rm -f ${D}/usr/lib/libsane-hpaio.la + rm -f ${D}/usr/lib/libsane-hpaio.so + rm -f ${D}/usr/lib/libsane-hpaio.so.1 + rm -f ${D}/usr/lib/libsane-hpaio.so.1.0.0 + fi + + if use ppds; then + dodir /usr/share + mv ${S}/prnt/hpijs/ppd ${D}/usr/share + fi + + if use cups && use ppds ; then + dodir /usr/share/cups/model + dosym /usr/share/ppd /usr/share/cups/model/foomatic-ppds + fi + + [ -e /usr/bin/foomatic-rip ] && rm -f ${D}/usr/bin/foomatic-rip + + if use foomaticdb ; then + cd ../foomatic-db-hpijs-${DB_V} + econf || die "econf failed" + rm -fR data-generators/hpijs-rss + make || die + make DESTDIR=${D} install || die + fi + + dodir /usr/share/applications + mv ${D}/usr/share/hplip/data/hplip.desktop ${D}/usr/share/applications +} diff --git a/net-print/hplip/metadata.xml b/net-print/hplip/metadata.xml new file mode 100644 index 000000000000..1fa0ca569505 --- /dev/null +++ b/net-print/hplip/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>printing</herd> +</pkgmetadata> |