* added debian build scripts
authorWilfried Göesgens <willi@citadel.org>
Sun, 18 Dec 2005 09:40:53 +0000 (09:40 +0000)
committerWilfried Göesgens <willi@citadel.org>
Sun, 18 Dec 2005 09:40:53 +0000 (09:40 +0000)
* added config adder shellscript for debian scripts

31 files changed:
rss2ctdl/debian/README.Debian [new file with mode: 0644]
rss2ctdl/debian/changelog [new file with mode: 0644]
rss2ctdl/debian/citadel-rss2ctdl.cron.d [new file with mode: 0644]
rss2ctdl/debian/citadel-rss2ctdl.postinst [new file with mode: 0644]
rss2ctdl/debian/citadel-rss2ctdl.postrm [new file with mode: 0644]
rss2ctdl/debian/citadel-rss2ctdl.substvars [new file with mode: 0644]
rss2ctdl/debian/compat [new file with mode: 0644]
rss2ctdl/debian/conffiles.ex [new file with mode: 0644]
rss2ctdl/debian/control [new file with mode: 0644]
rss2ctdl/debian/copyright [new file with mode: 0644]
rss2ctdl/debian/cron.d.ex [new file with mode: 0644]
rss2ctdl/debian/dirs [new file with mode: 0644]
rss2ctdl/debian/docs [new file with mode: 0644]
rss2ctdl/debian/emacsen-install.ex [new file with mode: 0644]
rss2ctdl/debian/emacsen-remove.ex [new file with mode: 0644]
rss2ctdl/debian/emacsen-startup.ex [new file with mode: 0644]
rss2ctdl/debian/files [new file with mode: 0644]
rss2ctdl/debian/init.d.ex [new file with mode: 0644]
rss2ctdl/debian/manpage.1.ex [new file with mode: 0644]
rss2ctdl/debian/manpage.sgml.ex [new file with mode: 0644]
rss2ctdl/debian/manpage.xml.ex [new file with mode: 0644]
rss2ctdl/debian/menu.ex [new file with mode: 0644]
rss2ctdl/debian/postinst.ex [new file with mode: 0644]
rss2ctdl/debian/postrm.ex [new file with mode: 0644]
rss2ctdl/debian/preinst.ex [new file with mode: 0644]
rss2ctdl/debian/prerm.ex [new file with mode: 0644]
rss2ctdl/debian/rss2ctdl-default.ex [new file with mode: 0644]
rss2ctdl/debian/rss2ctdl.doc-base.EX [new file with mode: 0644]
rss2ctdl/debian/rules [new file with mode: 0755]
rss2ctdl/debian/watch.ex [new file with mode: 0644]
rss2ctdl/feeds.cron [new file with mode: 0755]

