File: net-snmp-config

package info (click to toggle)
pdns-recursor 5.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,108 kB
  • sloc: cpp: 109,513; javascript: 20,651; python: 5,657; sh: 5,069; makefile: 780; ansic: 582; xml: 37
file content (21 lines) | stat: -rwxr-xr-x 420 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

if [ "$1" = "--cflags" ]; then
  FLAGS=$(/usr/bin/net-snmp-config --cflags)
  MYFLAGS=""
  for flag in $FLAGS; do
    if [[ "$flag" =~ -DNETSNMP* ]]; then
      MYFLAGS="$MYFLAGS $flag"
    fi
  done
  echo "$MYFLAGS"
  exit 0

elif [ "$1" = "--netsnmp-agent-libs" ]; then
  /usr/bin/net-snmp-config "$@"
  exit $?

else
  echo "E: debian/configure-helpers/net-snmp-config: unknown flag $1" >&2
  exit 1
fi