--- libircclient-1.3+dfsg1.orig/debian/changelog +++ libircclient-1.3+dfsg1/debian/changelog @@ -0,0 +1,26 @@ +libircclient (1.3+dfsg1-3) unstable; urgency=low + + * Add quilt patch system. + * debian/patches: + - 00_fix_missing_headers.diff - Add missing includes. Closes: 534898. + + -- Bradley Smith Sun, 28 Jun 2009 13:58:40 +0100 + +libircclient (1.3+dfsg1-2) unstable; urgency=low + + * Add missing header file. Closes: #534798. + * Update Standards-Version to 3.8.2. (No changes). + + -- Bradley Smith Sat, 27 Jun 2009 12:22:50 +0100 + +libircclient (1.3+dfsg1-1) unstable; urgency=low + + * New upstream release. + + -- Bradley Smith Mon, 05 Jan 2009 22:46:15 +0000 + +libircclient (1.2+dfsg1-1) unstable; urgency=low + + * Initial release. Closes: #498179. + + -- Bradley Smith Sun, 26 Oct 2008 12:34:32 +0000 --- libircclient-1.3+dfsg1.orig/debian/rules +++ libircclient-1.3+dfsg1/debian/rules @@ -0,0 +1,61 @@ +#!/usr/bin/make -f + +include /usr/share/quilt/quilt.make + +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + +BUILDDIR=$(CURDIR)/debian/build + +configure: configure-stamp +configure-stamp: $(QUILT_STAMPFN) + dh_testdir + chmod +x $(BUILDDIR)/bootstrap.sh + set -e; cd $(BUILDDIR); ./bootstrap.sh; \ + ./configure --build $(DEB_BUILD_GNU_TYPE) \ + --host $(DEB_HOST_GNU_TYPE) --prefix=/usr + touch $@ + +build: build-stamp +build-stamp: configure + dh_testdir + $(MAKE) -C $(BUILDDIR) + touch $@ + +clean: unpatch + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + [ ! -f $(BUILDDIR)/Makefile ] || $(MAKE) -C $(BUILDDIR) maintainer-clean + cd $(BUILDDIR); rm -f aclocal.m4 config.sub depcomp configure \ + install-sh Makefile.in config.guess ltmain.sh missing config.h.in + dh_clean + +install: build + dh_testdir + dh_testroot + dh_prep + $(MAKE) -C $(BUILDDIR) DESTDIR=$(CURDIR)/debian/tmp install + +binary-indep: build install + +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs Changelog + dh_installdocs + dh_install --fail-missing + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms + dh_makeshlibs + dh_installdeb + dh_shlibdeps -V "libircclient (>= 1.2)" + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- libircclient-1.3+dfsg1.orig/debian/libircclient-dev.install +++ libircclient-1.3+dfsg1/debian/libircclient-dev.install @@ -0,0 +1,4 @@ +usr/include/libircclient/ +usr/lib/libircclient.so +usr/lib/libircclient.la +usr/lib/libircclient.a --- libircclient-1.3+dfsg1.orig/debian/copyright +++ libircclient-1.3+dfsg1/debian/copyright @@ -0,0 +1,38 @@ +Author: Georgy Yunaev +Download: http://sourceforge.net/projects/libircclient/ + +Files: * +Copyright: (C) 2004 Georgy Yunaev +License: LGPL-2+ + This library 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 library 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. + +Files: debian/* +Copyright: (C) 2008 Bradley Smith +License: GPL-2+. + 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 2 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, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian GNU/Linux systems, the complete text of the GNU Lesser General +Public License can be found in `/usr/share/common-licenses/LGPL-2'. + +On Debian systems, the complete text of the GNU General Public License +can be found in `/usr/share/common-licenses/GPL-2'. --- libircclient-1.3+dfsg1.orig/debian/libircclient1.install +++ libircclient-1.3+dfsg1/debian/libircclient1.install @@ -0,0 +1 @@ +usr/lib/libircclient.so.* --- libircclient-1.3+dfsg1.orig/debian/control +++ libircclient-1.3+dfsg1/debian/control @@ -0,0 +1,59 @@ +Source: libircclient +Priority: optional +Maintainer: Bradley Smith +Build-Depends: debhelper (>= 7), autoconf, automake, libtool, quilt +Standards-Version: 3.8.2 +Section: libs +Homepage: http://libircclient.sourceforge.net/ +Vcs-Git: http://git.brad-smith.co.uk/git/debian/pkg-libircclient.git +Vcs-Browser: http://git.brad-smith.co.uk/?p=debian/pkg-libircclient.git + +Package: libircclient-dev +Section: libdevel +Architecture: any +Depends: libircclient1 (= ${binary:Version}), ${misc:Depends} +Description: C library to create IRC clients + libircclient is a small but powerful library that implements the + client-server IRC protocol. It is designed to be small, fast, portable and + compatible to RFC standards, and most IRC clients. libircclient features + include: + . + * Full multi-threading support. + * Single threads handles all the IRC processing. + * Support for single-threaded applications, and socket-based + applications, which use select() + * Synchronous and asynchronous interfaces. + * CTCP support with optional build-in reply code. + * Flexible DCC support, including both DCC chat, and DCC file transfer. + * Can both initiate and react to initiated DCC. + * Can accept or decline DCC sessions asynchronously. + * Plain C interface and implementation (possible to use from C++ code, + obviously) + * Compatible with RFC 1459 and most IRC clients. + * Good documentation and examples available. + . + This package contains the development files. + +Package: libircclient1 +Section: libs +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: C library to create IRC clients + libircclient is a small but powerful library that implements the + client-server IRC protocol. It is designed to be small, fast, portable and + compatible to RFC standards, and most IRC clients. libircclient features + include: + . + * Full multi-threading support. + * Single threads handles all the IRC processing. + * Support for single-threaded applications, and socket-based applications, + which use select() + * Synchronous and asynchronous interfaces. + * CTCP support with optional build-in reply code. + * Flexible DCC support, including both DCC chat, and DCC file transfer. + * Can both initiate and react to initiated DCC. + * Can accept or decline DCC sessions asynchronously. + * Plain C interface and implementation (possible to use from C++ code, + obviously) + * Compatible with RFC 1459 and most IRC clients. + * Good documentation and examples available. --- libircclient-1.3+dfsg1.orig/debian/compat +++ libircclient-1.3+dfsg1/debian/compat @@ -0,0 +1 @@ +7 --- libircclient-1.3+dfsg1.orig/debian/watch +++ libircclient-1.3+dfsg1/debian/watch @@ -0,0 +1,3 @@ +version=3 +opts=dversionmangle=s/\+dfsg\d+$// \ +http://sf.net/libircclient/libircclient-([\d.]+)\.tar\.gz --- libircclient-1.3+dfsg1.orig/debian/patches/00_fix_missing_headers.diff +++ libircclient-1.3+dfsg1/debian/patches/00_fix_missing_headers.diff @@ -0,0 +1,13 @@ +Index: libircclient/include/libircclient.h +=================================================================== +--- libircclient.orig/include/libircclient.h 2009-06-28 13:56:44.000000000 +0100 ++++ libircclient/include/libircclient.h 2009-06-28 13:57:06.000000000 +0100 +@@ -43,6 +43,8 @@ + #ifndef INCLUDE_LIBIRC_H + #define INCLUDE_LIBIRC_H + ++#include ++ + #if !defined (WIN32) + #include /* fd_set */ + #else --- libircclient-1.3+dfsg1.orig/debian/patches/series +++ libircclient-1.3+dfsg1/debian/patches/series @@ -0,0 +1 @@ +00_fix_missing_headers.diff --- libircclient-1.3+dfsg1.orig/debian/build/Makefile.am +++ libircclient-1.3+dfsg1/debian/build/Makefile.am @@ -0,0 +1,18 @@ +topdir=../../src + +INCLUDES = -I$(topdir)/../include + +libircclient_includedir = $(includedir)/libircclient/ +libircclient_include_HEADERS = $(topdir)/../include/libircclient.h \ + $(topdir)/../include/libirc_options.h \ + $(topdir)/../include/libirc_errors.h \ + $(topdir)/../include/libirc_events.h \ + $(topdir)/../include/libirc_rfcnumeric.h + + +lib_LTLIBRARIES = libircclient.la + +libircclient_la_SOURCES = $(topdir)/libircclient.c + +libircclient_la_LDFLAGS = -version-info 3:0:2 +libircclient_la_LIBADD = --- libircclient-1.3+dfsg1.orig/debian/build/configure.ac +++ libircclient-1.3+dfsg1/debian/build/configure.ac @@ -0,0 +1,13 @@ +AC_INIT([libircclient], [1.2], []) +AC_CONFIG_AUX_DIR(.) +AC_CONFIG_HEADER([config.h]) +AM_INIT_AUTOMAKE + +AC_PROG_LIBTOOL +AC_PROG_CC + +CFLAGS="-Wall -g" + +AC_OUTPUT( + Makefile +) --- libircclient-1.3+dfsg1.orig/debian/build/bootstrap.sh +++ libircclient-1.3+dfsg1/debian/build/bootstrap.sh @@ -0,0 +1,125 @@ +#!/bin/sh +# Run this to generate all the initial makefiles, etc. + +DIE=0 + +debug () +# print out a debug message if DEBUG is a defined variable +{ + if [ ! -z "$DEBUG" ]; then + echo "DEBUG: $1" + fi +} + +version_check () +# check the version of a package +# first argument : complain ('1') or not ('0') +# second argument : package name (executable) +# third argument : source download url +# rest of arguments : major, minor, micro version +{ + COMPLAIN=$1 + PACKAGE=$2 + URL=$3 + MAJOR=$4 + MINOR=$5 + MICRO=$6 + + WRONG= + + debug "major $MAJOR minor $MINOR micro $MICRO" + VERSION=$MAJOR + if [ ! -z "$MINOR" ]; then VERSION=$VERSION.$MINOR; else MINOR=0; fi + if [ ! -z "$MICRO" ]; then VERSION=$VERSION.$MICRO; else MICRO=0; fi + + debug "version $VERSION" + echo "+ checking for $PACKAGE >= $VERSION ... " | tr -d '\n' + + ($PACKAGE --version) < /dev/null > /dev/null 2>&1 || + { + echo + echo "You must have $PACKAGE installed to compile $package." + echo "Download the appropriate package for your distribution," + echo "or get the source tarball at $URL" + return 1 + } + # the following line is carefully crafted sed magic + pkg_version=`$PACKAGE --version|head -n 1|sed 's/([^)]*)//g;s/^[a-zA-Z\.\ \-\/]*//;s/ .*$//'` + debug "pkg_version $pkg_version" + pkg_major=`echo $pkg_version | cut -d. -f1` + pkg_minor=`echo $pkg_version | sed s/[-,a-z,A-Z].*// | cut -d. -f2` + pkg_micro=`echo $pkg_version | sed s/[-,a-z,A-Z].*// | cut -d. -f3` + [ -z "$pkg_minor" ] && pkg_minor=0 + [ -z "$pkg_micro" ] && pkg_micro=0 + + debug "found major $pkg_major minor $pkg_minor micro $pkg_micro" + + #start checking the version + if [ "$pkg_major" -lt "$MAJOR" ]; then + WRONG=1 + elif [ "$pkg_major" -eq "$MAJOR" ]; then + if [ "$pkg_minor" -lt "$MINOR" ]; then + WRONG=1 + elif [ "$pkg_minor" -eq "$MINOR" -a "$pkg_micro" -lt "$MICRO" ]; then + WRONG=1 + fi + fi + + if [ ! -z "$WRONG" ]; then + echo "found $pkg_version, not ok !" + if [ "$COMPLAIN" -eq "1" ]; then + echo + echo "You must have $PACKAGE $VERSION or greater to compile $package." + echo "Get the latest version from <$URL>." + echo + fi + return 1 + else + echo "found $pkg_version, ok." + fi +} + +version_check 1 "autoconf" "ftp://ftp.gnu.org/pub/gnu/autoconf/" 2 56 || DIE=1 +version_check 1 "automake" "ftp://ftp.gnu.org/pub/gnu/automake/" 1 9 || DIE=1 +version_check 1 "libtool" "ftp://ftp.gnu.org/pub/gnu/libtool/" 1 4 || DIE=1 +if [ "$DIE" -eq 1 ]; then + exit 1 +fi + +echo "+ running aclocal ..." +aclocal || { + echo + echo "aclocal failed - check that all needed development files are present on system" + exit 1 +} +echo "+ running autoconf ... " +autoconf || { + echo + echo "autoconf failed" + exit 1 +} +echo "+ running autoheader ... " +autoheader || { + echo + echo "autoheader failed" + exit 1 +} + +echo "+ running libtoolize ... " +libtoolize -c -f || { + echo + echo "libtoolize failed" + exit 1 +} +echo "+ running automake ... " +automake -a -c --foreign || { + echo + echo "automake failed" + exit 1 +} + +# now remove the cache, because it can be considered dangerous in this case +echo "+ Tidying up ... " +rm -rf config.cache autom4te.cache + +exit 0