debian/0000755000000000000000000000000012213346602007165 5ustar debian/solarpowerlog.logrotate0000644000000000000000000000044112211711133013776 0ustar /var/log/solarpowerlog/solarpowerlog.log /var/log/solarpowerlog/solarpowerlog.err { monthly rotate 12 compress missingok notifempty sharedscripts postrotate [ -e /var/run/solarpowerlog/solarpowerlog.pid ] && kill -USR1 `cat /var/run/solarpowerlog/solarpowerlog.pid` endscript size 256M } debian/control0000644000000000000000000000311212211711133010556 0ustar Source: solarpowerlog Section: utils Priority: optional Maintainer: Tobias Frost Vcs-Browser: http://solarpowerlog.git.sourceforge.net/git/gitweb.cgi?p=solarpowerlog/solarpowerlog;a=shortlog;h=refs/heads/debian Vcs-Git: git://solarpowerlog.git.sourceforge.net/gitroot/solarpowerlog/solarpowerlog -b debian Build-Depends: autoconf, automake, autotools-dev, debhelper (>= 9), dh-autoreconf, dpkg-dev (>=1.16.1~), libboost-dev (>=1.48), libboost-date-time-dev, libboost-program-options-dev, libboost-system-dev, libboost-thread-dev, libboost-atomic-dev, libconfig++-dev, liblog4cxx10-dev, libtool, pkg-config Standards-Version: 3.9.4 Homepage: http://solarpowerlog.coldtobi.de Package: solarpowerlog Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends}, lsb-base (>= 3.2-14) Description: photovoltaic data logging The program's purpose is to track and log data from photovoltaic inverters, collect power data and store them. Also a purpose is to provide an interface to extract these data, allowing applications like web site stats of the system. . Solarpowerlog supports at the moment Solarmax inverters, connected via ethernet or serial interface, however it is programmed in a way to easy add support for other inverters as well. . The program supports logging to the console, logging to CVS and writing HTML files to be serverd by a web server. debian/changelog0000644000000000000000000000272412212401533011036 0ustar solarpowerlog (0.24-4) unstable; urgency=low * chek for boost::atomic in boost.m4 was incomplete: Need also to check for boost::system -- Tobias Frost Fri, 06 Sep 2013 18:30:59 +0200 solarpowerlog (0.24-3) unstable; urgency=low * Add patch for boost-1.54 (also needs new B-D boost-atomic-dev) -- Tobias Frost Sun, 01 Sep 2013 20:43:43 +0200 solarpowerlog (0.24-2) unstable; urgency=low * Adding solarpowerlog.logrotate (cherry picked from upstream) * Overriding linitian warning init.d-script-call-internal-API until consensus is found on this topic * Do not install verbatim (L)GPL license texts -- Tobias Frost Sat, 08 Jun 2013 15:04:46 +0200 solarpowerlog (0.24-1) unstable; urgency=low * New upstream release. * Missing b-d on libboost-date-time-dev * Patch "fix-solarpowerlog.init" applied upstream * d/rules clean: remove some autoconf generated files * Update to standard version 3.9.4: Add branch to Vcs-Git in d/control * Depreciating hardening-wrapper in favour of dpkg-buildflags -- Tobias Frost Tue, 07 May 2013 08:22:00 +0200 solarpowerlog (0.23a-2) unstable; urgency=low * Fix "bashism in the init.d file" (Closes: #690632) -- Tobias Frost Tue, 16 Oct 2012 19:51:13 +0200 solarpowerlog (0.23a-1) unstable; urgency=low * Initial upload (Closes: #652904) -- Tobias Frost Wed, 14 Mar 2012 16:48:09 +0100 debian/solarpowerlog.postrm0000755000000000000000000000020012211711133013316 0ustar #!/bin/sh set -e LOGDIR=/var/log/solarpowerlog if [ "$1" = "purge" ] then rm -rf $LOGDIR || true fi #DEBHELPER# exit 0 debian/copyright0000644000000000000000000001076012211711133011115 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: solarpowerlog Upstream-Contact: tobi@coldtobi.de Source: http://solarpowerlog.git.sourceforge.net/git/gitweb-index.cgi Files: * Copyright: 2009-2011 Tobias Frost License: GPL-3.0+ Files: src/*.h Copyright: 2009-2011 Tobias Frost License: LGPL-3.0+ Files: src/*.cpp Copyright: 2009-2011 Tobias Frost License: GPL-3.0+ Files: debian/* Copyright: 2011 Tobias Frost License: GPL-3.0+ Files: src/ctemplate/* Copyright: 2009 Stephen C. Losen License: GPL-1.0+ Files: m4/boost.m4 Copyright: 2007-2011 Benoit Sigoure License: GPL-3.0-with-autoconf-exception 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, either version 3 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . . Additional permission under section 7 of the GNU General Public License, version 3 ("GPLv3"): . If you convey this file as part of a work that contains a configuration script generated by Autoconf, you may do so under terms of your choice. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . . On Debian systems, the full text of the GNU General Public License version 3 can be found in the file `/usr/share/common-licenses/GPL-3'. License: GPL-3.0+ 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, either version 3 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . . On Debian systems, the full text of the GNU General Public License version 3 can be found in the file `/usr/share/common-licenses/GPL-3'. License: GPL-1.0+ 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; either version 1, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA . On Debian systems, the full text of the GNU General Public License version 3 can be found in the file `/usr/share/common-licenses/GPL-1'. License: LGPL-3.0+ This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. . You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . . On Debian systems, the full text of the GNU Lesser General Public License version 3 can be found in the file `/usr/share/common-licenses/LGPL-3'. debian/solarpowerlog.install0000644000000000000000000000006312211711133013444 0ustar example_confs/solarpowerlog.conf etc/solarpowerlog debian/solarpowerlog.lintian-overrides0000644000000000000000000000034512211711133015437 0ustar # After discussion on debian-mentors, it is better to currently ignore this warning until discussion has been completed. # See #710519, #683654 and #710571 solarpowerlog: init.d-script-call-internal-API etc/init.d/solarpowerlog debian/watch0000644000000000000000000000015412211711133010207 0ustar # Watch control file for uscan(1) version=3 http://sf.net/solarpowerlog/solarpowerlog-(.*)\.tar\.(?:gz|bz2) debian/rules0000755000000000000000000000174212211711133010242 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # enable hardening export DEB_BUILD_MAINT_OPTIONS = hardening=+all DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk CXXFLAGS+=$(CPPFLAGS) # Support parallel build ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) MAKEFLAGS += -j$(NUMJOBS) endif %: dh $@ --with autoreconf override_dh_autoreconf: cp tools/solarpowerlog.init debian/ cp tools/solarpowerlog.default debian/ # needed when building directly from the git repository. # otherwise some files are missing. dh_autoreconf ./bootstrap.sh override_dh_clean: dh_clean rm -f debian/solarpowerlog.init debian/solarpowerlog.default rm -f config/ltmain.sh m4/libtool.m4 override_dh_installdocs: # do not install the GPL / LGPL license files rm -f debian/solarpowerlog/usr/share/doc/solarpowerlog/*GPL* dh_installdocs -X GPL debian/patches/0000755000000000000000000000000012212147763010622 5ustar debian/patches/boost-1.54.patch0000644000000000000000000001360312212147707013357 0ustar Description: Add patch for boost-1.54 Author: Tobias Frost --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/m4/boost.m4 +++ b/m4/boost.m4 @@ -22,7 +22,7 @@ # along with this program. If not, see . m4_define([_BOOST_SERIAL], [m4_translit([ -# serial 16 +# serial 18 ], [# ], [])]) @@ -403,7 +403,25 @@ LDFLAGS=$boost_save_LDFLAGS LIBS=$boost_save_LIBS if test x"$Boost_lib" = xyes; then - Boost_lib_LDFLAGS="-L$boost_ldpath -Wl,-R$boost_ldpath" + # Check or used cached result of whether or not using -R or -rpath makes sense. + # Some implementations of ld, such as for Mac OSX, require -rpath but + # -R is the flag known to work on other systems. + # https://github.com/tsuna/boost.m4/issues/19 + AC_CACHE_VAL([boost_cv_rpath_link_ldflag], + [for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do + LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath" + LIBS="$boost_save_LIBS $Boost_lib_LIBS" + _BOOST_AC_LINK_IFELSE([], + [boost_rpath_link_ldflag_found=yes + break], + [boost_rpath_link_ldflag_found=no]) + done + AS_IF([test "x$boost_rpath_link_ldflag_found" != "xyes"], + [AC_MSG_ERROR([Unable to determine whether to use -R or -rpath])]) + LDFLAGS=$boost_save_LDFLAGS + LIBS=$boost_save_LIBS + ]) + Boost_lib_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath" Boost_lib_LDPATH="$boost_ldpath" break 6 else @@ -516,6 +534,14 @@ ])# BOOST_CONVERSION +# BOOST_CRC() +# ----------- +# Look for Boost.CRC +BOOST_DEFUN([CRC], +[BOOST_FIND_HEADER([boost/crc.hpp]) +])# BOOST_CRC + + # BOOST_DATE_TIME([PREFERRED-RT-OPT]) # ----------------------------------- # Look for Boost.Date_Time. For the documentation of PREFERRED-RT-OPT, see the @@ -580,6 +606,14 @@ [BOOST_FIND_HEADER([boost/function.hpp])]) +# BOOST_GEOMETRY() +# ---------------- +# Look for Boost.Geometry (new since 1.47.0). +BOOST_DEFUN([Geometry], +[BOOST_FIND_HEADER([boost/geometry.hpp]) +])# BOOST_GEOMETRY + + # BOOST_GRAPH([PREFERRED-RT-OPT]) # ------------------------------- # Look for Boost.Graphs. For the documentation of PREFERRED-RT-OPT, see the @@ -703,7 +737,24 @@ [boost::program_options::options_description d("test");]) ])# BOOST_PROGRAM_OPTIONS - +# BOOST_ATOMIC([PREFERRED-RT-OPT]) +# ----------------------------------------- +# Look for Boost.Atomic. For the documentation of PREFERRED-RT-OPT, +# see the documentation of BOOST_FIND_LIB above. +BOOST_DEFUN([Atomic], +[ # Needs boost::system +BOOST_SYSTEM([$1]) +boost_filesystem_save_LIBS=$LIBS +boost_filesystem_save_LDFLAGS=$LDFLAGS +m4_pattern_allow([^BOOST_SYSTEM_(LIBS|LDFLAGS)$])dnl +LIBS="$LIBS $BOOST_SYSTEM_LIBS" +LDFLAGS="$LDFLAGS $BOOST_SYSTEM_LDFLAGS" +BOOST_FIND_LIB([atomic], [$1], + [boost/atomic.hpp], + [boost::atomic done (false);]) +LIBS=$boost_filesystem_save_LIBS +LDFLAGS=$boost_filesystem_save_LDFLAGS +])# BOOST_ATOMIC # _BOOST_PYTHON_CONFIG(VARIABLE, FLAG) # ------------------------------------ @@ -775,6 +826,14 @@ ])# BOOST_SIGNALS +# BOOST_SIGNALS2() +# ---------------- +# Look for Boost.Signals2 (new since 1.39.0). +BOOST_DEFUN([Signals2], +[BOOST_FIND_HEADER([boost/signals2.hpp]) +])# BOOST_SIGNALS2 + + # BOOST_SMART_PTR() # ----------------- # Look for Boost.SmartPtr @@ -783,7 +842,6 @@ BOOST_FIND_HEADER([boost/shared_ptr.hpp]) ]) - # BOOST_STATICASSERT() # -------------------- # Look for Boost.StaticAssert @@ -824,7 +882,6 @@ { return NULL; }]) ])# BOOST_TEST - # BOOST_THREADS([PREFERRED-RT-OPT]) # --------------------------------- # Look for Boost.Thread. For the documentation of PREFERRED-RT-OPT, see the @@ -843,8 +900,13 @@ BOOST_SYSTEM([$1]) fi # end of the Boost.System check. m4_pattern_allow([^BOOST_SYSTEM_(LIBS|LDFLAGS)$])dnl -LIBS="$LIBS $BOOST_SYSTEM_LIBS $boost_cv_pthread_flag" -LDFLAGS="$LDFLAGS $BOOST_SYSTEM_LDFLAGS" +# At least on some archs, link-time dependency from thread to atomic was added as of 1.54 +if test $boost_major_version -ge 154; then +BOOST_ATOMIC([$1]) +fi # end of the Boost.Atomic check. +m4_pattern_allow([^BOOST_ATOMIC_(LIBS|LDFLAGS)$])dnl +LIBS="$LIBS $BOOST_SYSTEM_LIBS $BOOST_ATOMIC_LIBS $boost_cv_pthread_flag" +LDFLAGS="$LDFLAGS $BOOST_SYSTEM_LDFLAGS $BOOST_ATOMIC_LDFLAGS" # Yes, we *need* to put the -pthread thing in CPPFLAGS because with GCC3, # boost/thread.hpp will trigger a #error if -pthread isn't used: # boost/config/requires_threads.hpp:47:5: #error "Compiler threading support @@ -867,9 +929,8 @@ [boost/thread.hpp], [boost::thread t; boost::mutex m;]) ;; esac - -BOOST_THREAD_LIBS="$BOOST_THREAD_LIBS $BOOST_SYSTEM_LIBS $boost_cv_pthread_flag" -BOOST_THREAD_LDFLAGS="$BOOST_SYSTEM_LDFLAGS" +BOOST_THREAD_LIBS="$BOOST_THREAD_LIBS $BOOST_SYSTEM_LIBS $BOOST_ATOMIC_LIBS $boost_cv_pthread_flag" +BOOST_THREAD_LDFLAGS="$BOOST_SYSTEM_LDFLAGS $BOOST_ATOMIC_LDFLAGS" BOOST_CPPFLAGS="$BOOST_CPPFLAGS $boost_cv_pthread_flag" LIBS=$boost_threads_save_LIBS LDFLAGS=$boost_threads_save_LDFLAGS @@ -922,6 +983,17 @@ [BOOST_FIND_HEADER([boost/variant/variant_fwd.hpp]) BOOST_FIND_HEADER([boost/variant.hpp])]) +# BOOST_POINTERCONTAINER() +# ------------------------ +# Look for Boost.PointerContainer +BOOST_DEFUN([Pointer_Container], +[BOOST_FIND_HEADER([boost/ptr_container/ptr_deque.hpp]) +BOOST_FIND_HEADER([boost/ptr_container/ptr_list.hpp]) +BOOST_FIND_HEADER([boost/ptr_container/ptr_vector.hpp]) +BOOST_FIND_HEADER([boost/ptr_container/ptr_array.hpp]) +BOOST_FIND_HEADER([boost/ptr_container/ptr_set.hpp]) +BOOST_FIND_HEADER([boost/ptr_container/ptr_map.hpp]) +])# BOOST_POINTERCONTAINER # BOOST_WAVE([PREFERRED-RT-OPT]) # ------------------------------ debian/patches/series0000644000000000000000000000002112211711133012013 0ustar boost-1.54.patch debian/solarpowerlog.docs0000644000000000000000000000000512211711133012722 0ustar NEWS debian/solarpowerlog.examples0000644000000000000000000000012712211711133013615 0ustar example_confs/htmlwritertemplate example_confs/htmlwriter.conf example_confs/simulator debian/source/0000755000000000000000000000000012211711133010456 5ustar debian/source/format0000644000000000000000000000001412211711133011664 0ustar 3.0 (quilt) debian/compat0000644000000000000000000000000212211711133010354 0ustar 9