diff --git a/rss2ctdl/debian/README.Debian b/rss2ctdl/debian/README.Debian
new file mode 100644 (file)
index 0000000..a4d3782
--- /dev/null
@@ -0,0 +1,6 @@
+rss2ctdl for Debian
+-------------------
+
+<possible notes regarding this package - if none, delete this file>
+
+ -- Wilfried Goesgens <willi@jordy.home.net>, Tue, 26 Jul 2005 10:41:35 +0200
diff --git a/rss2ctdl/debian/changelog b/rss2ctdl/debian/changelog
new file mode 100644 (file)
index 0000000..30ff27b
--- /dev/null
@@ -0,0 +1,6 @@
+rss2ctdl (0.1-1) unstable; urgency=low
+
+  * Initial release Closes: #nnnn  (nnnn is the bug number of your ITP)
+
+ -- Wilfried Goesgens <willi@jordy.home.net>  Tue, 26 Jul 2005 10:41:35 +0200
+
diff --git a/rss2ctdl/debian/citadel-rss2ctdl.cron.d b/rss2ctdl/debian/citadel-rss2ctdl.cron.d
new file mode 100644 (file)
index 0000000..bd4930b
--- /dev/null
@@ -0,0 +1,11 @@
+#
+#  citadel-rss2ctdl cron.
+#
+# this should run every half hour.  (You can go
+# more or less often if you wish, but once every 
+# half hour seems to be the frequency generally 
+# agreed upon in the community to be optimal.)
+#
+# m h      dom mon dow user      command
+0 0-23/2    *   *   *  citadel   /usr/sbin/feeds.cron
+
diff --git a/rss2ctdl/debian/citadel-rss2ctdl.postinst b/rss2ctdl/debian/citadel-rss2ctdl.postinst
new file mode 100644 (file)
index 0000000..dd7fdd4
--- /dev/null
@@ -0,0 +1,83 @@
+#! /bin/sh
+# postinst.skeleton
+# Skeleton maintainer script showing all the possible cases.
+# Written by Charles Briscoe-Smith, March-June 1998.  Public Domain.
+
+# Abort if any command returns an error value
+set -e
+
+# This script is called as the last step of the installation of the
+# package.  All the package's files are in place, dpkg has already done
+# its automatic conffile handling, and all the packages we depend of
+# are already fully installed and configured.
+
+# The following idempotent stuff doesn't generally need protecting
+# against being run in the abort-* cases.
+
+#### Install info files into the dir file
+###: install-info --quiet --section "section pattern" "Section Title" \
+###:              --description="Name of the document" /usr/info/foo.info
+###
+#### Create stub directories under /usr/local
+###: if test ! -d /usr/local/lib/foo; then
+###:   if test ! -d /usr/local/lib; then
+###:     if mkdir /usr/local/lib; then
+###:       chown root.staff /usr/local/lib || true
+###:       chmod 2775 /usr/local/lib || true
+###:     fi
+###:   fi
+###:   if mkdir /usr/local/lib/foo; then
+###:     chown root.staff /usr/local/lib/foo || true
+###:     chmod 2775 /usr/local/lib/foo || true
+###:   fi
+###: fi
+###
+#### Ensure the menu system is updated
+###: [ ! -x /usr/bin/update-menus ] || /usr/bin/update-menus
+###
+#### Arrange for a daemon to be started at system boot time
+###: update-rc.d foo default >/dev/null
+###
+case "$1" in
+  configure)
+    # Configure this package.  If the package must prompt the user for
+    # information, do it here.
+    
+       echo "Add your favorite RSS-Feeds to /etc/citadel/rssfeeds"
+       mkdir -p /etc/citadel
+    ucf /usr/share/doc/citadel-rss2ctdl/examples/config/rssfeeds /etc/citadel/rssfeeds
+       ;;
+  abort-upgrade)
+    # Back out of an attempt to upgrade this package FROM THIS VERSION
+    # to version $2.  Undo the effects of "prerm upgrade $2".
+    #:
+
+    ;;
+  abort-remove)
+    ###if test "$2" != in-favour; then
+    ###  echo "$0: undocumented call to \`postinst $*'" 1>&2
+    ###  exit 0
+    ###fi
+    #### Back out of an attempt to remove this package, which was due to
+    #### a conflict with package $3 (version $4).  Undo the effects of
+    #### "prerm remove in-favour $3 $4".
+    ###:
+
+    ;;
+  abort-deconfigure)
+    ###if test "$2" != in-favour -o "$5" != removing; then
+    ###  echo "$0: undocumented call to \`postinst $*'" 1>&2
+    ###  exit 0
+    ###fi
+    #### Back out of an attempt to deconfigure this package, which was
+    #### due to package $6 (version $7) which we depend on being removed
+    #### to make way for package $3 (version $4).  Undo the effects of
+    #### "prerm deconfigure in-favour $3 $4 removing $6 $7".
+    ###:
+
+    ;;
+  *) echo "$0: didn't understand being called with \`$1'" 1>&2
+     exit 0;;
+esac
+
+exit 0
diff --git a/rss2ctdl/debian/citadel-rss2ctdl.postrm b/rss2ctdl/debian/citadel-rss2ctdl.postrm
new file mode 100644 (file)
index 0000000..f5d86f3
--- /dev/null
@@ -0,0 +1,96 @@
+#! /bin/sh
+# postrm.skeleton
+# Skeleton maintainer script showing all the possible cases.
+# Written by Charles Briscoe-Smith, March-June 1998.  Public Domain.
+
+# Abort if any command returns an error value
+set -e
+
+# This script is called twice during the removal of the package; once
+# after the removal of the package's files from the system, and as
+# the final step in the removal of this package, after the package's
+# conffiles have been removed.
+
+# Ensure the menu system is updated
+: [ ! -x /usr/bin/update-menus ] || /usr/bin/update-menus
+
+case "$1" in
+  remove)
+    # This package is being removed, but its configuration has not yet
+    # been purged.
+    
+
+    # Remove diversion
+    #: dpkg-divert --package foo --remove --rename \
+    #:             --divert /usr/bin/other.real /usr/bin/other
+
+    # ldconfig is NOT needed during removal of a library, only during
+    # installation
+
+    ;;
+  purge)
+    # This package has previously been removed and is now having
+    # its configuration purged from the system.
+       # remove the gunzipped setup executable.
+       ucf --purge "/etc/citadel/rssfeeds"
+       rm -f "/etc/citadel/rssfeeds"
+       ### TODO: remove citadel from inittab!
+    ;;
+  disappear)
+    if test "$2" != overwriter; then
+      echo "$0: undocumented call to \`postrm $*'" 1>&2
+      exit 0
+    fi
+    # This package has been completely overwritten by package $3
+    # (version $4).  All our files are already gone from the system.
+    # This is a special case: neither "prerm remove" nor "postrm remove"
+    # have been called, because dpkg didn't know that this package would
+    # disappear until this stage.
+    :
+
+    ;;
+  upgrade)
+    # About to upgrade FROM THIS VERSION to version $2 of this package.
+    # "prerm upgrade" has been called for this version, and "preinst
+    # upgrade" has been called for the new version.  Last chance to
+    # clean up.
+    :
+
+    ;;
+  failed-upgrade)
+    # About to upgrade from version $2 of this package TO THIS VERSION.
+    # "prerm upgrade" has been called for the old version, and "preinst
+    # upgrade" has been called for this version.  This is only used if
+    # the previous version's "postrm upgrade" couldn't handle it and
+    # returned non-zero. (Fix old postrm bugs here.)
+    :
+
+    ;;
+  abort-install)
+    # Back out of an attempt to install this package.  Undo the effects of
+    # "preinst install...".  There are two sub-cases.
+    :
+
+    if test "${2+set}" = set; then
+      # When the install was attempted, version $2's configuration
+      # files were still on the system.  Undo the effects of "preinst
+      # install $2".
+      :
+
+    else
+      # We were being installed from scratch.  Undo the effects of
+      # "preinst install".
+      :
+
+    fi ;;
+  abort-upgrade)
+    # Back out of an attempt to upgrade this package from version $2
+    # TO THIS VERSION.  Undo the effects of "preinst upgrade $2".
+    :
+
+    ;;
+  *) echo "$0: didn't understand being called with \`$1'" 1>&2
+     exit 0;;
+esac
+
+exit 0
diff --git a/rss2ctdl/debian/citadel-rss2ctdl.substvars b/rss2ctdl/debian/citadel-rss2ctdl.substvars
new file mode 100644 (file)
index 0000000..13858db
--- /dev/null
@@ -0,0 +1 @@
+shlibs:Depends=libc6 (>= 2.3.2.ds1-21), libxml2 (>= 2.6.20), zlib1g (>= 1:1.2.1)
diff --git a/rss2ctdl/debian/compat b/rss2ctdl/debian/compat
new file mode 100644 (file)
index 0000000..b8626c4
--- /dev/null
@@ -0,0 +1 @@
+4
diff --git a/rss2ctdl/debian/conffiles.ex b/rss2ctdl/debian/conffiles.ex
new file mode 100644 (file)
index 0000000..7775022
--- /dev/null
@@ -0,0 +1,7 @@
+#
+# If you want to use this conffile, remove all comments and put files that
+# you want dpkg to process here using their absolute pathnames.
+# See the policy manual
+#
+# for example:
+# /etc/rss2ctdl/rss2ctdl.conf
diff --git a/rss2ctdl/debian/control b/rss2ctdl/debian/control
new file mode 100644 (file)
index 0000000..c160ad6
--- /dev/null
@@ -0,0 +1,19 @@
+Source: rss2ctdl
+Section: unknown
+Priority: optional
+Maintainer: Wilfried Goesgens <willi@jordy.home.net>
+Build-Depends: debhelper (>= 4.0.0), libxml2-dev
+Standards-Version: 3.6.1
+
+Package: citadel-rss2ctdl
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends},  citadel-client, libxml2
+Description: feed your citadel with rss feeds
+ RSS2CTDL is an RSS-to-Citadel gateway.  It allows you to pull external RSS
+ feeds into Citadel rooms.  Feed URL's are polled whenever you run the program.
+ Each item is converted to a Citadel message and submitted into the network
+ queue.  The message-ID is derived from a unique hash of the GUID tag of
+ each item.  If there is no GUID tag (which, unfortunately, is the case for
+ the vast majority of feeds) then we hash the title/description/link tags
+ instead.  We then dump it all into the queue and let the loopzapper handle
+ the dupes.
diff --git a/rss2ctdl/debian/copyright b/rss2ctdl/debian/copyright
new file mode 100644 (file)
index 0000000..fa21430
--- /dev/null
@@ -0,0 +1,10 @@
+This package was debianized by Wilfried Goesgens <willi@jordy.home.net> on
+Tue, 26 Jul 2005 10:41:35 +0200.
+
+It was downloaded from <fill in ftp site>
+
+Copyright Holder: <put author(s) name and email here>
+
+License:
+
+<Put the license of the package here>
diff --git a/rss2ctdl/debian/cron.d.ex b/rss2ctdl/debian/cron.d.ex
new file mode 100644 (file)
index 0000000..4147f94
--- /dev/null
@@ -0,0 +1,4 @@
+#
+# Regular cron jobs for the rss2ctdl package
+#
+0 4    * * *   root    rss2ctdl_maintenance
diff --git a/rss2ctdl/debian/dirs b/rss2ctdl/debian/dirs
new file mode 100644 (file)
index 0000000..ca882bb
--- /dev/null
@@ -0,0 +1,2 @@
+usr/bin
+usr/sbin
diff --git a/rss2ctdl/debian/docs b/rss2ctdl/debian/docs
new file mode 100644 (file)
index 0000000..6e9fe65
--- /dev/null
@@ -0,0 +1,3 @@
+COPYING.txt
+README.txt
+README.txt
diff --git a/rss2ctdl/debian/emacsen-install.ex b/rss2ctdl/debian/emacsen-install.ex
new file mode 100644 (file)
index 0000000..04f50e9
--- /dev/null
@@ -0,0 +1,45 @@
+#! /bin/sh -e
+# /usr/lib/emacsen-common/packages/install/rss2ctdl
+
+# Written by Jim Van Zandt <jrv@vanzandt.mv.com>, borrowing heavily
+# from the install scripts for gettext by Santiago Vila
+# <sanvila@ctv.es> and octave by Dirk Eddelbuettel <edd@debian.org>.
+
+FLAVOR=$1
+PACKAGE=rss2ctdl
+
+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
diff --git a/rss2ctdl/debian/emacsen-remove.ex b/rss2ctdl/debian/emacsen-remove.ex
new file mode 100644 (file)
index 0000000..82a8241
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/sh -e
+# /usr/lib/emacsen-common/packages/remove/rss2ctdl
+
+FLAVOR=$1
+PACKAGE=rss2ctdl
+
+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/rss2ctdl.info.gz
+    fi
+
+    echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR}
+    rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE}
+fi
diff --git a/rss2ctdl/debian/emacsen-startup.ex b/rss2ctdl/debian/emacsen-startup.ex
new file mode 100644 (file)
index 0000000..f42325d
--- /dev/null
@@ -0,0 +1,19 @@
+;; -*-emacs-lisp-*-
+;;
+;; Emacs startup file for the Debian rss2ctdl package
+;;
+;; Originally contributed by Nils Naumann <naumann@unileoben.ac.at>
+;; Modified by Dirk Eddelbuettel <edd@debian.org>
+;; Adapted for dh-make by Jim Van Zandt <jrv@vanzandt.mv.com>
+
+;; The rss2ctdl 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:
+(let ((package-dir (concat "/usr/share/"
+                           (symbol-name flavor)
+                           "/site-lisp/rss2ctdl")))
+  (when (file-directory-p package-dir)
+        (setq load-path (cons package-dir load-path))))
+
diff --git a/rss2ctdl/debian/files b/rss2ctdl/debian/files
new file mode 100644 (file)
index 0000000..0ba5a3b
--- /dev/null
@@ -0,0 +1 @@
+citadel-rss2ctdl_0.1-1_i386.deb unknown optional
diff --git a/rss2ctdl/debian/init.d.ex b/rss2ctdl/debian/init.d.ex
new file mode 100644 (file)
index 0000000..6bf5625
--- /dev/null
@@ -0,0 +1,74 @@
+#! /bin/sh
+#
+# skeleton     example file to build /etc/init.d/ scripts.
+#              This file should be used to construct scripts for /etc/init.d.
+#
+#              Written by Miquel van Smoorenburg <miquels@cistron.nl>.
+#              Modified for Debian 
+#              by Ian Murdock <imurdock@gnu.ai.mit.edu>.
+#
+# Version:     @(#)skeleton  1.9  26-Feb-2001  miquels@cistron.nl
+#
+
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+DAEMON=/usr/sbin/rss2ctdl
+NAME=rss2ctdl
+DESC=rss2ctdl
+
+test -x $DAEMON || exit 0
+
+# Include rss2ctdl defaults if available
+if [ -f /etc/default/rss2ctdl ] ; then
+       . /etc/default/rss2ctdl
+fi
+
+set -e
+
+case "$1" in
+  start)
+       echo -n "Starting $DESC: "
+       start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
+               --exec $DAEMON -- $DAEMON_OPTS
+       echo "$NAME."
+       ;;
+  stop)
+       echo -n "Stopping $DESC: "
+       start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \
+               --exec $DAEMON
+       echo "$NAME."
+       ;;
+  #reload)
+       #
+       #       If the daemon can reload its config files on the fly
+       #       for example by sending it SIGHUP, do it here.
+       #
+       #       If the daemon responds to changes in its config file
+       #       directly anyway, make this a do-nothing entry.
+       #
+       # echo "Reloading $DESC configuration files."
+       # start-stop-daemon --stop --signal 1 --quiet --pidfile \
+       #       /var/run/$NAME.pid --exec $DAEMON
+  #;;
+  restart|force-reload)
+       #
+       #       If the "reload" option is implemented, move the "force-reload"
+       #       option to the "reload" entry above. If not, "force-reload" is
+       #       just the same as "restart".
+       #
+       echo -n "Restarting $DESC: "
+       start-stop-daemon --stop --quiet --pidfile \
+               /var/run/$NAME.pid --exec $DAEMON
+       sleep 1
+       start-stop-daemon --start --quiet --pidfile \
+               /var/run/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS
+       echo "$NAME."
+       ;;
+  *)
+       N=/etc/init.d/$NAME
+       # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
+       echo "Usage: $N {start|stop|restart|force-reload}" >&2
+       exit 1
+       ;;
+esac
+
+exit 0
diff --git a/rss2ctdl/debian/manpage.1.ex b/rss2ctdl/debian/manpage.1.ex
new file mode 100644 (file)
index 0000000..c541bd6
--- /dev/null
@@ -0,0 +1,59 @@
+.\"                                      Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH RSS2CTDL SECTION "July 26, 2005"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh        disable hyphenation
+.\" .hy        enable hyphenation
+.\" .ad l      left justify
+.\" .ad b      justify to both left and right margins
+.\" .nf        disable filling
+.\" .fi        enable filling
+.\" .br        insert line break
+.\" .sp <n>    insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+rss2ctdl \- program to do something
+.SH SYNOPSIS
+.B rss2ctdl
+.RI [ options ] " files" ...
+.br
+.B bar
+.RI [ options ] " files" ...
+.SH DESCRIPTION
+This manual page documents briefly the
+.B rss2ctdl
+and
+.B bar
+commands.
+.PP
+.\" TeX users may be more comfortable with the \fB<whatever>\fP and
+.\" \fI<whatever>\fP escape sequences to invode bold face and italics, 
+.\" respectively.
+\fBrss2ctdl\fP is a program that...
+.SH OPTIONS
+These programs follow the usual GNU command line syntax, with long
+options starting with two dashes (`-').
+A summary of options is included below.
+For a complete description, see the Info files.
+.TP
+.B \-h, \-\-help
+Show summary of options.
+.TP
+.B \-v, \-\-version
+Show version of program.
+.SH SEE ALSO
+.BR bar (1),
+.BR baz (1).
+.br
+The programs are documented fully by
+.IR "The Rise and Fall of a Fooish Bar" ,
+available via the Info system.
+.SH AUTHOR
+rss2ctdl was written by <upstream author>.
+.PP
+This manual page was written by Wilfried Goesgens <willi@jordy.home.net>,
+for the Debian project (but may be used by others).
diff --git a/rss2ctdl/debian/manpage.sgml.ex b/rss2ctdl/debian/manpage.sgml.ex
new file mode 100644 (file)
index 0000000..5542239
--- /dev/null
@@ -0,0 +1,156 @@
+<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
+
+<!-- Process this file with docbook-to-man to generate an nroff manual
+     page: `docbook-to-man manpage.sgml > manpage.1'.  You may view
+     the manual page with: `docbook-to-man manpage.sgml | nroff -man |
+     less'.  A typical entry in a Makefile or Makefile.am is:
+
+manpage.1: manpage.sgml
+       docbook-to-man $< > $@
+
+    
+       The docbook-to-man binary is found in the docbook-to-man package.
+       Please remember that if you create the nroff version in one of the
+       debian/rules file targets (such as build), you will need to include
+       docbook-to-man in your Build-Depends control field.
+
+  -->
+
+  <!-- Fill in your name for FIRSTNAME and SURNAME. -->
+  <!ENTITY dhfirstname "<firstname>FIRSTNAME</firstname>">
+  <!ENTITY dhsurname   "<surname>SURNAME</surname>">
+  <!-- Please adjust the date whenever revising the manpage. -->
+  <!ENTITY dhdate      "<date>July 26, 2005</date>">
+  <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
+       allowed: see man(7), man(1). -->
+  <!ENTITY dhsection   "<manvolnum>SECTION</manvolnum>">
+  <!ENTITY dhemail     "<email>willi@jordy.home.net</email>">
+  <!ENTITY dhusername  "Wilfried Goesgens">
+  <!ENTITY dhucpackage "<refentrytitle>RSS2CTDL</refentrytitle>">
+  <!ENTITY dhpackage   "rss2ctdl">
+
+  <!ENTITY debian      "<productname>Debian</productname>">
+  <!ENTITY gnu         "<acronym>GNU</acronym>">
+  <!ENTITY gpl         "&gnu; <acronym>GPL</acronym>">
+]>
+
+<refentry>
+  <refentryinfo>
+    <address>
+      &dhemail;
+    </address>
+    <author>
+      &dhfirstname;
+      &dhsurname;
+    </author>
+    <copyright>
+      <year>2003</year>
+      <holder>&dhusername;</holder>
+    </copyright>
+    &dhdate;
+  </refentryinfo>
+  <refmeta>
+    &dhucpackage;
+
+    &dhsection;
+  </refmeta>
+  <refnamediv>
+    <refname>&dhpackage;</refname>
+
+    <refpurpose>program to do something</refpurpose>
+  </refnamediv>
+  <refsynopsisdiv>
+    <cmdsynopsis>
+      <command>&dhpackage;</command>
+
+      <arg><option>-e <replaceable>this</replaceable></option></arg>
+
+      <arg><option>--example <replaceable>that</replaceable></option></arg>
+    </cmdsynopsis>
+  </refsynopsisdiv>
+  <refsect1>
+    <title>DESCRIPTION</title>
+
+    <para>This manual page documents briefly the
+      <command>&dhpackage;</command> and <command>bar</command>
+      commands.</para>
+
+    <para>This manual page was written for the &debian; distribution
+      because the original program does not have a manual page.
+      Instead, it has documentation in the &gnu;
+      <application>Info</application> format; see below.</para>
+
+    <para><command>&dhpackage;</command> is a program that...</para>
+
+  </refsect1>
+  <refsect1>
+    <title>OPTIONS</title>
+
+    <para>These programs follow the usual &gnu; command line syntax,
+      with long options starting with two dashes (`-').  A summary of
+      options is included below.  For a complete description, see the
+      <application>Info</application> files.</para>
+
+    <variablelist>
+      <varlistentry>
+        <term><option>-h</option>
+          <option>--help</option>
+        </term>
+        <listitem>
+          <para>Show summary of options.</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>-v</option>
+          <option>--version</option>
+        </term>
+        <listitem>
+          <para>Show version of program.</para>
+        </listitem>
+      </varlistentry>
+    </variablelist>
+  </refsect1>
+  <refsect1>
+    <title>SEE ALSO</title>
+
+    <para>bar (1), baz (1).</para>
+
+    <para>The programs are documented fully by <citetitle>The Rise and
+      Fall of a Fooish Bar</citetitle> available via the
+      <application>Info</application> system.</para>
+  </refsect1>
+  <refsect1>
+    <title>AUTHOR</title>
+
+    <para>This manual page was written by &dhusername; &dhemail; for
+      the &debian; system (but may be used by others).  Permission is
+      granted to copy, distribute and/or modify this document under
+      the terms of the &gnu; General Public License, Version 2 any 
+         later version published by the Free Software Foundation.
+    </para>
+       <para>
+         On Debian systems, the complete text of the GNU General Public
+         License can be found in /usr/share/common-licenses/GPL.
+       </para>
+
+  </refsect1>
+</refentry>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:2
+sgml-indent-data:t
+sgml-parent-document:nil
+sgml-default-dtd-file:nil
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+-->
+
+
diff --git a/rss2ctdl/debian/manpage.xml.ex b/rss2ctdl/debian/manpage.xml.ex
new file mode 100644 (file)
index 0000000..d03b29c
--- /dev/null
@@ -0,0 +1,148 @@
+<?xml version='1.0' encoding='ISO-8859-1'?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
+"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
+
+<!--
+
+Process this file with an XSLT processor: `xsltproc \
+-''-nonet /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/\
+manpages/docbook.xsl manpage.dbk'.  A manual page
+<package>.<section> will be generated.  You may view the
+manual page with: nroff -man <package>.<section> | less'.  A
+typical entry in a Makefile or Makefile.am is:
+
+DB2MAN=/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/\
+manpages/docbook.xsl
+XP=xsltproc -''-nonet
+
+manpage.1: manpage.dbk
+        $(XP) $(DB2MAN) $<
+    
+The xsltproc binary is found in the xsltproc package.  The
+XSL files are in docbook-xsl.  Please remember that if you
+create the nroff version in one of the debian/rules file
+targets (such as build), you will need to include xsltproc
+and docbook-xsl in your Build-Depends control field.
+
+-->
+
+  <!-- Fill in your name for FIRSTNAME and SURNAME. -->
+  <!ENTITY dhfirstname "<firstname>FIRSTNAME</firstname>">
+  <!ENTITY dhsurname   "<surname>SURNAME</surname>">
+  <!-- Please adjust the date whenever revising the manpage. -->
+  <!ENTITY dhdate      "<date>July 26, 2005</date>">
+  <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
+       allowed: see man(7), man(1). -->
+  <!ENTITY dhsection   "<manvolnum>SECTION</manvolnum>">
+  <!ENTITY dhemail     "<email>willi@jordy.home.net</email>">
+  <!ENTITY dhusername  "Wilfried Goesgens">
+  <!ENTITY dhucpackage "<refentrytitle>RSS2CTDL</refentrytitle>">
+  <!ENTITY dhpackage   "rss2ctdl">
+
+  <!ENTITY debian      "<productname>Debian</productname>">
+  <!ENTITY gnu         "<acronym>GNU</acronym>">
+  <!ENTITY gpl         "&gnu; <acronym>GPL</acronym>">
+]>
+
+<refentry>
+  <refentryinfo>
+    <address>
+      &dhemail;
+    </address>
+    <author>
+      &dhfirstname;
+      &dhsurname;
+    </author>
+    <copyright>
+      <year>2003</year>
+      <holder>&dhusername;</holder>
+    </copyright>
+    &dhdate;
+  </refentryinfo>
+  <refmeta>
+    &dhucpackage;
+
+    &dhsection;
+  </refmeta>
+  <refnamediv>
+    <refname>&dhpackage;</refname>
+
+    <refpurpose>program to do something</refpurpose>
+  </refnamediv>
+  <refsynopsisdiv>
+    <cmdsynopsis>
+      <command>&dhpackage;</command>
+
+      <arg><option>-e <replaceable>this</replaceable></option></arg>
+
+      <arg><option>--example <replaceable>that</replaceable></option></arg>
+    </cmdsynopsis>
+  </refsynopsisdiv>
+  <refsect1>
+    <title>DESCRIPTION</title>
+
+    <para>This manual page documents briefly the
+      <command>&dhpackage;</command> and <command>bar</command>
+      commands.</para>
+
+    <para>This manual page was written for the &debian; distribution
+      because the original program does not have a manual page.
+      Instead, it has documentation in the &gnu;
+      <application>Info</application> format; see below.</para>
+
+    <para><command>&dhpackage;</command> is a program that...</para>
+
+  </refsect1>
+  <refsect1>
+    <title>OPTIONS</title>
+
+    <para>These programs follow the usual &gnu; command line syntax,
+      with long options starting with two dashes (`-').  A summary of
+      options is included below.  For a complete description, see the
+      <application>Info</application> files.</para>
+
+    <variablelist>
+      <varlistentry>
+        <term><option>-h</option>
+          <option>--help</option>
+        </term>
+        <listitem>
+          <para>Show summary of options.</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>-v</option>
+          <option>--version</option>
+        </term>
+        <listitem>
+          <para>Show version of program.</para>
+        </listitem>
+      </varlistentry>
+    </variablelist>
+  </refsect1>
+  <refsect1>
+    <title>SEE ALSO</title>
+
+    <para>bar (1), baz (1).</para>
+
+    <para>The programs are documented fully by <citetitle>The Rise and
+      Fall of a Fooish Bar</citetitle> available via the
+      <application>Info</application> system.</para>
+  </refsect1>
+  <refsect1>
+    <title>AUTHOR</title>
+
+    <para>This manual page was written by &dhusername; &dhemail; for
+      the &debian; system (but may be used by others).  Permission is
+      granted to copy, distribute and/or modify this document under
+      the terms of the &gnu; General Public License, Version 2 any 
+         later version published by the Free Software Foundation.
+    </para>
+       <para>
+         On Debian systems, the complete text of the GNU General Public
+         License can be found in /usr/share/common-licenses/GPL.
+       </para>
+
+  </refsect1>
+</refentry>
+
diff --git a/rss2ctdl/debian/menu.ex b/rss2ctdl/debian/menu.ex
new file mode 100644 (file)
index 0000000..02d9b1a
--- /dev/null
@@ -0,0 +1,2 @@
+?package(rss2ctdl):needs="X11|text|vc|wm" section="Apps/see-menu-manual"\
+  title="rss2ctdl" command="/usr/bin/rss2ctdl"
diff --git a/rss2ctdl/debian/postinst.ex b/rss2ctdl/debian/postinst.ex
new file mode 100644 (file)
index 0000000..b721bf2
--- /dev/null
@@ -0,0 +1,42 @@
+#! /bin/sh
+# postinst script for rss2ctdl
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postinst> `configure' <most-recently-configured-version>
+#        * <old-postinst> `abort-upgrade' <new version>
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+#          <failed-install-package> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+#
+
+case "$1" in
+    configure)
+
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
diff --git a/rss2ctdl/debian/postrm.ex b/rss2ctdl/debian/postrm.ex
new file mode 100644 (file)
index 0000000..0580b3d
--- /dev/null
@@ -0,0 +1,38 @@
+#! /bin/sh
+# postrm script for rss2ctdl
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postrm> `remove'
+#        * <postrm> `purge'
+#        * <old-postrm> `upgrade' <new-version>
+#        * <new-postrm> `failed-upgrade' <old-version>
+#        * <new-postrm> `abort-install'
+#        * <new-postrm> `abort-install' <old-version>
+#        * <new-postrm> `abort-upgrade' <old-version>
+#        * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+       purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+
+
+        ;;
+
+    *)
+        echo "postrm called with unknown argument \`$1'" >&2
+        exit 1
+
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
diff --git a/rss2ctdl/debian/preinst.ex b/rss2ctdl/debian/preinst.ex
new file mode 100644 (file)
index 0000000..336acef
--- /dev/null
@@ -0,0 +1,38 @@
+#! /bin/sh
+# preinst script for rss2ctdl
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <new-preinst> `install'
+#        * <new-preinst> `install' <old-version>
+#        * <new-preinst> `upgrade' <old-version>
+#        * <old-preinst> `abort-upgrade' <new-version>
+#
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    install|upgrade)
+    ;;
+
+    abort-upgrade)
+    ;;
+
+    *)
+        echo "preinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
diff --git a/rss2ctdl/debian/prerm.ex b/rss2ctdl/debian/prerm.ex
new file mode 100644 (file)
index 0000000..2be567d
--- /dev/null
@@ -0,0 +1,38 @@
+#! /bin/sh
+# prerm script for rss2ctdl
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <prerm> `remove'
+#        * <old-prerm> `upgrade' <new-version>
+#        * <new-prerm> `failed-upgrade' <old-version>
+#        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
+#        * <deconfigured's-prerm> `deconfigure' `in-favour'
+#          <package-being-installed> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    remove|upgrade|deconfigure)
+        ;;
+    failed-upgrade)
+        ;;
+    *)
+        echo "prerm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
diff --git a/rss2ctdl/debian/rss2ctdl-default.ex b/rss2ctdl/debian/rss2ctdl-default.ex
new file mode 100644 (file)
index 0000000..68665c6
--- /dev/null
@@ -0,0 +1,10 @@
+# Defaults for rss2ctdl initscript
+# sourced by /etc/init.d/rss2ctdl
+# installed at /etc/default/rss2ctdl by the maintainer scripts
+
+#
+# This is a POSIX shell fragment
+#
+
+# Additional options that are passed to the Daemon.
+DAEMON_OPTS=""
diff --git a/rss2ctdl/debian/rss2ctdl.doc-base.EX b/rss2ctdl/debian/rss2ctdl.doc-base.EX
new file mode 100644 (file)
index 0000000..614169d
--- /dev/null
@@ -0,0 +1,22 @@
+Document: rss2ctdl
+Title: Debian rss2ctdl Manual
+Author: <insert document author here>
+Abstract: This manual describes what rss2ctdl is
+ and how it can be used to
+ manage online manuals on Debian systems.
+Section: unknown
+
+Format: debiandoc-sgml
+Files: /usr/share/doc/rss2ctdl/rss2ctdl.sgml.gz
+
+Format: postscript
+Files: /usr/share/doc/rss2ctdl/rss2ctdl.ps.gz
+
+Format: text
+Files: /usr/share/doc/rss2ctdl/rss2ctdl.text.gz
+
+Format: HTML
+Index: /usr/share/doc/rss2ctdl/html/index.html
+Files: /usr/share/doc/rss2ctdl/html/*.html
+
+  
diff --git a/rss2ctdl/debian/rules b/rss2ctdl/debian/rules
new file mode 100755 (executable)
index 0000000..561720f
--- /dev/null
@@ -0,0 +1,104 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# 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
+
+configure: configure-stamp
+configure-stamp:
+       dh_testdir
+       # Add here commands to configure the package.
+
+       touch configure-stamp
+
+
+build: build-stamp
+
+build-stamp: configure-stamp 
+       dh_testdir
+
+       # Add here commands to compile the package.
+       $(MAKE)
+       #docbook-to-man debian/rss2ctdl.sgml > rss2ctdl.1
+
+
+       touch build-stamp
+
+clean:
+       dh_testdir
+       dh_testroot
+       rm -f build-stamp configure-stamp
+
+       # Add here commands to clean up after the build process.
+       -$(MAKE) clean
+
+       dh_clean 
+
+install: build
+       dh_testdir
+       dh_testroot
+       dh_clean -k 
+       mkdir -p $(CURDIR)/debian/citadel-rss2ctdl/usr/sbin
+       mkdir -p $(CURDIR)/debian/citadel-rss2ctdl/usr/share/doc/citadel-rss2ctdl/examples/config
+       cp $(CURDIR)/rss2ctdl $(CURDIR)/debian/citadel-rss2ctdl/usr/sbin/
+       cp $(CURDIR)/feeds.cron $(CURDIR)/debian/citadel-rss2ctdl/usr/sbin/
+       cp $(CURDIR)/rssfeeds $(CURDIR)/debian/citadel-rss2ctdl/usr/share/doc/citadel-rss2ctdl/examples/config
+       dh_installdirs
+
+       # Add here commands to install the package into debian/rss2ctdl.
+
+
+
+# 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_install
+#      dh_installmenu
+#      dh_installdebconf       
+#      dh_installlogrotate
+#      dh_installemacsen
+#      dh_installpam
+#      dh_installmime
+#      dh_installinit
+       dh_installcron 
+#      dh_installinfo
+       dh_installman
+       dh_link
+       dh_strip
+       dh_compress
+       dh_fixperms
+#      dh_perl
+#      dh_python
+#      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
diff --git a/rss2ctdl/debian/watch.ex b/rss2ctdl/debian/watch.ex
new file mode 100644 (file)
index 0000000..0f7902d
--- /dev/null
@@ -0,0 +1,22 @@
+# 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.
+# See uscan(1) for format
+
+# Compulsory line, this is a version 3 file
+version=3
+
+# Uncomment to examine a Webpage 
+# <Webpage URL> <string match>
+#http://www.example.com/downloads.php rss2ctdl-(.*)\.tar\.gz
+
+# Uncomment to examine a Webserver directory
+#http://www.example.com/pub/rss2ctdl-(.*)\.tar\.gz
+
+# Uncommment to examine a FTP server
+#ftp://ftp.example.com/pub/rss2ctdl-(.*)\.tar\.gz debian uupdate
+
+# Uncomment to use Roland's hack for sourceforge based projects - YMMV!
+#http://people.debian.org/~lolando/sfdlr.php?project=rss2ctdl rss2ctdl-([\d.]*).tar.gz
+
+
diff --git a/rss2ctdl/feeds.cron b/rss2ctdl/feeds.cron
new file mode 100755 (executable)
index 0000000..3ab4b0f
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/sh
+CITADEL_SPOOL=/var/spool/citadel/
+RSSFEEDER=/usr/sbin/rss2ctdl
+FEEDFILE=/etc/citadel/rssfeeds
+for i in `cat $FEEDFILE |grep -v "^#"`; do
+       remotedomain=`echo $i |sed "s:.*;::"`
+       room=`echo $i |sed "s:.*;\(.*\);.*:\1:"`
+       remoteurl=`echo $i |sed "s:;.*::"`
+       $RSSFEEDER "$remoteurl" "$room" "$remotedomain" "$CITADEL_SPOOL"
+done
\ No newline at end of file