--- deluge-torrent-0.5.8.3.orig/debian/control +++ deluge-torrent-0.5.8.3/debian/control @@ -0,0 +1,20 @@ +Source: deluge-torrent +Section: net +Priority: optional +Maintainer: Adam Cécile (Le_Vert) +Build-Depends: debhelper (>= 5.0.37.2), python-all-dev (>= 2.3.5-11), python-all, python-support (>= 0.5.3), libboost-dev (>= 1.34), libboost-thread-dev (>= 1.34), libboost-date-time-dev (>= 1.34), libboost-filesystem-dev (>= 1.34), libboost-serialization-dev (>= 1.34), libboost-program-options-dev (>= 1.34), libboost-regex-dev (>= 1.34), zlib1g-dev, libssl-dev, dpatch, imagemagick +Homepage: http://www.deluge-torrent.org/ +Standards-Version: 3.7.3 + +Package: deluge-torrent +Architecture: any +Depends: ${shlibs:Depends}, ${python:Depends}, python-gtk2, python-glade2, python-xdg, python-notify, notification-daemon, python-dbus, librsvg2-common, python-pyopenssl +Recommends: python-gnome2-extras +Description: A Bittorrent client written in Python/PyGTK + Deluge is a Bittorrent client, created using Python and GTK+. + . + Deluge is intended to bring a native, full-featured client to Linux GTK + desktop environments such as GNOME and XFCE. + . + It uses Rasterbar's version of libtorrent, and python bindings written + by Kripkenstein. --- deluge-torrent-0.5.8.3.orig/debian/deluge-torrent.desktop +++ deluge-torrent-0.5.8.3/debian/deluge-torrent.desktop @@ -0,0 +1,13 @@ +[Desktop Entry] +Version=1.0 +Name=Deluge BitTorrent Client +Comment=Bittorrent client written in PyGTK +Comment[fr]=Client Bittorrent écrit en PyGTK +Comment[pt_BR]=Cliente Bittorrent escrito em PyGTK +Exec=deluge +Icon=deluge-torrent +Terminal=false +Type=Application +Categories=Network +StartupNotify=true +MimeType=application/x-bittorrent; --- deluge-torrent-0.5.8.3.orig/debian/manpages +++ deluge-torrent-0.5.8.3/debian/manpages @@ -0,0 +1 @@ +debian/deluge.1 --- deluge-torrent-0.5.8.3.orig/debian/pyversions +++ deluge-torrent-0.5.8.3/debian/pyversions @@ -0,0 +1 @@ +2.4- --- deluge-torrent-0.5.8.3.orig/debian/patches/002-Do_not_check_for_update_as_default.dpatch +++ deluge-torrent-0.5.8.3/debian/patches/002-Do_not_check_for_update_as_default.dpatch @@ -0,0 +1,21 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 002-Do_check_for_update_as_default.dpatch +## by Adam Cécile (Le_Vert) +## +## DP: Disable auto upstream check for updates as default. +## DP: Users can still enable it throught he preferences menus. + +@DPATCH@ + +diff -u deluge-torrent-0.5.5/src/pref.py deluge-torrent-0.5.5/src/pref.py.new +--- deluge-torrent-0.5.5/src/pref.py 2007-09-03 09:14:45.000000000 +0200 ++++ deluge-torrent-0.5.5/src/pref.py.new 2007-09-09 22:39:22.000000000 +0200 +@@ -118,7 +118,7 @@ + "use_lsd" : False, + "use_utpex" : True, + "window_height" : 480, +- "new_releases" : True, ++ "new_releases" : False, + "window_maximized" : False, + "window_pane_position" : -1, + "window_width" : 640, --- deluge-torrent-0.5.8.3.orig/debian/patches/00list +++ deluge-torrent-0.5.8.3/debian/patches/00list @@ -0,0 +1,4 @@ +001-Fix_CFLAGS_handling.dpatch +002-Do_not_check_for_update_as_default.dpatch +003-Fix_tray_icon.dpatch +004-GNU_kFreeBSD.dpatch --- deluge-torrent-0.5.8.3.orig/debian/patches/003-Fix_tray_icon.dpatch +++ deluge-torrent-0.5.8.3/debian/patches/003-Fix_tray_icon.dpatch @@ -0,0 +1,20 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 003-Fix_tray_icon.dpatch +## by Mathias Brodala +## +## DP: Use current theme deluge-torrent icon, instead of an hardcoded one. + +@DPATCH@ + +diff -u deluge-torrent-0.5.6.1/src/interface.py deluge-torrent-0.5.6.1/src/interface.py.new +--- deluge-torrent-0.5.6.1/src/interface.py 2007-10-30 17:05:27.573727535 +0100 ++++ deluge-torrent-0.5.6.1/src/interface.py.new 2007-10-30 17:07:58.734341690 +0100 +@@ -224,7 +224,7 @@ + self.manager.resume_all() + + def build_tray_icon(self): +- self.tray_icon = gtk.status_icon_new_from_icon_name('deluge') ++ self.tray_icon = gtk.status_icon_new_from_icon_name('deluge-torrent') + + self.tray_glade = gtk.glade.XML(common.get_glade_file\ + ("tray_menu.glade"), domain='deluge') --- deluge-torrent-0.5.8.3.orig/debian/patches/004-GNU_kFreeBSD.dpatch +++ deluge-torrent-0.5.8.3/debian/patches/004-GNU_kFreeBSD.dpatch @@ -0,0 +1,28 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 004-GNU_kFreeBSD.dpatch +## by Aurelien Jarno +## +## DP: Add support for GNU/kFreeBSD + +@DPATCH@ + +--- deluge-torrent-0.5.7.1~debian.orig/libtorrent/src/enum_net.cpp ++++ deluge-torrent-0.5.7.1~debian/libtorrent/src/enum_net.cpp +@@ -50,7 +50,7 @@ + { + std::vector
ret; + +-#if defined __linux__ || defined __MACH__ || defined(__FreeBSD__) ++#if defined __linux__ || defined __MACH__ || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) + int s = socket(AF_INET, SOCK_DGRAM, 0); + if (s < 0) + { +@@ -90,7 +90,7 @@ + ret.push_back(address_v6(b)); + } + +-#if defined __MACH__ || defined(__FreeBSD__) ++#if defined __MACH__ || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) + int current_size = item.ifr_addr.sa_len + IFNAMSIZ; + #elif defined __linux__ + int current_size = sizeof(ifreq); --- deluge-torrent-0.5.8.3.orig/debian/patches/001-Fix_CFLAGS_handling.dpatch +++ deluge-torrent-0.5.8.3/debian/patches/001-Fix_CFLAGS_handling.dpatch @@ -0,0 +1,36 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 001-Fix_CFLAGS_handling.dpatch +## by Adam Cécile (Le_Vert) +## +## DP: Do not add auto-defined CFLAGS. + +@DPATCH@ + +diff -u deluge-torrent-0.5.6.1/setup.py deluge-torrent-0.5.6.1/setup.py.new +--- deluge-torrent-0.5.6.1/setup.py 2007-10-30 17:00:43.501539188 +0100 ++++ deluge-torrent-0.5.6.1/setup.py.new 2007-10-30 17:04:08.561224874 +0100 +@@ -103,9 +103,10 @@ + "-DHAVE_INCLUDE_LIBTORRENT_ASIO_SSL_STREAM_HPP=1", + "-DHAVE_INCLUDE_LIBTORRENT_ASIO_IP_TCP_HPP=1", + "-DHAVE_PTHREAD=1", "-DTORRENT_USE_OPENSSL=1", "-DHAVE_SSL=1", +- "-DNDEBUG=1", "-O2"] +- if ARCH == "x64": +- EXTRA_COMPILE_ARGS.append("-DAMD64") ++ "-DNDEBUG=1"] ++# Done through debian/rules, as all arches are not handled ++# if ARCH == "x64": ++# EXTRA_COMPILE_ARGS.append("-DAMD64") + + includedirs = ['./libtorrent', './libtorrent/include', + './libtorrent/include/libtorrent', +@@ -151,6 +152,10 @@ + EXTRA_LINK_ARGS = ['-L.\win32\lib'] + includedirs = ['./libtorrent', './libtorrent/include', './libtorrent/include/libtorrent', './win32/include'] + ++# We don't want any "auto-defined" FLAGS, overwrite what's been defined above ++sysconfig.get_config_vars()["CFLAGS"] = '' ++sysconfig.get_config_vars()["OPT"] = '' ++ + # NOTE: The Rasterbar Libtorrent source code is in the libtorrent/ directory + # inside of Deluge's source tarball. On several occasions, it has been + # pointed out to us that we should build against the system's installed --- deluge-torrent-0.5.8.3.orig/debian/links +++ deluge-torrent-0.5.8.3/debian/links @@ -0,0 +1 @@ +/usr/share/pixmaps/deluge-torrent-32.xpm /usr/share/pixmaps/deluge-torrent.xpm --- deluge-torrent-0.5.8.3.orig/debian/deluge.1 +++ deluge-torrent-0.5.8.3/debian/deluge.1 @@ -0,0 +1,34 @@ +.TH DELUGE 1 "March 2007" "0.5.0" + +.SH NAME +deluge - a Bittorrent client written in Python/PyGTK. + +.SH SYNOPSIS +.B deluge [options] [torrent] + +.SH DESCRIPTION +.B deluge +is a Bittorrent client, created using Python and GTK+. +.br +Deluge is intended to bring a native, full-featured client to Linux GTK desktop environments such as Gnome and XFCE. +.br +It uses Rasterbar's version of libtorrent, and python bindings writte by Kripkenstein. + +.SH OPTIONS +.TP +.I -tray +Start deluge minimized to tray. +.TP +.I [torrent] +List of ".torrent" files to add to the download queue. + +.SH SEE ALSO +.B Homepage: +http://www.deluge-torrent.org/ + +.SH AUTHOR +This manual page was written by Adam Cecile for the Debian system (but may be used by others). +.br +Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 or any later version published by the Free Software Foundation +.br +On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL. --- deluge-torrent-0.5.8.3.orig/debian/changelog +++ deluge-torrent-0.5.8.3/debian/changelog @@ -0,0 +1,154 @@ +deluge-torrent (0.5.8.3-1) unstable; urgency=HIGH + + * Security set to HIGH as it fix a critical security issue. + * New upstream release (Closes: #463357). + * Update 002-Do_not_check_for_update_as_default patch. + + -- Adam Cécile (Le_Vert) Fri, 01 Feb 2008 22:59:10 +0100 + +deluge-torrent (0.5.8-1) unstable; urgency=low + + * New upstream release (Closes: #457832, #454134). + * Fix FTBFS on GNU/kFreeBSD, thanks to Aurelien Jarno (Closes: #458974). + * Bump Standards-Version to 3.7.3 (no changes needed). + * Recommends python-gnome2-extras (embedded web browser). + + -- Adam Cécile (Le_Vert) Fri, 04 Jan 2008 12:13:32 +0100 + +deluge-torrent (0.5.7.1~debian-1) unstable; urgency=low + + * New upstream release (Closes: #448475, #452808). + * Add runtime dependencies: librsvg2-common, python-pyopenssl. + + -- Adam Cécile (Le_Vert) Sun, 02 Dec 2007 13:51:39 +0100 + +deluge-torrent (0.5.6.2-1) unstable; urgency=low + + * New upstream release (Closes: #447810, #447648). + * Drop 000-Fix_browser.py_path patch, fixed upstream. + * Update 001-Fix_CFLAGS_handling and 003-Fix_tray_icon patches. + * Update debian/copyright. + * Manpage do not have a bad "SH NAME" (break whatis) entry anymore. + * Use new dpkg "Homepage" field. + + -- Adam Cécile (Le_Vert) Wed, 31 Oct 2007 21:41:42 +0100 + +deluge-torrent (0.5.5-2) unstable; urgency=low + + * Add missing runtime dependency on python-dbus. + * Fix 003-Fix_tray_icon patch, sorry for the mistake (Closes: #442031). + + -- Adam Cécile (Le_Vert) Thu, 13 Sep 2007 09:08:11 +0200 + +deluge-torrent (0.5.5-1) unstable; urgency=low + + * New upstream release (Closes: #441425). + * Re-add 001-Fix_CFLAGS_handling patch to fix CFLAGS handling. + * Call setup.py with --no-compile to avoid python compilation (done by pysupport). + * Add 002-Do_check_for_update_as_default patch (Closes: #441423). + * Add 003-Fix_tray_icon patch to use current theme icon as trayicon, thanks to Mathias Brodala (Closes: #438441). + * debian/rules: drop stuff that removes shebangs in modules, fixed upstream. + + -- Adam Cécile (Le_Vert) Sun, 09 Sep 2007 21:33:43 +0200 + +deluge-torrent (0.5.4.1-1) unstable; urgency=low + + * New upstream release (Closes: #436839, #437205). + * Drop 000-Fix_CFLAGS_handling patch, fixed upstream. + * Add 000-Fix_browser.py_path patch to fix broswer launch failure (Closes: #435464). + * Menu: move to Applications/Network/File Transfer. + * Drop deprecated 'Encoding' entry in desktop file. + + -- Adam Cécile (Le_Vert) Sat, 11 Aug 2007 02:17:52 +0200 + +deluge-torrent (0.5.3-1) unstable; urgency=low + + * New upstream release. + - Torrent urls supported on the command-line (Closes: #416013). + * Update 000-Fix_CFLAGS_handling patch. + * Break loops with '|| exit 1' in debian/rules. + * Rewrite icons handling. Now all sizes are generated with imagemagick. + * Fed up with upstream website changes... Drop debian/watch. + + -- Adam Cécile (Le_Vert) Sat, 28 Jul 2007 16:36:38 +0200 + +deluge-torrent (0.5.2-1) unstable; urgency=low + + * New upstream release (Closes: #431929, #416014, #429880). + + -- Adam Cécile (Le_Vert) Fri, 06 Jul 2007 09:15:11 +0200 + +deluge-torrent (0.5.1.1-1) unstable; urgency=low + + * New upstream release (Closes: #428515, #419925, #406789). + * Add libssl-dev to build depends. + * Drop 001-Fix_FTBFS_with_libboost_1.34 and 002-Always_enable_EPOLL patches, fixed upstream. + * Update 000-Fix_CFLAGS_handling patch. + * Update debian/watch. + * Update debian/copyright. + + -- Adam Cécile (Le_Vert) Tue, 12 Jun 2007 19:51:39 +0200 + +deluge-torrent (0.5.0-3) unstable; urgency=low + + * Merge upstream patch to fix FTBFS with libboost 1.34 (Closes: #425076). + * Now build-depend on libboost*-dev (>= 1.34). + * EPOLL is now always turned on, checking at build-time is non-sense and produce FTBFS with linux-libc-dev. + + -- Adam Cécile (Le_Vert) Tue, 22 May 2007 17:54:27 +0200 + +deluge-torrent (0.5.0-2) unstable; urgency=low + + * Call dh_desktop (Closes: #408891, #415708). + + -- Adam Cécile (Le_Vert) Wed, 21 Mar 2007 17:01:09 +0100 + +deluge-torrent (0.5.0-1) unstable; urgency=low + + * New upstream release (Closes: #406790). + * Upstream do not release two separate tarballs anymore, fix rules. + * Add dpatch as patch-system. + * Use python-support to handle python modules. + * Update debian/copyright. + * Remove README.Debian-sources, README. + * Remove many useless things due to the new build system (distutils). + * Update debian/watch. + * Update manpage. + * Rename binary from deluge-torrent to deluge to match with upstream. + + -- Adam Cécile (Le_Vert) Mon, 19 Mar 2007 11:46:46 +0100 + +deluge-torrent (0.4.1-2) unstable; urgency=low + + * Really change menu entries name (Closes: #404992). + + -- Adam Cécile (Le_Vert) Wed, 17 Jan 2007 10:28:19 +0100 + +deluge-torrent (0.4.1-1) unstable; urgency=low + + * New upstream release. + * Change menu entries name from Deluge-torrent to Deluge Torrent. + + -- Adam Cécile (Le_Vert) Fri, 29 Dec 2006 11:22:54 +0100 + +deluge-torrent (0.4.0-2) unstable; urgency=low + + * Build with -DAMD64 for 64bits systems (Closes: #402257). + + -- Adam Cécile (Le_Vert) Tue, 12 Dec 2006 00:32:21 +0100 + +deluge-torrent (0.4.0-1) unstable; urgency=low + + * New upstream release + - Fix issue when no locale set (Closes: #399600). + * Update control with new dependencies. + * Remove .svn directories. + * Add debian/watch. + + -- Adam Cécile (Le_Vert) Wed, 29 Nov 2006 00:10:34 +0100 + +deluge-torrent (0.3.1.1-1) unstable; urgency=low + + * Initial release (Closes: #398916). + + -- Adam Cécile (Le_Vert) Wed, 15 Nov 2006 22:03:13 +0100 --- deluge-torrent-0.5.8.3.orig/debian/copyright +++ deluge-torrent-0.5.8.3/debian/copyright @@ -0,0 +1,95 @@ +This package was debianized by Adam Cécile (Le_Vert) on +Wed, 15 Nov 2006 22:03:13 +0100. + +It was downloaded from http://www.deluge-torrent.org/ + +Upstream Author: + + Zach Tibbitts + Alon Zakai + Marcos Pinto + Andrew Resch + Alex Dedul + +Copyright: + + Copyright (C) 2006-2007 Zach Tibbitts + Copyright (C) 2006-2007 Alon Zakai + Copyright (C) 2007 Marcos Pinto + Copyright (C) 2007 Andrew Resch + Copyright (C) 2007 Alex Dedul + +License: + + 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; either version 2 of the License, or + (at your option) any later version. + + 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 + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + In addition, as a special exception, the copyright holders give + permission to link the code of portions of this program with the OpenSSL + library. + You must obey the GNU General Public License in all respects for all of + the code used other than OpenSSL. If you modify file(s) with this + exception, you may extend this exception to your version of the file(s), + but you are not obligated to do so. If you do not wish to do so, delete + this exception statement from your version. If you delete this exception + statement from all source files in the program, then also delete it here. + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + +All files listed below have different copyright and/or license: + + "libtorrent/*": + Copyright: Copyright (C) 2003-2007, Arvid Norberg + License: 3-clauses BSD license. + + On Debian systems, the complete text of the 3-clauses BSD license can + be found in `/usr/share/common-licenses/BSD'. + + "libtorrent/include/libtorrent/asio*": + Copyright: Copyright (C) 2003-2006 Christopher M. Kohlhoff + License: Boost Software License, Version 1.0 : + + Permission is hereby granted, free of charge, to any person or + organization obtaining a copy of the software and accompanying + documentation covered by this license (the "Software") to use, + reproduce, display, distribute, execute, and transmit the Software, + and to prepare derivative works of the Software, and to permit + third-parties to whom the Software is furnished to do so, all subject + to the following: + + The copyright notices in the Software and this entire statement, + including the above license grant, this restriction and the following + disclaimer, must be included in all copies of the Software, in whole + or in part, and all derivative works of the Software, unless such + copies or derivative works are solely in the form of machine-executable + object code generated by a source language processor. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND + NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE + DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, + WHETHER IN CONTRACT, TORT OR OTHERWISE,ARISING FROM, OUT OF OR IN + CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + + "po/*": + Copyright: Copyright (C) 2006-2007 Rosetta Contributors and Canonical Ltd + License: Same license as the Deluge software. + +Upstream sources have been repacked to remove "debian/" subdirectory. + +The Debian packaging is (C) 2006-2007, Adam Cécile (Le_Vert) + and is licensed under the GPL, see above. --- deluge-torrent-0.5.8.3.orig/debian/menu +++ deluge-torrent-0.5.8.3/debian/menu @@ -0,0 +1,3 @@ +?package(deluge-torrent): needs="X11" section="Applications/Network/File Transfer" \ + title="Deluge BitTorrent Client" longtitle="Bittorrent client written in Python/PyGTK" \ + command="/usr/bin/deluge" icon="/usr/share/pixmaps/deluge-torrent.xpm" --- deluge-torrent-0.5.8.3.orig/debian/rules +++ deluge-torrent-0.5.8.3/debian/rules @@ -0,0 +1,104 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# Dpatch targets +include /usr/share/dpatch/dpatch.make + +# Available python (using debian/pyversions) and destdir +PYVERS = $(shell pyversions -rv) +#PYVERS = 2.4 2.5 +DESTDIR = $(CURDIR)/debian/deluge-torrent + +# We need to known the target arch to enable/disable amd64 hack +ARCH = $(shell dpkg-architecture -qDEB_BUILD_ARCH_CPU) +ARCH64 = ia64 amd64 alpha kfreebsd-amd64 ppc64 + +CFLAGS = -Wall -g +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif +# python-libtorrent need to define AMD64 to work fine on a 64 bits system +ifneq (,$(findstring $(ARCH),$(ARCH64))) + CFLAGS += -DAMD64 +endif + +build: patch-stamp $(PYVERS:%=build-stamp%) +build-stamp%: patch-stamp + dh_testdir + CFLAGS="$(CFLAGS)" python$* setup.py build + touch $@ + +clean: unpatch + dh_testdir + dh_testroot + rm -rf build/ + find . -name \*.pyc | xargs rm -f + rm -rf build-stamp* + dh_clean + +install: build install-prereq $(PYVERS:%=install-%) install-finish +install-prereq: + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs +install-%: + python$* setup.py install --root=$(DESTDIR) --prefix=/usr --no-compile +install-finish: + # Do not use a versionned python shebang + sed -i 's/^#!\/usr\/bin\/python.*$$/#!\/usr\/bin\/python/' $(DESTDIR)/usr/bin/deluge + find $(DESTDIR)/usr/lib/python?.? -name \*.egg-info | xargs rm -f + # Create all size PNG/XPM icons + rm -rf $(DESTDIR)/usr/share/pixmaps + rm -rf $(DESTDIR)/usr/share/icons + mkdir -p $(DESTDIR)/usr/share/pixmaps + for size in 16 22 24 32 36 48; do \ + convert $(CURDIR)/pixmaps/deluge.png -resize $${size} $(DESTDIR)/usr/share/pixmaps/deluge-torrent-$${size}.xpm || exit 1; \ + mkdir -p $(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/apps || exit 1; \ + convert $(CURDIR)/pixmaps/deluge.png -resize $${size} $(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/apps/deluge-torrent.png || exit 1; \ + done + # Empty directory + rmdir $(DESTDIR)/usr/share/deluge/icons/hicolor + # Desktop menu + rm -rf $(DESTDIR)/usr/share/applications + install -D -m644 $(CURDIR)/debian/deluge-torrent.desktop $(DESTDIR)/usr/share/applications/deluge-torrent.desktop + # Drop useless license file + rm -f $(DESTDIR)/usr/share/deluge/plugins/WebUi/LICENSE + # Fix permissions... + find $(DESTDIR)/usr/share -type f -exec chmod 644 {} \; + # Drop shebang where it's not needed + for file in `find $(DESTDIR)/usr/share -type f -name '*.py'`; do \ + grep -v '#!/usr/bin/env python' $$file > $$file.new; \ + mv $$file.new $$file; \ + done + # Fix some perms again and delete some files + rm -f $(DESTDIR)/usr/share/deluge/plugins/WebUi/scripts/build_webui_tarball.sh + chmod 755 $(DESTDIR)/usr/share/deluge/plugins/WebUi/scripts/add_torrent_to_deluge_webui + chmod 755 $(DESTDIR)/usr/share/deluge/plugins/WebUi/run_webserver + +binary-indep: build install +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installmenu + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms + dh_pysupport + dh_desktop + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- deluge-torrent-0.5.8.3.orig/debian/compat +++ deluge-torrent-0.5.8.3/debian/compat @@ -0,0 +1 @@ +5