Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 May 2005 22:47:56 +0200 (CEST)
From:      Oliver Lehmann <oliver@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        Oliver Lehmann <oliver@FreeBSD.org>
Subject:   ports/80675: net-mgmt/net-snmp: fix WITHOUT_PERL 
Message-ID:  <200505052047.j45KluG3032017@kartoffel.salatschuessel.net>
Resent-Message-ID: <200505052050.j45Ko2Tn046795@freefall.freebsd.org>

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

>Number:         80675
>Category:       ports
>Synopsis:       net-mgmt/net-snmp: fix WITHOUT_PERL
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 05 20:50:01 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Oliver Lehmann
>Release:        FreeBSD 5.3-STABLE i386
>Organization:
>Environment:
System: FreeBSD kartoffel.salatschuessel.net 5.3-STABLE FreeBSD 5.3-STABLE #0: Sun Feb 6 20:33:04 CET 2005 olivleh1@nudel.salatschuessel.net:/usr/obj/i386-5.3/usr/src/sys/KARTOFFEL i386


	
>Description:
	in case perl is installed and net-snmp gets installed with WITHOUT_PERL specified,
	net-snmp installs all the perl modules.

>How-To-Repeat:
	install perl
	cd PORTSDIR/net-mgmt/net-snmp
	make -DWITHOUT_PERL install
>Fix:


--- patch-net-snmp begins here ---
Index: Makefile
===================================================================
RCS file: /usr/local/cvsroot/ports/net-mgmt/net-snmp/Makefile,v
retrieving revision 1.124
diff -u -r1.124 Makefile
--- Makefile	7 Apr 2005 03:04:17 -0000	1.124
+++ Makefile	5 May 2005 20:36:39 -0000
@@ -236,14 +236,17 @@
 	@${FIND} ${WRKSRC} -name Makefile | \
 	 ${XARGS} ${REINPLACE_CMD} -E -e '/^INSTALL[ 	]+=/s|$$| -m 755|'
 
-.if !defined(WITHOUT_PERL)
+
 post-build:
+.if !defined(WITHOUT_PERL)
 	${FIND} ${WRKSRC}/perl -name Makefile | \
-	 ${XARGS} ${REINPLACE_CMD} -E -e '\
+	${XARGS} ${REINPLACE_CMD} -E -e '\
 		s!^(PREFIX) = .*!\1 = ${PREFIX}!; \
 		s!^(INSTALLMAN3DIR) = .*!\1 = ${MAN3PERLPREFIX}/man/man3!; \
 		s! doc_(perl|site|\$$\(INSTALLDIRS\))_install$$!!; \
 		'
+.else
+	${REINPLACE_CMD} -e 's| perlinstall||' ${WRKSRC}/Makefile
 .endif
 
 post-install: strip-files install-startup-files install-config-files install-doc-files display-message
--- patch-net-snmp ends here ---


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



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