From nobody@FreeBSD.org  Sat Nov  5 16:59:51 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 97043106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  5 Nov 2011 16:59:51 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 880B08FC1F
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  5 Nov 2011 16:59:51 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id pA5GxpEV012733
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 5 Nov 2011 16:59:51 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id pA5GxpQC012732;
	Sat, 5 Nov 2011 16:59:51 GMT
	(envelope-from nobody)
Message-Id: <201111051659.pA5GxpQC012732@red.freebsd.org>
Date: Sat, 5 Nov 2011 16:59:51 GMT
From: Robert Millan <rmh@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: print/foo2zfs: example devd rules
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         162313
>Category:       ports
>Synopsis:       print/foo2zjs: example devd rules
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bsam
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 05 17:00:40 UTC 2011
>Closed-Date:    Tue Apr 01 19:52:12 UTC 2014
>Last-Modified:  Tue Apr  1 20:00:00 UTC 2014
>Originator:     Robert Millan
>Release:        
>Organization:
>Environment:
>Description:

Hi,

Please consider including the following sample devd rules for foo2zfs.  They could be installed in /usr/local/etc/devd/foo2zfs.conf or such (see attachment).

It might also be useful if the firmware files were installed by the port as well, e.g.:

  ./getweb 1018
  arm2hpdl < sihp1018.img > /usr/local/share/foo2zjs/firmware/sihp1018.dl

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# Firmware upload for USB printers

# HP Laserjet 1018
#attach 100 {
#	match "vendor" "0x03f0";
#	match "product" "0x4117";
#	action "cat /usr/local/share/foo2zjs/firmware/sihp1018.dl > /dev/$device-name";
#};

# HP Laserjet 1020
#attach 100 {
#	match "vendor" "0x03f0";
#	match "product" "0x2b17";
#	action "cat /usr/local/share/foo2zjs/firmware/sihp1020.dl > /dev/$device-name";
#};


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->acm 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sun Nov 20 22:52:16 UTC 2011 
Responsible-Changed-Why:  
Fix synopsis and assign. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=162313 
Responsible-Changed-From-To: acm->freebsd-ports-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sat Mar 29 04:47:33 UTC 2014 
Responsible-Changed-Why:  
Maintainer was reset. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=162313 
Responsible-Changed-From-To: freebsd-ports-bugs->bsam 
Responsible-Changed-By: bsam 
Responsible-Changed-When: Tue Apr 1 11:04:36 UTC 2014 
Responsible-Changed-Why:  
Take. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=162313 
State-Changed-From-To: feedback->closed 
State-Changed-By: bsam 
State-Changed-When: Tue Apr 1 19:47:29 UTC 2014 
State-Changed-Why:  
I've just committed the devd part of the PR. 

As for the other part I'm not sure if it's a good idea since those 
binaries are proprietary ones with different licenses and copyrights... 
Closing the PR for now. If you insist, the PR may be reopened. 

Thanks for the report! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=162313 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/162313: commit references a PR
Date: Tue,  1 Apr 2014 19:43:31 +0000 (UTC)

 Author: bsam
 Date: Tue Apr  1 19:43:27 2014
 New Revision: 349883
 URL: http://svnweb.freebsd.org/changeset/ports/349883
 QAT: https://qat.redports.org/buildarchive/r349883/
 
 Log:
   print/foo2zjs -- incorporate devd configuration file:
   . add a configuration file with samples for devd;
   . add a note to pkg-message file;
   . bump PORTREVISION.
   
   PR:		ports/162313 (based on)
   Submitted by:	rmh
 
 Modified:
   head/print/foo2zjs/Makefile
   head/print/foo2zjs/files/pkg-message.in
   head/print/foo2zjs/pkg-plist
 
 Modified: head/print/foo2zjs/Makefile
 ==============================================================================
 --- head/print/foo2zjs/Makefile	Tue Apr  1 19:41:31 2014	(r349882)
 +++ head/print/foo2zjs/Makefile	Tue Apr  1 19:43:27 2014	(r349883)
 @@ -3,7 +3,7 @@
  
  PORTNAME=	foo2zjs
  PORTVERSION=	20140330
 -PORTREVISION=	1
 +PORTREVISION=	2
  CATEGORIES=	print
  MASTER_SITES=	${MASTER_SITE_GOOGLE_CODE} \
  		${MASTER_SITE_LOCAL:S,$,bsam/${PORTNAME}/,}  \
 @@ -20,8 +20,9 @@ PROJECTHOST=	bsdistfiles
  USE_GHOSTSCRIPT=yes
  USES=		gmake shebangfix
  SHEBANG_FILES=	msexpand
 -SUB_FILES=	pkg-message
 +SUB_FILES=	pkg-message ${DEVDCONF_FILE}
  EXTRAFILES=	msexpand getweb
 +DEVDCONF_FILE=	${PORTNAME}.conf
  
  OPTIONS_DEFINE=	DOCS
  
 @@ -29,8 +30,11 @@ post-patch:
  	@${REINPLACE_CMD} -e 's|^CFLAGS|CFLAGS?|g' -e 's|^PREFIX|PREFIX?|g' ${WRKSRC}/icc2ps/Makefile
  
  post-install:
 -	@cd ${WRKSRC} && \
 +	cd ${WRKSRC} && \
  		${INSTALL_SCRIPT} ${EXTRAFILES} ${STAGEDIR}${PREFIX}/bin
 +	@${MKDIR} ${STAGEDIR}/etc/devd
 +	cd ${WRKDIR} && \
 +		${INSTALL_SCRIPT} ${DEVDCONF_FILE} ${STAGEDIR}${PREFIX}/etc/devd
  	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/foo2zjs-icc2ps
  	@${MKDIR} ${STAGEDIR}${DOCSDIR}
  .for FILE in ChangeLog INSTALL README manual.pdf
 
 Modified: head/print/foo2zjs/files/pkg-message.in
 ==============================================================================
 --- head/print/foo2zjs/files/pkg-message.in	Tue Apr  1 19:41:31 2014	(r349882)
 +++ head/print/foo2zjs/files/pkg-message.in	Tue Apr  1 19:43:27 2014	(r349883)
 @@ -15,6 +15,9 @@
       cp hpclj26*.icm km2430*.icm %%PREFIX%%/share/foo2hp/icm && \
       rm *.icm *.img
  
 -4) Enjoy it ;)
 +4) Edit %%PREFIX%%/etc/devd/foo2zjs.conf to fit your needs
 +   and restart devd.
 +
 +5) Enjoy it ;)
  
  ###############################################################################
 
 Modified: head/print/foo2zjs/pkg-plist
 ==============================================================================
 --- head/print/foo2zjs/pkg-plist	Tue Apr  1 19:41:31 2014	(r349882)
 +++ head/print/foo2zjs/pkg-plist	Tue Apr  1 19:43:27 2014	(r349883)
 @@ -34,6 +34,7 @@ bin/qpdldecode
  bin/slxdecode
  bin/xqxdecode
  bin/zjsdecode
 +etc/devd/foo2zjs.conf
  foomatic/db/source/opt/foo2hbpl1-ColorMode.xml
  foomatic/db/source/opt/foo2hbpl1-ICM.xml
  foomatic/db/source/opt/foo2hbpl1-MediaType.xml
 _______________________________________________
 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"
 
>Unformatted:
