Changeset 2f9fc9abf92804e53d4d2ef00ce5ac4c107b389b

Show
Ignore:
Timestamp:
09/30/11 11:38:05 (8 months ago)
Author:
Neutron Soutmun <neo.neutron@…>
Children:
5c032f4acf402cdeea59f145273094eb374082b8, 662ae783f4b889624897e562deae1621c84f60f4
Parents:
c6d18525d064b54b66d4adbf14dbb1d0dd3818ae
git-committer:
Neutron Soutmun <neo.neutron@…> (09/30/11 11:38:05)
Message:

Install rh-checkrad as sbin scripts

  • configure.ac:
    • Add netsnmp-module/scripts/rh-checkrad to AC_CONFIG_FILES.
  • netsnmp-module/rh-checkrad.in:
    • Rename rh-checkrad to rh-checkrad.in
    • Make the script using the path from configure on build time.
  • netsnmp-module/Makefile.am:
    • Install rh-checkrad as sbin scripts.
Files:
2 modified
1 moved

Legend:

Unmodified
Added
Removed
  • configure.ac

    re0a807c r2f9fc9a  
    8383  tools/rahunas-weblogin-config-update 
    8484  netsnmp-module/Makefile 
     85  netsnmp-module/scripts/rh-checkrad 
    8586  example/Makefile 
    8687  example/rahunas.default 
  • netsnmp-module/Makefile.am

    r353d6b3 r2f9fc9a  
    33if ENABLE_NETSNMP_MODULE 
    44 
    5 EXTRA_DIST = mibs/RAHUNAS-MIB scripts/rh-checkrad 
     5EXTRA_DIST = mibs/RAHUNAS-MIB 
     6 
     7dist_sbin_SCRIPTS = scripts/rh-checkrad 
    68 
    79# Library versioning 
  • netsnmp-module/scripts/rh-checkrad.in

    rc6d1852 r2f9fc9a  
    1313# Date:   2011-09-29 
    1414 
    15 LOGDIR="/var/log/freeradius"; 
    16 LOGFILE="${LOGDIR}/rh-checkrad.log"; 
     15PATH=/sbin:/bin:/usr/sbin:/usr/bin:@prefix@/sbin:@prefix@/bin 
     16prefix=@prefix@ 
     17exec_prefix=@exec_prefix@ 
    1718 
    18 SNMPGET=/usr/bin/snmpget 
     19LOGDIR=@localstatedir@/log/freeradius 
     20LOGFILE=${LOGDIR}/rh-checkrad.log 
     21 
     22SNMPGET=`which snmpget` 
    1923SNMP_VERSION="2c" 
    2024SNMP_COMMUNITY="public" 
     
    3135LOGIN=$4 
    3236SESSIONID=$5 
     37 
     38if [ ! -x ${SNMPGET} ]; then 
     39  echo "No snmp-get installed, please install" 
     40  exit 2 
     41fi 
    3342 
    3443if [ $# -lt 5 -o "x$1" = "x--help" ]; then