summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2003-11-22 00:16:19 +0000
committerPav Lucistnik <pav@FreeBSD.org>2003-11-22 00:16:19 +0000
commit889b8c440338859eee506c6dfd18324afc76d05f (patch)
tree2e04f523317226a55a3651d648ec681d68f0a792 /print
parent. Update to 5.10. [1] (diff)
- Let package create necessary config directories
- Change pkg-message to point to common configuration problems - Give maintainership to submitter PR: ports/57937 Submitted by: Sergey Akifyev <asa@gascom.ru> Reviewed by: marcus Approved by: adamw (mentor)
Notes
Notes: svn path=/head/; revision=94682
Diffstat (limited to 'print')
-rw-r--r--print/cups-base/Makefile3
-rw-r--r--print/cups-base/pkg-message20
-rw-r--r--print/cups-base/pkg-plist6
3 files changed, 14 insertions, 15 deletions
diff --git a/print/cups-base/Makefile b/print/cups-base/Makefile
index 097be8820344..8b4cb7fda3ae 100644
--- a/print/cups-base/Makefile
+++ b/print/cups-base/Makefile
@@ -14,7 +14,7 @@ PORTEPOCH= ${CUPS_PORTEPOCH}
CATEGORIES= print
MASTER_SITES= ${CUPS_MASTER_SITES}
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= asa@gascom.ru
COMMENT= The Common UNIX Printing System: headers, libs, & daemons
USE_REINPLACE= yes
@@ -48,6 +48,7 @@ post-install:
${MKDIR} ${CUPS_SPOOLDIR} ${CUPS_SPOOLDIR}/tmp
${CHOWN} -R ${CUPSOWN}:${CUPSGRP} ${CUPS_SPOOLDIR}
${CHMOD} -R g+w ${CUPS_SPOOLDIR}
+ @${CAT} ${PKGMESSAGE}
.include "${.CURDIR}/../../print/cups/Makefile.common"
.include <bsd.port.pre.mk>
diff --git a/print/cups-base/pkg-message b/print/cups-base/pkg-message
index d740e8680c3c..7d14ee90eb01 100644
--- a/print/cups-base/pkg-message
+++ b/print/cups-base/pkg-message
@@ -1,20 +1,12 @@
**********************************************************************
**********************************************************************
-NOTE FOR PACKAGE USERS ONLY:
-============================
-This package does not create the spool directory, due to limitations in
-the packaging mechanism, or my knowledge of it.
+PLEASE NOTE:
+============
-Once the package is installed, please do the following (as root):
+To enable printing under Gimp do the following:
+1) Uncomment application/octet-stream line in mime.types
+2) Uncomment application/octet-stream line in mime.convs
+3) Restart cupsd
- cd /var/spool
- mkdir -p cups/tmp
- chown -R root:daemon cups
-
-Thanks.
-
---
-AlanE, your friendly neighborhood cups maintainer and all around
-wild and crazy (ok, well just crazy) guy.
**********************************************************************
**********************************************************************
diff --git a/print/cups-base/pkg-plist b/print/cups-base/pkg-plist
index b60da0702e43..d1526fd08645 100644
--- a/print/cups-base/pkg-plist
+++ b/print/cups-base/pkg-plist
@@ -428,4 +428,10 @@ share/locale/zh_CN/cups_zh_CN
@dirrm etc/cups/ppd
@dirrm etc/cups/interfaces
@dirrm etc/cups/certs
+@exec mkdir -p /var/spool/cups/tmp || true
+@exec chown -R root:daemon /var/spool/cups
+@exec mkdir %D/etc/cups/certs || true
+@exec mkdir %D/etc/cups/ppd || true
+@exec mkdir %D/etc/cups/interfaces || true
+@unexec rm -rf /var/spool/cups
@unexec rmdir %D/etc/cups 2>/dev/null || true