From a3145c91f1ba604925f63893b0b68b70b1569a0f Mon Sep 17 00:00:00 2001 From: Jan Wagner Date: Fri, 21 Feb 2014 22:05:46 +0100 Subject: [PATCH 1/2] Adjust repack.sh to latest upstream --- debian/bin/repack.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/debian/bin/repack.sh b/debian/bin/repack.sh index 9b9a0d4..51bdfb7 100755 --- a/debian/bin/repack.sh +++ b/debian/bin/repack.sh @@ -26,8 +26,10 @@ srcdir="$tdir/$distdir" #echo "Adjusting $srcdir/configure" sed -i 's/perlmods\/Makefile\ //' $srcdir/configure sed -i '/perlmods\/Makefile/d' $srcdir/configure -#echo "Adjusting $srcdir/configure" -sed -i '/perlmods\/Makefile/d' $srcdir/configure.in +#echo "Adjusting $srcdir/configure.in" +[ -f $srcdir/configure.in ] && sed -i '/perlmods\/Makefile/d' $srcdir/configure.in +#echo "Adjusting $srcdir/configure.am" +[ -f $srcdir/configure.am ] && sed -i '/perlmods\/Makefile/d' $srcdir/configure.am #echo "Adjusting $srcdir/Makefile*" sed -i 's/perlmods\ //' $srcdir/Makefile* #echo "Removing $srcdir/perlmods/ From ce560c981f52eb667035cda0c7be9cc46fb83335 Mon Sep 17 00:00:00 2001 From: Jan Wagner Date: Sat, 22 Feb 2014 00:03:05 +0100 Subject: [PATCH 2/2] Add travis config --- .travis.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..f9d8c30 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,30 @@ +language: c + +before_install: + # cleanup git stuff (source format 1.0 does not exclude it) + - rm -rf .git .travis.yml + # update package list + - sudo apt-get update -qq + # + - if [ "$TRAVIS_BRANCH" != "m-p" ]; then sudo apt-get install -qq --no-install-recommends devscripts libwww-perl libcrypt-ssleay-perl && uscan --force-download && sudo apt-get purge -qq libwww-perl libcrypt-ssleay-perl && sudo apt-get autoremove -qq; else sudo apt-get install -qq --no-install-recommends devscripts && VER=$(head -1 debian/changelog | awk -F'[()]' '{print $2}' | awk -F'+' '{print $1}'); wget https://gist.githubusercontent.com/waja/9142217/raw/git2release -O /tmp/git2release && sh /tmp/git2release --release-tarball https://github.com/monitoring-plugins/monitoring-plugins/archive/master.tar.gz && mv monitoring-plugins*.tar.gz .. && sh /tmp/git2release --prepare-debian ../monitoring-plugins-1.5.tar.gz && tar -xzf ../monitoring-plugins_${VER}.orig.tar.gz -C ../ && cp -a debian ../monitoring-plugins-${VER}/ && cd ../monitoring-plugins-${VER}/; fi +# # installneeded packages for uscan +# - sudo apt-get install -qq --no-install-recommends devscripts libwww-perl libcrypt-ssleay-perl +# # download original tarball +# - uscan --force-download +# # remove packages needed for uscan +# - sudo apt-get purge -qq libwww-perl libcrypt-ssleay-perl +# - sudo apt-get autoremove -qq + +install: + # install implicit build dependencies + - sudo apt-get install -qq --no-install-recommends build-essential fakeroot devscripts + # install explicit build dependencies + - sudo apt-get install -qq --no-install-recommends debhelper dpatch perl autotools-dev libdbi-dev libldap2-dev libpq-dev libmysqlclient-dev libradiusclient-ng-dev libkrb5-dev libnet-snmp-perl procps mawk dpatch hardening-wrapper + +script: + # build the debian package + - debuild -uc -us + +#notifications: +# email: false +