debian/0000755000000000000000000000000011557553523007201 5ustar debian/liblog4c3.symbols0000644000000000000000000001443311557550017012375 0ustar liblog4c.so.3 liblog4c3 #MINVER# __log4c_category_vlog@Base 1.2.1 __log4c_fini@Base 1.2.1 __log4c_init@Base 1.2.1 __log4c_reread@Base 1.2.1 __sd_domnode_new@Base 1.2.1 _sp@Base 1.2.1 getopt_reset@Base 1.2.1 log4c_appender_append@Base 1.2.1 log4c_appender_close@Base 1.2.1 log4c_appender_delete@Base 1.2.1 log4c_appender_factory@Base 1.2.1 log4c_appender_get@Base 1.2.1 log4c_appender_get_layout@Base 1.2.1 log4c_appender_get_name@Base 1.2.1 log4c_appender_get_type@Base 1.2.1 log4c_appender_get_udata@Base 1.2.1 log4c_appender_new@Base 1.2.1 log4c_appender_open@Base 1.2.1 log4c_appender_print@Base 1.2.1 log4c_appender_set_layout@Base 1.2.1 log4c_appender_set_type@Base 1.2.1 log4c_appender_set_udata@Base 1.2.1 log4c_appender_type_get@Base 1.2.1 log4c_appender_type_mmap@Base 1.2.1 log4c_appender_type_rollingfile@Base 1.2.1 log4c_appender_type_set@Base 1.2.1 log4c_appender_type_stream2@Base 1.2.1 log4c_appender_type_stream@Base 1.2.1 log4c_appender_type_syslog@Base 1.2.1 log4c_appender_types_print@Base 1.2.1 log4c_category_delete@Base 1.2.1 log4c_category_factory@Base 1.2.1 log4c_category_get@Base 1.2.1 log4c_category_get_additivity@Base 1.2.1 log4c_category_get_appender@Base 1.2.1 log4c_category_get_chainedpriority@Base 1.2.1 log4c_category_get_name@Base 1.2.1 log4c_category_get_priority@Base 1.2.1 log4c_category_list@Base 1.2.1 log4c_category_new@Base 1.2.1 log4c_category_print@Base 1.2.1 log4c_category_set_additivity@Base 1.2.1 log4c_category_set_appender@Base 1.2.1 log4c_category_set_priority@Base 1.2.1 log4c_dump_all_instances@Base 1.2.1 log4c_dump_all_types@Base 1.2.1 log4c_fini@Base 1.2.1 log4c_init@Base 1.2.1 log4c_layout_delete@Base 1.2.1 log4c_layout_factory@Base 1.2.1 log4c_layout_format@Base 1.2.1 log4c_layout_get@Base 1.2.1 log4c_layout_get_name@Base 1.2.1 log4c_layout_get_type@Base 1.2.1 log4c_layout_get_udata@Base 1.2.1 log4c_layout_new@Base 1.2.1 log4c_layout_print@Base 1.2.1 log4c_layout_set_type@Base 1.2.1 log4c_layout_set_udata@Base 1.2.1 log4c_layout_type_basic@Base 1.2.1 log4c_layout_type_basic_r@Base 1.2.1 log4c_layout_type_dated@Base 1.2.1 log4c_layout_type_dated_r@Base 1.2.1 log4c_layout_type_get@Base 1.2.1 log4c_layout_type_set@Base 1.2.1 log4c_layout_types_print@Base 1.2.1 log4c_load@Base 1.2.1 log4c_logging_event_delete@Base 1.2.1 log4c_logging_event_new@Base 1.2.1 log4c_major_version@Base 1.2.1 log4c_micro_version@Base 1.2.1 log4c_minor_version@Base 1.2.1 log4c_priority_to_int@Base 1.2.1 log4c_priority_to_string@Base 1.2.1 log4c_rc@Base 1.2.1 log4c_rc_load@Base 1.2.1 log4c_reread@Base 1.2.1 log4c_rollingpolicy_delete@Base 1.2.1 log4c_rollingpolicy_factory@Base 1.2.1 log4c_rollingpolicy_fini@Base 1.2.1 log4c_rollingpolicy_get@Base 1.2.1 log4c_rollingpolicy_get_name@Base 1.2.1 log4c_rollingpolicy_get_rfudata@Base 1.2.1 log4c_rollingpolicy_get_udata@Base 1.2.1 log4c_rollingpolicy_init@Base 1.2.1 log4c_rollingpolicy_is_initialized@Base 1.2.1 log4c_rollingpolicy_is_triggering_event@Base 1.2.1 log4c_rollingpolicy_new@Base 1.2.1 log4c_rollingpolicy_print@Base 1.2.1 log4c_rollingpolicy_rollover@Base 1.2.1 log4c_rollingpolicy_set_type@Base 1.2.1 log4c_rollingpolicy_set_udata@Base 1.2.1 log4c_rollingpolicy_type_get@Base 1.2.1 log4c_rollingpolicy_type_set@Base 1.2.1 log4c_rollingpolicy_type_sizewin@Base 1.2.1 log4c_rollingpolicy_types_print@Base 1.2.1 log4c_stream2_get_flags@Base 1.2.1 log4c_stream2_get_fp@Base 1.2.1 log4c_stream2_set_flags@Base 1.2.1 log4c_stream2_set_fp@Base 1.2.1 log4c_version@Base 1.2.1 rollingfile_get_current_file_size@Base 1.2.1 rollingfile_make_udata@Base 1.2.1 rollingfile_udata_get_files_prefix@Base 1.2.1 rollingfile_udata_get_logdir@Base 1.2.1 rollingfile_udata_set_files_prefix@Base 1.2.1 rollingfile_udata_set_logdir@Base 1.2.1 rollingfile_udata_set_policy@Base 1.2.1 sd_calloc@Base 1.2.1 sd_debug@Base 1.2.1 sd_domnode_attrs_get@Base 1.2.1 sd_domnode_attrs_put@Base 1.2.1 sd_domnode_attrs_remove@Base 1.2.1 sd_domnode_delete@Base 1.2.1 sd_domnode_fread@Base 1.2.1 sd_domnode_fwrite@Base 1.2.1 sd_domnode_load@Base 1.2.1 sd_domnode_new@Base 1.2.1 sd_domnode_read@Base 1.2.1 sd_domnode_search@Base 1.2.1 sd_domnode_store@Base 1.2.1 sd_error@Base 1.2.1 sd_factory_delete@Base 1.2.1 sd_factory_destroy@Base 1.2.1 sd_factory_get@Base 1.2.1 sd_factory_list@Base 1.2.1 sd_factory_new@Base 1.2.1 sd_factory_print@Base 1.2.1 sd_getopt@Base 1.2.1 sd_hash_add@Base 1.2.1 sd_hash_begin@Base 1.2.1 sd_hash_clear@Base 1.2.1 sd_hash_del@Base 1.2.1 sd_hash_delete@Base 1.2.1 sd_hash_end@Base 1.2.1 sd_hash_foreach@Base 1.2.1 sd_hash_get_nelem@Base 1.2.1 sd_hash_get_size@Base 1.2.1 sd_hash_hash_string@Base 1.2.1 sd_hash_iter_del@Base 1.2.1 sd_hash_iter_next@Base 1.2.1 sd_hash_iter_prev@Base 1.2.1 sd_hash_lookadd@Base 1.2.1 sd_hash_lookup@Base 1.2.1 sd_hash_new@Base 1.2.1 sd_list_add@Base 1.2.1 sd_list_append@Base 1.2.1 sd_list_begin@Base 1.2.1 sd_list_clear@Base 1.2.1 sd_list_del@Base 1.2.1 sd_list_delete@Base 1.2.1 sd_list_end@Base 1.2.1 sd_list_foreach@Base 1.2.1 sd_list_get_nelem@Base 1.2.1 sd_list_iter_del@Base 1.2.1 sd_list_iter_insert@Base 1.2.1 sd_list_iter_next@Base 1.2.1 sd_list_iter_prev@Base 1.2.1 sd_list_lookadd@Base 1.2.1 sd_list_lookup@Base 1.2.1 sd_list_new@Base 1.2.1 sd_list_prepend@Base 1.2.1 sd_list_rbegin@Base 1.2.1 sd_list_rend@Base 1.2.1 sd_list_rforeach@Base 1.2.1 sd_list_sortadd@Base 1.2.1 sd_malloc@Base 1.2.1 sd_malloc_set_handler@Base 1.2.1 sd_optarg@Base 1.2.1 sd_opterr@Base 1.2.1 sd_optind@Base 1.2.1 sd_optopt@Base 1.2.1 sd_realloc@Base 1.2.1 sd_sprintf@Base 1.2.1 sd_stack_begin@Base 1.2.1 sd_stack_clear@Base 1.2.1 sd_stack_delete@Base 1.2.1 sd_stack_end@Base 1.2.1 sd_stack_get_nelem@Base 1.2.1 sd_stack_new@Base 1.2.1 sd_stack_next@Base 1.2.1 sd_stack_peek@Base 1.2.1 sd_stack_pop@Base 1.2.1 sd_stack_push@Base 1.2.1 sd_stat_ctime@Base 1.2.1 sd_strdup@Base 1.2.1 sd_test_add@Base 1.2.1 sd_test_delete@Base 1.2.1 sd_test_err@Base 1.2.1 sd_test_get_name@Base 1.2.1 sd_test_get_verbose@Base 1.2.1 sd_test_in@Base 1.2.1 sd_test_new@Base 1.2.1 sd_test_out@Base 1.2.1 sd_test_run@Base 1.2.1 sd_test_set_verbose@Base 1.2.1 sd_vsprintf@Base 1.2.1 sizewin_make_udata@Base 1.2.1 sizewin_udata_set_file_maxsize@Base 1.2.1 sizewin_udata_set_max_num_files@Base 1.2.1 sizewin_udata_set_rfudata@Base 1.2.1 debian/liblog4c3.install0000644000000000000000000000010011557514360012336 0ustar usr/lib/lib*.so.* usr/share/doc/liblog4c3/sample/log4crc.sample debian/control0000644000000000000000000000313311557550512010577 0ustar Source: log4c Section: libs Priority: extra Maintainer: Fathi Boudra Build-Depends: debhelper (>= 8.0.0), dh-autoreconf, doxygen-latex, ghostscript, libexpat1-dev, texlive-fonts-recommended Standards-Version: 3.9.2 Homepage: http://log4c.sourceforge.net Package: liblog4c-dev Section: libdevel Architecture: any Depends: liblog4c3 (= ${binary:Version}), ${misc:Depends} Description: C library for flexible logging (development) Log4c is a library of C for flexible logging to files, syslog and other destinations. . It is modeled after the Log for Java library (http://logging.apache.org), staying as close to their API as is reasonable. . This package contains the Log4c development files. Package: liblog4c3 Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: C library for flexible logging (runtime) Log4c is a library of C for flexible logging to files, syslog and other destinations. . It is modeled after the Log for Java library (http://logging.apache.org), staying as close to their API as is reasonable. . This package contains the files necessary for running applications that use the log4c library. Package: liblog4c-doc Section: doc Architecture: all Depends: ${misc:Depends} Recommends: w3m | www-browser Description: C library for flexible logging (documentation) Log4c is a library of C for flexible logging to files, syslog and other destinations. . It is modeled after the Log for Java library (http://logging.apache.org), staying as close to their API as is reasonable. . This package contains the Log4c library documentation for developers. debian/source/0000755000000000000000000000000011557526640010501 5ustar debian/source/format0000644000000000000000000000001411557526640011707 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000011557546073010632 5ustar debian/patches/13_basic_layout_hack.diff0000644000000000000000000000062711557514360015432 0ustar --- log4c-1.2.0.orig/src/log4c/layout_type_basic.c +++ log4c-1.2.0/src/log4c/layout_type_basic.c @@ -21,9 +21,7 @@ { static char buffer[1024]; - snprintf(buffer, sizeof(buffer), "%-8s %s - %s\n", - log4c_priority_to_string(a_event->evt_priority), - a_event->evt_category, a_event->evt_msg); + snprintf(buffer, sizeof(buffer), "%s \n", a_event->evt_msg); return buffer; } debian/patches/11_doc_install.diff0000644000000000000000000000066311557546073014265 0ustar Description: remove NEWS/COPYING files from installation Author: Fathi Boudra --- a/doc/Makefile.in +++ b/doc/Makefile.in @@ -171,7 +171,6 @@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ man3dir = $(mandir)/man3 docfiles = $(top_srcdir)/README $(top_srcdir)/AUTHORS \ - $(top_srcdir)/NEWS $(top_srcdir)/COPYING \ $(top_srcdir)/ChangeLog $(am__append_2) targets = doxygen $(am__append_1) all: all-am debian/patches/series0000644000000000000000000000014311557533334012041 0ustar add_AC_PROG_CXX.diff 11_doc_install.diff #12_stream_appender_hack.diff #13_basic_layout_hack.diff debian/patches/12_stream_appender_hack.diff0000644000000000000000000000122311557514360016115 0ustar --- log4c-1.2.0.orig/src/log4c/appender_type_stream.c +++ log4c-1.2.0/src/log4c/appender_type_stream.c @@ -20,7 +20,7 @@ if (fp) return 0; - if ( (fp = fopen(log4c_appender_get_name(this), "w+")) == NULL) + if ( (fp = fopen(log4c_appender_get_name(this), "a+")) == NULL) fp = stderr; /* unbuffered mode */ @@ -36,8 +36,7 @@ { FILE* fp = log4c_appender_get_udata(this); - return fprintf(fp, "[%s] %s", log4c_appender_get_name(this), - a_event->evt_rendered_msg); + return fprintf(fp, "%s", a_event->evt_rendered_msg); } /*******************************************************************************/ debian/patches/add_AC_PROG_CXX.diff0000644000000000000000000000043011557545667014135 0ustar Description: add AC_PROG_CXX to allow autoreconf Author: Fathi Boudra --- a/configure.in +++ b/configure.in @@ -38,6 +38,7 @@ AC_DEFINE(_GNU_SOURCE,1,"POSIXandGNU ext AC_PROG_YACC AC_PROG_CC AC_PROG_CPP +AC_PROG_CXX AM_PROG_LEX AC_PROG_AWK AC_PROG_INSTALL debian/compat0000644000000000000000000000000211557526600010373 0ustar 7 debian/changelog0000644000000000000000000000232411557550261011050 0ustar log4c (1.2.1-3) unstable; urgency=low * Switch to dh usage. * Bump compat/debhelper to 7. * Bump Standards-Version to 3.9.2. * Add libexpat1-dev build dependency. * Replace gs-common build dependency with ghostscript. * Replace doxygen and texlive-latex-recommended build dependencies with doxygen-latex. (Closes: #616268) * Add texlive-fonts-recommended build dependency. (Closes: #621943) * Remove liblog4c.la file. (Closes: #622550) * Add symbols file. -- Fathi Boudra Mon, 02 May 2011 16:12:10 +0300 log4c (1.2.1-2) unstable; urgency=low * Drop docdir path patch. Use an install target. (Closes: #464293) * Bump compat/debhelper to 6. * Remove DM upload. * Update my e-mail address. * Use Homepage field. * Bump Standards-Version to 3.7.3. * Build with --no-undefined and --as-needed linker flags. -- Fathi Boudra Thu, 07 Feb 2008 10:46:15 +0100 log4c (1.2.1-1) unstable; urgency=low * New upstream release. * Allow DM upload. -- Fathi Boudra Tue, 13 Nov 2007 10:39:01 +0100 log4c (1.2.0-1) unstable; urgency=low * Initial release. (Closes: #445255) -- Fathi Boudra Thu, 04 Oct 2007 13:21:08 +0200 debian/liblog4c-doc.install0000644000000000000000000000031411557553476013040 0ustar usr/share/doc/liblog4c-doc/AUTHORS usr/share/doc/liblog4c-doc/ChangeLog usr/share/doc/liblog4c-doc/README usr/share/doc/liblog4c-doc/html usr/share/doc/liblog4c-doc/log4c.pdf usr/share/man/man3/log4c_*.3 debian/rules0000755000000000000000000000122511557543277010266 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 upstream_version := $(shell dpkg-parsechangelog | sed -n 's/^Version: //p' | cut -f1 -d '-') %: dh $@ --list-missing override_dh_auto_configure: autoreconf --verbose --force --install --include=config dh_auto_configure -- --disable-test --enable-doc cd doc && doxygen -u override_dh_auto_install: dh_auto_install mv debian/tmp/usr/share/doc/log4c-$(upstream_version) \ debian/tmp/usr/share/doc/liblog4c-doc install -D -p -m0644 log4crc.sample \ debian/tmp/usr/share/doc/liblog4c3/sample/log4crc.sample rm -rf debian/tmp/etc rm -f debian/tmp/usr/lib/liblog4c.la debian/copyright0000644000000000000000000000556411557552126011144 0ustar This work was packaged for Debian by: Fathi Boudra on Thu, 26 Jul 2007 09:14:41 +0200. It was downloaded from: http://log4c.sourceforge.net Upstream Authors: Cedric Le Goater Robert Byrne Copyright: Copyright (C) 2001-2004 Meiosys Copyright for stack, a dynamically resizing stack: Copyright (C) 2001 Michael B. Allen stack source code is licensed under the MIT license: stack - a dynamically resizing stack Copyright (c) 2001 Michael B. Allen The MIT License Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Log4c license: This package 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 2 of the License, or (at your option) any later version. This package 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 package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA On Debian systems, the complete text of the GNU Lesser General Public License can be found in : - /usr/share/common-licenses/LGPL-2 - /usr/share/common-licenses/LGPL-2.1 - /usr/share/common-licenses/LGPL-3 The Debian packaging is: Copyright (C) 2007-2011 Fathi Boudra you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. debian/liblog4c-dev.install0000644000000000000000000000160011557543224013036 0ustar usr/bin/log4c-config usr/include/log4c.h usr/include/log4c/appender.h usr/include/log4c/appender_type_mmap.h usr/include/log4c/appender_type_rollingfile.h usr/include/log4c/appender_type_stream.h usr/include/log4c/appender_type_stream2.h usr/include/log4c/appender_type_syslog.h usr/include/log4c/buffer.h usr/include/log4c/category.h usr/include/log4c/config-win32.h usr/include/log4c/defs.h usr/include/log4c/init.h usr/include/log4c/layout.h usr/include/log4c/layout_type_basic.h usr/include/log4c/layout_type_basic_r.h usr/include/log4c/layout_type_dated.h usr/include/log4c/layout_type_dated_r.h usr/include/log4c/location_info.h usr/include/log4c/logging_event.h usr/include/log4c/priority.h usr/include/log4c/rc.h usr/include/log4c/rollingpolicy.h usr/include/log4c/rollingpolicy_type_sizewin.h usr/include/log4c/version.h usr/lib/liblog4c.a usr/lib/liblog4c.so usr/share/aclocal/log4c.m4