summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2008-01-31 14:18:04 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2008-01-31 14:18:04 +0000
commit3c90b54126879ef2830d45dda517b5b1304b2ab2 (patch)
tree80c5cfb6ec0c2b92fb138f1351cfc1bb8071474e
parent1a07485866c1726e56c4633c371ba3068268430a (diff)
enable snmpd in the build
approved by deraadt@, ok thib@
-rw-r--r--etc/Makefile3
-rw-r--r--etc/changelist3
-rw-r--r--etc/ftpusers3
-rw-r--r--etc/group1
-rw-r--r--etc/mail/aliases3
-rw-r--r--etc/master.passwd1
-rw-r--r--etc/mtree/special3
-rw-r--r--etc/rc6
-rw-r--r--etc/rc.conf3
-rw-r--r--usr.sbin/Makefile10
10 files changed, 24 insertions, 12 deletions
diff --git a/etc/Makefile b/etc/Makefile
index ca0722120ab..bb947d767da 100644
--- a/etc/Makefile
+++ b/etc/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.258 2008/01/03 21:20:24 jakob Exp $
+# $OpenBSD: Makefile,v 1.259 2008/01/31 14:18:03 reyk Exp $
TZDIR= /usr/share/zoneinfo
LOCALTIME= Canada/Mountain
@@ -85,6 +85,7 @@ distribution-etc-root-var: distrib-dirs
${INSTALL} -c -o root -g wheel -m 600 relayd.conf ${DESTDIR}/etc
${INSTALL} -c -o root -g wheel -m 600 ipsec.conf ${DESTDIR}/etc
${INSTALL} -c -o root -g wheel -m 600 sasyncd.conf ${DESTDIR}/etc
+ ${INSTALL} -c -o root -g wheel -m 600 snmpd.conf ${DESTDIR}/etc
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \
etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev
cd root; \
diff --git a/etc/changelist b/etc/changelist
index 6e6c8647a85..c7b8d3ca3fd 100644
--- a/etc/changelist
+++ b/etc/changelist
@@ -1,4 +1,4 @@
-# $OpenBSD: changelist,v 1.55 2007/12/07 17:13:35 deraadt Exp $
+# $OpenBSD: changelist,v 1.56 2008/01/31 14:18:03 reyk Exp $
#
# List of files which the security script backs up and checks
# for modifications.
@@ -119,6 +119,7 @@
/etc/shosts.equiv
/etc/slip.hosts
/etc/slip.login
+/etc/snmpd.conf
/etc/ssh/ssh_config
+/etc/ssh/ssh_host_dsa_key
/etc/ssh/ssh_host_dsa_key.pub
diff --git a/etc/ftpusers b/etc/ftpusers
index 1117ecff3f2..611c775ed9e 100644
--- a/etc/ftpusers
+++ b/etc/ftpusers
@@ -1,4 +1,4 @@
-# $OpenBSD: ftpusers,v 1.32 2007/12/07 17:13:35 deraadt Exp $
+# $OpenBSD: ftpusers,v 1.33 2008/01/31 14:18:03 reyk Exp $
#
# list of users disallowed any ftp access.
# read by ftpd(8).
@@ -42,3 +42,4 @@ _dvmrpd
_ripd
_relayd
_ospf6d
+_snmpd
diff --git a/etc/group b/etc/group
index 619fc6639a9..c00236e3b40 100644
--- a/etc/group
+++ b/etc/group
@@ -55,6 +55,7 @@ _dvmrpd:*:87:
_ripd:*:88:
_relayd:*:89:
_ospf6d:*:90:
+_snmpd:*:91:
dialer:*:117:
nogroup:*:32766:
nobody:*:32767:
diff --git a/etc/mail/aliases b/etc/mail/aliases
index 8494441869b..d69664cc7d0 100644
--- a/etc/mail/aliases
+++ b/etc/mail/aliases
@@ -1,5 +1,5 @@
#
-# $OpenBSD: aliases,v 1.23 2007/12/09 20:06:55 reyk Exp $
+# $OpenBSD: aliases,v 1.24 2008/01/31 14:18:03 reyk Exp $
#
# Aliases in this file will NOT be expanded in the header from
# Mail, but WILL be visible over networks or from /usr/libexec/mail.local.
@@ -44,6 +44,7 @@ _relayd: /dev/null
_ripd: /dev/null
_rstatd: /dev/null
_rusersd: /dev/null
+_snmpd: /dev/null
_spamd: /dev/null
_syslogd: /dev/null
_tcpdump: /dev/null
diff --git a/etc/master.passwd b/etc/master.passwd
index e6b6667136a..ae3cb27d65d 100644
--- a/etc/master.passwd
+++ b/etc/master.passwd
@@ -37,4 +37,5 @@ _dvmrpd:*:87:87::0:0:DVMRP Daemon:/var/empty:/sbin/nologin
_ripd:*:88:88::0:0:RIP Daemon:/var/empty:/sbin/nologin
_relayd:*:89:89::0:0:Relay Daemon:/var/empty:/sbin/nologin
_ospf6d:*:90:90::0:0:OSPF6 Daemon:/var/empty:/sbin/nologin
+_snmpd:*:91:91::0:0:SNMP Daemon:/var/empty:/sbin/nologin
nobody:*:32767:32767::0:0:Unprivileged user:/nonexistent:/sbin/nologin
diff --git a/etc/mtree/special b/etc/mtree/special
index fdbb469dd81..eefa72f9be5 100644
--- a/etc/mtree/special
+++ b/etc/mtree/special
@@ -1,4 +1,4 @@
-# $OpenBSD: special,v 1.78 2007/12/09 20:03:47 reyk Exp $
+# $OpenBSD: special,v 1.79 2008/01/31 14:18:03 reyk Exp $
# $NetBSD: special,v 1.4 1996/05/08 21:30:18 pk Exp $
# @(#)special 8.2 (Berkeley) 1/23/94
#
@@ -84,6 +84,7 @@ sensorsd.conf type=file mode=0644 uname=root gname=wheel
shells type=file mode=0644 uname=root gname=wheel
skey type=dir mode=01730 uname=root gname=auth optional
.. #skey
+snmpd.conf type=file mode=0600 uname=root gname=wheel
spwd.db type=file mode=0640 uname=root gname=_shadow
ssh type=dir mode=0755 uname=root gname=wheel optional
ssh_config type=file mode=0644 uname=root gname=wheel
diff --git a/etc/rc b/etc/rc
index e4c092c9e3e..f027bc96512 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,4 +1,4 @@
-# $OpenBSD: rc,v 1.310 2008/01/16 14:19:28 sthen Exp $
+# $OpenBSD: rc,v 1.311 2008/01/31 14:18:03 reyk Exp $
# System startup script run by init on autoboot
# or after single-user.
@@ -562,6 +562,10 @@ fi
echo -n starting network daemons:
+if [ X"${snmpd_flags}" != X"NO" ]; then
+ echo -n ' snmpd'; /usr/sbin/snmpd $snmpd_flags
+fi
+
if [ X"${routed_flags}" != X"NO" ]; then
echo -n ' routed'; routed $routed_flags
fi
diff --git a/etc/rc.conf b/etc/rc.conf
index 2a2bf5a22ef..d70913189be 100644
--- a/etc/rc.conf
+++ b/etc/rc.conf
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: rc.conf,v 1.127 2007/12/07 17:13:35 deraadt Exp $
+# $OpenBSD: rc.conf,v 1.128 2008/01/31 14:18:03 reyk Exp $
# set these to "NO" to turn them off. otherwise, they're used as flags
routed_flags=NO # for normal use: "-q"
@@ -41,6 +41,7 @@ ftpproxy_flags=NO # for normal use: ""
hostapd_flags=NO # for normal use: ""
ifstated_flags=NO # for normal use: ""
relayd_flags=NO # for normal use: ""
+snmpd_flags=NO # for normal use: ""
# use -u to disable chroot, see httpd(8)
httpd_flags=NO # for normal use: "" (or "-DSSL" after reading ssl(8))
diff --git a/usr.sbin/Makefile b/usr.sbin/Makefile
index ad4f69da543..c1cfa382e2b 100644
--- a/usr.sbin/Makefile
+++ b/usr.sbin/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.139 2007/12/09 21:19:58 reyk Exp $
+# $OpenBSD: Makefile,v 1.140 2008/01/31 14:18:03 reyk Exp $
.include <bsd.own.mk>
@@ -11,10 +11,10 @@ SUBDIR= ac accton acpidump adduser amd apm apmd arp \
pcidump pkg_add popa3d portmap ppp pppd pppoe procmap pstat pwd_mkdb \
quot quotaon rarpd rbootd rdate rdconfig relayctl relayd repquota \
rip6query ripctl ripd rmt route6d rpc.bootparamd rpc.lockd rtadvd \
- rtsold rwhod sa sasyncd sensorsd sliplogin slstats spamdb spray \
- syslogc syslogd tcpdrop tcpdump timed tokenadm tokeninit traceroute \
- traceroute6 trpt usbdevs user vipw watchdogd wsconscfg wsfontload \
- wsmoused zdump zic ztsscale
+ rtsold rwhod sa sasyncd sensorsd sliplogin slstats snmpctl snmpd \
+ spamdb spray syslogc syslogd tcpdrop tcpdump timed tokenadm \
+ tokeninit traceroute traceroute6 trpt usbdevs user vipw watchdogd \
+ wsconscfg wsfontload wsmoused zdump zic ztsscale
.if (${AFS:L} == "yes")
SUBDIR+=afs