--- ushare-1.1a.orig/debian/changelog +++ ushare-1.1a/debian/changelog @@ -0,0 +1,41 @@ +ushare (1.1a-0ubuntu6) oneiric; urgency=low + + * Use dh-translations rather than cdbs langpack.mk (which no longer + exists). + + -- Colin Watson Fri, 19 Aug 2011 13:14:12 +0100 + +ushare (1.1a-0ubuntu5) lucid; urgency=low + + * Update copyright dates + * Change compat to 7 + * Add backport r427 to fix the names in ushare.conf (LP: #250122) + * Fix script restart (LP: #378788) + * Fix launching order sequence (LP: #386965) + * Remove /sbin path in config maintainer script + + -- Alexis Saettler Sat, 16 Jan 2010 13:36:16 +0100 + +ushare (1.1a-0ubuntu4) karmic; urgency=low + + * No-change rebuild to pick up new shlibs file of ffmpeg. + + -- Stefan Potyra Sat, 29 Aug 2009 23:37:40 +0200 + +ushare (1.1a-0ubuntu3) jaunty; urgency=low + + * Rebuild to pickup ffmpeg's new shlibs (LP: #289600) + + -- Lionel Le Folgoc Sat, 15 Nov 2008 17:03:40 +0100 + +ushare (1.1a-0ubuntu2) intrepid; urgency=low + + * Rebuild for the ffmpeg -> ffmpeg-free transition (LP: #245571). + + -- Michael Bienia Tue, 08 Jul 2008 15:46:37 +0200 + +ushare (1.1a-0ubuntu1) hardy; urgency=low + + * initial release in ubuntu (LP: #188629) + + -- Alexis Saettler Sun, 03 Feb 2008 15:56:51 +0100 --- ushare-1.1a.orig/debian/rules +++ ushare-1.1a/debian/rules @@ -0,0 +1,40 @@ +#!/usr/bin/make -f + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/makefile.mk +include /usr/share/cdbs/1/rules/simple-patchsys.mk + +DEB_INSTALL_CHANGELOGS_ALL := ChangeLog +DEB_INSTALL_DIRS_ushare := /usr/share/ushare +DEB_INSTALL_MANPAGES_ushare := src/ushare.1 +USHARE_INIT := $(CURDIR)/debian/ushare.init +DEB_UPDATE_RCD_PARAMS_ushare := defaults 80 20 + +# make targets +DEB_MAKE_CLEAN_TARGET := distclean +DEB_MAKE_BUILD_TARGET := +DEB_MAKE_INSTALL_TARGET := install DESTDIR=$(DEB_DESTDIR) + +# configure options +DEB_CONFIGURE_NORMAL_ARGS += --enable-debug +DEB_CONFIGURE_NORMAL_ARGS += --enable-dlna +DEB_CONFIGURE_PREFIXS += --prefix=/usr +DEB_CONFIGURE_PREFIXS += --sysconfdir=/etc + + +configure/ushare:: + [ -f config.mak ] || ./configure $(DEB_CONFIGURE_NORMAL_ARGS) $(DEB_CONFIGURE_PREFIXS) + +# copy init script, to use with dh_installinit +install/ushare:: + cp $(CURDIR)/scripts/ushare $(USHARE_INIT) + mv $(CURDIR)/debian/$(cdbs_curpkg)/etc/ushare.conf $(CURDIR)/debian/$(cdbs_curpkg)/usr/share/ushare/ + sed -i -e "s%\(/etc/ushare.conf\)%\1\n# Edit this file with 'dpkg-reconfigure $(cdbs_curpkg)'%" \ + $(CURDIR)/debian/$(cdbs_curpkg)/usr/share/ushare/ushare.conf + +binary-install/ushare:: + dh_translations -p$(cdbs_curpkg) + + +clean:: + debconf-updatepo --- ushare-1.1a.orig/debian/watch +++ ushare-1.1a/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://ushare.geexbox.org/releases/ushare-(.*)\.tar\.bz2 --- ushare-1.1a.orig/debian/ushare.postinst +++ ushare-1.1a/debian/ushare.postinst @@ -0,0 +1,26 @@ +#!/bin/sh +CONFIGFILE=/etc/ushare.conf + +set -e +. /usr/share/debconf/confmodule + +update_conf() { + VARIABLE=$1 + VAL=$2 + sed -i -e "s%^[[:space:]]*$VARIABLE=.*%$VARIABLE=$VAL%" $CONFIGFILE +} + +if [ ! -e $CONFIGFILE ]; then + install -m 644 /usr/share/ushare/ushare.conf $CONFIGFILE +fi + +db_get ushare/name +update_conf USHARE_NAME "$RET" + +db_get ushare/iface +update_conf USHARE_IFACE "$RET" + +db_get ushare/share +update_conf USHARE_DIR "$RET" + +#DEBHELPER# --- ushare-1.1a.orig/debian/clean +++ ushare-1.1a/debian/clean @@ -0,0 +1,2 @@ +debian/ushare.init + --- ushare-1.1a.orig/debian/compat +++ ushare-1.1a/debian/compat @@ -0,0 +1 @@ +7 --- ushare-1.1a.orig/debian/ushare.templates +++ ushare-1.1a/debian/ushare.templates @@ -0,0 +1,21 @@ +Template: ushare/name +Type: string +Default: uShare +_Description: uShare's name: + Set UPnP friendly name. This is the name of this computer shares, + seen by UPnP clients. + +Template: ushare/iface +Type: select +Choices: ${ifaces} +Default: eth0 +_Description: Network interface: + Set network interface to use for sharing the content. + If your interface is not on the list, please edit the file + "${configfile}" manualy. + +Template: ushare/share +Type: string +Default: +_Description: Shared directories: + Set the directories to share with uShare. --- ushare-1.1a.orig/debian/control +++ ushare-1.1a/debian/control @@ -0,0 +1,24 @@ +Source: ushare +Section: devel +Priority: optional +Maintainer: Ubuntu MOTU Developers +Uploaders: Alexis Saettler +XSBC-Original-Maintainer: Alexis Saettler +Homepage: http://ushare.geexbox.org +Build-Depends: debhelper (>= 7.3.15), cdbs (>= 0.4.59), libupnp-dev (>= 1.4.2), libdlna-dev (>= 0.2.1), pkg-config, po-debconf, dh-translations +Standards-Version: 3.8.3 +Vcs-Hg: http://hg.geexbox.org/ushare +Vcs-Browser: http://hg.geexbox.org/ushare/summary + +Package: ushare +Architecture: any +Depends: ${misc:Depends}, ${shlibs:Depends} +Description: lightweight UPnP A/V Media Server + GeeXboX uShare is a UPnP (TM) A/V Media Server. It implements the server + component that provides UPnP media devices with information on available + multimedia files. uShare uses the built-in http server of libupnp to stream + the files to clients. + . + uShare is written in C for the GeeXboX project. It is designed to provide + access to multimedia contents to GeeXboX but can of course be used by any + other UPnP client device. --- ushare-1.1a.orig/debian/copyright +++ ushare-1.1a/debian/copyright @@ -0,0 +1,35 @@ +This package was debianized by Alexis Saettler on +Sat, 29 Oct 2005 17:56:07 +0200. + +It was downloaded from http://ushare.geexbox.org/ + +Upstream Author: + Benjamin Zores + Alexis Saettler + +Includes code from ‘src/gettext.h’: + Copyright © 1995-1998, 2000-2002, 2004 Free Software Foundation, Inc. + +Copyright © 2005-2010 Benjamin Zores + +License: GPL + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 dated June, 1991. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + MA 02110-1301, USA. + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL-2'. + +The Debian packaging is © 2007-2010, Alexis Saettler and +is licensed under the GPL, see `/usr/share/common-licenses/GPL-2'. --- ushare-1.1a.orig/debian/ushare.config +++ ushare-1.1a/debian/ushare.config @@ -0,0 +1,30 @@ +#!/bin/sh +CONFIGFILE=/etc/ushare.conf +DEFAULT_USHARE_NAME=uShare +DEFAULT_USHARE_IFACE=eth0 + +set -e +. /usr/share/debconf/confmodule + +if [ -e $CONFIGFILE ]; then + . $CONFIGFILE || true + [ -z "$USHARE_NAME" ] && USHARE_NAME="$DEFAULT_USHARE_NAME" + db_set ushare/name "$USHARE_NAME" + [ -z "$USHARE_IFACE" ] && USHARE_IFACE="$DEFAULT_USHARE_IFACE" + db_set ushare/iface "$USHARE_IFACE" + db_set ushare/share "$USHARE_DIR" +fi + +IFACES=$(ifconfig -s -a | tail --lines=+2 | awk '{ print $1;}') || "" +if `echo $IFACES | grep -q -v "$USHARE_IFACE"`; then + IFACES=$USHARE_IFACE" $IFACES" +fi +db_subst ushare/iface ifaces $(echo $IFACES | sed -e "s/ /, /g") || true +db_subst ushare/iface configfile $CONFIGFILE || true + +db_beginblock +db_input medium ushare/name || true +db_input medium ushare/iface || true +db_input medium ushare/share || true +db_endblock +db_go || true --- ushare-1.1a.orig/debian/patches/02-add-sleep.patch +++ ushare-1.1a/debian/patches/02-add-sleep.patch @@ -0,0 +1,11 @@ +diff -Nur -x '*.orig' -x '*~' ushare-1.1a/scripts/ushare ushare-1.1a.new/scripts/ushare +--- ushare-1.1a/scripts/ushare 2007-12-09 14:03:36.000000000 +0100 ++++ ushare-1.1a.new/scripts/ushare 2010-01-16 13:49:53.000000000 +0100 +@@ -70,6 +70,7 @@ + ;; + restart) + $0 stop ++ sleep 1 + $0 start + ;; + *) --- ushare-1.1a.orig/debian/patches/01-r427-fix-ushare-conf.patch +++ ushare-1.1a/debian/patches/01-r427-fix-ushare-conf.patch @@ -0,0 +1,28 @@ +http://hg.geexbox.org/ushare/raw-diff/cc1d526908cb/scripts/ushare.conf + +--- a/scripts/ushare.conf Mon Nov 12 20:39:46 2007 +0100 ++++ b/scripts/ushare.conf Sun Dec 16 17:58:50 2007 +0100 +@@ -31,15 +31,15 @@ + USHARE_OVERRIDE_ICONV_ERR= + + # Enable Web interface (yes/no) +-ENABLE_WEB= ++USHARE_ENABLE_WEB= + + # Enable Telnet control interface (yes/no) +-ENABLE_TELNET= ++USHARE_ENABLE_TELNET= + + # Use XboX 360 compatibility mode (yes/no) +-ENABLE_XBOX= ++USHARE_ENABLE_XBOX= + + # Use DLNA profile (yes/no) + # This is needed for PlayStation3 to work (among other devices) +-ENABLE_DLNA= ++USHARE_ENABLE_DLNA= + + + + + --- ushare-1.1a.orig/debian/po/fr.po +++ ushare-1.1a/debian/po/fr.po @@ -0,0 +1,58 @@ +# +msgid "" +msgstr "" +"Project-Id-Version: ushare 1.0\n" +"Report-Msgid-Bugs-To: ubuntu-motu@lists.ubuntu.com\n" +"POT-Creation-Date: 2007-07-15 19:35+0200\n" +"PO-Revision-Date: 2007-07-15 19:35+0200\n" +"Last-Translator: Alexis Saettler \n" +"Language-Team: French \n" +"Language: fr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: string +#. Description +#: ../ushare.templates:1001 +msgid "uShare's name:" +msgstr "Nom de uShare :" + +#. Type: string +#. Description +#: ../ushare.templates:1001 +msgid "" +"Set UPnP friendly name. This is the name of this computer shares, seen by " +"UPnP clients." +msgstr "" +"Défini le nom UPnP. Ceci est le nom de partage de cet ordinateur, tel qu'il " +"sera vu par les clients UPnP." + +#. Type: select +#. Description +#: ../ushare.templates:2001 +msgid "Network interface:" +msgstr "Interface réseau :" + +#. Type: select +#. Description +#: ../ushare.templates:2001 +msgid "" +"Set network interface to use for sharing the content. If your interface is " +"not on the list, please edit the file \"${configfile}\" manualy." +msgstr "" +"Défini l'interface réseau à utiliser pour partager le contenu. Si votre " +"interface n'apparaît pas dans la liste, merci d'éditer le fichier " +"\"${configfile}\" manuellement." + +#. Type: string +#. Description +#: ../ushare.templates:3001 +msgid "Shared directories:" +msgstr "Répertoires à partager :" + +#. Type: string +#. Description +#: ../ushare.templates:3001 +msgid "Set the directories to share with uShare." +msgstr "Défini les répertoires à partager par uShare." --- ushare-1.1a.orig/debian/po/POTFILES.in +++ ushare-1.1a/debian/po/POTFILES.in @@ -0,0 +1 @@ +[type: gettext/rfc822deb] ushare.templates --- ushare-1.1a.orig/debian/po/templates.pot +++ ushare-1.1a/debian/po/templates.pot @@ -0,0 +1,57 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: ubuntu-motu@lists.ubuntu.com\n" +"POT-Creation-Date: 2007-07-15 19:35+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: string +#. Description +#: ../ushare.templates:1001 +msgid "uShare's name:" +msgstr "" + +#. Type: string +#. Description +#: ../ushare.templates:1001 +msgid "" +"Set UPnP friendly name. This is the name of this computer shares, seen by " +"UPnP clients." +msgstr "" + +#. Type: select +#. Description +#: ../ushare.templates:2001 +msgid "Network interface:" +msgstr "" + +#. Type: select +#. Description +#: ../ushare.templates:2001 +msgid "" +"Set network interface to use for sharing the content. If your interface is " +"not on the list, please edit the file \"${configfile}\" manualy." +msgstr "" + +#. Type: string +#. Description +#: ../ushare.templates:3001 +msgid "Shared directories:" +msgstr "" + +#. Type: string +#. Description +#: ../ushare.templates:3001 +msgid "Set the directories to share with uShare." +msgstr ""