From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from cl-420.ede-01.nl.sixxs.net ([2001:7b8:2ff:1a3::2] helo=fischmarkt.penguin.de ident=Debian-exim) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1SYzfK-0002vc-Uu for ptxdist@pengutronix.de; Mon, 28 May 2012 15:07:21 +0200 Received: from mail-wg0-f42.google.com ([74.125.82.42]) by fischmarkt.penguin.de with esmtp (Exim 4.72) (envelope-from ) id 1SYzIO-00010A-HI for ptxdist@pengutronix.de; Mon, 28 May 2012 14:44:05 +0200 Received: by wgbds11 with SMTP id ds11so1408589wgb.1 for ; Mon, 28 May 2012 05:43:31 -0700 (PDT) From: "Bart vdr. Meulen" Date: Mon, 28 May 2012 14:42:47 +0200 Message-Id: <1338208981-8681-21-git-send-email-bartvdrmeulen@gmail.com> Subject: [ptxdist] [PATCH] net-snmp: Make config file optional and add initd script Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de From: "Bart vdr. Meulen" 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 --- 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