--- search-ccsb-0.5.orig/debian/search-ccsb.emacsen-startup +++ search-ccsb-0.5/debian/search-ccsb.emacsen-startup @@ -0,0 +1,23 @@ +;; +;; /etc/emacs/site-start.d/50search-ccsb.el +;; +;; -*-emacs-lisp-*- +;; +;; Emacs startup file for the Debian GNU/Linux search-ccsb package +;; +;; Originally contributed by Nils Naumann +;; Modified by Dirk Eddelbuettel +;; Adapted for dh-make by Jim Van Zandt + +;; The search-ccsb package follows the Debian/GNU Linux 'emacsen' policy and +;; byte-compiles its elisp files for each 'emacs flavor' (emacs19, +;; xemacs19, emacs20, xemacs20...). The compiled code is then +;; installed in a subdirectory of the respective site-lisp directory. +;; We have to add this to the load-path: +(setq load-path (cons (concat "/usr/share/" + (symbol-name flavor) + "/site-lisp/search-ccsb") load-path)) +(autoload 'search-ccsb "search-ccsb" + "Search tool for the The Collection of Computer Science Bibliographies" t) + + --- search-ccsb-0.5.orig/debian/control +++ search-ccsb-0.5/debian/control @@ -0,0 +1,22 @@ +Source: search-ccsb +Section: tex +Priority: optional +Maintainer: Otavio Salvador +Build-Depends: debhelper (>= 4) +Standards-Version: 3.8.0 + +Package: search-ccsb +Architecture: all +Provides: search-ccsb-el +Conflicts: search-ccsb-el +Replaces: search-ccsb-el +Depends: perl (>= 5.6.0-16), libwww-perl (>= 5.47-1), emacsen-common +Description: BibTeX search tool + Search-ccsb is a Perl script that connects to "The Collection of + Computer Science Bibliographies"[1], and performs a keyword search + query. The result is a set of BibTeX entries that matches the query. + . + 1. http://liinwww.ira.uka.de/bibliography/index.html + . + If you use some emacsen application, this package will install the + search-ccsb.el script on it. --- search-ccsb-0.5.orig/debian/search-ccsb.emacsen-remove +++ search-ccsb-0.5/debian/search-ccsb.emacsen-remove @@ -0,0 +1,15 @@ +#!/bin/sh -e +# /usr/lib/emacsen-common/packages/remove/search-ccsb + +FLAVOR=$1 +PACKAGE=search-ccsb + +if [ ${FLAVOR} != emacs ]; then + if test -x /usr/sbin/install-info-altdir; then + echo remove/${PACKAGE}: removing Info links for ${FLAVOR} + install-info-altdir --quiet --remove --dirname=${FLAVOR} /usr/info/search-ccsb.info.gz + fi + + echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR} + rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE} +fi --- search-ccsb-0.5.orig/debian/rules +++ search-ccsb-0.5/debian/rules @@ -0,0 +1,133 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 by Joey Hess. +# +# This version is for a hypothetical package that builds an +# architecture-dependant package, as well as an architecture-independent +# package. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatibility version to use. +#export DH_COMPAT=4 + +# ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) +# CFLAGS += -g +# endif +# ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) +# INSTALL_PROGRAM += -s +# endif + +# Apply patches to the package +patch: patch-stamp +patch-stamp: + dh_testdir + @patches=debian/patches/*.patch; for patch in $$patches; do \ + test -f $$patch || continue; \ + echo "Applying $$patch"; \ + patch -stuN -p1 < $$patch || exit 1; \ + done + touch $@ + +# Remove patches from the package +unpatch: + dh_testdir + @if test -f patch-stamp; then \ + patches=debian/patches/*.patch; \ + for patch in $$patches; do \ + reversepatches="$$patch $$reversepatches"; \ + done; \ + for patch in $$reversepatches; do \ + test -f $$patch || continue; \ + echo "Reversing $$patch"; \ + patch -suRf -p1 < $$patch || exit 1; \ + done; \ + rm -f patch-stamp; \ + fi + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + touch configure-stamp + + +build-arch: configure-stamp build-arch-stamp +build-arch-stamp: + dh_testdir + + # Add here command to compile/build the package. +# $(MAKE) + + touch build-arch-stamp + +build-indep: configure-stamp build-indep-stamp +build-indep-stamp: + dh_testdir + + # Add here command to compile/build the arch indep package. + # It's ok not to do anything here, if you don't need to build + # anything for this package. + #/usr/bin/docbook-to-man debian/search-ccsb.sgml > search-ccsb.1 + + touch build-indep-stamp + +build: patch build-arch build-indep + +clean: unpatch + dh_testdir + dh_testroot + rm -f build-arch-stamp build-indep-stamp configure-stamp + + # Add here commands to clean up after the build process. +# -$(MAKE) clean + + dh_clean + +install: DH_OPTIONS= +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/search-ccsb. +# $(MAKE) install DESTDIR=$(CURDIR)/debian/search-ccsb + install -m 755 search-ccsb $(CURDIR)/debian/search-ccsb/usr/bin/search-ccsb + install -m 644 search-ccsb.el $(CURDIR)/debian/search-ccsb/usr/share/emacs/site-lisp/search-ccsb/ + +# dh_movefiles + +# Build architecture-independent files here. +# Pass -i to all debhelper commands in this target to reduce clutter. +binary-indep: build install + dh_testdir -i + dh_testroot -i +# dh_installdebconf -i + dh_installdocs -i + dh_installexamples -i + dh_installmenu -i +# dh_installlogrotate -i + dh_installemacsen -i +# dh_installpam -i +# dh_installmime -i +# dh_installinit -i + dh_installcron -i + dh_installman -i + dh_installinfo -i + dh_undocumented -i + dh_installchangelogs -i + dh_link -i + dh_compress -i + dh_fixperms -i + dh_installdeb -i +# dh_perl -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + +binary-arch: + +binary: binary-indep +.PHONY: build clean binary-indep binary install configure patch unpatch --- search-ccsb-0.5.orig/debian/search-ccsb.emacsen-install +++ search-ccsb-0.5/debian/search-ccsb.emacsen-install @@ -0,0 +1,45 @@ +#! /bin/sh -e +# /usr/lib/emacsen-common/packages/install/search-ccsb + +# Written by Jim Van Zandt , borrowing heavily +# from the install scripts for gettext by Santiago Vila +# and octave by Dirk Eddelbuettel . + +FLAVOR=$1 +PACKAGE=search-ccsb + +if [ ${FLAVOR} = emacs ]; then exit 0; fi + +echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR} + +#FLAVORTEST=`echo $FLAVOR | cut -c-6` +#if [ ${FLAVORTEST} = xemacs ] ; then +# SITEFLAG="-no-site-file" +#else +# SITEFLAG="--no-site-file" +#fi +FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile" + +ELDIR=/usr/share/emacs/site-lisp/${PACKAGE} +ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE} + +# Install-info-altdir does not actually exist. +# Maybe somebody will write it. +if test -x /usr/sbin/install-info-altdir; then + echo install/${PACKAGE}: install Info links for ${FLAVOR} + install-info-altdir --quiet --section "" "" --dirname=${FLAVOR} /usr/info/${PACKAGE}.info.gz +fi + +install -m 755 -d ${ELCDIR} +cd ${ELDIR} +FILES=`echo *.el` +cp ${FILES} ${ELCDIR} +cd ${ELCDIR} + +cat << EOF > path.el +(setq load-path (cons "." load-path) byte-compile-warnings nil) +EOF +${FLAVOR} ${FLAGS} ${FILES} +rm -f *.el path.el + +exit 0 --- search-ccsb-0.5.orig/debian/copyright +++ search-ccsb-0.5/debian/copyright @@ -0,0 +1,26 @@ +This package was debianized by Otavio Salvador on +Tue, 27 Aug 2002 13:40:02 -0300. + +It was downloaded from http://www.inf.ufrgs.br/~rreal/ + +Upstream Author: Rodrigo Araujo Real + +Copyright 2002 Rodrigo Araujo Real + + This package 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; version 2 dated June, 1991. + + 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 General Public License for more details. + + You should have received a copy of the GNU 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 GNU/Linux systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + --- search-ccsb-0.5.orig/debian/watch +++ search-ccsb-0.5/debian/watch @@ -0,0 +1,6 @@ +# Example watch control file for uscan +# Rename this file to "watch" and then you can run the "uscan" command +# to check for upstream updates and more. +# Site Directory Pattern Version Script +version=2 +http://www.inf.ufrgs.br/~rreal/download/search-ccsb-(.*)\.tar\.gz debian uupdate --- search-ccsb-0.5.orig/debian/compat +++ search-ccsb-0.5/debian/compat @@ -0,0 +1 @@ +4 --- search-ccsb-0.5.orig/debian/changelog +++ search-ccsb-0.5/debian/changelog @@ -0,0 +1,82 @@ +search-ccsb (0.5-3) unstable; urgency=low + + * NMU (By maintainer request) + * Move fixes upstream to Debian (Close: #473501) + + -- Ralph Janke Fri, 01 Aug 2008 22:50:10 +0100 + +search-ccsb (0.5-2ubuntu1) intrepid; urgency=low + + * Changed url (LP: #102876) + * Changed Standards Version to 3.7.3 + * Corrected debian/copyright file + * added patch system to debian/rules file + * added debian/compat file + * Changed debhelper from Build-Depends-Indep to Build-Depends + * Changed Maintainer Field + + -- Ralph Janke Sat, 07 Jun 2008 20:07:31 +0100 + +search-ccsb (0.5-2) unstable; urgency=low + + * Merged packages since the search-ccsb is so small. + - debian/control: + . Included the Provides, Conflicts and Replaces header to + search-ccsb-el; + . Added the dependency of emacsen-common; + . Changed the search-ccsb long description to mention the emacsen + support; + . Droped all search-ccsb-el header; + . Droped the Suggests field. + - debian/search-ccsb.dirs: added the site-elisp directory. + - debian/search-ccsb-el.dirs: removed. + - debian/search-ccsb-el.emacsen-install: + . renamed to search-ccsb.emacsen-install; + . updated to right package name. + - debian/search-ccsb-el.emacsen-remove: renamed to + search-ccsb.emacsen-remove. + - debian/search-ccsb-el.emacsen-startup: + . renamed to search-ccsb.emacsen-startup; + . updated to right package and script names. + - debian/rules: updated the place and script name for install. + * Update the packaging, now conforming to policy version 3.6.1. + - debian/control: Changed the Standards-Version to 3.6.1. + + -- Otavio Salvador Mon, 8 Dec 2003 22:40:05 -0200 + +search-ccsb (0.5-1) unstable; urgency=low + + * New upstream release + * Update the packaging, now conforming to policy version 3.6.0. + * debian/control: Changed the Standards-Version to 3.6.0. + + -- Otavio Salvador Thu, 10 Jul 2003 22:13:26 -0300 + +search-ccsb (0.4-4) unstable; urgency=low + + * Update the packaging, now conforming to policy version 3.5.8 + * debian/control: + - Changed the Standards-Version to 3.5.8 + - Updated the Build-Depends-Indep to depends of debhelper >= 4 + + -- Otavio Salvador Thu, 19 Dec 2002 14:02:04 -0200 + +search-ccsb (0.4-3) unstable; urgency=low + + * Updated the package to policy version 3.5.7 + * Added suggests to 'search-ccsb-el' package in 'search-ccsb'. + * debian/rules: force the 644 mode in search-ccsb.el. + + -- Otavio Salvador Wed, 13 Nov 2002 14:26:07 -0200 + +search-ccsb (0.4-2) unstable; urgency=low + + * Resend to fix a maintainer field in .changes, sorry! + + -- Otavio Salvador Thu, 12 Sep 2002 09:10:02 -0300 + +search-ccsb (0.4-1) unstable; urgency=low + + * Initial Release (closes: #158633). + + -- Otavio Salvador Tue, 3 Sep 2002 13:19:22 -0300 --- search-ccsb-0.5.orig/debian/docs +++ search-ccsb-0.5/debian/docs @@ -0,0 +1 @@ +README --- search-ccsb-0.5.orig/debian/search-ccsb.dirs +++ search-ccsb-0.5/debian/search-ccsb.dirs @@ -0,0 +1,4 @@ +usr/bin +usr/share/man/man1 +usr/share/emacs/site-lisp/search-ccsb/ + --- search-ccsb-0.5.orig/debian/search-ccsb.manpages +++ search-ccsb-0.5/debian/search-ccsb.manpages @@ -0,0 +1 @@ +search-ccsb.1 --- search-ccsb-0.5.orig/debian/patches/00_fix_url.patch +++ search-ccsb-0.5/debian/patches/00_fix_url.patch @@ -0,0 +1,11 @@ +--- ./search-ccsb 2008-06-07 20:57:52.000000000 +0100 ++++ ./search-ccsb.new 2008-06-07 20:57:39.000000000 +0100 +@@ -24,7 +24,7 @@ use LWP::UserAgent; + $Ua = LWP::UserAgent->new; + $Ua->agent("Mozilla (compatible: LWP $LWP::VERSION)"); + +-$res = $Ua->request(POST 'http://liinwww.ira.uka.de/searchbib/index', [query => $ARGV[0], results => "bibtex"]); ++$res = $Ua->request(POST 'http://liinwww.ira.uka.de/csbib', [query => $ARGV[0], results => "bibtex"]); + die "Error while getting ", $res->request->uri, + " -- ", $res->status_line, "\nAborting" + unless $res->is_success;