r96700 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r96699‎ | r96700 | r96701 >
Date:22:26, 9 September 2011
Author:asher
Status:deferred
Tags:
Comment:
new debian pkg source for cmake based oggvideotools 0.8a
Modified paths:
  • /trunk/debs/oggvideotools/debian/changelog (modified) (history)
  • /trunk/debs/oggvideotools/debian/control (modified) (history)
  • /trunk/debs/oggvideotools/debian/copyright (modified) (history)
  • /trunk/debs/oggvideotools/debian/cron.d.ex (added) (history)
  • /trunk/debs/oggvideotools/debian/dirs (added) (history)
  • /trunk/debs/oggvideotools/debian/docs (modified) (history)
  • /trunk/debs/oggvideotools/debian/emacsen-install.ex (added) (history)
  • /trunk/debs/oggvideotools/debian/emacsen-remove.ex (added) (history)
  • /trunk/debs/oggvideotools/debian/emacsen-startup.ex (added) (history)
  • /trunk/debs/oggvideotools/debian/init.d.ex (added) (history)
  • /trunk/debs/oggvideotools/debian/init.d.lsb.ex (added) (history)
  • /trunk/debs/oggvideotools/debian/manpage.1.ex (added) (history)
  • /trunk/debs/oggvideotools/debian/manpage.sgml.ex (added) (history)
  • /trunk/debs/oggvideotools/debian/manpage.xml.ex (added) (history)
  • /trunk/debs/oggvideotools/debian/menu.ex (added) (history)
  • /trunk/debs/oggvideotools/debian/oggvideotools.default.ex (added) (history)
  • /trunk/debs/oggvideotools/debian/oggvideotools.doc-base.EX (added) (history)
  • /trunk/debs/oggvideotools/debian/patches/fix-cmakelist.patch (added) (history)
  • /trunk/debs/oggvideotools/debian/patches/series (modified) (history)
  • /trunk/debs/oggvideotools/debian/postinst.ex (added) (history)
  • /trunk/debs/oggvideotools/debian/postrm.ex (added) (history)
  • /trunk/debs/oggvideotools/debian/preinst.ex (added) (history)
  • /trunk/debs/oggvideotools/debian/prerm.ex (added) (history)
  • /trunk/debs/oggvideotools/debian/rules (modified) (history)
  • /trunk/debs/oggvideotools/debian/watch.ex (added) (history)

Diff [purge]

Index: trunk/debs/oggvideotools/debian/menu.ex
@@ -0,0 +1,2 @@
 2+?package(oggvideotools):needs="X11|text|vc|wm" section="Applications/see-menu-manual"\
 3+ title="oggvideotools" command="/usr/bin/oggvideotools"
