From 8450df6a1679c3ff12b172c5280cefcdd5155d56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Mart=C3=ADn?= Date: Sun, 7 Sep 2003 21:08:04 +0000 Subject: Adding debian dir for 'pd-pdp' packet creation svn path=/trunk/externals/pdp/; revision=938 --- debian/changelog | 41 +++++++++++++ debian/compat | 1 + debian/conffiles.ex | 7 +++ debian/control | 13 +++++ debian/copyright | 10 ++++ debian/cron.d.ex | 4 ++ debian/dirs | 8 +++ debian/docs | 3 + debian/emacsen-install.ex | 45 ++++++++++++++ debian/emacsen-remove.ex | 15 +++++ debian/emacsen-startup.ex | 18 ++++++ debian/files | 1 + debian/init.d.ex | 69 ++++++++++++++++++++++ debian/manpage.1.ex | 60 +++++++++++++++++++ debian/menu.ex | 2 + debian/pd-pdp.substvars | 1 + debian/pdp-config.1 | 87 ++++++++++++++++++++++++++++ debian/pdp-config.sgml.ex | 145 ++++++++++++++++++++++++++++++++++++++++++++++ debian/pdp.doc-base.EX | 22 +++++++ debian/pdp.substvars | 1 + debian/postinst.ex | 48 +++++++++++++++ debian/postrm.ex | 38 ++++++++++++ debian/preinst.ex | 44 ++++++++++++++ debian/prerm.ex | 39 +++++++++++++ debian/rules | 106 +++++++++++++++++++++++++++++++++ debian/watch.ex | 6 ++ 26 files changed, 834 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/conffiles.ex create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/cron.d.ex create mode 100644 debian/dirs create mode 100644 debian/docs create mode 100644 debian/emacsen-install.ex create mode 100644 debian/emacsen-remove.ex create mode 100644 debian/emacsen-startup.ex create mode 100644 debian/files create mode 100644 debian/init.d.ex create mode 100644 debian/manpage.1.ex create mode 100644 debian/menu.ex create mode 100644 debian/pd-pdp.substvars create mode 100644 debian/pdp-config.1 create mode 100644 debian/pdp-config.sgml.ex create mode 100644 debian/pdp.doc-base.EX create mode 100644 debian/pdp.substvars create mode 100644 debian/postinst.ex create mode 100644 debian/postrm.ex create mode 100644 debian/preinst.ex create mode 100644 debian/prerm.ex create mode 100755 debian/rules create mode 100644 debian/watch.ex (limited to 'debian') diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..dadd257 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,41 @@ +pdp (0.12.2-5) unstable; urgency=low + + * Changing package name + + -- Pablo Martín Wed, 13 Aug 2003 12:00:25 +0200 + +pdp (0.12.2-4) unstable; urgency=low + + * Fixing some errors in the package + + -- Pablo Martín Thu, 31 Jul 2003 14:50:40 +0200 + +pdp (0.12.2-3) unstable; urgency=low + + * Recompile to keep up with debian + + -- Pablo Martín Wed, 23 Jul 2003 20:20:08 +0200 + +pdp (0.12.2-2) unstable; urgency=low + + * Trying to get dependencies better + + -- Pablo Martín Wed, 23 Jul 2003 11:20:36 +0200 + +pdp (0.12.2-1) unstable; urgency=low + + * New upstream release. + + -- Pablo Martín Tue, 22 Jul 2003 10:22:23 +0200 + +pdp (0.12.1-2) unstable; urgency=low + + * New release to fix proxy hell. + + -- Pablo Martín Wed, 16 Jul 2003 02:27:23 +0200 + +pdp (0.12.1-1) unstable; urgency=low + + * Initial Release. + + -- Pablo Martín Thu, 10 Jul 2003 02:27:23 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..b8626c4 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +4 diff --git a/debian/conffiles.ex b/debian/conffiles.ex new file mode 100644 index 0000000..34bfb30 --- /dev/null +++ b/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/pdp/pdp.conf diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..b4a3bd1 --- /dev/null +++ b/debian/control @@ -0,0 +1,13 @@ +Source: pdp +Section: graphics +Priority: extra +Maintainer: Pablo Martín +Build-Depends: debhelper (>> 4.0.0), libquicktime-dev, xlibs-dev, libquicktime-dev, liblame-dev +Standards-Version: 3.5.8 + +Package: pd-pdp +Architecture: any +Depends: puredata, libc6 (>= 2.3.1-1), libgsl0, libpng12-0 (>= 1.2.5.0-4), libquicktime1 (>= 0.9.2pre1), xlibmesa4-gl | libgl1, xlibmesa4-glu | libglu1, xlibs (>> 4.2) +Description: Graphics system for pd + PDP allows you to manipulate movies and live video data within pd. + diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..8417881 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,10 @@ +This package was debianized by Pablo Martín on +Thu, 10 Jul 2003 03:30:26 +0100. + +It was downloaded from + +Upstream Authors: Tom Schouten and others + +Copyright: + +This software is published under GPL terms, found on Debian systems in the file /usr/share/common-licenses/GPL-2. diff --git a/debian/cron.d.ex b/debian/cron.d.ex new file mode 100644 index 0000000..b0e2178 --- /dev/null +++ b/debian/cron.d.ex @@ -0,0 +1,4 @@ +# +# Regular cron jobs for the pdp package +# +0 4 * * * root pdp_maintenance diff --git a/debian/dirs b/debian/dirs new file mode 100644 index 0000000..817d7b2 --- /dev/null +++ b/debian/dirs @@ -0,0 +1,8 @@ +usr/bin +usr/include/pdp +usr/lib/pd/doc/pdp +usr/lib/pd/doc/pdp/introduction +usr/lib/pd/doc/pdp/examples +usr/lib/pd/externs +usr/lib/pd/doc/5.reference + diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..92a457d --- /dev/null +++ b/debian/docs @@ -0,0 +1,3 @@ +README +TODO +TODO.EXP diff --git a/debian/emacsen-install.ex b/debian/emacsen-install.ex new file mode 100644 index 0000000..02c5a2c --- /dev/null +++ b/debian/emacsen-install.ex @@ -0,0 +1,45 @@ +#! /bin/sh -e +# /usr/lib/emacsen-common/packages/install/pdp + +# Written by Jim Van Zandt , borrowing heavily +# from the install scripts for gettext by Santiago Vila +# and octave by Dirk Eddelbuettel . + +FLAVOR=$1 +PACKAGE=pdp + +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/debian/emacsen-remove.ex b/debian/emacsen-remove.ex new file mode 100644 index 0000000..a06ea30 --- /dev/null +++ b/debian/emacsen-remove.ex @@ -0,0 +1,15 @@ +#!/bin/sh -e +# /usr/lib/emacsen-common/packages/remove/pdp + +FLAVOR=$1 +PACKAGE=pdp + +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/pdp.info.gz + fi + + echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR} + rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE} +fi diff --git a/debian/emacsen-startup.ex b/debian/emacsen-startup.ex new file mode 100644 index 0000000..27027b9 --- /dev/null +++ b/debian/emacsen-startup.ex @@ -0,0 +1,18 @@ +;; -*-emacs-lisp-*- +;; +;; Emacs startup file for the Debian pdp package +;; +;; Originally contributed by Nils Naumann +;; Modified by Dirk Eddelbuettel +;; Adapted for dh-make by Jim Van Zandt + +;; The pdp 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/pdp") load-path)) + + diff --git a/debian/files b/debian/files new file mode 100644 index 0000000..db47a65 --- /dev/null +++ b/debian/files @@ -0,0 +1 @@ +pd-pdp_0.12.2-5_i386.deb graphics extra diff --git a/debian/init.d.ex b/debian/init.d.ex new file mode 100644 index 0000000..335ca30 --- /dev/null +++ b/debian/init.d.ex @@ -0,0 +1,69 @@ +#! /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/pdp +NAME=pdp +DESC=pdp + +test -x $DAEMON || exit 0 + +set -e + +case "$1" in + start) + echo -n "Starting $DESC: " + start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \ + --exec $DAEMON + 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 + 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/debian/manpage.1.ex b/debian/manpage.1.ex new file mode 100644 index 0000000..c91c29d --- /dev/null +++ b/debian/manpage.1.ex @@ -0,0 +1,60 @@ +.\" 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 PDP SECTION "julio 10, 2003" +.\" 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 +pdp \- program to do something +.SH SYNOPSIS +.B pdp +.RI [ options ] " files" ... +.br +.B bar +.RI [ options ] " files" ... +.SH DESCRIPTION +This manual page documents briefly the +.B pdp +and +.B 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. +.PP +.\" TeX users may be more comfortable with the \fB\fP and +.\" \fI\fP escape sequences to invode bold face and italics, +.\" respectively. +\fBpdp\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 +This manual page was written by Knoppix User , +for the Debian project (but may be used by others). diff --git a/debian/menu.ex b/debian/menu.ex new file mode 100644 index 0000000..6ef1881 --- /dev/null +++ b/debian/menu.ex @@ -0,0 +1,2 @@ +?package(pdp):needs=X11|text|vc|wm section=Apps/see-menu-manual\ + title="pdp" command="/usr/bin/pdp" diff --git a/debian/pd-pdp.substvars b/debian/pd-pdp.substvars new file mode 100644 index 0000000..a42eb7b --- /dev/null +++ b/debian/pd-pdp.substvars @@ -0,0 +1 @@ +shlibs:Depends=libc6 (>= 2.3.2-1), libgsl0, libpng12-0 (>= 1.2.5.0-4), libquicktime1 (>= 0.9.2pre1), xlibmesa4-gl | libgl1, xlibmesa4-glu | libglu1, xlibs (>> 4.1.0), xlibs (>> 4.2.99) diff --git a/debian/pdp-config.1 b/debian/pdp-config.1 new file mode 100644 index 0000000..b65dbbd --- /dev/null +++ b/debian/pdp-config.1 @@ -0,0 +1,87 @@ +.\" This -*- nroff -*- file has been generated from +.\" DocBook SGML with docbook-to-man on Debian GNU/Linux. +...\" +...\" transcript compatibility for postscript use. +...\" +...\" synopsis: .P! +...\" +.de P! +\\&. +.fl \" force out current output buffer +\\!%PB +\\!/showpage{}def +...\" the following is from Ken Flowers -- it prevents dictionary overflows +\\!/tempdict 200 dict def tempdict begin +.fl \" prolog +.sy cat \\$1\" bring in postscript file +...\" the following line matches the tempdict above +\\!end % tempdict % +\\!PE +\\!. +.sp \\$2u \" move below the image +.. +.de pF +.ie \\*(f1 .ds f1 \\n(.f +.el .ie \\*(f2 .ds f2 \\n(.f +.el .ie \\*(f3 .ds f3 \\n(.f +.el .ie \\*(f4 .ds f4 \\n(.f +.el .tm ? font overflow +.ft \\$1 +.. +.de fP +.ie !\\*(f4 \{\ +. ft \\*(f4 +. ds f4\" +' br \} +.el .ie !\\*(f3 \{\ +. ft \\*(f3 +. ds f3\" +' br \} +.el .ie !\\*(f2 \{\ +. ft \\*(f2 +. ds f2\" +' br \} +.el .ie !\\*(f1 \{\ +. ft \\*(f1 +. ds f1\" +' br \} +.el .tm ? font underflow +.. +.ds f1\" +.ds f2\" +.ds f3\" +.ds f4\" +'\" t +.ta 8n 16n 24n 32n 40n 48n 56n 64n 72n +.TH "PDP" "1" +.SH "NAME" +pdp \(em script to get information about the installed version of PDP +.SH "SYNOPSIS" +.PP +\fBpdp\fP [\fB--version\fP] [\fB--cflags\fP] [\fB--libdir\fP] +.SH "DESCRIPTION" +.PP +\fBpdp\fP is a tool that is used to configure to determine the compiler and linker flags that should be used to compile and links modules that use PDP. + +.SH "OPTIONS" +.PP +\fBpdp\fP accepts the following options: +.IP "\fB--version\fP " 10 +Print the currently installed version of PDP on the standard output. +.IP "\fB--cflags\fP " 10 +Print the compiler flags that are necessary to compile a PDP module. +.IP "\fB--libdir\fP " 10 +Print the linker flags that are necessary to link a PDP module. +.SH "SEE ALSO" +.PP +pd (1). +.SH "AUTHOR" +.PP +This manual page was written by Pablo Martín caedes@sindominio.net for +the \fBDebian\fP system (but may be used by others). Permission is +granted to copy, distribute and/or modify this document under +the terms of the GNU Free Documentation +License, Version 1.1 or any later version published by the Free +Software Foundation; with no Invariant Sections, no Front-Cover +Texts and no Back-Cover Texts. +...\" created by instant / docbook-to-man, Thu 14 Aug 2003, 15:18 diff --git a/debian/pdp-config.sgml.ex b/debian/pdp-config.sgml.ex new file mode 100644 index 0000000..30ef47c --- /dev/null +++ b/debian/pdp-config.sgml.ex @@ -0,0 +1,145 @@ + 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. + + --> + + + Pablo"> + Martín"> + + julio 10, 2003"> + + 1"> + caedes@sindominio.net"> + + PDP"> + + + Debian"> + GNU"> + GPL"> +]> + + + +
+ &dhemail; +
+ + &dhfirstname; + &dhsurname; + + + 2003 + &dhusername; + + &dhdate; +
+ + &dhucpackage; + + &dhsection; + + + &dhpackage; + + script to get information about the installed version of PDP + + + + &dhpackage; + + + + + + + + + DESCRIPTION + + + &dhpackage; is a tool that is used to configure to determine the compiler and linker flags that should be used to compile and links modules that use PDP. + + + + + OPTIONS + + &dhpackage; accepts the following options: + + + + + + + Print the currently installed version of PDP on the standard output. + + + + + + + Print the compiler flags that are necessary to compile a PDP module. + + + + + + + Print the linker flags that are necessary to link a PDP module. + + + + + + SEE ALSO + + pd (1). + + + 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; Free Documentation + License, Version 1.1 or any later version published by the Free + Software Foundation; with no Invariant Sections, no Front-Cover + Texts and no Back-Cover Texts. + + +
+ + + + diff --git a/debian/pdp.doc-base.EX b/debian/pdp.doc-base.EX new file mode 100644 index 0000000..15e8805 --- /dev/null +++ b/debian/pdp.doc-base.EX @@ -0,0 +1,22 @@ +Document: pdp +Title: Debian pdp Manual +Author: +Abstract: This manual describes what pdp is + and how it can be used to + manage online manuals on Debian systems. +Section: unknown + +Format: debiandoc-sgml +Files: /usr/share/doc/pdp/pdp.sgml.gz + +Format: postscript +Files: /usr/share/doc/pdp/pdp.ps.gz + +Format: text +Files: /usr/share/doc/pdp/pdp.text.gz + +Format: HTML +Index: /usr/share/doc/pdp/html/index.html +Files: /usr/share/doc/pdp/html/*.html + + diff --git a/debian/pdp.substvars b/debian/pdp.substvars new file mode 100644 index 0000000..1940aa8 --- /dev/null +++ b/debian/pdp.substvars @@ -0,0 +1 @@ +shlibs:Depends=libc6 (>= 2.3.1-1), libgsl0, libpng12-0 (>= 1.2.5.0-4), libquicktime1 (>= 0.9.2pre1), xlibmesa4-gl | libgl1, xlibmesa4-glu | libglu1, xlibs (>> 4.1.0), xlibs (>> 4.2.99) diff --git a/debian/postinst.ex b/debian/postinst.ex new file mode 100644 index 0000000..f8bba05 --- /dev/null +++ b/debian/postinst.ex @@ -0,0 +1,48 @@ +#! /bin/sh +# postinst script for pdp +# +# 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 +# +# quoting from the policy: +# Any necessary prompting should almost always be confined to the +# post-installation script, and should be protected with a conditional +# so that unnecessary prompting doesn't happen if a package's +# installation fails and the `postinst' is called with `abort-upgrade', +# `abort-remove' or `abort-deconfigure'. + +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/debian/postrm.ex b/debian/postrm.ex new file mode 100644 index 0000000..29e6640 --- /dev/null +++ b/debian/postrm.ex @@ -0,0 +1,38 @@ +#! /bin/sh +# postrm script for pdp +# +# 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/debian/preinst.ex b/debian/preinst.ex new file mode 100644 index 0000000..2222879 --- /dev/null +++ b/debian/preinst.ex @@ -0,0 +1,44 @@ +#! /bin/sh +# preinst script for pdp +# +# 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) +# if [ "$1" = "upgrade" ] +# then +# start-stop-daemon --stop --quiet --oknodo \ +# --pidfile /var/run/pdp.pid \ +# --exec /usr/sbin/pdp 2>/dev/null || true +# fi + ;; + + 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/debian/prerm.ex b/debian/prerm.ex new file mode 100644 index 0000000..ceaf76f --- /dev/null +++ b/debian/prerm.ex @@ -0,0 +1,39 @@ +#! /bin/sh +# prerm script for pdp +# +# 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) +# install-info --quiet --remove /usr/info/pdp.info.gz + ;; + 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/debian/rules b/debian/rules new file mode 100755 index 0000000..8233dff --- /dev/null +++ b/debian/rules @@ -0,0 +1,106 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + + +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 + +config.status: configure + dh_testdir + # Add here commands to configure the package. + ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info + + +build: build-stamp + +build-stamp: config.status + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + #/usr/bin/docbook-to-man debian/pdp.sgml > pdp.1 + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + -$(MAKE) distclean +ifneq "$(wildcard /usr/share/misc/config.sub)" "" + cp -f /usr/share/misc/config.sub config.sub +endif +ifneq "$(wildcard /usr/share/misc/config.guess)" "" + cp -f /usr/share/misc/config.guess config.guess +endif + + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/pdp. + $(MAKE) install prefix=$(CURDIR)/debian/pd-pdp/usr + + +# 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 CHANGES.LOG + dh_installdocs README TODO +# dh_installexamples +# dh_install +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo + dh_installman pdp-config.1 + 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 diff --git a/debian/watch.ex b/debian/watch.ex new file mode 100644 index 0000000..bdb17d8 --- /dev/null +++ b/debian/watch.ex @@ -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 +sunsite.unc.edu /pub/Linux/Incoming pdp-(.*)\.tar\.gz debian uupdate -- cgit v1.2.1