summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Dupeyron <calchan@gentoo.org>2007-12-27 21:27:28 +0000
committerDenis Dupeyron <calchan@gentoo.org>2007-12-27 21:27:28 +0000
commit1eadbd26730bcfe083780cd04a99363093b61de0 (patch)
tree9a5c8e259eb228cd6731be095fe32410774978da /net-print/hplip
parentLive cvs ebuild. (diff)
downloadhistorical-1eadbd26730bcfe083780cd04a99363093b61de0.tar.gz
historical-1eadbd26730bcfe083780cd04a99363093b61de0.tar.bz2
historical-1eadbd26730bcfe083780cd04a99363093b61de0.zip
Post-stabilization cleanup.
Package-Manager: portage-2.1.4_rc11
Diffstat (limited to 'net-print/hplip')
-rw-r--r--net-print/hplip/ChangeLog8
-rw-r--r--net-print/hplip/Manifest37
-rw-r--r--net-print/hplip/files/digest-hplip-1.7.4a-r26
-rw-r--r--net-print/hplip/files/digest-hplip-2.7.9-r13
-rw-r--r--net-print/hplip/files/hplip-1.7.4a-subprocess_replacement.patch50
-rw-r--r--net-print/hplip/files/hplip-2.7.9-subprocess_replacement.patch99
-rw-r--r--net-print/hplip/files/hplip.init.d41
-rw-r--r--net-print/hplip/hplip-1.7.4a-r2.ebuild138
-rw-r--r--net-print/hplip/hplip-2.7.9-r1.ebuild124
9 files changed, 11 insertions, 495 deletions
diff --git a/net-print/hplip/ChangeLog b/net-print/hplip/ChangeLog
index 275784ac347c..32776dd40fb7 100644
--- a/net-print/hplip/ChangeLog
+++ b/net-print/hplip/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-print/hplip
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/ChangeLog,v 1.92 2007/12/26 09:46:05 drac Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/ChangeLog,v 1.93 2007/12/27 21:27:27 calchan Exp $
+
+ 27 Dec 2007; Denis Dupeyron <calchan@gentoo.org>
+ -files/hplip-1.7.4a-subprocess_replacement.patch,
+ -files/hplip-2.7.9-subprocess_replacement.patch, -files/hplip.init.d,
+ -hplip-1.7.4a-r2.ebuild, -hplip-2.7.9-r1.ebuild:
+ Post-stabilization cleanup.
26 Dec 2007; Samuli Suominen <drac@gentoo.org> hplip-2.7.10.ebuild:
amd64 stable wrt #202916
diff --git a/net-print/hplip/Manifest b/net-print/hplip/Manifest
index 3cfdcce9d446..cd9ce86e9857 100644
--- a/net-print/hplip/Manifest
+++ b/net-print/hplip/Manifest
@@ -2,27 +2,8 @@ AUX 70-hpmud.rules 763 RMD160 b8326b26658b8e8355ae3d74423b51e2e15001e2 SHA1 fdb6
MD5 b129358def166ef5d36f893984c10573 files/70-hpmud.rules 763
RMD160 b8326b26658b8e8355ae3d74423b51e2e15001e2 files/70-hpmud.rules 763
SHA256 6e7f2a0fd5a2111505066a412daea0d29c1ce858f09dbbaa489bb5a2f231e837 files/70-hpmud.rules 763
-AUX hplip-1.7.4a-subprocess_replacement.patch 1820 RMD160 6f98018b72cae4a89fd66352f3d36a7a5ec41665 SHA1 d0f649842585904f6d49a56eb8739ea0ec2dee50 SHA256 eb40787e7e5fceccacc5bcd07ff6625f3788b74cd5524502c10aab8774fc9eb5
-MD5 2cc63e00e608d68c9b3a46a68a51756d files/hplip-1.7.4a-subprocess_replacement.patch 1820
-RMD160 6f98018b72cae4a89fd66352f3d36a7a5ec41665 files/hplip-1.7.4a-subprocess_replacement.patch 1820
-SHA256 eb40787e7e5fceccacc5bcd07ff6625f3788b74cd5524502c10aab8774fc9eb5 files/hplip-1.7.4a-subprocess_replacement.patch 1820
-AUX hplip-2.7.9-subprocess_replacement.patch 3538 RMD160 8b74cea35584ad411b6634bc3ca12b9d20f10403 SHA1 92933732c2b6fbc35fea7b601c81ce5ea46a9b9c SHA256 ba9b51e5aa69c39dab519a30aac1707f1cbda5404cdd4ddf7fd0afc3aab19ed0
-MD5 e492d6b4706bc5c4f96d4a3067aa4e51 files/hplip-2.7.9-subprocess_replacement.patch 3538
-RMD160 8b74cea35584ad411b6634bc3ca12b9d20f10403 files/hplip-2.7.9-subprocess_replacement.patch 3538
-SHA256 ba9b51e5aa69c39dab519a30aac1707f1cbda5404cdd4ddf7fd0afc3aab19ed0 files/hplip-2.7.9-subprocess_replacement.patch 3538
-AUX hplip.init.d 948 RMD160 3908cd5b42175416cc4ac6fc36f0006f7c65588c SHA1 bc9c9a8767c5f253cd9c0dd40bb7e4248cd13b0b SHA256 9dad79022ced93da207a50f8d49d93acfc19f36b89e2b3d77f6b809ee81abd95
-MD5 dcda3bf144b5f2cd4bebd1719383dd31 files/hplip.init.d 948
-RMD160 3908cd5b42175416cc4ac6fc36f0006f7c65588c files/hplip.init.d 948
-SHA256 9dad79022ced93da207a50f8d49d93acfc19f36b89e2b3d77f6b809ee81abd95 files/hplip.init.d 948
-DIST foomatic-db-hpijs-20060720.tar.gz 98252 RMD160 0c2c09f3cea6fc2a8e5da216bd9996b96d91613d SHA1 0e4ec08d01cd28bb751bc2e5844f0d0f7b97ba42 SHA256 1e50f603b46b1d07980212b2e5dfc5d72d07c889259e79ecbf09469fef5ad20e
-DIST hplip-1.7.4a.tar.gz 13566965 RMD160 e2777b8b065abe385bfe557b9eed86848029e2c9 SHA1 98fcb0ce13ee7d9f17cc6c61c568528dd9cbf71d SHA256 903957b1b1aa86438d546a205a3d526a600b1e56754a5ba5ce99228a26cc475e
DIST hplip-2.7.10.tar.gz 14441901 RMD160 1bbfd405eb3d75fa38c0f2fc485438ee064ccce9 SHA1 722e95d0a2b5e4b9535a68c94ed3aef0f3c28ab6 SHA256 e289d5f6190caf4596f6770037569638d96915583339933d6c202f35fc02d8c3
DIST hplip-2.7.12.tar.gz 14543662 RMD160 6d278ccd3d19df46c6d7fc6bd1b9a6b995749f88 SHA1 4a80e46a633674db53d8063349b8bbb3f9070d49 SHA256 22c1b626c633acac74ab5f7994060304570a81a038f2be5b9e35e44e938a30a0
-DIST hplip-2.7.9.tar.gz 14488632 RMD160 007a4c888bde277e86b1a78628062774a43ff2f7 SHA1 1ac491fd2b49f8a5a658532fd44e2aa0b008e072 SHA256 e8867529434411f6c44ef6224405f92fd6be25f04513946621bf209b2e81baaf
-EBUILD hplip-1.7.4a-r2.ebuild 3794 RMD160 ba8ce008375c98c393b42d17cccf2e8a39ed6558 SHA1 8a67ed262fbc377397733cd35a5d7e3a974bb264 SHA256 26a74439a246db4e7615c90a3a00cd6838ef6e67d4214d255217dd329117bc5e
-MD5 e27607de9f35581472a1b62c4c6e43ee hplip-1.7.4a-r2.ebuild 3794
-RMD160 ba8ce008375c98c393b42d17cccf2e8a39ed6558 hplip-1.7.4a-r2.ebuild 3794
-SHA256 26a74439a246db4e7615c90a3a00cd6838ef6e67d4214d255217dd329117bc5e hplip-1.7.4a-r2.ebuild 3794
EBUILD hplip-2.7.10.ebuild 3956 RMD160 fafb5c53a6872f27b6139a18a61cf32219276882 SHA1 05d451d8798871cf45c9ea537cbab8a5b241a483 SHA256 798de386986138068288ce1979480bfa3e21a86fc18abdc7eb4089acc2adf7fb
MD5 2374208e94e44d4310ef5041cf1ed478 hplip-2.7.10.ebuild 3956
RMD160 fafb5c53a6872f27b6139a18a61cf32219276882 hplip-2.7.10.ebuild 3956
@@ -31,27 +12,17 @@ EBUILD hplip-2.7.12.ebuild 3963 RMD160 7ee396f484137fceb8f9c2ab3cf2a54127b791f9
MD5 831a44ab31031cdd01cb03f572e6a94f hplip-2.7.12.ebuild 3963
RMD160 7ee396f484137fceb8f9c2ab3cf2a54127b791f9 hplip-2.7.12.ebuild 3963
SHA256 652485a6feec8f921770625b5efba9c8c371bf935c1781a1cb5afbc6c4ac3fc8 hplip-2.7.12.ebuild 3963
-EBUILD hplip-2.7.9-r1.ebuild 3886 RMD160 8dff714b43cf635e8bd55818dcb94b7f330c83b0 SHA1 b4873d09e87353cf014bb56f570baf43ac4ccab0 SHA256 b48ef178e13801d1a6d7c1396b9aebef0a25d2572ab73d72ab55c6495652bfa4
-MD5 03ee11ccb49ee9e9ed0be4b24d8c621a hplip-2.7.9-r1.ebuild 3886
-RMD160 8dff714b43cf635e8bd55818dcb94b7f330c83b0 hplip-2.7.9-r1.ebuild 3886
-SHA256 b48ef178e13801d1a6d7c1396b9aebef0a25d2572ab73d72ab55c6495652bfa4 hplip-2.7.9-r1.ebuild 3886
-MISC ChangeLog 15462 RMD160 493b44e592fb381c920fa81e55c5d7778ef15d13 SHA1 f39e199e72e898751ae48f60466e3d8b177d5a63 SHA256 2cf245749d004cc804842c986edc234973228c33dfa25a6c121029177eaa019d
-MD5 1dbe30ed6d9500d7b81997af36fba898 ChangeLog 15462
-RMD160 493b44e592fb381c920fa81e55c5d7778ef15d13 ChangeLog 15462
-SHA256 2cf245749d004cc804842c986edc234973228c33dfa25a6c121029177eaa019d ChangeLog 15462
+MISC ChangeLog 15722 RMD160 f866ae41efccda8b84eeb5c70a95a2347e94739c SHA1 b600b0f67805186d90730df91e7575916ed26112 SHA256 d95ff1ad373c1fc619cfedc462c448fb1d7c0f773e94b0cf9bb74f50c0fa81a2
+MD5 9b101457c34f2440369c9028f3acb812 ChangeLog 15722
+RMD160 f866ae41efccda8b84eeb5c70a95a2347e94739c ChangeLog 15722
+SHA256 d95ff1ad373c1fc619cfedc462c448fb1d7c0f773e94b0cf9bb74f50c0fa81a2 ChangeLog 15722
MISC metadata.xml 250 RMD160 00f8254bd6b52bc050cdc822b7370b3e2d2f4970 SHA1 f91d1e6c01026cba252d042ba254f4a4bc61194a SHA256 ab106df12671f3f541e0416f8c0d5a96b6e725ed7b3b111d27af7a584c4bf164
MD5 a7f39f5758507140c896dcc24a3e0e2f metadata.xml 250
RMD160 00f8254bd6b52bc050cdc822b7370b3e2d2f4970 metadata.xml 250
SHA256 ab106df12671f3f541e0416f8c0d5a96b6e725ed7b3b111d27af7a584c4bf164 metadata.xml 250
-MD5 8cdad3401711a59d614863b839c45335 files/digest-hplip-1.7.4a-r2 521
-RMD160 ac859e445b139c0789441184c5af69e1cb75d679 files/digest-hplip-1.7.4a-r2 521
-SHA256 4d98dfc9fec72da07fc2405364c623aaed10c8476d582920a75639e8499cd135 files/digest-hplip-1.7.4a-r2 521
MD5 e4edcab0496cb2a685dd21f2c5a3ea30 files/digest-hplip-2.7.10 244
RMD160 f6106e2a03c8e6b2593f7002cfc64726a223635e files/digest-hplip-2.7.10 244
SHA256 c4fa739a676eb7d8cf4e54ab52a34d014caf6b16acba1c2277e9a3ab71d7e1c5 files/digest-hplip-2.7.10 244
MD5 909f378e538cb8b9553fc7408bf76667 files/digest-hplip-2.7.12 244
RMD160 97ccff9f243b3930ca137cc44ae971c70f5882d7 files/digest-hplip-2.7.12 244
SHA256 a6b4e59e84f9a1e72082c590c35c42eb3de020f3a5f29d6a46bfbd8b4e0969c3 files/digest-hplip-2.7.12 244
-MD5 f68fb8f4981ef3faecff859da377ddb1 files/digest-hplip-2.7.9-r1 241
-RMD160 1c32e9bb5148d9cafb89f9c096e793197fc76485 files/digest-hplip-2.7.9-r1 241
-SHA256 6854a0c055d17b18ecdf0d14a071a5c01b818a85a2fcc47fef928fb4aa1cb2f7 files/digest-hplip-2.7.9-r1 241
diff --git a/net-print/hplip/files/digest-hplip-1.7.4a-r2 b/net-print/hplip/files/digest-hplip-1.7.4a-r2
deleted file mode 100644
index 5fae59ecf518..000000000000
--- a/net-print/hplip/files/digest-hplip-1.7.4a-r2
+++ /dev/null
@@ -1,6 +0,0 @@
-MD5 1c4b65222333d048450d37082d521b1e foomatic-db-hpijs-20060720.tar.gz 98252
-RMD160 0c2c09f3cea6fc2a8e5da216bd9996b96d91613d foomatic-db-hpijs-20060720.tar.gz 98252
-SHA256 1e50f603b46b1d07980212b2e5dfc5d72d07c889259e79ecbf09469fef5ad20e foomatic-db-hpijs-20060720.tar.gz 98252
-MD5 210e948d1f1f376426a2cca0ed9d1e6c hplip-1.7.4a.tar.gz 13566965
-RMD160 e2777b8b065abe385bfe557b9eed86848029e2c9 hplip-1.7.4a.tar.gz 13566965
-SHA256 903957b1b1aa86438d546a205a3d526a600b1e56754a5ba5ce99228a26cc475e hplip-1.7.4a.tar.gz 13566965
diff --git a/net-print/hplip/files/digest-hplip-2.7.9-r1 b/net-print/hplip/files/digest-hplip-2.7.9-r1
deleted file mode 100644
index 46ad4669e85f..000000000000
--- a/net-print/hplip/files/digest-hplip-2.7.9-r1
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 a05aeb5679c3ce429bea7f3335609aee hplip-2.7.9.tar.gz 14488632
-RMD160 007a4c888bde277e86b1a78628062774a43ff2f7 hplip-2.7.9.tar.gz 14488632
-SHA256 e8867529434411f6c44ef6224405f92fd6be25f04513946621bf209b2e81baaf hplip-2.7.9.tar.gz 14488632
diff --git a/net-print/hplip/files/hplip-1.7.4a-subprocess_replacement.patch b/net-print/hplip/files/hplip-1.7.4a-subprocess_replacement.patch
deleted file mode 100644
index ca1b022a1ce1..000000000000
--- a/net-print/hplip/files/hplip-1.7.4a-subprocess_replacement.patch
+++ /dev/null
@@ -1,50 +0,0 @@
-diff -urN hplip-1.7.4a.orig/hpssd.py hplip-1.7.4a/hpssd.py
---- hplip-1.7.4a.orig/hpssd.py 2007-10-18 15:20:16.000000000 +0200
-+++ hplip-1.7.4a/hpssd.py 2007-10-18 15:54:34.000000000 +0200
-@@ -53,7 +53,7 @@
-
- # Std Lib
- import sys, socket, os, os.path, signal, getopt, glob, time, select
--import popen2, threading, re, fcntl, pwd, tempfile
-+import subprocess, threading, re, fcntl, pwd, tempfile
- #from asyncore import dispatcher, loop
-
- from errno import EALREADY, EINPROGRESS, EWOULDBLOCK, ECONNRESET, \
-@@ -562,21 +562,23 @@
-
- if sendmail:
- sendmail = os.path.join(sendmail, 'sendmail')
-- sendmail += ' -t -r %s' % self.from_address
-+ cmd = [sendmail,'-t','-r',self.from_address]
-
-- log.debug(sendmail)
-- std_out, std_in, std_err = popen2.popen3(sendmail)
-- log.debug(repr(self.message))
-- std_in.write(self.message)
-- std_in.close()
--
-- r, w, e = select.select([std_err], [], [], 2.0)
--
-- if r:
-- err = std_err.read()
-- if err:
-- log.error(repr(err))
-- self.result = ERROR_TEST_EMAIL_FAILED
-+ log.debug(repr(cmd))
-+ err = None
-+ try:
-+ sp = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
-+ std_out, std_err = sp.communicate(self.message)
-+ log.debug(repr(self.message))
-+ if std_err != '':
-+ err = std_err
-+
-+ except OSError, e:
-+ err = str(e)
-+
-+ if err:
-+ log.error(repr(err))
-+ self.result = ERROR_TEST_EMAIL_FAILED
-
- else:
- log.error("Mail send failed. sendmail not found.")
diff --git a/net-print/hplip/files/hplip-2.7.9-subprocess_replacement.patch b/net-print/hplip/files/hplip-2.7.9-subprocess_replacement.patch
deleted file mode 100644
index 15b386e227f5..000000000000
--- a/net-print/hplip/files/hplip-2.7.9-subprocess_replacement.patch
+++ /dev/null
@@ -1,99 +0,0 @@
-diff -urNad hplip-2.7.7.dfsg.1~/hpssd.py hplip-2.7.7.dfsg.1/hpssd.py
---- hplip-2.7.7.dfsg.1~/hpssd.py 2007-10-04 12:45:29.000000000 -0700
-+++ hplip-2.7.7.dfsg.1/hpssd.py 2007-10-04 12:46:39.000000000 -0700
-@@ -53,7 +53,7 @@
-
- # Std Lib
- import sys, socket, os, os.path, signal, getopt, time, select
--import popen2, threading, tempfile
-+import subprocess, threading, tempfile
-
- from errno import EALREADY, EINPROGRESS, EWOULDBLOCK, ECONNRESET, \
- ENOTCONN, ESHUTDOWN, EINTR, EISCONN
-@@ -560,21 +560,23 @@
-
- if sendmail:
- sendmail = os.path.join(sendmail, 'sendmail')
-- sendmail += ' -t -r %s' % self.from_address
-+ cmd = [sendmail,'-t','-r',self.from_address]
-
-- log.debug(sendmail)
-- std_out, std_in, std_err = popen2.popen3(sendmail)
-- log.debug(repr(self.message))
-- std_in.write(self.message)
-- std_in.close()
-+ log.debug(repr(cmd))
-+ err = None
-+ try:
-+ sp = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
-+ std_out, std_err = sp.communicate(self.message)
-+ log.debug(repr(self.message))
-+ if std_err != '':
-+ err = std_err
-
-- r, w, e = select.select([std_err], [], [], 2.0)
-+ except OSError, e:
-+ err = str(e)
-
-- if r:
-- err = std_err.read()
-- if err:
-- log.error(repr(err))
-- self.result = ERROR_TEST_EMAIL_FAILED
-+ if err:
-+ log.error(repr(err))
-+ self.result = ERROR_TEST_EMAIL_FAILED
-
- else:
- log.error("Mail send failed. sendmail not found.")
-diff -urNad hplip-2.7.7.dfsg.1~/scan.py hplip-2.7.7.dfsg.1/scan.py
---- hplip-2.7.7.dfsg.1~/scan.py 2007-10-04 12:45:14.000000000 -0700
-+++ hplip-2.7.7.dfsg.1/scan.py 2007-10-04 12:46:48.000000000 -0700
-@@ -782,7 +782,7 @@
- from scan import sane
- import scanext
- import cStringIO
-- import popen2
-+ import subprocess
-
- try:
- import Image
-@@ -1139,26 +1139,21 @@
-
- if sendmail:
- sendmail = os.path.join(sendmail, 'sendmail')
-- sendmail += ' -t -r %s' % email_from
--
-- log.debug(sendmail)
-- std_out, std_in, std_err = popen2.popen3(sendmail)
-- std_in.write(msg.as_string())
-- std_in.close()
--
-- while True:
-- update_spinner()
-- r, w, e = select.select([std_err], [], [], 1.0)
--
-- if r:
-- break
-+ cmd = [sendmail,'-t','-r',email_from]
-
-+ log.debug(repr(cmd))
-+ err = None
-+ try:
-+ sp = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
-+ std_out, std_err = sp.communicate(msg.as_string())
-+ if std_err != '':
-+ err = std_err
-+ except OSError, e:
-+ err = str(e)
- cleanup_spinner()
-
-- if r:
-- err = std_err.read()
-- if err:
-- log.error(repr(err))
-+ if err:
-+ log.error(repr(err))
-
- else:
- log.error("Mail send failed. 'sendmail' not found.")
diff --git a/net-print/hplip/files/hplip.init.d b/net-print/hplip/files/hplip.init.d
deleted file mode 100644
index e65375b00c6c..000000000000
--- a/net-print/hplip/files/hplip.init.d
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2006 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.2 2006/01/14 18:53:41 vanquirius 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 --name "python /usr/share/hplip/hpssd.py" \
- >/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-1.7.4a-r2.ebuild b/net-print/hplip/hplip-1.7.4a-r2.ebuild
deleted file mode 100644
index e95fff9c43cc..000000000000
--- a/net-print/hplip/hplip-1.7.4a-r2.ebuild
+++ /dev/null
@@ -1,138 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/hplip-1.7.4a-r2.ebuild,v 1.5 2007/10/23 08:15:36 calchan Exp $
-
-inherit eutils
-
-DB_V=20060720
-DESCRIPTION="HP Linux Imaging and Printing System. Includes net-print/hpijs, scanner drivers and service tools."
-HOMEPAGE="http://hplip.sourceforge.net/"
-SRC_URI="mirror://sourceforge/hplip/${P}.tar.gz
- foomaticdb? (
- http://gentooexperimental.org/~genstef/dist/foomatic-db-hpijs-${DB_V}.tar.gz
- http://www.linuxprinting.org/download/foomatic/foomatic-db-hpijs-${DB_V}.tar.gz
- )"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 ppc ~ppc64 x86"
-IUSE="cups fax foomaticdb parport ppds qt3 scanner snmp X"
-
-DEPEND="!net-print/hpijs
- !net-print/hpoj
- dev-libs/openssl
- virtual/ghostscript
- >=media-libs/jpeg-6b
- net-print/cups
- dev-libs/libusb
- >=dev-lang/python-2.2
- net-print/foomatic-filters
- fax? ( >=dev-lang/python-2.3
- dev-python/reportlab )
- foomaticdb? ( net-print/foomatic-db-engine )
- snmp? ( net-analyzer/net-snmp )
- qt3? ( >=dev-python/PyQt-3.11 =x11-libs/qt-3* )
- scanner? (
- >=media-gfx/sane-backends-1.0.9
- X? ( || (
- >=media-gfx/xsane-0.89
- >=media-gfx/sane-frontends-1.0.9
- ) )
- !X? ( || (
- >=media-gfx/sane-frontends-1.0.9
- >=media-gfx/xsane-0.89
- ) )
- )"
-RDEPEND="${DEPEND}"
-
-pkg_setup() {
- # avoid collisions with cups-1.2 compat symlinks
- if [ -e "${ROOT}"/usr/lib/cups/backend/hp ] && [ -e "${ROOT}"/usr/libexec/cups/backend/hp ]; then
- rm -f "${ROOT}"/usr/libexec/cups/backend/hp{,fax};
- fi
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- # Fix bug #195565
- epatch "${FILESDIR}"/${P}-subprocess_replacement.patch
-
- # bug 98428
- sed -i -e "s:/usr/bin/env python:/usr/bin/python:g" \
- hpssd.py
-}
-src_compile() {
- econf \
- $(use_enable cups cups-install) \
- $(use_enable fax fax-build) \
- $(use_enable parport pp-build) \
- $(use_enable ppds foomatic-install) \
- $(use_enable qt3 gui-build) \
- $(use_enable scanner scan-build) \
- $(use_enable snmp network-build) \
- || die "econf failed"
- emake || die "emake failed"
-
- if use foomaticdb ; then
- cd ../foomatic-db-hpijs-${DB_V}
- econf || die "econf failed"
- rm -fR data-generators/hpijs-rss
- emake || die "emake failed"
- fi
-}
-
-src_install() {
- # cups-1.2 installation paths, make sure that the .desktop is installed
- sed -i -e "s:/usr/lib/cups:$(cups-config --serverbin):" \
- -e 's:\(ICON_FILE = \).*:\1hplip.desktop:' \
- -e 's:\(ICON_PATH = \).*:\1/usr/share/applications:' \
- Makefile
-
- emake -j1 DESTDIR="${D}" install || die "emake install failed"
-
- newinitd "${FILESDIR}"/hplip.init.d hplip
-
- if use scanner; then
- dodir /usr/$(get_libdir)/sane
- for i in libsane-hpaio.{la,so{,.1{,.0.0}}}; do
- dosym /usr/$(get_libdir)/${i} /usr/$(get_libdir)/sane/${i}; done
- else
- rm -f "${D}"/usr/$(get_libdir)/libsane-hpaio.{la,so{,.1{,.0.0}}}
- rm -f "${D}"/etc/sane.d/dll.conf
- fi
-
- # bug 106035
- if ! use qt3 ; then
- rm -f "${D}"/usr/{bin/hp-,share/hplip/}{print,toolbox}
- rm -f "${D}"/usr/share/applications/hplip.desktop
- rm -f "${D}"/usr/lib/menu/hplip
- fi
-
- rm -rf "${D}"/$(cups-config --serverbin)/filter "${D}"/usr/bin/foomatic-rip
-
- if use foomaticdb ; then
- cd ../foomatic-db-hpijs-${DB_V}
- emake DESTDIR="${D}" install || die "emake install failed"
- fi
-
- # Fix a symlink collision, see bug #172341
- rm -f "${D}"/usr/share/cups/model/foomatic-ppds
-}
-
-pkg_preinst() {
- if use scanner; then
- insinto /etc/sane.d
- [ -e /etc/sane.d/dll.conf ] && cp /etc/sane.d/dll.conf .
- [ -e "${ROOT}"/etc/sane.d/dll.conf ] && cp "${ROOT}"/etc/sane.d/dll.conf .
- grep -q hpaio dll.conf || echo hpaio >> "${T}"/dll.conf
- doins "${T}"/dll.conf
- fi
-}
-
-pkg_postinst() {
- if ! use qt3 ; then
- elog "You need to enable the qt3 useflag to use the GUI"
- fi
-}
diff --git a/net-print/hplip/hplip-2.7.9-r1.ebuild b/net-print/hplip/hplip-2.7.9-r1.ebuild
deleted file mode 100644
index ff6272039288..000000000000
--- a/net-print/hplip/hplip-2.7.9-r1.ebuild
+++ /dev/null
@@ -1,124 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/hplip-2.7.9-r1.ebuild,v 1.3 2007/11/18 16:05:18 calchan Exp $
-
-inherit eutils linux-info
-
-DESCRIPTION="HP Linux Imaging and Printing System. Includes net-print/hpijs, scanner drivers and service tools."
-HOMEPAGE="http://hplip.sourceforge.net/"
-SRC_URI="mirror://sourceforge/hplip/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
-IUSE="X doc fax minimal parport ppds scanner snmp"
-
-DEPEND="!net-print/hpijs
- !net-print/hpoj
- virtual/ghostscript
- >=media-libs/jpeg-6b
- net-print/foomatic-filters
- !minimal? (
- >=net-print/cups-1.2
- dev-libs/libusb
- scanner? ( >=media-gfx/sane-backends-1.0.9 )
- snmp? (
- net-analyzer/net-snmp
- dev-libs/openssl
- ) )"
-
-RDEPEND="${DEPEND}
- !minimal? ( !<sys-fs/udev-114
- fax? ( dev-python/reportlab )
- scanner? ( X? ( >=media-gfx/xsane-0.89 )
- !X? ( >=media-gfx/sane-frontends-1.0.9 ) )
- X? ( >=dev-python/PyQt-3.14 ) )"
-
-CONFIG_CHECK="PARPORT"
-ERROR_PARPORT="Please make sure Device Drivers -> Parallel port support is enabled in your kernel"
-
-pkg_setup() {
- if ! use ppds ; then
- ewarn "Not installing built-in PPD files, which is probably not what you want."
- ewarn "You need USE=ppds if you want to install them."
- fi
- if use minimal ; then
- ewarn "Installing hpijs driver only, make sure you know what you are doing."
- else
- use parport && linux-info_pkg_setup
- fi
-
- # avoid collisions with cups-1.2 compat symlinks
- if [ -e "${ROOT}"/usr/lib/cups/backend/hp ] && [ -e "${ROOT}"/usr/libexec/cups/backend/hp ]; then
- rm -f "${ROOT}"/usr/libexec/cups/backend/hp{,fax};
- fi
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- # Fix bug #195565
- epatch "${FILESDIR}"/${P}-subprocess_replacement.patch
-
- sed -i -e "s:\$(doc_DATA)::" Makefile.in || die "Patching Makefile.in failed"
- sed -i -e "s/'skipstone']/'skipstone', 'epiphany']/" \
- -e "s/'skipstone': ''}/'skipstone': '', 'epiphany': '--new-window'}/" \
- base/utils.py || die "Patching base/utils.py failed"
-
- # bug 98428
- sed -i -e "s:/usr/bin/env python:/usr/bin/python:g" hpssd.py || die "Patching hpssd.py failed"
-
- # Force recognition of Gentoo distro by hp-check
- sed -i \
- -e "s:file('/etc/issue', 'r').read():'Gentoo':" \
- installer/core_install.py || die "sed core_install.py"
-
- # bug 186906, makes udev-rules work also for kernel-2.6.22
- sed -i -e "s/usb_device/usb|usb_device/" -e "s/SYSFS/ATTRS/g" \
- data/rules/55-hpmud.rules || die "Patching 55-hpmud.rules failed"
-}
-
-src_compile() {
- econf \
- --disable-cups11-build \
- --with-cupsbackenddir=$(cups-config --serverbin)/backend \
- $(use_enable minimal hpijs-only-build) \
- $(use_enable doc doc-build) \
- $(use_enable snmp network-build) \
- $(use_enable parport pp-build) \
- $(use_enable scanner scan-build) \
- $(use_enable X gui-build) \
- $(use_enable fax fax-build) \
- $(use_enable ppds foomatic-ppd-install) \
- --disable-foomatic-xml-install \
- || die "econf failed"
- emake || die "Compilation failed"
-}
-
-src_install() {
- emake -j1 DESTDIR="${D}" install || die "emake install failed"
-
- # bug 106035
- use X || rm -Rf "${D}"/usr/share/applications
-
- use minimal && rm -rf "${D}"/usr/lib
-}
-
-pkg_preinst() {
- if ! use minimal && use scanner ; then
- insinto /etc/sane.d
- [ -e /etc/sane.d/dll.conf ] && cp /etc/sane.d/dll.conf .
- [ -e "${ROOT}"/etc/sane.d/dll.conf ] && cp "${ROOT}"/etc/sane.d/dll.conf .
- grep -q hpaio dll.conf || echo hpaio >> "${T}"/dll.conf
- doins "${T}"/dll.conf
- fi
-}
-
-pkg_postinst() {
- elog "You should run hp-setup as root if you are installing hplip for the first time, and may also"
- elog "need to run it if you are upgrading from an earlier version."
- elog
- elog "This release doesn't use an init script anymore, so you should probably do a"
- elog "'rc-update del hplip' if you are updating."
-}