ports/57937: fix cups-base package install, take maintainership
Sergey Akifyev
asa at gascom.ru
Mon Oct 13 08:50:25 UTC 2003
>Number: 57937
>Category: ports
>Synopsis: fix cups-base package install, take maintainership
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Mon Oct 13 01:50:21 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Sergey Akifyev
>Release: FreeBSD 4.8-RELEASE-p13 i386
>Organization:
JSC Gascom
>Environment:
System: FreeBSD boulder.gascom.ru 4.8-RELEASE-p13 FreeBSD 4.8-RELEASE-p13 #5: Mon Oct 6 10:30:52 MSD 2003 asa at boulder.gascom.ru:/usr/src/sys/compile/BUILDER i386
>Description:
* Fix pkg-plist, so package install creates all necessary directories
* Change pkg-message to point how to solve common printing problem
* Take maintainership
NOTE: PORTREVISION is not bumped, because users who already configured cups
don't need reinstalling
>How-To-Repeat:
>Fix:
--- cups-base.diff begins here ---
diff -ruN cups-base.orig/Makefile cups-base/Makefile
--- cups-base.orig/Makefile Tue Jul 22 08:36:01 2003
+++ cups-base/Makefile Mon Oct 13 11:50:57 2003
@@ -14,7 +14,7 @@
CATEGORIES= print
MASTER_SITES= ${CUPS_MASTER_SITES}
-MAINTAINER= ports at FreeBSD.org
+MAINTAINER= asa at gascom.ru
COMMENT= The Common UNIX Printing System: headers, libs, & daemons
USE_REINPLACE= yes
@@ -48,6 +48,7 @@
${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 -ruN cups-base.orig/pkg-message cups-base/pkg-message
--- cups-base.orig/pkg-message Sat Jan 25 19:20:46 2003
+++ cups-base/pkg-message Mon Oct 13 11:44:46 2003
@@ -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 -ruN cups-base.orig/pkg-plist cups-base/pkg-plist
--- cups-base.orig/pkg-plist Tue Jul 22 08:36:01 2003
+++ cups-base/pkg-plist Mon Oct 13 11:58:11 2003
@@ -428,4 +428,10 @@
@dirrm etc/cups/ppd
@dirrm etc/cups/interfaces
@dirrm etc/cups/certs
+ at exec mkdir -p /var/spool/cups/tmp || true
+ at exec chown -R root:daemon /var/spool/cups
+ at exec mkdir %D/etc/cups/certs || true
+ at exec mkdir %D/etc/cups/ppd || true
+ at exec mkdir %D/etc/cups/interfaces || true
+ at unexec rm -rf /var/spool/cups
@unexec rmdir %D/etc/cups 2>/dev/null || true
--- cups-base.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list