diff options
author | dinoex <dinoex@FreeBSD.org> | 2008-01-17 17:48:55 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2008-01-17 17:48:55 +0800 |
commit | 7135bbd4f109c5894c0662bbcfe888ca92c8ef23 (patch) | |
tree | c1a0fe9b7036d10bec406367d4bf7d59b10e1fbf /print | |
parent | d8edc65dffd57fe9437830becf56240a35741377 (diff) | |
download | freebsd-ports-gnome-7135bbd4f109c5894c0662bbcfe888ca92c8ef23.tar.gz freebsd-ports-gnome-7135bbd4f109c5894c0662bbcfe888ca92c8ef23.tar.zst freebsd-ports-gnome-7135bbd4f109c5894c0662bbcfe888ca92c8ef23.zip |
- add example for devd.conf
PR: 119641
Submitted by: Andrew Reilly
Diffstat (limited to 'print')
-rw-r--r-- | print/cups-base/Makefile | 4 | ||||
-rw-r--r-- | print/cups-base/files/lpt-cupsd.conf | 17 | ||||
-rw-r--r-- | print/cups-base/pkg-message | 6 | ||||
-rw-r--r-- | print/cups-base/pkg-plist | 2 |
4 files changed, 26 insertions, 3 deletions
diff --git a/print/cups-base/Makefile b/print/cups-base/Makefile index 2b8157456504..33cbc066b0bb 100644 --- a/print/cups-base/Makefile +++ b/print/cups-base/Makefile @@ -7,7 +7,7 @@ PORTNAME= cups PORTVERSION= 1.3.5 -PORTREVISION= 1 +PORTREVISION= 2 DISTVERSIONSUFFIX= -source CATEGORIES= print MASTER_SITES= EASYSW/${PORTNAME}/${DISTVERSION} @@ -173,6 +173,8 @@ post-install: ${INSTALL_DATA} ${WRKSRC}/conf/${f} ${CUPS_ETCDIR}/${f}.N cd ${CUPS_ETCDIR}/; if test ! -f ${f}; then ${CP} -p ${f}.N ${f}; fi .endfor + ${MKDIR} ${EXAMPLESDIR} + ${INSTALL_DATA} ${FILESDIR}/lpt-cupsd.conf ${EXAMPLESDIR}/ ${INSTALL} -d ${CUPS_SPOOLDIR}/tmp/ ${CHOWN} -R ${CUPSOWN}:${CUPSGRP} ${CUPS_SPOOLDIR}/ ${CHMOD} -R g+w ${CUPS_SPOOLDIR}/ diff --git a/print/cups-base/files/lpt-cupsd.conf b/print/cups-base/files/lpt-cupsd.conf new file mode 100644 index 000000000000..81a02df92187 --- /dev/null +++ b/print/cups-base/files/lpt-cupsd.conf @@ -0,0 +1,17 @@ +# /usr/local/etc/devd/cups.conf +attach 110 { +device-name "unlpt[0-9]+"; +action "chown cups:cups /dev/$device-name"; +}; + +attach 110 { +device-name "ulpt[0-9]+"; +action "chown cups:cups /dev/$device-name"; +}; + +attach 110 { +device-name "lpt[0-9]+"; +action "chown cups:cups /dev/$device-name"; +}; + +# eof diff --git a/print/cups-base/pkg-message b/print/cups-base/pkg-message index c92e7ee81cd2..e0d21350c407 100644 --- a/print/cups-base/pkg-message +++ b/print/cups-base/pkg-message @@ -1,6 +1,4 @@ ====================================================================== -PLEASE NOTE: -============ To enable printing with local printer you need to give group cups r/w access to printer device: @@ -18,6 +16,10 @@ devfs_system_ruleset="system" 3) Restart devfs: /etc/rc.d/devfs restart +In case your system supoorts "devd" you can copy +$PREFIX/share/exmaples/lpt-cupsd.conf into $PREFIX/etc/devd/ + + To enable printing under Gimp and MS-Windows clients do the following: 1) Uncomment application/octet-stream line in mime.types diff --git a/print/cups-base/pkg-plist b/print/cups-base/pkg-plist index 5bccb5e1079d..530e6b5d803a 100644 --- a/print/cups-base/pkg-plist +++ b/print/cups-base/pkg-plist @@ -1566,6 +1566,7 @@ sbin/reject %%DOCSDIR%%/zh_TW/images/button-view-page-log.gif %%DOCSDIR%%/zh_TW/images/button-view-printable-version.gif %%DOCSDIR%%/zh_TW/index.html +%%EXAMPLESDIR%%/lpt-cupsd.conf share/applications/cups.desktop share/icons/hicolor/16x16/apps/cups.png share/icons/hicolor/32x32/apps/cups.png @@ -1651,6 +1652,7 @@ share/locale/zh_TW/cups_zh_TW.po @dirrm %%DOCSDIR%%/da/images @dirrm %%DOCSDIR%%/da @dirrm %%DOCSDIR%% +@dirrm %%EXAMPLESDIR%% @exec mkdir -p %D/%%DATADIR%%/templates/da @exec mkdir -p %D/%%DATADIR%%/templates/fi @exec mkdir -p %D/%%DATADIR%%/templates/ko |