Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Dec 2009 17:49:13 +0100
From:      "Simon Olofsson" <simon@olofsson.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        simon@olofsson.de
Subject:   ports/141900: [PATCH] print/cups-pdf: Fix broken installation 
Message-ID:  <20091222170326.DEF001C00088@bender.cm4all.net>
Resent-Message-ID: <200912221710.nBMHA2bS098101@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         141900
>Category:       ports
>Synopsis:       [PATCH] print/cups-pdf: Fix broken installation
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 22 17:10:02 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Simon Olofsson
>Release:        FreeBSD 8.0-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD lua-fbsd.intern.cm-ag 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:02:08 UTC 2009
>Description:
Fix broken installation by first creating 
the directories we need and remove them later.

Port maintainer (simon@olofsson.de) is cc'd.

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

--- cups-pdf-2.5.0.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/print/cups-pdf/Makefile /usr/home/simon/ports/print/cups-pdf/Makefile
--- /usr/ports/print/cups-pdf/Makefile	2009-12-13 00:38:51.000000000 +0100
+++ /usr/home/simon/ports/print/cups-pdf/Makefile	2009-12-22 17:18:51.000000000 +0100
@@ -17,8 +17,6 @@
 
 RUN_DEPENDS=	${LOCALBASE}/sbin/cupsd:${PORTSDIR}/print/cups-base
 
-BROKEN=		does not install
-
 WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
 
 USE_GHOSTSCRIPT_RUN=	yes
@@ -83,9 +81,12 @@
 	cd ${WRKSRC}/src; ${CC} ${CFLAGS} -o cups-pdf cups-pdf.c
 
 do-install:
+	${MKDIR} ${PREFIX}/libexec/cups/backend
 	${INSTALL} -o root -g wheel -m 0700 ${WRKSRC}/src/cups-pdf ${PREFIX}/libexec/cups/backend
+	${MKDIR} ${PREFIX}/share/cups/model
 	${INSTALL_DATA} ${WRKSRC}/extra/CUPS-PDF.ppd \
 	${PREFIX}/share/cups/model/CUPS-PDF.ppd
+	${MKDIR} ${PREFIX}/etc/cups
 	${INSTALL_DATA} ${WRKSRC}/extra/cups-pdf.conf \
 	${PREFIX}/etc/cups/cups-pdf.conf.sample
 .if !defined(NOPORTDOCS)
diff -ruN --exclude=CVS /usr/ports/print/cups-pdf/pkg-plist /usr/home/simon/ports/print/cups-pdf/pkg-plist
--- /usr/ports/print/cups-pdf/pkg-plist	2008-03-27 15:20:46.000000000 +0100
+++ /usr/home/simon/ports/print/cups-pdf/pkg-plist	2009-12-22 17:09:29.000000000 +0100
@@ -5,3 +5,8 @@
 @exec if [ ! -f %D/etc/cups/cups-pdf.conf ] ; then cp -p %D/%F %B/cups-pdf.conf; fi
 %%PORTDOCS%%%%DOCSDIR%%/README
 %%PORTDOCS%%@dirrm %%DOCSDIR%%
+@dirrmtry libexec/cups/backend
+@dirrmtry libexec/cups
+@dirrmtry share/cups/model
+@dirrmtry share/cups
+@dirrmtry etc/cups
--- cups-pdf-2.5.0.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091222170326.DEF001C00088>