From: Wilfried Göesgens Date: Sun, 18 Dec 2005 09:40:53 +0000 (+0000) Subject: * added debian build scripts X-Git-Tag: v7.86~4363 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=55ab7868e15d28bd8eb4ca6c1bfd857d41479e5a;p=citadel.git * added debian build scripts * added config adder shellscript for debian scripts --- diff --git a/rss2ctdl/debian/README.Debian b/rss2ctdl/debian/README.Debian new file mode 100644 index 000000000..a4d378216 --- /dev/null +++ b/rss2ctdl/debian/README.Debian @@ -0,0 +1,6 @@ +rss2ctdl for Debian +------------------- + + + + -- Wilfried Goesgens , Tue, 26 Jul 2005 10:41:35 +0200 diff --git a/rss2ctdl/debian/changelog b/rss2ctdl/debian/changelog new file mode 100644 index 000000000..30ff27bd8 --- /dev/null +++ b/rss2ctdl/debian/changelog @@ -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 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 index 000000000..bd4930bc6 --- /dev/null +++ b/rss2ctdl/debian/citadel-rss2ctdl.cron.d @@ -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 index 000000000..dd7fdd4fe --- /dev/null +++ b/rss2ctdl/debian/citadel-rss2ctdl.postinst @@ -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 index 000000000..f5d86f3cb --- /dev/null +++ b/rss2ctdl/debian/citadel-rss2ctdl.postrm @@ -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 index 000000000..13858db93 --- /dev/null +++ b/rss2ctdl/debian/citadel-rss2ctdl.substvars @@ -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 index 000000000..b8626c4cf --- /dev/null +++ b/rss2ctdl/debian/compat @@ -0,0 +1 @@ +4 diff --git a/rss2ctdl/debian/conffiles.ex b/rss2ctdl/debian/conffiles.ex new file mode 100644 index 000000000..7775022d4 --- /dev/null +++ b/rss2ctdl/debian/conffiles.ex @@ -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 index 000000000..c160ad625 --- /dev/null +++ b/rss2ctdl/debian/control @@ -0,0 +1,19 @@ +Source: rss2ctdl +Section: unknown +Priority: optional +Maintainer: Wilfried Goesgens +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 index 000000000..fa214302e --- /dev/null +++ b/rss2ctdl/debian/copyright @@ -0,0 +1,10 @@ +This package was debianized by Wilfried Goesgens on +Tue, 26 Jul 2005 10:41:35 +0200. + +It was downloaded from + +Copyright Holder: + +License: + + diff --git a/rss2ctdl/debian/cron.d.ex b/rss2ctdl/debian/cron.d.ex new file mode 100644 index 000000000..4147f9434 --- /dev/null +++ b/rss2ctdl/debian/cron.d.ex @@ -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 index 000000000..ca882bbb7 --- /dev/null +++ b/rss2ctdl/debian/dirs @@ -0,0 +1,2 @@ +usr/bin +usr/sbin diff --git a/rss2ctdl/debian/docs b/rss2ctdl/debian/docs new file mode 100644 index 000000000..6e9fe653f --- /dev/null +++ b/rss2ctdl/debian/docs @@ -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 index 000000000..04f50e90f --- /dev/null +++ b/rss2ctdl/debian/emacsen-install.ex @@ -0,0 +1,45 @@ +#! /bin/sh -e +# /usr/lib/emacsen-common/packages/install/rss2ctdl + +# Written by Jim Van Zandt , borrowing heavily +# from the install scripts for gettext by Santiago Vila +# and octave by Dirk Eddelbuettel . + +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 index 000000000..82a824102 --- /dev/null +++ b/rss2ctdl/debian/emacsen-remove.ex @@ -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 index 000000000..f42325d92 --- /dev/null +++ b/rss2ctdl/debian/emacsen-startup.ex @@ -0,0 +1,19 @@ +;; -*-emacs-lisp-*- +;; +;; Emacs startup file for the Debian rss2ctdl package +;; +;; Originally contributed by Nils Naumann +;; Modified by Dirk Eddelbuettel +;; Adapted for dh-make by Jim Van Zandt + +;; 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 index 000000000..0ba5a3b28 --- /dev/null +++ b/rss2ctdl/debian/files @@ -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 index 000000000..6bf56253c --- /dev/null +++ b/rss2ctdl/debian/init.d.ex @@ -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 . +# Modified for Debian +# by Ian Murdock . +# +# 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 index 000000000..c541bd628 --- /dev/null +++ b/rss2ctdl/debian/manpage.1.ex @@ -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 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\fP and +.\" \fI\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 . +.PP +This manual page was written by Wilfried Goesgens , +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 index 000000000..5542239cc --- /dev/null +++ b/rss2ctdl/debian/manpage.sgml.ex @@ -0,0 +1,156 @@ + 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. + + --> + + + FIRSTNAME"> + SURNAME"> + + July 26, 2005"> + + SECTION"> + willi@jordy.home.net"> + + RSS2CTDL"> + + + Debian"> + GNU"> + GPL"> +]> + + + +
+ &dhemail; +
+ + &dhfirstname; + &dhsurname; + + + 2003 + &dhusername; + + &dhdate; +
+ + &dhucpackage; + + &dhsection; + + + &dhpackage; + + program to do something + + + + &dhpackage; + + + + + + + + DESCRIPTION + + This manual page documents briefly the + &dhpackage; and bar + commands. + + 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; + Info format; see below. + + &dhpackage; is a program that... + + + + 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. + + + + + + + + Show summary of options. + + + + + + + + Show version of program. + + + + + + SEE ALSO + + bar (1), baz (1). + + The programs are documented fully by The Rise and + Fall of a Fooish Bar available via the + Info system. + + + AUTHOR + + 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. + + + On Debian systems, the complete text of the GNU General Public + License can be found in /usr/share/common-licenses/GPL. + + + +
+ + + + diff --git a/rss2ctdl/debian/manpage.xml.ex b/rss2ctdl/debian/manpage.xml.ex new file mode 100644 index 000000000..d03b29c56 --- /dev/null +++ b/rss2ctdl/debian/manpage.xml.ex @@ -0,0 +1,148 @@ + +.
will be generated. You may view the +manual page with: nroff -man .
| 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. + +--> + + + FIRSTNAME"> + SURNAME"> + + July 26, 2005"> + + SECTION"> + willi@jordy.home.net"> + + RSS2CTDL"> + + + Debian"> + GNU"> + GPL"> +]> + + + +
+ &dhemail; +
+ + &dhfirstname; + &dhsurname; + + + 2003 + &dhusername; + + &dhdate; +
+ + &dhucpackage; + + &dhsection; + + + &dhpackage; + + program to do something + + + + &dhpackage; + + + + + + + + DESCRIPTION + + This manual page documents briefly the + &dhpackage; and bar + commands. + + 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; + Info format; see below. + + &dhpackage; is a program that... + + + + 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. + + + + + + + + Show summary of options. + + + + + + + + Show version of program. + + + + + + SEE ALSO + + bar (1), baz (1). + + The programs are documented fully by The Rise and + Fall of a Fooish Bar available via the + Info system. + + + AUTHOR + + 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. + + + On Debian systems, the complete text of the GNU General Public + License can be found in /usr/share/common-licenses/GPL. + + + +
+ diff --git a/rss2ctdl/debian/menu.ex b/rss2ctdl/debian/menu.ex new file mode 100644 index 000000000..02d9b1a6f --- /dev/null +++ b/rss2ctdl/debian/menu.ex @@ -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 index 000000000..b721bf29c --- /dev/null +++ b/rss2ctdl/debian/postinst.ex @@ -0,0 +1,42 @@ +#! /bin/sh +# postinst script for rss2ctdl +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# 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 index 000000000..0580b3d0c --- /dev/null +++ b/rss2ctdl/debian/postrm.ex @@ -0,0 +1,38 @@ +#! /bin/sh +# postrm script for rss2ctdl +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' overwrit>r> +# 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 index 000000000..336acef5d --- /dev/null +++ b/rss2ctdl/debian/preinst.ex @@ -0,0 +1,38 @@ +#! /bin/sh +# preinst script for rss2ctdl +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `install' +# * `install' +# * `upgrade' +# * `abort-upgrade' +# +# 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 index 000000000..2be567d24 --- /dev/null +++ b/rss2ctdl/debian/prerm.ex @@ -0,0 +1,38 @@ +#! /bin/sh +# prerm script for rss2ctdl +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# 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 index 000000000..68665c6b7 --- /dev/null +++ b/rss2ctdl/debian/rss2ctdl-default.ex @@ -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 index 000000000..614169da6 --- /dev/null +++ b/rss2ctdl/debian/rss2ctdl.doc-base.EX @@ -0,0 +1,22 @@ +Document: rss2ctdl +Title: Debian rss2ctdl Manual +Author: +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 index 000000000..561720f3e --- /dev/null +++ b/rss2ctdl/debian/rules @@ -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 index 000000000..0f7902d3d --- /dev/null +++ b/rss2ctdl/debian/watch.ex @@ -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 +# +#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 index 000000000..3ab4b0f3f --- /dev/null +++ b/rss2ctdl/feeds.cron @@ -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