--- libsieve-2.2.6.orig/debian/Makefile +++ libsieve-2.2.6/debian/Makefile @@ -0,0 +1,7 @@ +# +.PHONY: dummy + + + +tidy: dummy + rm -f *~ --- libsieve-2.2.6.orig/debian/README.Debian +++ libsieve-2.2.6/debian/README.Debian @@ -0,0 +1,12 @@ +libsieve2 for Debian +------------------- + +This package is built from the sources available at libsieve.sf.net. + +It was originally packaged by Paul J Stevens on +Fri, 12 Nov 2004 14:38:38 +0100 + +Then, it was adopted (and adapted) by Jose Luis Tallon +on Mon, 5 Jun 2006 02:03:34 +0200 + + --- libsieve-2.2.6.orig/debian/changelog +++ libsieve-2.2.6/debian/changelog @@ -0,0 +1,74 @@ +libsieve (2.2.6-2) unstable; urgency=medium + + * QA upload. + * Set maintainer to Debian QA Group. (see #838073) + * Use automake instead of automake1.11 (Closes: #865187) + * libsieve2-dev: Add missing ${misc:Depends} dependency. + + -- Adrian Bunk Tue, 27 Jun 2017 11:03:49 +0300 + +libsieve (2.2.6-1.3) unstable; urgency=medium + + * Non-maintainer upload. + * Switch to debhelper 9. (Closes: #817550) + * Bumped Standards-Version to 3.9.8. + * Removing obsolete dependency on dpatch, added quilt instead, although no + patches are applied. + + -- Michael Meskes Wed, 22 Jun 2016 15:09:32 +0200 + +libsieve (2.2.6-1.2) unstable; urgency=medium + + * Non-maintainer upload. + * Switch to automake1.11. (Closes: #741720) + + -- Eric Dorland Mon, 17 Mar 2014 22:56:51 -0400 + +libsieve (2.2.6-1.1) unstable; urgency=low + + * Non-maintainer upload. + * Don't ship .la files. + * Fix typo in description (Closes: #557678). + + -- Luk Claes Fri, 01 Jul 2011 19:49:47 +0200 + +libsieve (2.2.6-1) unstable; urgency=low + + * New upstream version + - Updated build-depends (added flex) + - Updated to Standards-Version 3.7.3 with no changes + + * Conflict with libmailutils1 (Closes: 411070) + - temporary fix until maintainer decides to split libsieve.so.1 + into another package + + -- Jose Luis Tallon Sat, 12 Apr 2008 20:22:45 +0200 + +libsieve (2.2.3-1) unstable; urgency=low + + * New upstream version: several improvements and bugfixes + + -- Jose Luis Tallon Sat, 2 Dec 2006 18:15:26 +0100 + +libsieve (2.2.1-1) unstable; urgency=low + + * New upstream version + - Upstream removed RFCs' text. Hence, the source package was renamed. + - Fixed upstream compilation errors, which prevented release of 2.2.0 + + -- Jose Luis Tallon Tue, 24 Oct 2006 11:26:34 +0200 + +libsieve-dfsg (2.1.13-1) unstable; urgency=low + + * Initial debian release, fulfil ITP (Closes: #325086) + - new upstream version + - third internal release (First was: Mon, 5 Jun 2006 02:03:34 +0200) + + * Packaging based on previous efforts + by Paul J Stevens . Thanks. + - Removed non-DFSG RFCs + - miscelaneous fixes/enhancements of packaging + + * Upload sponsored by Amaya Rodrigo + + -- Jose Luis Tallon Tue, 22 Aug 2006 23:57:34 +0200 --- libsieve-2.2.6.orig/debian/compat +++ libsieve-2.2.6/debian/compat @@ -0,0 +1 @@ +9 --- libsieve-2.2.6.orig/debian/control +++ libsieve-2.2.6/debian/control @@ -0,0 +1,33 @@ +Source: libsieve +Section: libs +Priority: optional +Maintainer: Debian QA Group +Build-Depends: autoconf, automake, bison, flex, libtool, + debhelper (>= 9), quilt (>= 0.40) +Standards-Version: 3.9.8 + +Package: libsieve2-dev +Section: libdevel +Architecture: any +Depends: ${misc:Depends}, libsieve2-1 (= ${binary:Version}) +Description: library for parsing, sorting and filtering your mail + This code is a standalone library based upon code which had been distributed + with the Cyrus Mail Server. Currently libSieve implements two APIs: + one that is based upon, and compatible with, the Sieve API as built into + the Cyrus Mail Server, as well as a new API which is very well suited to + be incorporated into other programs and is reasonably extensible. + . + This package contains the development files. + +Package: libsieve2-1 +Section: libs +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: library for parsing, sorting and filtering your mail + This code is a standalone library based upon code which had been distributed + with the Cyrus Mail Server. Currently libSieve implements two API's: + one that is based upon, and compatible with, the Sieve API as built into + the Cyrus Mail Server, as well as a new API which is very well suited to + be incorporated into other programs and is reasonably extensible. + . + This package contains the shared libraries only. --- libsieve-2.2.6.orig/debian/copyright +++ libsieve-2.2.6/debian/copyright @@ -0,0 +1,56 @@ +This package was originally debianized by Paul J Stevens on +Fri, 12 Nov 2004 14:38:38 +0100. +Adopted and reformed by Jose Luis Tallon on +Mon, 24 Jul 2006 23:41:34 +0200 + +It was downloaded from http://libsieve.sf.net + +Upstream Author: Aaron Stone + +Libsieve is Copyright 2003-2006 Aaron Stone + + +libsieve2 is free software; you can redistribute it and/or modify +it under the terms of the GNU Library General Public License as published +by the Free Software Foundation. + + +License: MIT (legacy code) and LGPL. Portions released under the GPL. + +The legacy code in this distribution is covered by a simple license from CMU. +All new code in this distribution is covered by the GNU LGPL, version 2.1. + +New portions of code are copyrighted by the libSieve author and maintainer, +Aaron Stone, and contributions are assumed to have thier copyrights assigned +to the libSieve author unless specifically stated and agreed to otherwise. + +As of verison 2.1.4 (formerly 2.2.0_pre1) of libSieve, all code previously +held under a larger, "advertising," license from CMU has been removed or +replaced. As the new code is covered by the LGPL, the entire distribution +therefore fall under the LGPL. See section 2.b. of the GNU General Public +License for terms. + + +Some support code was taken from GLibC and other places, and so is covered +by different licenses: + +src/sv_util/: GPL(code from GNU) and LGPL(Aaron Stone). + Portions under the Public Domain [md5.c] + +src/sv_test/: LGPL (code by Aaron Stone a.k.a. sodabrew) + +src/sv_regex/: GPL(code from GNU's GLibC) + +src/sv_parser/: CMU/LGPL (input) + generated code from flex/bison + +src/sv_interface/: LGPL(sodabrew) + CMU [message.c, script.c & tree.c] + +src/sv_include/*.h: LGPL + + +---- +On Debian systems, the full text of GNU licenses can be found at: + +GNU's LGPL 2.1 : /usr/share/common-licenses/LGPL-2.1 +GNU's GPL 2 : /usr/share/common-licenses/GPL-2 + --- libsieve-2.2.6.orig/debian/dirs +++ libsieve-2.2.6/debian/dirs @@ -0,0 +1,2 @@ +usr/bin +usr/sbin --- libsieve-2.2.6.orig/debian/docs +++ libsieve-2.2.6/debian/docs @@ -0,0 +1,2 @@ +NEWS +README --- libsieve-2.2.6.orig/debian/libsieve2-1.dirs +++ libsieve-2.2.6/debian/libsieve2-1.dirs @@ -0,0 +1 @@ +usr/lib --- libsieve-2.2.6.orig/debian/libsieve2-1.install +++ libsieve-2.2.6/debian/libsieve2-1.install @@ -0,0 +1 @@ +debian/tmp/usr/lib/lib*.so.* --- libsieve-2.2.6.orig/debian/libsieve2-dev.dirs +++ libsieve-2.2.6/debian/libsieve2-dev.dirs @@ -0,0 +1,2 @@ +usr/lib +usr/include --- libsieve-2.2.6.orig/debian/libsieve2-dev.install +++ libsieve-2.2.6/debian/libsieve2-dev.install @@ -0,0 +1,3 @@ +debian/tmp/usr/include/* +debian/tmp/usr/lib/lib*.a +debian/tmp/usr/lib/lib*.so --- libsieve-2.2.6.orig/debian/overrides +++ libsieve-2.2.6/debian/overrides @@ -0,0 +1 @@ +libsieve2-1: package-name-doesnt-match-sonames libsieve1 --- libsieve-2.2.6.orig/debian/patches/00list +++ libsieve-2.2.6/debian/patches/00list @@ -0,0 +1,2 @@ +# +#01_remove_error2 --- libsieve-2.2.6.orig/debian/patches/01_remove_error2.dpatch +++ libsieve-2.2.6/debian/patches/01_remove_error2.dpatch @@ -0,0 +1,17 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 01_remove_error2.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad libsieve-2.1.6/src/sv_interface/Makefile.am /tmp/dpep.Oj6JwH/libsieve-2.1.6/src/sv_interface/Makefile.am +--- libsieve-2.1.6/src/sv_interface/Makefile.am 2004-11-23 07:04:17.000000000 +0100 ++++ /tmp/dpep.Oj6JwH/libsieve-2.1.6/src/sv_interface/Makefile.am 2005-03-09 12:05:00.000000000 +0100 +@@ -11,5 +11,5 @@ + CFLAGS = -Wall -I$(top_srcdir)/sv_util -I$(top_srcdir)/sv_parser -I$(top_srcdir)/sv_interface -I$(top_srcdir)/sv_rsamd5 -I$(top_srcdir)/sv_include -g $(DEBUG) $(REGEX) + + noinst_LTLIBRARIES = libinterface.la +-libinterface_la_SOURCES = interp.c message.c message2.c script.c script2.c tree.c error2.c ++libinterface_la_SOURCES = interp.c message.c message2.c script.c script2.c tree.c + libinterface_la_LDFLAGS = -no-undefined --- libsieve-2.2.6.orig/debian/patches/libsieve2-cvs091704_to_2.2.0pre4.diff +++ libsieve-2.2.6/debian/patches/libsieve2-cvs091704_to_2.2.0pre4.diff @@ -0,0 +1,136 @@ +diff -urN libsieve2-cvs091704/Makefile libsieve2-2.2.0pre4/Makefile +--- libsieve2-cvs091704/Makefile 2003-11-23 06:34:32.000000000 -0500 ++++ libsieve2-2.2.0pre4/Makefile 2004-05-04 12:03:42.000000000 -0400 +@@ -1,6 +1,6 @@ + # this is the version number :-) + PACKAGE = libsieve +-VERSION = 2.2.0pre3 ++VERSION = 2.2.0pre4 + SOURCES = src + DOCS = www rfc + OTHERS = AUTHORS COPYING NEWS README Makefile +diff -urN libsieve2-cvs091704/src/sv_interface/interp.c libsieve2-2.2.0pre4/src/sv_interface/interp.c +--- libsieve2-cvs091704/src/sv_interface/interp.c 2003-11-05 12:02:56.000000000 -0500 ++++ libsieve2-2.2.0pre4/src/sv_interface/interp.c 2004-05-04 12:12:41.000000000 -0400 +@@ -87,6 +87,11 @@ + return sieve_extensions; + } + ++const char *sieve2_listextensions(void) ++{ ++ return sieve_listextensions(); ++} ++ + void libsieve_free_imapflags(sieve_imapflags_t *imapflags) + { + while (imapflags->nflags) +diff -urN libsieve2-cvs091704/src/sv_interface/script2.c libsieve2-2.2.0pre4/src/sv_interface/script2.c +--- libsieve2-cvs091704/src/sv_interface/script2.c 2003-11-23 11:59:41.000000000 -0500 ++++ libsieve2-2.2.0pre4/src/sv_interface/script2.c 2004-05-04 12:49:04.000000000 -0400 +@@ -157,6 +157,12 @@ + return SIEVE2_OK; + } + ++int sieve2_support_bind(sieve_support_t *p, sieve_script_t *s) ++{ ++ /* FIXME no function sieve2_support_bind */ ++ return SIEVE2_OK; ++} ++ + int sieve2_support_register(sieve2_support_t *p, void *thing, int type) + { + sieve_support_t *q = (sieve_support_t *)p; +@@ -462,6 +468,18 @@ + return SIEVE2_OK; + } + ++int sieve2_script_parse(char *script, sieve_script_t *s) ++{ ++ /* FIXME no function sieve2_script_parse */ ++ return SIEVE2_OK; ++} ++ ++int sieve2_script_exec(sieve_script_t *s, void *m, action_list_t *a) ++{ ++ /* FIXME no function sieve2_script_exec */ ++ return SIEVE2_OK; ++} ++ + int sieve2_message_alloc(sieve2_message_t **m) + { + int i; +diff -urN libsieve2-cvs091704/src/sv_parser/sieve-lex.c libsieve2-2.2.0pre4/src/sv_parser/sieve-lex.c +--- libsieve2-cvs091704/src/sv_parser/sieve-lex.c 2003-11-23 21:51:31.000000000 -0500 ++++ libsieve2-2.2.0pre4/src/sv_parser/sieve-lex.c 2004-05-04 12:08:22.000000000 -0400 +@@ -16,11 +16,11 @@ + #define yytext libsieve_sievetext + #define yylineno libsieve_sievelineno + +-#line 20 "lex.yy.c" ++#line 20 "sieve-lex.c" + /* A lexical scanner generated by flex */ + + /* Scanner skeleton version: +- * $Header: /cvsroot/libsieve/libsieve2/src/sv_parser/sieve-lex.c,v 1.6 2003/11/24 02:51:31 sodabrew Exp $ ++ * $Header: /home/daffy/u0/vern/flex/RCS/flex.skl,v 2.91 96/09/10 16:58:48 vern Exp $ + */ + + #define FLEX_SCANNER +@@ -28,6 +28,7 @@ + #define YY_FLEX_MINOR_VERSION 5 + + #include ++#include + + + /* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */ +@@ -646,7 +647,7 @@ + + #define QSTRING 2 + +-#line 651 "lex.yy.c" ++#line 651 "sieve-lex.c" + + /* Macros after this point can all be overridden by user definitions in + * section 1. +@@ -797,12 +798,12 @@ + YY_DECL + { + register yy_state_type yy_current_state; +- register char *yy_cp, *yy_bp; ++ register char *yy_cp = NULL, *yy_bp = NULL; + register int yy_act; + + #line 63 "sieve-lex.l" + +-#line 807 "lex.yy.c" ++#line 807 "sieve-lex.c" + + if ( yy_init ) + { +@@ -1216,7 +1217,7 @@ + #line 133 "sieve-lex.l" + YY_FATAL_ERROR( "flex scanner jammed" ); + YY_BREAK +-#line 1221 "lex.yy.c" ++#line 1221 "sieve-lex.c" + case YY_STATE_EOF(INITIAL): + case YY_STATE_EOF(QSTRING): + yyterminate(); +@@ -1596,6 +1597,7 @@ + #endif /* ifndef YY_NO_UNPUT */ + + ++#ifndef YY_NO_INPUT + #ifdef __cplusplus + static int yyinput() + #else +@@ -1670,7 +1672,7 @@ + + return c; + } +- ++#endif /* YY_NO_INPUT */ + + #ifdef YY_USE_PROTOS + void yyrestart( FILE *input_file ) --- libsieve-2.2.6.orig/debian/patches/series +++ libsieve-2.2.6/debian/patches/series @@ -0,0 +1,2 @@ + + --- libsieve-2.2.6.orig/debian/rules +++ libsieve-2.2.6/debian/rules @@ -0,0 +1,112 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# debian/rules for libsieve +# based upon code originally written by Joey Hess and Craig Small. + + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so +version=`ls src/.libs/lib*.so.* | \ + awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'` +major=`ls src/.libs/lib*.so.* | \ + awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'` + + +export PACKAGE=libsieve2-1 +include /usr/share/quilt/quilt.make + +configure: configure-stamp +configure-stamp: + dh_testdir + test -d debian/orig || mkdir debian/orig + cd src && (autoreconf -f -i && ./configure --prefix=/usr) + #cd src && ./configure --prefix=/usr + touch $@ + +build: build-stamp +build-stamp: patch configure + dh_testdir + + # Add here commands to compile the package. + $(MAKE) -C src + + touch $@ + +clean: unpatch clean-files +clean-files: + dh_testdir + dh_testroot + + # Add here commands to clean up after the build process. + -$(MAKE) -C src clean + for file in `find src -name Makefile.in -o -name Makefile`; do \ + $(RM) -f $$file; \ + done + for file in config.guess config.h config.log config.status config.sub \ + install-sh libtool ltmain.sh missing mkinstalldirs \ + stamp-h sv_parser/ylwrap; do \ + $(RM) -f src/$$file; \ + done + $(RM) -rf src/autom4te.cache + $(RM) -f configure-stamp build-stamp + $(RM) -f configure depcomp + dh_clean + +install: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs + + $(MAKE) -C src install DESTDIR=$(CURDIR)/debian/tmp + + mkdir -p $(CURDIR)/debian/tmp/usr/share/lintian/overrides + cp $(CURDIR)/debian/overrides \ + $(CURDIR)/debian/tmp/usr/share/lintian/overrides/libsieve + + #dh_install -plibsieve2-1 --sourcedir=$(CURDIR)/debian/tmp + #dh_install -plibsieve2-dev --sourcedir=$(CURDIR)/debian/tmp + dh_install + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples +# dh_installdebconf +# dh_installinfo + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms + dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure +