--- log4c-1.2.0.orig/debian/copyright +++ log4c-1.2.0/debian/copyright @@ -0,0 +1,62 @@ +This package was debianized by Fathi Boudra on +Thu, 26 Jul 2007 09:14:41 +0200. + +It was downloaded from + +Upstream Authors: + + Cedric Le Goater + Robert Byrne + +Copyright: (C) 2001-2004 Meiosys + +Copyright for stack, a dynamically resizing stack: + + (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'. + +The Debian packaging is (C) 2007, Fathi Boudra and +is licensed under the GPL, see `/usr/share/common-licenses/GPL'. --- log4c-1.2.0.orig/debian/liblog4c-dev.install +++ log4c-1.2.0/debian/liblog4c-dev.install @@ -0,0 +1,29 @@ +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.la +usr/lib/liblog4c.so +usr/share/aclocal/log4c.m4 --- log4c-1.2.0.orig/debian/control +++ log4c-1.2.0/debian/control @@ -0,0 +1,53 @@ +Source: log4c +Priority: extra +Maintainer: Fathi Boudra +Build-Depends: cdbs, debhelper (>= 5), quilt, automake, libtool, doxygen, + gs-common, texlive-latex-recommended +Standards-Version: 3.7.2 +Section: libs + +Package: liblog4c-dev +Section: libdevel +Architecture: any +Depends: liblog4c3 (= ${binary:Version}) +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. + . + Homepage: http://log4c.sourceforge.net + +Package: liblog4c3 +Section: libs +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. + . + Homepage: http://log4c.sourceforge.net + +Package: liblog4c-doc +Section: doc +Architecture: all +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. + . + Homepage: http://log4c.sourceforge.net --- log4c-1.2.0.orig/debian/liblog4c-doc.install +++ log4c-1.2.0/debian/liblog4c-doc.install @@ -0,0 +1,2 @@ +usr/share/doc/liblog4c-doc/log4c.pdf +usr/share/doc/liblog4c-doc/html --- log4c-1.2.0.orig/debian/rules +++ log4c-1.2.0/debian/rules @@ -0,0 +1,18 @@ +#!/usr/bin/make -f + +include /usr/share/cdbs/1/class/autotools.mk +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/rules/patchsys-quilt.mk +include /usr/share/cdbs/1/rules/utils.mk + +DEB_COMPRESS_EXCLUDE := .pdf +DEB_CONFIGURE_EXTRA_FLAGS := --enable-debug=no --disable-test --enable-doc +DEB_DH_INSTALL_SOURCEDIR := debian/tmp + +install/liblog4c3:: + install -D -p -m0644 log4crc.sample \ + $(DEB_DESTDIR)/usr/share/doc/liblog4c3/sample/log4crc.sample + +binary-post-install/liblog4c3:: + rm -rf $(DEB_DESTDIR)/etc/log4crc.sample + --- log4c-1.2.0.orig/debian/changelog +++ log4c-1.2.0/debian/changelog @@ -0,0 +1,6 @@ +log4c (1.2.0-1) unstable; urgency=low + + * Initial release. (Closes: #445255) + + -- Fathi Boudra Thu, 04 Oct 2007 13:21:08 +0200 + --- log4c-1.2.0.orig/debian/liblog4c-doc.manpages +++ log4c-1.2.0/debian/liblog4c-doc.manpages @@ -0,0 +1 @@ +debian/tmp/usr/share/man/man3/log4c_*.3 --- log4c-1.2.0.orig/debian/liblog4c3.install +++ log4c-1.2.0/debian/liblog4c3.install @@ -0,0 +1,2 @@ +usr/lib/lib*.so.* +usr/share/doc/liblog4c3/sample/log4crc.sample --- log4c-1.2.0.orig/debian/patches/11_doc_install.diff +++ log4c-1.2.0/debian/patches/11_doc_install.diff @@ -0,0 +1,12 @@ +diff -Nur log4c-1.2.0/doc/Makefile.am log4c-1.2.0.new/doc/Makefile.am +--- log4c-1.2.0/doc/Makefile.am 2007-07-26 11:10:28.000000000 +0200 ++++ log4c-1.2.0.new/doc/Makefile.am 2007-07-26 11:11:52.000000000 +0200 +@@ -3,8 +3,6 @@ + docfiles = \ + $(top_srcdir)/README \ + $(top_srcdir)/AUTHORS \ +- $(top_srcdir)/NEWS \ +- $(top_srcdir)/COPYING \ + $(top_srcdir)/ChangeLog + + .PHONY: doxygen --- log4c-1.2.0.orig/debian/patches/12_stream_appender_hack.diff +++ log4c-1.2.0/debian/patches/12_stream_appender_hack.diff @@ -0,0 +1,21 @@ +--- 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); + } + + /*******************************************************************************/ --- log4c-1.2.0.orig/debian/patches/10_docdir_path.diff +++ log4c-1.2.0/debian/patches/10_docdir_path.diff @@ -0,0 +1,10 @@ +diff -Nur log4c-1.2.0/doc/Makefile.am log4c-1.2.0.new/doc/Makefile.am +--- log4c-1.2.0/doc/Makefile.am 2007-06-08 10:49:39.000000000 +0200 ++++ log4c-1.2.0.new/doc/Makefile.am 2007-07-26 10:51:59.000000000 +0200 +@@ -1,5 +1,5 @@ + man3dir = $(mandir)/man3 +-docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION) ++docdir = $(datadir)/doc/liblog4c-doc + docfiles = \ + $(top_srcdir)/README \ + $(top_srcdir)/AUTHORS \ --- log4c-1.2.0.orig/debian/patches/series +++ log4c-1.2.0/debian/patches/series @@ -0,0 +1,5 @@ +10_docdir_path.diff +11_doc_install.diff +#12_stream_appender_hack.diff +#13_basic_layout_hack.diff + --- log4c-1.2.0.orig/debian/patches/13_basic_layout_hack.diff +++ log4c-1.2.0/debian/patches/13_basic_layout_hack.diff @@ -0,0 +1,13 @@ +--- 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; + } --- log4c-1.2.0.orig/debian/compat +++ log4c-1.2.0/debian/compat @@ -0,0 +1 @@ +5