Index: trunk/debs/oggvideotools/debian/init.d.lsb.ex
@@ -0,0 +1,296 @@
 2+#!/bin/sh
 3+#
 4+# Example init.d script with LSB support.
 5+#
 6+# Please read this init.d carefully and modify the sections to
 7+# adjust it to the program you want to run.
 8+#
 9+# Copyright (c) 2007 Javier Fernandez-Sanguino <jfs@debian.org>
 10+#
 11+# This is free software; you may redistribute it and/or modify
 12+# it under the terms of the GNU General Public License as
 13+# published by the Free Software Foundation; either version 2,
 14+# or (at your option) any later version.
 15+#
 16+# This is distributed in the hope that it will be useful, but
 17+# WITHOUT ANY WARRANTY; without even the implied warranty of
 18+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 19+# GNU General Public License for more details.
 20+#
 21+# You should have received a copy of the GNU General Public License with
 22+# the Debian operating system, in /usr/share/common-licenses/GPL; if
 23+# not, write to the Free Software Foundation, Inc., 59 Temple Place,
 24+# Suite 330, Boston, MA 02111-1307 USA
 25+#
 26+### BEGIN INIT INFO
 27+# Provides: oggvideotools
 28+# Required-Start: $network $local_fs
 29+# Required-Stop:
 30+# Should-Start: $named
 31+# Should-Stop:
 32+# Default-Start: 2 3 4 5
 33+# Default-Stop: 0 1 6
 34+# Short-Description: <Enter a short description of the sortware>
 35+# Description: <Enter a long description of the software>
 36+# <...>
 37+# <...>
 38+### END INIT INFO
 39+
 40+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
 41+
 42+DAEMON=/usr/sbin/oggvideotools # Introduce the server's location here
 43+NAME=#PACKAGE # Introduce the short server's name here
 44+DESC=#PACKAGE # Introduce a short description here
 45+LOGDIR=/var/log/oggvideotools # Log directory to use
 46+
 47+PIDFILE=/var/run/$NAME.pid
 48+
 49+test -x $DAEMON || exit 0
 50+
 51+. /lib/lsb/init-functions
 52+
 53+# Default options, these can be overriden by the information
 54+# at /etc/default/$NAME
 55+DAEMON_OPTS="" # Additional options given to the server
 56+
 57+DIETIME=10 # Time to wait for the server to die, in seconds
 58+ # If this value is set too low you might not
 59+ # let some servers to die gracefully and
 60+ # 'restart' will not work
 61+
 62+#STARTTIME=2 # Time to wait for the server to start, in seconds
 63+ # If this value is set each time the server is
 64+ # started (on start or restart) the script will
 65+ # stall to try to determine if it is running
 66+ # If it is not set and the server takes time
 67+ # to setup a pid file the log message might
 68+ # be a false positive (says it did not start
 69+ # when it actually did)
 70+
 71+LOGFILE=$LOGDIR/$NAME.log # Server logfile
 72+#DAEMONUSER=oggvideotools # Users to run the daemons as. If this value
 73+ # is set start-stop-daemon will chuid the server
 74+
 75+# Include defaults if available
 76+if [ -f /etc/default/$NAME ] ; then
 77+ . /etc/default/$NAME
 78+fi
 79+
 80+# Use this if you want the user to explicitly set 'RUN' in
 81+# /etc/default/
 82+#if [ "x$RUN" != "xyes" ] ; then
 83+# log_failure_msg "$NAME disabled, please adjust the configuration to your needs "
 84+# log_failure_msg "and then set RUN to 'yes' in /etc/default/$NAME to enable it."
 85+# exit 1
 86+#fi
 87+
 88+# Check that the user exists (if we set a user)
 89+# Does the user exist?
 90+if [ -n "$DAEMONUSER" ] ; then
 91+ if getent passwd | grep -q "^$DAEMONUSER:"; then
 92+ # Obtain the uid and gid
 93+ DAEMONUID=`getent passwd |grep "^$DAEMONUSER:" | awk -F : '{print $3}'`
 94+ DAEMONGID=`getent passwd |grep "^$DAEMONUSER:" | awk -F : '{print $4}'`
 95+ else
 96+ log_failure_msg "The user $DAEMONUSER, required to run $NAME does not exist."
 97+ exit 1
 98+ fi
 99+fi
 100+
 101+
 102+set -e
 103+
 104+running_pid() {
 105+# Check if a given process pid's cmdline matches a given name
 106+ pid=$1
 107+ name=$2
 108+ [ -z "$pid" ] && return 1
 109+ [ ! -d /proc/$pid ] && return 1
 110+ cmd=`cat /proc/$pid/cmdline | tr "\000" "\n"|head -n 1 |cut -d : -f 1`
 111+ # Is this the expected server
 112+ [ "$cmd" != "$name" ] && return 1
 113+ return 0
 114+}
 115+
 116+running() {
 117+# Check if the process is running looking at /proc
 118+# (works for all users)
 119+
 120+ # No pidfile, probably no daemon present
 121+ [ ! -f "$PIDFILE" ] && return 1
 122+ pid=`cat $PIDFILE`
 123+ running_pid $pid $DAEMON || return 1
 124+ return 0
 125+}
 126+
 127+start_server() {
 128+# Start the process using the wrapper
 129+ if [ -z "$DAEMONUSER" ] ; then
 130+ start_daemon -p $PIDFILE $DAEMON $DAEMON_OPTS
 131+ errcode=$?
 132+ else
 133+# if we are using a daemonuser then change the user id
 134+ start-stop-daemon --start --quiet --pidfile $PIDFILE \
 135+ --chuid $DAEMONUSER \
 136+ --exec $DAEMON -- $DAEMON_OPTS
 137+ errcode=$?
 138+ fi
 139+ return $errcode
 140+}
 141+
 142+stop_server() {
 143+# Stop the process using the wrapper
 144+ if [ -z "$DAEMONUSER" ] ; then
 145+ killproc -p $PIDFILE $DAEMON
 146+ errcode=$?
 147+ else
 148+# if we are using a daemonuser then look for process that match
 149+ start-stop-daemon --stop --quiet --pidfile $PIDFILE \
 150+ --user $DAEMONUSER \
 151+ --exec $DAEMON
 152+ errcode=$?
 153+ fi
 154+
 155+ return $errcode
 156+}
 157+
 158+reload_server() {
 159+ [ ! -f "$PIDFILE" ] && return 1
 160+ pid=pidofproc $PIDFILE # This is the daemon's pid
 161+ # Send a SIGHUP
 162+ kill -1 $pid
 163+ return $?
 164+}
 165+
 166+force_stop() {
 167+# Force the process to die killing it manually
 168+ [ ! -e "$PIDFILE" ] && return
 169+ if running ; then
 170+ kill -15 $pid
 171+ # Is it really dead?
 172+ sleep "$DIETIME"s
 173+ if running ; then
 174+ kill -9 $pid
 175+ sleep "$DIETIME"s
 176+ if running ; then
 177+ echo "Cannot kill $NAME (pid=$pid)!"
 178+ exit 1
 179+ fi
 180+ fi
 181+ fi
 182+ rm -f $PIDFILE
 183+}
 184+
 185+
 186+case "$1" in
 187+ start)
 188+ log_daemon_msg "Starting $DESC " "$NAME"
 189+ # Check if it's running first
 190+ if running ; then
 191+ log_progress_msg "apparently already running"
 192+ log_end_msg 0
 193+ exit 0
 194+ fi
 195+ if start_server ; then
 196+ # NOTE: Some servers might die some time after they start,
 197+ # this code will detect this issue if STARTTIME is set
 198+ # to a reasonable value
 199+ [ -n "$STARTTIME" ] && sleep $STARTTIME # Wait some time
 200+ if running ; then
 201+ # It's ok, the server started and is running
 202+ log_end_msg 0
 203+ else
 204+ # It is not running after we did start
 205+ log_end_msg 1
 206+ fi
 207+ else
 208+ # Either we could not start it
 209+ log_end_msg 1
 210+ fi
 211+ ;;
 212+ stop)
 213+ log_daemon_msg "Stopping $DESC" "$NAME"
 214+ if running ; then
 215+ # Only stop the server if we see it running
 216+ errcode=0
 217+ stop_server || errcode=$?
 218+ log_end_msg $errcode
 219+ else
 220+ # If it's not running don't do anything
 221+ log_progress_msg "apparently not running"
 222+ log_end_msg 0
 223+ exit 0
 224+ fi
 225+ ;;
 226+ force-stop)
 227+ # First try to stop gracefully the program
 228+ $0 stop
 229+ if running; then
 230+ # If it's still running try to kill it more forcefully
 231+ log_daemon_msg "Stopping (force) $DESC" "$NAME"
 232+ errcode=0
 233+ force_stop || errcode=$?
 234+ log_end_msg $errcode
 235+ fi
 236+ ;;
 237+ restart|force-reload)
 238+ log_daemon_msg "Restarting $DESC" "$NAME"
 239+ errcode=0
 240+ stop_server || errcode=$?
 241+ # Wait some sensible amount, some server need this
 242+ [ -n "$DIETIME" ] && sleep $DIETIME
 243+ start_server || errcode=$?
 244+ [ -n "$STARTTIME" ] && sleep $STARTTIME
 245+ running || errcode=$?
 246+ log_end_msg $errcode
 247+ ;;
 248+ status)
 249+
 250+ log_daemon_msg "Checking status of $DESC" "$NAME"
 251+ if running ; then
 252+ log_progress_msg "running"
 253+ log_end_msg 0
 254+ else
 255+ log_progress_msg "apparently not running"
 256+ log_end_msg 1
 257+ exit 1
 258+ fi
 259+ ;;
 260+ # Use this if the daemon cannot reload
 261+ reload)
 262+ log_warning_msg "Reloading $NAME daemon: not implemented, as the daemon"
 263+ log_warning_msg "cannot re-read the config file (use restart)."
 264+ ;;
 265+ # And this if it cann
 266+ #reload)
 267+ #
 268+ # If the daemon can reload its config files on the fly
 269+ # for example by sending it SIGHUP, do it here.
 270+ #
 271+ # If the daemon responds to changes in its config file
 272+ # directly anyway, make this a do-nothing entry.
 273+ #
 274+ # log_daemon_msg "Reloading $DESC configuration files" "$NAME"
 275+ # if running ; then
 276+ # reload_server
 277+ # if ! running ; then
 278+ # Process died after we tried to reload
 279+ # log_progress_msg "died on reload"
 280+ # log_end_msg 1
 281+ # exit 1
 282+ # fi
 283+ # else
 284+ # log_progress_msg "server is not running"
 285+ # log_end_msg 1
 286+ # exit 1
 287+ # fi
 288+ #;;
 289+
 290+ *)
 291+ N=/etc/init.d/$NAME
 292+ echo "Usage: $N {start|stop|force-stop|restart|force-reload|status}" >&2
 293+ exit 1
 294+ ;;
 295+esac
 296+
 297+exit 0
Index: trunk/debs/oggvideotools/debian/control
@@ -1,8 +1,7 @@
22 Source: oggvideotools
33 Section: video
44 Priority: optional
5 -Maintainer: Debian Xiph.org Maintainers <pkg-xiph-maint@lists.alioth.debian.org>
6 -Uploaders: John Francesco Ferlito <johnf@inodes.org>
 5+Maintainer: asher feldman <afeldman@wikimedia.org>
76 Build-Depends: debhelper (>= 7.0.50~), quilt, libogg-dev, libtheora-dev, libvorbis-dev, libsdl-dev, libgd2-xpm-dev
87 Standards-Version: 3.8.3
98
Index: trunk/debs/oggvideotools/debian/watch.ex
@@ -0,0 +1,23 @@
 2+# Example watch control file for uscan
 3+# Rename this file to "watch" and then you can run the "uscan" command
 4+# to check for upstream updates and more.
 5+# See uscan(1) for format
 6+
 7+# Compulsory line, this is a version 3 file
 8+version=3
 9+
 10+# Uncomment to examine a Webpage
 11+# <Webpage URL> <string match>
 12+#http://www.example.com/downloads.php oggvideotools-(.*)\.tar\.gz
 13+
 14+# Uncomment to examine a Webserver directory
 15+#http://www.example.com/pub/oggvideotools-(.*)\.tar\.gz
 16+
 17+# Uncommment to examine a FTP server
 18+#ftp://ftp.example.com/pub/oggvideotools-(.*)\.tar\.gz debian uupdate
 19+
 20+# Uncomment to find new files on sourceforge, for devscripts >= 2.9
 21+# http://sf.net/oggvideotools/oggvideotools-(.*)\.tar\.gz
 22+
 23+# Uncomment to find new files on GooglePages
 24+# http://example.googlepages.com/foo.html oggvideotools-(.*)\.tar\.gz
