ports/57938: make cups-lpr installation more plug'n'play, take maintainership

Sergey Akifyev asa at gascom.ru
Mon Oct 13 08:50:25 UTC 2003


>Number:         57938
>Category:       ports
>Synopsis:       make cups-lpr installation more plug'n'play, 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:22 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:
Added unshading of cups-lpr binaries, which are located in /usr/local/bin
and /usr/local/sbin (and are shaded by FreeBSD LPR binaries which are
located in /usr/bin and /usr/sbin)
* NOTE: PORTREVISION is not bumped, because users who already configured
cups-lpr don't need reinstall
>How-To-Repeat:
>Fix:
--- cups-lpr.diff begins here ---
diff -ruN cups-lpr.orig/Makefile cups-lpr/Makefile
--- cups-lpr.orig/Makefile	Tue Jul 22 08:36:01 2003
+++ cups-lpr/Makefile	Mon Oct 13 12:24:47 2003
@@ -14,7 +14,7 @@
 CATEGORIES=	print
 MASTER_SITES=	${CUPS_MASTER_SITES}
 
-MAINTAINER=	ports at FreeBSD.org
+MAINTAINER=	asa at gascom.ru
 COMMENT=	The CUPS BSD and system V compatibility binaries (lp* commands)
 
 USE_REINPLACE=	yes
@@ -30,6 +30,8 @@
 post-install:
 	${FIND} ${PREFIX}/man/cat* -type l -name '*.0' -delete
 	${FIND} ${PREFIX}/man/fr/cat* -type l -name '*.0' -delete
+	${SH} ${PKGINSTALL} placeholder POST-INSTALL
+	${CAT} ${PKGMESSAGE}
 
 
 .include "${.CURDIR}/../../print/cups/Makefile.common"
diff -ruN cups-lpr.orig/pkg-deinstall cups-lpr/pkg-deinstall
--- cups-lpr.orig/pkg-deinstall	Thu Jan  1 03:00:00 1970
+++ cups-lpr/pkg-deinstall	Mon Oct 13 12:12:41 2003
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+REPLACES_BINARIES="/bin/lpr
+					/bin/lp
+					/bin/lpq
+					/bin/lprm
+					/bin/lpstat
+					/sbin/lpc"
+
+case $2 in
+POST-INSTALL)
+	for FILE in ${REPLACES_BINARIES}; do
+		[ -e "${FILE}.bak" ] && mv "${FILE}.bak" "${FILE}"
+	done
+;;
+esac
+exit 0
diff -ruN cups-lpr.orig/pkg-install cups-lpr/pkg-install
--- cups-lpr.orig/pkg-install	Thu Jan  1 03:00:00 1970
+++ cups-lpr/pkg-install	Mon Oct 13 12:12:29 2003
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+REPLACES_BINARIES="/bin/lpr
+					/bin/lp
+					/bin/lpq
+					/bin/lprm
+					/bin/lpstat
+					/sbin/lpc"
+
+case $2 in
+POST-INSTALL)
+	for FILE in ${REPLACES_BINARIES}; do
+		[ -e "${FILE}" ] && mv "${FILE}" "${FILE}.bak"
+	done
+;;
+esac
+exit 0
diff -ruN cups-lpr.orig/pkg-message cups-lpr/pkg-message
--- cups-lpr.orig/pkg-message	Thu Jan  1 03:00:00 1970
+++ cups-lpr/pkg-message	Mon Oct 13 12:17:24 2003
@@ -0,0 +1,10 @@
+**********************************************************************
+**********************************************************************
+PLEASE NOTE:
+============
+
+This port will move lpr binaries located in /usr/bin and
+/usr/sbin to unshade cups-lpr binaries in PATH variable
+
+**********************************************************************
+**********************************************************************
--- cups-lpr.diff ends here ---

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



More information about the freebsd-ports-bugs mailing list