Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Feb 2002 23:00:40 +0100 (CET)
From:      Helge Oldach <ports-net-snmp@oldach.net>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/35192: ports/net/net-snmp garbles /usr/local/share/snmp/mibs
Message-ID:  <200202212200.g1LM0ed34048@sep.oldach.net>

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

>Number:         35192
>Category:       ports
>Synopsis:       ports/net/net-snmp garbles /usr/local/share/snmp/mibs
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 21 14:10:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Helge Oldach
>Release:        FreeBSD 4.5-STABLE i386
>Organization:
>Environment:
System: FreeBSD sep.oldach.net 4.5-STABLE FreeBSD 4.5-STABLE #0: Wed Jan 30 13:46:58 CET 2002 toor@sep.oldach.net:/usr/obj/usr/src/sys/GENERIC i386


>Description:

The port-install target in Makefile unnecessarily garbles
/usr/local/share/snmp/mibs and /usr/local/include/ucd-snmp.
Sub-directories in those directories are made chmod 0644 which
makes them unreadable.

>How-To-Repeat:

>Fix:

--- /tmp/Makefile.orig	Fri Feb 15 08:08:44 2002
+++ /tmp/Makefile	Thu Feb 21 22:59:35 2002
@@ -73,8 +73,8 @@
 post-install:
 	@( cd ${PREFIX}/bin && strip ${BIN} )
 	@( cd ${PREFIX}/sbin && strip ${SBIN} )
-	@( cd ${PREFIX}/include/ucd-snmp && ${CHMOD} 644 * )
-	@( cd ${PREFIX}/share/snmp/mibs && ${CHMOD} 644 * )
+	@( find ${PREFIX}/include/ucd-snmp -type f | xargs ${CHMOD} 644 )
+	@( find ${PREFIX}/share/snmp/mibs -type f | xargs ${CHMOD} 644 )
 	@${MKDIR} ${PREFIX}/share/examples/ucd-snmp
 	@for F in ${WRKSRC}/EXAMPLE.conf  ${WRKSRC}/agent/mibgroup/examples/ucdDemoPublic.conf; do \
 		${INSTALL_DATA} $$F ${PREFIX}/share/examples/ucd-snmp ; done

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

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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