Bug 173826 - New Port: print/hplip-plugin
Summary: New Port: print/hplip-plugin
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Max Brazhnikov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-22 06:20 UTC by amistry
Modified: 2013-07-13 19:10 UTC (History)
0 users

See Also:


Attachments
file.shar (3.79 KB, text/plain)
2012-11-22 06:20 UTC, amistry
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description amistry 2012-11-22 06:20:00 UTC
New port to easily install the hplip-plugin.  This is needed for several of the printer drivers that are installed via the hplip port and those printers will seemingly not function without it.

Fix: See attached shar of port.

Patch attached with submission follows:
How-To-Repeat: Try to install an HP Officejet 6700 via hplip
Comment 1 Max Brazhnikov freebsd_committer freebsd_triage 2012-12-10 19:34:57 UTC
Responsible Changed
From-To: freebsd-ports-bugs->makc

I'll take it.
Comment 2 Max Brazhnikov freebsd_committer freebsd_triage 2013-02-19 12:55:42 UTC
State Changed
From-To: open->feedback

Feedback requested
Comment 3 dfilter service freebsd_committer freebsd_triage 2013-07-13 18:51:53 UTC
Author: makc
Date: Sat Jul 13 17:51:39 2013
New Revision: 322954
URL: http://svnweb.freebsd.org/changeset/ports/322954

Log:
  Add new port print/hplip-plugin:
  
  Firmware and binary drivers from some HPLIP supported printers.
  
  PR:		based on ports/173826
  Submitted by:	Anish Mistry <amistry@am-productions.biz>

Added:
  head/print/hplip-plugin/
  head/print/hplip-plugin/Makefile   (contents, props changed)
  head/print/hplip-plugin/distinfo   (contents, props changed)
  head/print/hplip-plugin/pkg-descr   (contents, props changed)
  head/print/hplip-plugin/pkg-plist   (contents, props changed)
Modified:
  head/LEGAL
  head/print/Makefile

Modified: head/LEGAL
==============================================================================
--- head/LEGAL	Sat Jul 13 17:50:03 2013	(r322953)
+++ head/LEGAL	Sat Jul 13 17:51:39 2013	(r322954)
@@ -119,6 +119,7 @@ gsview*			print/gsview		Can only be dist
 hcwPVRP2.sys		multimedia/pvr250	Driver is part of the CD-ROM distribution coming with the TV card
 hcwPVRP2.sys		multimedia/pvrxxx	Driver is part of the CD-ROM distribution coming with the TV card
 homard-*		french/homard		Only free for use in conjunction with french/aster.  For any other purpose, you have to acquire a license
+hplip-*-plugin.run	print/hplip-plugin	License agreement is required
 httprint_freebsd_*.zip	security/httprint	No cost for personal, education and non-commercial use
 huludesktop-i386.rpm	multimedia/linux-huludesktop No redistribution allowed, not for commercial use, export controlled
 HyperSpec-*		devel/clisp-hyperspec	Commercial redistribution prohibited

Modified: head/print/Makefile
==============================================================================
--- head/print/Makefile	Sat Jul 13 17:50:03 2013	(r322953)
+++ head/print/Makefile	Sat Jul 13 17:51:39 2013	(r322954)
@@ -111,6 +111,7 @@
     SUBDIR += hp2xx
     SUBDIR += hpijs
     SUBDIR += hplip
+    SUBDIR += hplip-plugin
     SUBDIR += hs-hscolour
     SUBDIR += html2latex
     SUBDIR += html2ps

