[Midnightbsd-cvs] src [7416] trunk/etc/Makefile: fix permissions for SNMP configuration file.

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Thu Jan 14 07:52:15 EST 2016


Revision: 7416
          http://svnweb.midnightbsd.org/src/?rev=7416
Author:   laffer1
Date:     2016-01-14 07:52:14 -0500 (Thu, 14 Jan 2016)
Log Message:
-----------
fix permissions for SNMP configuration file. The default is not secure

Modified Paths:
--------------
    trunk/etc/Makefile

Modified: trunk/etc/Makefile
===================================================================
--- trunk/etc/Makefile	2016-01-14 03:20:41 UTC (rev 7415)
+++ trunk/etc/Makefile	2016-01-14 12:52:14 UTC (rev 7416)
@@ -1,5 +1,5 @@
 #	from: @(#)Makefile	5.11 (Berkeley) 5/21/91
-# $MidnightBSD: src/etc/Makefile,v 1.26 2013/01/09 04:14:06 laffer1 Exp $
+# $MidnightBSD$
 
 .include <bsd.own.mk>
 
@@ -80,10 +80,6 @@
 BIN1+= apmd.conf
 .endif
 
-.if ${MK_BSNMP} != "no"
-BIN1+= snmpd.config
-.endif
-
 .if ${MK_LOCATE} != "no"
 BIN1+=	${.CURDIR}/../usr.bin/locate/locate/locate.rc
 .endif
@@ -188,6 +184,11 @@
 		${BIN2} ${DESTDIR}/etc; \
 	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \
 		master.passwd nsmb.conf opieaccess ${DESTDIR}/etc;
+.if ${MK_BSNMP} != "no"
+	cd ${.CURDIR}; \
+	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \
+		snmpd.config ${DESTDIR}/etc;
+.endif
 .if ${MK_AT} == "no"
 	sed -i "" -e 's;.*/usr/libexec/atrun;#&;' ${DESTDIR}/etc/crontab
 .endif



More information about the Midnightbsd-cvs mailing list