You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.7 KiB
48 lines
1.7 KiB
# --- SDE-COPYRIGHT-NOTE-BEGIN --- |
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
# |
|
# Filename: package/.../net-snmp/net-snmp.conf |
|
# Copyright (C) 2006 - 2012 The OpenSDE Project |
|
# Copyright (C) 2004 - 2006 The T2 SDE Project |
|
# Copyright (C) 1998 - 2003 Clifford Wolf |
|
# |
|
# More information can be found in the files COPYING and README. |
|
# |
|
# This program is free software; you can redistribute it and/or modify |
|
# it under the terms of the GNU General Public License as published by |
|
# the Free Software Foundation; version 2 of the License. A copy of the |
|
# GNU General Public License can be found in the file COPYING. |
|
# --- SDE-COPYRIGHT-NOTE-END --- |
|
|
|
if [ $prefix_auto = 1 ]; then |
|
var_append extraconfopt ' ' '--with-logfile="$localstatedir/log/snmpd.log"' |
|
var_append extraconfopt ' ' '--with-persistent-directory="$localstatedir/lib/net-snmp"' |
|
fi |
|
|
|
# Use defaults for prompted values |
|
var_append confopt ' ' "--with-defaults" |
|
|
|
# IPv6 support by default |
|
var_append extraconfopt ' ' "--enable-ipv6" |
|
|
|
# optional tcp_wrappers support |
|
pkginstalled tcp_wrappers && var_append confopt ' ' "--with-libwrap" |
|
|
|
# install SNMP perl module |
|
pkginstalled perl && var_append extraconfopt ' ' "--with-perl-modules='INSTALLDIRS=vendor'" |
|
|
|
if pkginstalled openssl; then |
|
var_append extraconfopt ' ' --with-openssl |
|
|
|
# this package is sensitive to massivlely injected options |
|
var_remove extraconfopt ' ' '--with-ssl' |
|
else |
|
var_append extraconfopt ' ' --without-openssl |
|
fi |
|
|
|
pkg_net_snmp_postmake() { |
|
# create $sysconfdit/snmp and copy example snmpd.conf |
|
mkdir $root$sysconfdir/snmp |
|
install -m 600 EXAMPLE.conf $root$sysconfdir/snmp/snmpd.conf.sample |
|
} |
|
hook_add postmake 9 'pkg_net_snmp_postmake'
|
|
|