Added: head/print/hplip-plugin/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/print/hplip-plugin/Makefile	Sat Jul 13 17:51:39 2013	(r322954)
@@ -0,0 +1,47 @@
+# Created by: amistry@am-productions.biz
+# $FreeBSD$
+
+PORTNAME=	hplip-plugin
+PORTVERSION=	3.13.6
+CATEGORIES=	print
+MASTER_SITES=	http://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/
+DISTNAME=	hplip-${DISTVERSION}-plugin
+EXTRACT_SUFX=	.run
+
+MAINTAINER=	amistry@am-productions.biz
+COMMENT=	Binary plugin for some HP Printers and All-in-One devices
+
+RUN_DEPENDS=	hp-plugin:${PORTSDIR}/print/hplip
+
+USE_PYTHON=	yes
+NO_BUILD=	yes
+RESTRICTED=	User must accept the license terms
+NO_PACKAGE=	${RESTRICTED}
+IS_INTERACTIVE=	yes
+WRKSRC=		${WRKDIR}/plugin_tmp
+
+ONLY_FOR_ARCHS=	amd64 i386
+
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == "i386"
+PLIST_SUB+=	LINARCH="x86_32"
+.elif ${ARCH} == "amd64"
+PLIST_SUB+=	LINARCH="x86_64"
+.endif
+
+do-extract:
+	@${MKDIR} ${WRKDIR}
+	@cd ${WRKDIR} && ${SH} ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} --keep --noexec
+
+post-patch:
+#	${REINPLACE_CMD} -e 's|ok, ans = tui.enter_yes_no.*|ok, ans = 1, 1|' \
+#		${WRKSRC}/plugin_install.py
+	${REINPLACE_CMD} -e 's|rules,||;s|rules_alt,||' ${WRKSRC}/plugin.spec
+	${REINPLACE_CMD} -e 's|/etc/hp|${PREFIX}&|g' \
+		${WRKSRC}/plugin_install.py
+
+do-install:
+	cd ${WRKSRC} && ${PYTHON_CMD} -B plugin_install.py
+
+.include <bsd.port.post.mk>

Added: head/print/hplip-plugin/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/print/hplip-plugin/distinfo	Sat Jul 13 17:51:39 2013	(r322954)
@@ -0,0 +1,2 @@
+SHA256 (hplip-3.13.6-plugin.run) = 0df59b55df609f5e127988760eef563080563d618fc84f0e0c22b1131b3507fd
+SIZE (hplip-3.13.6-plugin.run) = 1831168

Added: head/print/hplip-plugin/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/print/hplip-plugin/pkg-descr	Sat Jul 13 17:51:39 2013	(r322954)
@@ -0,0 +1,3 @@
+Firmware and binary drivers from some HPLIP supported printers.
+
+WWW: http://hplipopensource.com/hplip-web/index.html

Added: head/print/hplip-plugin/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/print/hplip-plugin/pkg-plist	Sat Jul 13 17:51:39 2013	(r322954)
@@ -0,0 +1,30 @@
+share/hplip/data/firmware/hp_laserjet_1000.fw.gz
+share/hplip/data/firmware/hp_laserjet_1005_series.fw.gz
+share/hplip/data/firmware/hp_laserjet_1018.fw.gz
+share/hplip/data/firmware/hp_laserjet_1020.fw.gz
+share/hplip/data/firmware/hp_laserjet_p1005.fw.gz
+share/hplip/data/firmware/hp_laserjet_p1006.fw.gz
+share/hplip/data/firmware/hp_laserjet_p1007.fw.gz
+share/hplip/data/firmware/hp_laserjet_p1008.fw.gz
+share/hplip/data/firmware/hp_laserjet_p1009.fw.gz
+share/hplip/data/firmware/hp_laserjet_p1505.fw.gz
+share/hplip/data/firmware/hp_laserjet_professional_p1102.fw.gz
+share/hplip/data/firmware/hp_laserjet_professional_p1102w.fw.gz
+share/hplip/data/firmware/hp_laserjet_professional_p1566.fw.gz
+share/hplip/data/plugins/license.txt
+share/hplip/fax/plugins/fax_marvell-%%LINARCH%%.so
+share/hplip/fax/plugins/fax_marvell.so
+share/hplip/plugin.spec
+share/hplip/prnt/plugins/lj-%%LINARCH%%.so
+share/hplip/prnt/plugins/lj.so
+share/hplip/scan/plugins/bb_marvell-%%LINARCH%%.so
+share/hplip/scan/plugins/bb_marvell.so
+share/hplip/scan/plugins/bb_soap-%%LINARCH%%.so
+share/hplip/scan/plugins/bb_soap.so
+share/hplip/scan/plugins/bb_soapht-%%LINARCH%%.so
+share/hplip/scan/plugins/bb_soapht.so
+@dirrm share/hplip/scan/plugins
+@dirrm share/hplip/prnt/plugins
+@dirrm share/hplip/fax/plugins
+@dirrm share/hplip/data/plugins
+@dirrm share/hplip/data/firmware
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 4 Max Brazhnikov freebsd_committer freebsd_triage 2013-07-13 19:10:03 UTC
State Changed
From-To: feedback->closed

New port added. Thanks!