Index: trunk/debs/oggvideotools/debian/emacsen-remove.ex
@@ -0,0 +1,15 @@
 2+#!/bin/sh -e
 3+# /usr/lib/emacsen-common/packages/remove/oggvideotools
 4+
 5+FLAVOR=$1
 6+PACKAGE=oggvideotools
 7+
 8+if [ ${FLAVOR} != emacs ]; then
 9+ if test -x /usr/sbin/install-info-altdir; then
 10+ echo remove/${PACKAGE}: removing Info links for ${FLAVOR}
 11+ install-info-altdir --quiet --remove --dirname=${FLAVOR} /usr/share/info/oggvideotools.info.gz
 12+ fi
 13+
 14+ echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR}
 15+ rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE}
 16+fi
Index: trunk/debs/oggvideotools/debian/oggvideotools.default.ex
@@ -0,0 +1,10 @@
 2+# Defaults for oggvideotools initscript
 3+# sourced by /etc/init.d/oggvideotools
 4+# installed at /etc/default/oggvideotools by the maintainer scripts
 5+
 6+#
 7+# This is a POSIX shell fragment
 8+#
 9+
 10+# Additional options that are passed to the Daemon.
 11+DAEMON_OPTS=""
Index: trunk/debs/oggvideotools/debian/manpage.1.ex
@@ -0,0 +1,59 @@
 2+.\" Hey, EMACS: -*- nroff -*-
 3+.\" First parameter, NAME, should be all caps
 4+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
 5+.\" other parameters are allowed: see man(7), man(1)
 6+.TH OGGVIDEOTOOLS SECTION "September 9, 2011"
 7+.\" Please adjust this date whenever revising the manpage.
 8+.\"
 9+.\" Some roff macros, for reference:
 10+.\" .nh disable hyphenation
 11+.\" .hy enable hyphenation
 12+.\" .ad l left justify
 13+.\" .ad b justify to both left and right margins
 14+.\" .nf disable filling
 15+.\" .fi enable filling
 16+.\" .br insert line break
 17+.\" .sp <n> insert n+1 empty lines
 18+.\" for manpage-specific macros, see man(7)
 19+.SH NAME
 20+oggvideotools \- program to do something
 21+.SH SYNOPSIS
 22+.B oggvideotools
 23+.RI [ options ] " files" ...
 24+.br
 25+.B bar
 26+.RI [ options ] " files" ...
 27+.SH DESCRIPTION
 28+This manual page documents briefly the
 29+.B oggvideotools
 30+and
 31+.B bar
 32+commands.
 33+.PP
 34+.\" TeX users may be more comfortable with the \fB<whatever>\fP and
 35+.\" \fI<whatever>\fP escape sequences to invode bold face and italics,
 36+.\" respectively.
 37+\fBoggvideotools\fP is a program that...
 38+.SH OPTIONS
 39+These programs follow the usual GNU command line syntax, with long
 40+options starting with two dashes (`-').
 41+A summary of options is included below.
 42+For a complete description, see the Info files.
 43+.TP
 44+.B \-h, \-\-help
 45+Show summary of options.
 46+.TP
 47+.B \-v, \-\-version
 48+Show version of program.
 49+.SH SEE ALSO
 50+.BR bar (1),
 51+.BR baz (1).
 52+.br
 53+The programs are documented fully by
 54+.IR "The Rise and Fall of a Fooish Bar" ,
 55+available via the Info system.
 56+.SH AUTHOR
 57+oggvideotools was written by <upstream author>.
 58+.PP
 59+This manual page was written by root <root@ragweed.knams.wikimedia.org>,
 60+for the Debian project (and may be used by others).
Index: trunk/debs/oggvideotools/debian/manpage.xml.ex
@@ -0,0 +1,291 @@
 2+<?xml version='1.0' encoding='UTF-8'?>
 3+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
 4+"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
 5+
 6+<!--
 7+
 8+`xsltproc -''-nonet \
 9+ -''-param man.charmap.use.subset "0" \
 10+ -''-param make.year.ranges "1" \
 11+ -''-param make.single.year.ranges "1" \
 12+ /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl \
 13+ manpage.xml'
 14+
 15+A manual page <package>.<section> will be generated. You may view the
 16+manual page with: nroff -man <package>.<section> | less'. A typical entry
 17+in a Makefile or Makefile.am is:
 18+
 19+DB2MAN = /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl
 20+XP = xsltproc -''-nonet -''-param man.charmap.use.subset "0"
 21+
 22+manpage.1: manpage.xml
 23+ $(XP) $(DB2MAN) $<
 24+
 25+The xsltproc binary is found in the xsltproc package. The XSL files are in
 26+docbook-xsl. A description of the parameters you can use can be found in the
 27+docbook-xsl-doc-* packages. Please remember that if you create the nroff
 28+version in one of the debian/rules file targets (such as build), you will need
 29+to include xsltproc and docbook-xsl in your Build-Depends control field.
 30+Alternatively use the xmlto command/package. That will also automatically
 31+pull in xsltproc and docbook-xsl.
 32+
 33+Notes for using docbook2x: docbook2x-man does not automatically create the
 34+AUTHOR(S) and COPYRIGHT sections. In this case, please add them manually as
 35+<refsect1> ... </refsect1>.
 36+
 37+To disable the automatic creation of the AUTHOR(S) and COPYRIGHT sections
 38+read /usr/share/doc/docbook-xsl/doc/manpages/authors.html. This file can be
 39+found in the docbook-xsl-doc-html package.
 40+
 41+Validation can be done using: `xmllint -''-noout -''-valid manpage.xml`
 42+
 43+General documentation about man-pages and man-page-formatting:
 44+man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/
 45+
 46+-->
 47+
 48+ <!-- Fill in your name for FIRSTNAME and SURNAME. -->
 49+ <!ENTITY dhfirstname "FIRSTNAME">
 50+ <!ENTITY dhsurname "SURNAME">
 51+ <!-- dhusername could also be set to "&firstname; &surname;". -->
 52+ <!ENTITY dhusername "root">
 53+ <!ENTITY dhemail "root@ragweed.knams.wikimedia.org">
 54+ <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
 55+ allowed: see man(7), man(1) and
 56+ http://www.tldp.org/HOWTO/Man-Page/q2.html. -->
 57+ <!ENTITY dhsection "SECTION">
 58+ <!-- TITLE should be something like "User commands" or similar (see
 59+ http://www.tldp.org/HOWTO/Man-Page/q2.html). -->
 60+ <!ENTITY dhtitle "oggvideotools User Manual">
 61+ <!ENTITY dhucpackage "OGGVIDEOTOOLS">
 62+ <!ENTITY dhpackage "oggvideotools">
 63+]>
 64+
 65+<refentry>
 66+ <refentryinfo>
 67+ <title>&dhtitle;</title>
 68+ <productname>&dhpackage;</productname>
 69+ <authorgroup>
 70+ <author>
 71+ <firstname>&dhfirstname;</firstname>
 72+ <surname>&dhsurname;</surname>
 73+ <contrib>Wrote this manpage for the Debian system.</contrib>
 74+ <address>
 75+ <email>&dhemail;</email>
 76+ </address>
 77+ </author>
 78+ </authorgroup>
 79+ <copyright>
 80+ <year>2007</year>
 81+ <holder>&dhusername;</holder>
 82+ </copyright>
 83+ <legalnotice>
 84+ <para>This manual page was written for the Debian system
 85+ (and may be used by others).</para>
 86+ <para>Permission is granted to copy, distribute and/or modify this
 87+ document under the terms of the GNU General Public License,
 88+ Version 2 or (at your option) any later version published by
 89+ the Free Software Foundation.</para>
 90+ <para>On Debian systems, the complete text of the GNU General Public
 91+ License can be found in
 92+ <filename>/usr/share/common-licenses/GPL</filename>.</para>
 93+ </legalnotice>
 94+ </refentryinfo>
 95+ <refmeta>
 96+ <refentrytitle>&dhucpackage;</refentrytitle>
 97+ <manvolnum>&dhsection;</manvolnum>
 98+ </refmeta>
 99+ <refnamediv>
 100+ <refname>&dhpackage;</refname>
 101+ <refpurpose>program to do something</refpurpose>
 102+ </refnamediv>
 103+ <refsynopsisdiv>
 104+ <cmdsynopsis>
 105+ <command>&dhpackage;</command>
 106+ <!-- These are several examples, how syntaxes could look -->
 107+ <arg choice="plain"><option>-e <replaceable>this</replaceable></option></arg>
 108+ <arg choice="opt"><option>--example=<parameter>that</parameter></option></arg>
 109+ <arg choice="opt">
 110+ <group choice="req">
 111+ <arg choice="plain"><option>-e</option></arg>
 112+ <arg choice="plain"><option>--example</option></arg>
 113+ </group>
 114+ <replaceable class="option">this</replaceable>
 115+ </arg>
 116+ <arg choice="opt">
 117+ <group choice="req">
 118+ <arg choice="plain"><option>-e</option></arg>
 119+ <arg choice="plain"><option>--example</option></arg>
 120+ </group>
 121+ <group choice="req">
 122+ <arg choice="plain"><replaceable>this</replaceable></arg>
 123+ <arg choice="plain"><replaceable>that</replaceable></arg>
 124+ </group>
 125+ </arg>
 126+ </cmdsynopsis>
 127+ <cmdsynopsis>
 128+ <command>&dhpackage;</command>
 129+ <!-- Normally the help and version options make the programs stop
 130+ right after outputting the requested information. -->
 131+ <group choice="opt">
 132+ <arg choice="plain">
 133+ <group choice="req">
 134+ <arg choice="plain"><option>-h</option></arg>
 135+ <arg choice="plain"><option>--help</option></arg>
 136+ </group>
 137+ </arg>
 138+ <arg choice="plain">
 139+ <group choice="req">
 140+ <arg choice="plain"><option>-v</option></arg>
 141+ <arg choice="plain"><option>--version</option></arg>
 142+ </group>
 143+ </arg>
 144+ </group>
 145+ </cmdsynopsis>
 146+ </refsynopsisdiv>
 147+ <refsect1 id="description">
 148+ <title>DESCRIPTION</title>
 149+ <para>This manual page documents briefly the
 150+ <command>&dhpackage;</command> and <command>bar</command>
 151+ commands.</para>
 152+ <para>This manual page was written for the Debian distribution
 153+ because the original program does not have a manual page.
 154+ Instead, it has documentation in the GNU <citerefentry>
 155+ <refentrytitle>info</refentrytitle>
 156+ <manvolnum>1</manvolnum>
 157+ </citerefentry> format; see below.</para>
 158+ <para><command>&dhpackage;</command> is a program that...</para>
 159+ </refsect1>
 160+ <refsect1 id="options">
 161+ <title>OPTIONS</title>
 162+ <para>The program follows the usual GNU command line syntax,
 163+ with long options starting with two dashes (`-'). A summary of
 164+ options is included below. For a complete description, see the
 165+ <citerefentry>
 166+ <refentrytitle>info</refentrytitle>
 167+ <manvolnum>1</manvolnum>
 168+ </citerefentry> files.</para>
 169+ <variablelist>
 170+ <!-- Use the variablelist.term.separator and the
 171+ variablelist.term.break.after parameters to
 172+ control the term elements. -->
 173+ <varlistentry>
 174+ <term><option>-e <replaceable>this</replaceable></option></term>
 175+ <term><option>--example=<replaceable>that</replaceable></option></term>
 176+ <listitem>
 177+ <para>Does this and that.</para>
 178+ </listitem>
 179+ </varlistentry>
 180+ <varlistentry>
 181+ <term><option>-h</option></term>
 182+ <term><option>--help</option></term>
 183+ <listitem>
 184+ <para>Show summary of options.</para>
 185+ </listitem>
 186+ </varlistentry>
 187+ <varlistentry>
 188+ <term><option>-v</option></term>
 189+ <term><option>--version</option></term>
 190+ <listitem>
 191+ <para>Show version of program.</para>
 192+ </listitem>
 193+ </varlistentry>
 194+ </variablelist>
 195+ </refsect1>
 196+ <refsect1 id="files">
 197+ <title>FILES</title>
 198+ <variablelist>
 199+ <varlistentry>
 200+ <term><filename>/etc/foo.conf</filename></term>
 201+ <listitem>
 202+ <para>The system-wide configuration file to control the
 203+ behaviour of <application>&dhpackage;</application>. See
 204+ <citerefentry>
 205+ <refentrytitle>foo.conf</refentrytitle>
 206+ <manvolnum>5</manvolnum>
 207+ </citerefentry> for further details.</para>
 208+ </listitem>
 209+ </varlistentry>
 210+ <varlistentry>
 211+ <term><filename>${HOME}/.foo.conf</filename></term>
 212+ <listitem>
 213+ <para>The per-user configuration file to control the
 214+ behaviour of <application>&dhpackage;</application>. See
 215+ <citerefentry>
 216+ <refentrytitle>foo.conf</refentrytitle>
 217+ <manvolnum>5</manvolnum>
 218+ </citerefentry> for further details.</para>
 219+ </listitem>
 220+ </varlistentry>
 221+ </variablelist>
 222+ </refsect1>
 223+ <refsect1 id="environment">
 224+ <title>ENVIONMENT</title>
 225+ <variablelist>
 226+ <varlistentry>
 227+ <term><envar>FOO_CONF</envar></term>
 228+ <listitem>
 229+ <para>If used, the defined file is used as configuration
 230+ file (see also <xref linkend="files"/>).</para>
 231+ </listitem>
 232+ </varlistentry>
 233+ </variablelist>
 234+ </refsect1>
 235+ <refsect1 id="diagnostics">
 236+ <title>DIAGNOSTICS</title>
 237+ <para>The following diagnostics may be issued
 238+ on <filename class="devicefile">stderr</filename>:</para>
 239+ <variablelist>
 240+ <varlistentry>
 241+ <term><errortext>Bad configuration file. Exiting.</errortext></term>
 242+ <listitem>
 243+ <para>The configuration file seems to contain a broken configuration
 244+ line. Use the <option>--verbose</option> option, to get more info.
 245+ </para>
 246+ </listitem>
 247+ </varlistentry>
 248+ </variablelist>
 249+ <para><command>&dhpackage;</command> provides some return codes, that can
 250+ be used in scripts:</para>
 251+ <segmentedlist>
 252+ <segtitle>Code</segtitle>
 253+ <segtitle>Diagnostic</segtitle>
 254+ <seglistitem>
 255+ <seg><errorcode>0</errorcode></seg>
 256+ <seg>Program exited successfully.</seg>
 257+ </seglistitem>
 258+ <seglistitem>
 259+ <seg><errorcode>1</errorcode></seg>
 260+ <seg>The configuration file seems to be broken.</seg>
 261+ </seglistitem>
 262+ </segmentedlist>
 263+ </refsect1>
 264+ <refsect1 id="bugs">
 265+ <!-- Or use this section to tell about upstream BTS. -->
 266+ <title>BUGS</title>
 267+ <para>The program is currently limited to only work
 268+ with the <package>foobar</package> library.</para>
 269+ <para>The upstreams <acronym>BTS</acronym> can be found
 270+ at <ulink url="http://bugzilla.foo.tld"/>.</para>
 271+ </refsect1>
 272+ <refsect1 id="see_also">
 273+ <title>SEE ALSO</title>
 274+ <!-- In alpabetical order. -->
 275+ <para><citerefentry>
 276+ <refentrytitle>bar</refentrytitle>
 277+ <manvolnum>1</manvolnum>
 278+ </citerefentry>, <citerefentry>
 279+ <refentrytitle>baz</refentrytitle>
 280+ <manvolnum>1</manvolnum>
 281+ </citerefentry>, <citerefentry>
 282+ <refentrytitle>foo.conf</refentrytitle>
 283+ <manvolnum>5</manvolnum>
 284+ </citerefentry></para>
 285+ <para>The programs are documented fully by <citetitle>The Rise and
 286+ Fall of a Fooish Bar</citetitle> available via the <citerefentry>
 287+ <refentrytitle>info</refentrytitle>
 288+ <manvolnum>1</manvolnum>
 289+ </citerefentry> system.</para>
 290+ </refsect1>
 291+</refentry>
 292+
Index: trunk/debs/oggvideotools/debian/manpage.sgml.ex
@@ -0,0 +1,154 @@
 2+<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
 3+
 4+<!-- Process this file with docbook-to-man to generate an nroff manual
 5+ page: `docbook-to-man manpage.sgml > manpage.1'. You may view
 6+ the manual page with: `docbook-to-man manpage.sgml | nroff -man |
 7+ less'. A typical entry in a Makefile or Makefile.am is:
 8+
 9+manpage.1: manpage.sgml
 10+ docbook-to-man $< > $@
 11+
 12+
 13+ The docbook-to-man binary is found in the docbook-to-man package.
 14+ Please remember that if you create the nroff version in one of the
 15+ debian/rules file targets (such as build), you will need to include
 16+ docbook-to-man in your Build-Depends control field.
 17+
 18+ -->
 19+
 20+ <!-- Fill in your name for FIRSTNAME and SURNAME. -->
 21+ <!ENTITY dhfirstname "<firstname>FIRSTNAME</firstname>">
 22+ <!ENTITY dhsurname "<surname>SURNAME</surname>">
 23+ <!-- Please adjust the date whenever revising the manpage. -->
 24+ <!ENTITY dhdate "<date>September 9, 2011</date>">
 25+ <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
 26+ allowed: see man(7), man(1). -->
 27+ <!ENTITY dhsection "<manvolnum>SECTION</manvolnum>">
 28+ <!ENTITY dhemail "<email>root@ragweed.knams.wikimedia.org</email>">
 29+ <!ENTITY dhusername "root">
 30+ <!ENTITY dhucpackage "<refentrytitle>OGGVIDEOTOOLS</refentrytitle>">
 31+ <!ENTITY dhpackage "oggvideotools">
 32+
 33+ <!ENTITY debian "<productname>Debian</productname>">
 34+ <!ENTITY gnu "<acronym>GNU</acronym>">
 35+ <!ENTITY gpl "&gnu; <acronym>GPL</acronym>">
 36+]>
 37+
 38+<refentry>
 39+ <refentryinfo>
 40+ <address>
 41+ &dhemail;
 42+ </address>
 43+ <author>
 44+ &dhfirstname;
 45+ &dhsurname;
 46+ </author>
 47+ <copyright>
 48+ <year>2003</year>
 49+ <holder>&dhusername;</holder>
 50+ </copyright>
 51+ &dhdate;
 52+ </refentryinfo>
 53+ <refmeta>
 54+ &dhucpackage;
 55+
 56+ &dhsection;
 57+ </refmeta>
 58+ <refnamediv>
 59+ <refname>&dhpackage;</refname>
 60+
 61+ <refpurpose>program to do something</refpurpose>
 62+ </refnamediv>
 63+ <refsynopsisdiv>
 64+ <cmdsynopsis>
 65+ <command>&dhpackage;</command>
 66+
 67+ <arg><option>-e <replaceable>this</replaceable></option></arg>
 68+
 69+ <arg><option>--example <replaceable>that</replaceable></option></arg>
 70+ </cmdsynopsis>
 71+ </refsynopsisdiv>
 72+ <refsect1>
 73+ <title>DESCRIPTION</title>
 74+
 75+ <para>This manual page documents briefly the
 76+ <command>&dhpackage;</command> and <command>bar</command>
 77+ commands.</para>
 78+
 79+ <para>This manual page was written for the &debian; distribution
 80+ because the original program does not have a manual page.
 81+ Instead, it has documentation in the &gnu;
 82+ <application>Info</application> format; see below.</para>
 83+
 84+ <para><command>&dhpackage;</command> is a program that...</para>
 85+
 86+ </refsect1>
 87+ <refsect1>
 88+ <title>OPTIONS</title>
 89+
 90+ <para>These programs follow the usual &gnu; command line syntax,
 91+ with long options starting with two dashes (`-'). A summary of
 92+ options is included below. For a complete description, see the
 93+ <application>Info</application> files.</para>
 94+
 95+ <variablelist>
 96+ <varlistentry>
 97+ <term><option>-h</option>
 98+ <option>--help</option>
 99+ </term>
 100+ <listitem>
 101+ <para>Show summary of options.</para>
 102+ </listitem>
 103+ </varlistentry>
 104+ <varlistentry>
 105+ <term><option>-v</option>
 106+ <option>--version</option>
 107+ </term>
 108+ <listitem>
 109+ <para>Show version of program.</para>
 110+ </listitem>
 111+ </varlistentry>
 112+ </variablelist>
 113+ </refsect1>
 114+ <refsect1>
 115+ <title>SEE ALSO</title>
 116+
 117+ <para>bar (1), baz (1).</para>
 118+
 119+ <para>The programs are documented fully by <citetitle>The Rise and
 120+ Fall of a Fooish Bar</citetitle> available via the
 121+ <application>Info</application> system.</para>
 122+ </refsect1>
 123+ <refsect1>
 124+ <title>AUTHOR</title>
 125+
 126+ <para>This manual page was written by &dhusername; &dhemail; for
 127+ the &debian; system (and may be used by others). Permission is
 128+ granted to copy, distribute and/or modify this document under
 129+ the terms of the &gnu; General Public License, Version 2 any
 130+ later version published by the Free Software Foundation.
 131+ </para>
 132+ <para>
 133+ On Debian systems, the complete text of the GNU General Public
 134+ License can be found in /usr/share/common-licenses/GPL.
 135+ </para>
 136+
 137+ </refsect1>
 138+</refentry>
 139+
 140+<!-- Keep this comment at the end of the file
 141+Local variables:
 142+mode: sgml
 143+sgml-omittag:t
 144+sgml-shorttag:t
 145+sgml-minimize-attributes:nil
 146+sgml-always-quote-attributes:t
 147+sgml-indent-step:2
 148+sgml-indent-data:t
 149+sgml-parent-document:nil
 150+sgml-default-dtd-file:nil
 151+sgml-exposed-tags:nil
 152+sgml-local-catalogs:nil
 153+sgml-local-ecat-files:nil
 154+End:
 155+-->
Index: trunk/debs/oggvideotools/debian/emacsen-startup.ex
@@ -0,0 +1,25 @@
 2+;; -*-emacs-lisp-*-
 3+;;
 4+;; Emacs startup file, e.g. /etc/emacs/site-start.d/50oggvideotools.el
 5+;; for the Debian oggvideotools package
 6+;;
 7+;; Originally contributed by Nils Naumann <naumann@unileoben.ac.at>
 8+;; Modified by Dirk Eddelbuettel <edd@debian.org>
 9+;; Adapted for dh-make by Jim Van Zandt <jrv@debian.org>
 10+
 11+;; The oggvideotools package follows the Debian/GNU Linux 'emacsen' policy and
 12+;; byte-compiles its elisp files for each 'emacs flavor' (emacs19,
 13+;; xemacs19, emacs20, xemacs20...). The compiled code is then
 14+;; installed in a subdirectory of the respective site-lisp directory.
 15+;; We have to add this to the load-path:
 16+(let ((package-dir (concat "/usr/share/"
 17+ (symbol-name flavor)
 18+ "/site-lisp/oggvideotools")))
 19+;; If package-dir does not exist, the oggvideotools package must have
 20+;; removed but not purged, and we should skip the setup.
 21+ (when (file-directory-p package-dir)
 22+ (setq load-path (cons package-dir load-path))
 23+ (autoload 'oggvideotools-mode "oggvideotools-mode"
 24+ "Major mode for editing oggvideotools files." t)
 25+ (add-to-list 'auto-mode-alist '("\\.oggvideotools$" . oggvideotools-mode))))
 26+
Index: trunk/debs/oggvideotools/debian/patches/series
@@ -1,2 +1 @@
2 -bashisms
3 -manpages
 2+fix-cmakelist.patch
Index: trunk/debs/oggvideotools/debian/patches/fix-cmakelist.patch
@@ -0,0 +1,11 @@
 2+Hijack cmake install prefix for packaging
 3+--- a/CMakeLists.txt
 4+@@ -147,6 +147,7 @@
 5+ SET(CPACK_RESOURCE_FILE_README "${CMAKE_SOURCE_DIR}/cpackInfo/ReadMe.rtf")
 6+ SET(CPACK_RESOURCE_FILE_WELCOME "${CMAKE_SOURCE_DIR}/cpackInfo/Welcome.rtf")
 7+ SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/cpackInfo/COPYING.rtf")
 8++SET(CMAKE_INSTALL_PREFIX "${CMAKE_SOURCE_DIR}/debian/oggvideotools/usr")
 9+ SET(CPACK_PACKAGE_VERSION_MAJOR "0")
 10+ SET(CPACK_PACKAGE_VERSION_MINOR "8")
 11+ SET(CPACK_PACKAGE_VERSION_PATCH "a")
Index: trunk/debs/oggvideotools/debian/changelog
@@ -1,8 +1,10 @@
2 -oggvideotools (0.8a) lucid-wikimedia; urgency=low
 2+oggvideotools (0.8a-1) lucid-wikimedia; urgency=low
33
4 - * initial wikimedia package build
 4+ * Initial packaging of CMake build based oggtools
 5+ - all new debian/*
 6+ * Minor bugfixes and enhancements
57
6 - -- peter youngmeister <py@wikimedia.org> Wed, 07 Sep 2011 10:12:16 -0700
 8+ -- Asher Feldman <afeldman@wikimedia.org> Fri, 09 Sep 2011 14:06:00 -0700
79
810 oggvideotools (0.8-1) unstable; urgency=low
911
Index: trunk/debs/oggvideotools/debian/docs
@@ -1,2 +1,6 @@
 2+CMakeLists.txt
 3+NEWS
24 README
 5+README.txt
 6+README.txt
37 TODO
Index: trunk/debs/oggvideotools/debian/emacsen-install.ex
@@ -0,0 +1,45 @@
 2+#! /bin/sh -e
 3+# /usr/lib/emacsen-common/packages/install/oggvideotools
 4+
 5+# Written by Jim Van Zandt <jrv@debian.org>, borrowing heavily
 6+# from the install scripts for gettext by Santiago Vila
 7+# <sanvila@ctv.es> and octave by Dirk Eddelbuettel <edd@debian.org>.
 8+
 9+FLAVOR=$1
 10+PACKAGE=oggvideotools
 11+
 12+if [ ${FLAVOR} = emacs ]; then exit 0; fi
 13+
 14+echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR}
 15+
 16+#FLAVORTEST=`echo $FLAVOR | cut -c-6`
 17+#if [ ${FLAVORTEST} = xemacs ] ; then
 18+# SITEFLAG="-no-site-file"
 19+#else
 20+# SITEFLAG="--no-site-file"
 21+#fi
 22+FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile"
 23+
 24+ELDIR=/usr/share/emacs/site-lisp/${PACKAGE}
 25+ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
 26+
 27+# Install-info-altdir does not actually exist.
 28+# Maybe somebody will write it.
 29+if test -x /usr/sbin/install-info-altdir; then
 30+ echo install/${PACKAGE}: install Info links for ${FLAVOR}
 31+ install-info-altdir --quiet --section "" "" --dirname=${FLAVOR} /usr/share/info/${PACKAGE}.info.gz
 32+fi
 33+
 34+install -m 755 -d ${ELCDIR}
 35+cd ${ELDIR}
 36+FILES=`echo *.el`
 37+cp ${FILES} ${ELCDIR}
 38+cd ${ELCDIR}
 39+
 40+cat << EOF > path.el
 41+(setq load-path (cons "." load-path) byte-compile-warnings nil)
 42+EOF
 43+${FLAVOR} ${FLAGS} ${FILES}
 44+rm -f *.el path.el
 45+
 46+exit 0
Index: trunk/debs/oggvideotools/debian/rules
@@ -1,18 +1,107 @@
22 #!/usr/bin/make -f
 3+# -*- makefile -*-
 4+# Sample debian/rules that uses debhelper.
 5+# This file was originally written by Joey Hess and Craig Small.
 6+# As a special exception, when this file is copied by dh-make into a
 7+# dh-make output file, you may use that output file without restriction.
 8+# This special exception was added by Craig Small in version 0.37 of dh-make.
39
4 -%:
5 - dh --with quilt $@
 10+# Uncomment this to turn on verbose mode.
 11+#export DH_VERBOSE=1
612
7 -override_dh_strip:
8 - dh_strip --dbg-package=oggvideotools-dbg
913
10 -# Put config.sub rules in until http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=559098 is fixed
11 -override_dh_auto_configure:
12 - ln -sf /usr/share/misc/config.sub admin
13 - ln -sf /usr/share/misc/config.guess admin
14 - dh_auto_configure
 14+# These are used for cross-compiling and for saving the configure script
 15+# from having to guess our platform (since we know it already)
 16+DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 17+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 18+ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
 19+CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
 20+else
 21+CROSS= --build $(DEB_BUILD_GNU_TYPE)
 22+endif
1523
16 -override_dh_auto_clean:
17 - dh_auto_clean
18 - rm -f admin/config.sub admin/config.guess
1924
 25+
 26+config.status: configure
 27+ dh_testdir
 28+ dh_quilt_patch
 29+ # Add here commands to configure the package.
 30+ifneq "$(wildcard /usr/share/misc/config.sub)" ""
 31+ cp -f /usr/share/misc/config.sub config.sub
 32+endif
 33+ifneq "$(wildcard /usr/share/misc/config.guess)" ""
 34+ cp -f /usr/share/misc/config.guess config.guess
 35+endif
 36+ ./configure $(CROSS) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
 37+
 38+
 39+build: build-stamp
 40+
 41+build-stamp: config.status
 42+ dh_testdir
 43+ # Add here commands to compile the package.
 44+ pwd
 45+ cd build ; pwd ; $(MAKE)
 46+ #docbook-to-man debian/oggvideotools.sgml > oggvideotools.1
 47+
 48+ touch $@
 49+
 50+clean:
 51+ dh_testdir
 52+ dh_testroot
 53+ dh_quilt_unpatch
 54+ rm -f build-stamp
 55+
 56+ # Add here commands to clean up after the build process.
 57+ [ ! -f Makefile ] || $(MAKE) distclean
 58+ rm -f config.sub config.guess
 59+
 60+ dh_clean
 61+
 62+install: build
 63+ dh_testdir
 64+ dh_testroot
 65+ dh_prep
 66+ dh_installdirs
 67+
 68+ # Add here commands to install the package into debian/oggvideotools.
 69+ #cd build ; $(MAKE) prefix=$(CURDIR)/debian/oggvideotools/usr install
 70+ cd build ; $(MAKE) install
 71+
 72+# Build architecture-independent files here.
 73+binary-indep: install
 74+# We have nothing to do by default.
 75+
 76+# Build architecture-dependent files here.
 77+binary-arch: install
 78+ dh_testdir
 79+ dh_testroot
 80+ dh_installchangelogs ChangeLog
 81+ dh_installdocs
 82+ dh_installexamples
 83+# dh_install
 84+# dh_installmenu
 85+# dh_installdebconf
 86+# dh_installlogrotate
 87+# dh_installemacsen
 88+# dh_installpam
 89+# dh_installmime
 90+# dh_python
 91+# dh_installinit
 92+# dh_installcron
 93+# dh_installinfo
 94+ dh_installman
 95+ dh_link
 96+ dh_strip
 97+ dh_compress
 98+ dh_fixperms
 99+# dh_perl
 100+# dh_makeshlibs
 101+ dh_installdeb
 102+ dh_shlibdeps
 103+ dh_gencontrol
 104+ dh_md5sums
 105+ dh_builddeb
 106+
 107+binary: binary-indep binary-arch
 108+.PHONY: build clean binary-indep binary-arch binary install
Index: trunk/debs/oggvideotools/debian/cron.d.ex
@@ -0,0 +1,4 @@
 2+#
 3+# Regular cron jobs for the oggvideotools package
 4+#
 5+0 4 * * * root [ -x /usr/bin/oggvideotools_maintenance ] && /usr/bin/oggvideotools_maintenance
Index: trunk/debs/oggvideotools/debian/postinst.ex
@@ -0,0 +1,39 @@
 2+#!/bin/sh
 3+# postinst script for oggvideotools
 4+#
 5+# see: dh_installdeb(1)
 6+
 7+set -e
 8+
 9+# summary of how this script can be called:
 10+# * <postinst> `configure' <most-recently-configured-version>
 11+# * <old-postinst> `abort-upgrade' <new version>
 12+# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
 13+# <new-version>
 14+# * <postinst> `abort-remove'
 15+# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
 16+# <failed-install-package> <version> `removing'
 17+# <conflicting-package> <version>
 18+# for details, see http://www.debian.org/doc/debian-policy/ or
 19+# the debian-policy package
 20+
 21+
 22+case "$1" in
 23+ configure)
 24+ ;;
 25+
 26+ abort-upgrade|abort-remove|abort-deconfigure)
 27+ ;;
 28+
 29+ *)
 30+ echo "postinst called with unknown argument \`$1'" >&2
 31+ exit 1
 32+ ;;
 33+esac
 34+
 35+# dh_installdeb will replace this with shell code automatically
 36+# generated by other debhelper scripts.
 37+
 38+#DEBHELPER#
 39+
 40+exit 0
Index: trunk/debs/oggvideotools/debian/postrm.ex
@@ -0,0 +1,37 @@
 2+#!/bin/sh
 3+# postrm script for oggvideotools
 4+#
 5+# see: dh_installdeb(1)
 6+
 7+set -e
 8+
 9+# summary of how this script can be called:
 10+# * <postrm> `remove'
 11+# * <postrm> `purge'
 12+# * <old-postrm> `upgrade' <new-version>
 13+# * <new-postrm> `failed-upgrade' <old-version>
 14+# * <new-postrm> `abort-install'
 15+# * <new-postrm> `abort-install' <old-version>
 16+# * <new-postrm> `abort-upgrade' <old-version>
 17+# * <disappearer's-postrm> `disappear' <overwriter>
 18+# <overwriter-version>
 19+# for details, see http://www.debian.org/doc/debian-policy/ or
 20+# the debian-policy package
 21+
 22+
 23+case "$1" in
 24+ purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
 25+ ;;
 26+
 27+ *)
 28+ echo "postrm called with unknown argument \`$1'" >&2
 29+ exit 1
 30+ ;;
 31+esac
 32+
 33+# dh_installdeb will replace this with shell code automatically
 34+# generated by other debhelper scripts.
 35+
 36+#DEBHELPER#
 37+
 38+exit 0
Index: trunk/debs/oggvideotools/debian/preinst.ex
@@ -0,0 +1,35 @@
 2+#!/bin/sh
 3+# preinst script for oggvideotools
 4+#
 5+# see: dh_installdeb(1)
 6+
 7+set -e
 8+
 9+# summary of how this script can be called:
 10+# * <new-preinst> `install'
 11+# * <new-preinst> `install' <old-version>
 12+# * <new-preinst> `upgrade' <old-version>
 13+# * <old-preinst> `abort-upgrade' <new-version>
 14+# for details, see http://www.debian.org/doc/debian-policy/ or
 15+# the debian-policy package
 16+
 17+
 18+case "$1" in
 19+ install|upgrade)
 20+ ;;
 21+
 22+ abort-upgrade)
 23+ ;;
 24+
 25+ *)
 26+ echo "preinst called with unknown argument \`$1'" >&2
 27+ exit 1
 28+ ;;
 29+esac
 30+
 31+# dh_installdeb will replace this with shell code automatically
 32+# generated by other debhelper scripts.
 33+
 34+#DEBHELPER#
 35+
 36+exit 0
Index: trunk/debs/oggvideotools/debian/init.d.ex
@@ -0,0 +1,157 @@
 2+#! /bin/sh
 3+#
 4+# skeleton example file to build /etc/init.d/ scripts.
 5+# This file should be used to construct scripts for /etc/init.d.
 6+#
 7+# Written by Miquel van Smoorenburg <miquels@cistron.nl>.
 8+# Modified for Debian
 9+# by Ian Murdock <imurdock@gnu.ai.mit.edu>.
 10+# Further changes by Javier Fernandez-Sanguino <jfs@debian.org>
 11+#
 12+# Version: @(#)skeleton 1.9 26-Feb-2001 miquels@cistron.nl
 13+#
 14+
 15+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
 16+DAEMON=/usr/sbin/oggvideotools
 17+NAME=oggvideotools
 18+DESC=oggvideotools
 19+
 20+test -x $DAEMON || exit 0
 21+
 22+LOGDIR=/var/log/oggvideotools
 23+PIDFILE=/var/run/$NAME.pid
 24+DODTIME=1 # Time to wait for the server to die, in seconds
 25+ # If this value is set too low you might not
 26+ # let some servers to die gracefully and
 27+ # 'restart' will not work
 28+
 29+# Include oggvideotools defaults if available
 30+if [ -f /etc/default/oggvideotools ] ; then
 31+ . /etc/default/oggvideotools
 32+fi
 33+
 34+set -e
 35+
 36+running_pid()
 37+{
 38+ # Check if a given process pid's cmdline matches a given name
 39+ pid=$1
 40+ name=$2
 41+ [ -z "$pid" ] && return 1
 42+ [ ! -d /proc/$pid ] && return 1
 43+ cmd=`cat /proc/$pid/cmdline | tr "\000" "\n"|head -n 1 |cut -d : -f 1`
 44+ # Is this the expected child?
 45+ [ "$cmd" != "$name" ] && return 1
 46+ return 0
 47+}
 48+
 49+running()
 50+{
 51+# Check if the process is running looking at /proc
 52+# (works for all users)
 53+
 54+ # No pidfile, probably no daemon present
 55+ [ ! -f "$PIDFILE" ] && return 1
 56+ # Obtain the pid and check it against the binary name
 57+ pid=`cat $PIDFILE`
 58+ running_pid $pid $DAEMON || return 1
 59+ return 0
 60+}
 61+
 62+force_stop() {
 63+# Forcefully kill the process
 64+ [ ! -f "$PIDFILE" ] && return
 65+ if running ; then
 66+ kill -15 $pid
 67+ # Is it really dead?
 68+ [ -n "$DODTIME" ] && sleep "$DODTIME"s
 69+ if running ; then
 70+ kill -9 $pid
 71+ [ -n "$DODTIME" ] && sleep "$DODTIME"s
 72+ if running ; then
 73+ echo "Cannot kill $LABEL (pid=$pid)!"
 74+ exit 1
 75+ fi
 76+ fi
 77+ fi
 78+ rm -f $PIDFILE
 79+ return 0
 80+}
 81+
 82+case "$1" in
 83+ start)
 84+ echo -n "Starting $DESC: "
 85+ start-stop-daemon --start --quiet --pidfile $PIDFILE \
 86+ --exec $DAEMON -- $DAEMON_OPTS
 87+ if running ; then
 88+ echo "$NAME."
 89+ else
 90+ echo " ERROR."
 91+ fi
 92+ ;;
 93+ stop)
 94+ echo -n "Stopping $DESC: "
 95+ start-stop-daemon --stop --quiet --pidfile $PIDFILE \
 96+ --exec $DAEMON
 97+ echo "$NAME."
 98+ ;;
 99+ force-stop)
 100+ echo -n "Forcefully stopping $DESC: "
 101+ force_stop
 102+ if ! running ; then
 103+ echo "$NAME."
 104+ else
 105+ echo " ERROR."
 106+ fi
 107+ ;;
 108+ #reload)
 109+ #
 110+ # If the daemon can reload its config files on the fly
 111+ # for example by sending it SIGHUP, do it here.
 112+ #
 113+ # If the daemon responds to changes in its config file
 114+ # directly anyway, make this a do-nothing entry.
 115+ #
 116+ # echo "Reloading $DESC configuration files."
 117+ # start-stop-daemon --stop --signal 1 --quiet --pidfile \
 118+ # /var/run/$NAME.pid --exec $DAEMON
 119+ #;;
 120+ force-reload)
 121+ #
 122+ # If the "reload" option is implemented, move the "force-reload"
 123+ # option to the "reload" entry above. If not, "force-reload" is
 124+ # just the same as "restart" except that it does nothing if the
 125+ # daemon isn't already running.
 126+ # check wether $DAEMON is running. If so, restart
 127+ start-stop-daemon --stop --test --quiet --pidfile \
 128+ /var/run/$NAME.pid --exec $DAEMON \
 129+ && $0 restart \
 130+ || exit 0
 131+ ;;
 132+ restart)
 133+ echo -n "Restarting $DESC: "
 134+ start-stop-daemon --stop --quiet --pidfile \
 135+ /var/run/$NAME.pid --exec $DAEMON
 136+ [ -n "$DODTIME" ] && sleep $DODTIME
 137+ start-stop-daemon --start --quiet --pidfile \
 138+ /var/run/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS
 139+ echo "$NAME."
 140+ ;;
 141+ status)
 142+ echo -n "$LABEL is "
 143+ if running ; then
 144+ echo "running"
 145+ else
 146+ echo " not running."
 147+ exit 1
 148+ fi
 149+ ;;
 150+ *)
 151+ N=/etc/init.d/$NAME
 152+ # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
 153+ echo "Usage: $N {start|stop|restart|force-reload|status|force-stop}" >&2
 154+ exit 1
 155+ ;;
 156+esac
 157+
 158+exit 0
Index: trunk/debs/oggvideotools/debian/prerm.ex
@@ -0,0 +1,38 @@
 2+#!/bin/sh
 3+# prerm script for oggvideotools
 4+#
 5+# see: dh_installdeb(1)
 6+
 7+set -e
 8+
 9+# summary of how this script can be called:
 10+# * <prerm> `remove'
 11+# * <old-prerm> `upgrade' <new-version>
 12+# * <new-prerm> `failed-upgrade' <old-version>
 13+# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
 14+# * <deconfigured's-prerm> `deconfigure' `in-favour'
 15+# <package-being-installed> <version> `removing'
 16+# <conflicting-package> <version>
 17+# for details, see http://www.debian.org/doc/debian-policy/ or
 18+# the debian-policy package
 19+
 20+
 21+case "$1" in
 22+ remove|upgrade|deconfigure)
 23+ ;;
 24+
 25+ failed-upgrade)
 26+ ;;
 27+
 28+ *)
 29+ echo "prerm called with unknown argument \`$1'" >&2
 30+ exit 1
 31+ ;;
 32+esac
 33+
 34+# dh_installdeb will replace this with shell code automatically
 35+# generated by other debhelper scripts.
 36+
 37+#DEBHELPER#
 38+
 39+exit 0
Index: trunk/debs/oggvideotools/debian/dirs
@@ -0,0 +1,2 @@
 2+usr/bin
 3+usr/sbin
Index: trunk/debs/oggvideotools/debian/copyright
@@ -1,42 +1,28 @@
2 -This package was debianized by Jan Gerber <j@v2v.cc> on
3 -Thu, 10 Aug 2009 18:55:02 +0200.
 2+This package was debianized by root <root@ragweed.knams.wikimedia.org> on
 3+Fri, 09 Sep 2011 01:37:57 +0000.
44
5 -The debian package is co-maintained by:
6 - Jan Gerber <j@v2v.cc>
7 - John Ferlito <johnf@inodes.org>
 5+It was downloaded from <url://example.com>
86
9 -It was downloaded from
10 - https://oggvideotools.svn.sourceforge.net/svnroot/oggvideotools/trunk
 7+Upstream Author(s):
118
12 -Upstream Author: Joern Seger (Yorn) yorn_at_gmx.net
 9+ <put author's name and email here>
 10+ <likewise for another author>
1311
14 -Copyright and license terms:
 12+Copyright:
1513
16 - Copyright © 2008 Joern Seger
 14+ <Copyright (C) YYYY Name OfAuthor>
 15+ <likewise for another author>
1716
18 - This program is free software; you can redistribute it and/or modify
19 - it under the terms of the GNU General Public License as published by
20 - the Free Software Foundation; either version 2 of the License, or
21 - (at your option) any later version.
 17+License:
2218
23 - This program is distributed in the hope that it will be useful,
24 - but WITHOUT ANY WARRANTY; without even the implied warranty of
25 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26 - GNU General Public License for more details.
 19+ <Put the license of the package here indented by 4 spaces>
2720
28 - You should have received a copy of the GNU General Public License
29 - along with this program; if not, write to the Free Software
30 - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
31 - MA 02110-1301, USA.
 21+The Debian packaging is:
3222
33 -On Debian systems, the full text of the GNU General Public License is available
34 -in /usr/share/common-licenses/GPL-2.
 23+ Copyright (C) 2011 root <root@ragweed.knams.wikimedia.org>
3524
36 -Copyright and license terms for src/libresample/*:
 25+and is licensed under the GPL version 3,
 26+see `/usr/share/common-licenses/GPL-3'.
3727
38 - Copyright Dominic Mazzoni
39 -
40 - Licensed under LGPL Version 2.1
41 -
42 -On Debian systems, the full text of the GNU Lesser General Public License is available
43 -in /usr/share/common-licenses/LGPL-2.1.
 28+# Please also look if there are files or directories which have a
 29+# different copyright/license attached and list them here.
Index: trunk/debs/oggvideotools/debian/oggvideotools.doc-base.EX
@@ -0,0 +1,20 @@
 2+Document: oggvideotools
 3+Title: Debian oggvideotools Manual
 4+Author: <insert document author here>
 5+Abstract: This manual describes what oggvideotools is
 6+ and how it can be used to
 7+ manage online manuals on Debian systems.
 8+Section: unknown
 9+
 10+Format: debiandoc-sgml
 11+Files: /usr/share/doc/oggvideotools/oggvideotools.sgml.gz
 12+
 13+Format: postscript
 14+Files: /usr/share/doc/oggvideotools/oggvideotools.ps.gz
 15+
 16+Format: text
 17+Files: /usr/share/doc/oggvideotools/oggvideotools.text.gz
 18+
 19+Format: HTML
 20+Index: /usr/share/doc/oggvideotools/html/index.html
 21+Files: /usr/share/doc/oggvideotools/html/*.html

Status & tagging log