Skip to content

Commit

Permalink
ready for 2.6.10
Browse files Browse the repository at this point in the history
  • Loading branch information
oetiker committed Oct 29, 2014
1 parent b48e6b5 commit 5200191
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 31 deletions.
12 changes: 12 additions & 0 deletions PERL_MODULES
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FCGI
CGI
CGI::Fast
Config::Grammar
Digest::HMAC_MD5
Net::Telnet
Net::OpenSSH
Net::SNMP
Net::LDAP
Net::DNS
IO::Pty
LWP
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.6.10
File renamed without changes.
29 changes: 14 additions & 15 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@
#


AC_INIT([smokeping],[2.6.9],[[email protected]])
AC_INIT([smokeping],m4_esyscmd([tr -d '\n' < VERSION]),[[email protected]])
AC_PREREQ([2.59])
AC_CONFIG_AUX_DIR(conftools)
AC_CANONICAL_TARGET
m4_version_prereq(2.60, [AC_USE_SYSTEM_EXTENSIONS], [#])
AM_INIT_AUTOMAKE(1.9)

# need this to allow long path names
AM_INIT_AUTOMAKE([1.9 tar-ustar foreign no-dependencies no-installinfo no-texinfo.tex nostdinc ])
AM_MAINTAINER_MODE

m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])

AC_PREFIX_DEFAULT(/opt/smokeping-$PACKAGE_VERSION)
Expand Down Expand Up @@ -60,16 +61,13 @@ AC_SUBST(enable_pkgonly)
# $prefix stores the value of the --prefix command line option, or
# NONE if the option wasn't set. In the case that it wasn't set, make
# it be the default, so that we can use it to expand directories now.
if test "x$prefix" = "xNONE"; then
prefix=$ac_default_prefix
fi

# and similarly for $exec_prefix
if test "x$exec_prefix" = "xNONE"; then
exec_prefix=$prefix
actual_prefix=$prefix
if test x$actual_prefix = xNONE; then
actual_prefix=$ac_default_prefix
fi

HTDOCSDIR=${prefix}/htdocs
HTDOCSDIR=${actual_prefix}/htdocs
AC_ARG_WITH(htdocs-dir,AC_HELP_STRING([--with-htdocs-dir=DIR],[Where to install htdocs [PREFIX/htdocs]]), [HTDOCSDIR=$withval])
AC_SUBST(HTDOCSDIR)

Expand All @@ -81,9 +79,10 @@ AC_SUBST(PERL5LIB)

mod_ok=1
if test "$enable_pkgonly" != yes; then
for module in RRDs FCGI CGI CGI::Fast Config::Grammar Digest::HMAC_MD5 LWP; do
MODULES=`dirname $0`/PERL_MODULES
for module in `sed -e 's/\@.*//' $MODULES` RRDs; do
AC_MSG_CHECKING([checking for perl module '$module'])
if ${PERL} -I$prefix/thirdparty/lib/perl5 -e 'use '$module 2>/dev/null ; then
if ${PERL} -I$actual_prefix/thirdparty/lib/perl5 -e 'use '$module; then
AC_MSG_RESULT([Ok])
else
AC_MSG_RESULT([Failed])
Expand All @@ -104,7 +103,7 @@ if test "$enable_pkgonly" != yes; then
Now you can install local copies of the missing modules
by running

./setup/build-perl-modules.sh ${prefix}/thirdparty
./setup/build-perl-modules.sh ${actual_prefix}/thirdparty

The RRDs perl module is part of RRDtool. Either use the rrdtool
package provided by your OS or install rrdtool from source.
Expand Down
21 changes: 5 additions & 16 deletions setup/build-perl-modules.sh
Original file line number Diff line number Diff line change
@@ -1,22 +1,11 @@
#!/bin/bash

. `dirname $0`/sdbs.inc
dir=`dirname $0`;
. $dir/sdbs.inc

for module in \
FCGI \
CGI \
CGI::Fast \
Config::Grammar \
Digest::HMAC_MD5 \
Net::Telnet \
Net::OpenSSH \
Net::SNMP \
Net::LDAP \
Net::DNS \
IO::Pty \
LWP \
; do

for module in `perl -ne 'chomp; print qq{$_ }' $dir/../PERL_MODULES `; do
perlmodule $module
done


0 comments on commit 5200191

Please sign in to comment.