ports/141900: [PATCH] print/cups-pdf: Fix broken installation
Simon Olofsson
simon at olofsson.de
Tue Dec 22 17:10:03 UTC 2009
>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 at 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%%
+ at dirrmtry libexec/cups/backend
+ at dirrmtry libexec/cups
+ at dirrmtry share/cups/model
+ at dirrmtry share/cups
+ at dirrmtry etc/cups
--- cups-pdf-2.5.0.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list