aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2003-12-01 06:42:02 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2003-12-01 06:42:02 +0000
commitc35036d957ecef20b61d513baf3248806903b563 (patch)
tree56317a7c5718d207e57b0c2a1db584e6ddfb0c6f
parentca41d746f34a4cd3bb83e18ec9bf1923f699a382 (diff)
downloadports-c35036d957ecef20b61d513baf3248806903b563.tar.gz
ports-c35036d957ecef20b61d513baf3248806903b563.zip
Do not overwrite base lp* files by default. Instead, provide a
CUPS_OVERWRITE_BASE macro, plus some instruction on what could happen should users chose this option. Submitted by: maintainer Approved by: portmgr (implicit)
Notes
Notes: svn path=/head/; revision=94839
-rw-r--r--print/cups-lpr/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/print/cups-lpr/Makefile b/print/cups-lpr/Makefile
index b453e2ca8cef..7cbbeb66fb62 100644
--- a/print/cups-lpr/Makefile
+++ b/print/cups-lpr/Makefile
@@ -21,6 +21,23 @@ USE_REINPLACE= yes
MANLANG= "" fr
+.ifndef CUPS_OVERWRITE_BASE
+PKGINSTALL= nonexistent
+PKGDEINSTALL= nonexistent
+PKGMESSAGE= nonexistent
+.endif
+
+pre-everything::
+.ifndef CUPS_OVERWRITE_BASE
+ @${ECHO_MSG} "***"
+ @${ECHO_MSG} "You can define CUPS_OVERWRITE_BASE=yes in your"
+ @${ECHO_MSG} "make.conf to remove base system lpr tools from"
+ @${ECHO_MSG} "PATH search. In this case it is recommended to"
+ @${ECHO_MSG} "also define NO_LPR=yes, to not write base lpr"
+ @${ECHO_MSG} "binaries during next make world"
+ @${ECHO_MSG} "***"
+.endif
+
post-patch:
@${REINPLACE_CMD} -e '/SILENT/d' \
${WRKSRC}/Makedefs.in
@@ -30,8 +47,10 @@ post-patch:
post-install:
${FIND} ${PREFIX}/man/cat* -type l -name '*.0' -delete
${FIND} ${PREFIX}/man/fr/cat* -type l -name '*.0' -delete
+.ifdef CUPS_OVERWRITE_BASE
${SH} ${PKGINSTALL} placeholder POST-INSTALL
@${CAT} ${PKGMESSAGE}
+.endif
.include "${.CURDIR}/../../print/cups/Makefile.common"
.include <bsd.port.pre.mk>