From: "Bart vdr. Meulen" <bartvdrmeulen@gmail.com>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH] net-snmp: Make config file optional and add initd script
Date: Mon, 28 May 2012 14:42:47 +0200 [thread overview]
Message-ID: <1338208981-8681-21-git-send-email-bartvdrmeulen@gmail.com> (raw)
From: "Bart vdr. Meulen" <bartvdrmeulen@gmail.com>
Add option to make the installation of the snmpd configuration file optional.
Add option to install a startup script for snmpd agent in init.d directory
Signed-off-by: Bart vdr. Meulen <bartvdrmeulen@gmail.com>
---
rules/net-snmp.in | 12 ++++++++++++
rules/net-snmp.make | 8 ++++++++
2 files changed, 20 insertions(+)
diff --git a/rules/net-snmp.in b/rules/net-snmp.in
index 6205a19..6910f7c 100644
--- a/rules/net-snmp.in
+++ b/rules/net-snmp.in
@@ -20,6 +20,18 @@ config NET_SNMP_AGENT
bool
prompt "agent (snmpd)"
+if NET_SNMP_AGENT
+
+config NET_SNMP_AGENT_CONF
+ bool
+ prompt "install config file (/etc/snmp/snmpd.conf)"
+
+config NET_SNMP_AGENT_INITD
+ bool
+ prompt "install startup script (/etc/init.d/snmpd)"
+
+endif
+
config NET_SNMP_APPLICATIONS
bool
prompt "apps (snmpget, ...)"
diff --git a/rules/net-snmp.make b/rules/net-snmp.make
index ad2d360..49f8300 100644
--- a/rules/net-snmp.make
+++ b/rules/net-snmp.make
@@ -278,10 +278,18 @@ ifdef PTXCONF_NET_SNMP_AGENT
# agent helper libs
@$(call install_lib, net-snmp, 0, 0, 0644, libnetsnmphelpers)
+ifdef PTXCONF_NET_SNMP_AGENT_CONF
# agent configuration
@$(call install_alternative, net-snmp, 0, 0, 0644, /etc/snmp/snmpd.conf)
endif
+ifdef PTXCONF_NET_SNMP_AGENT_INITD
+# agent startup
+ @$(call install_alternative, net-snmp, 0, 0, 0755, /etc/init.d/snmpd)
+endif
+
+endif
+
ifdef PTXCONF_NET_SNMP_APPLICATIONS
# apps libs
@$(call install_lib, net-snmp, 0, 0, 0644, libnetsnmptrapd)
--
1.7.9.5
--
ptxdist mailing list
ptxdist@pengutronix.de
next reply other threads:[~2012-05-28 13:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-28 12:42 Bart vdr. Meulen [this message]
2012-05-31 14:56 ` Michael Olbrich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1338208981-8681-21-git-send-email-bartvdrmeulen@gmail.com \
--to=bartvdrmeulen@gmail.com \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox