All pastes #1060515 Raw Edit

Anonymous

public text v1 · immutable
#1060515 ·published 2008-07-02 14:21 UTC
rendered paste body
Index: debian/libtorrent0-dev.dirs
===================================================================
--- debian/libtorrent0-dev.dirs	(revision 2487)
+++ debian/libtorrent0-dev.dirs	(working copy)
@@ -1,2 +0,0 @@
-usr/include
-usr/lib/pkgconfig
Index: debian/control
===================================================================
--- debian/control	(revision 2487)
+++ debian/control	(working copy)
@@ -1,29 +1,49 @@
-Source: libtorrent
+Source: libtorrent-rasterbar
 Priority: optional
 Section: libs
-Maintainer: Michael Wojciechowski <wojci@wojci.dk>
-Build-Depends: debhelper (>= 4.0.0), autotools-dev (>= 20050422.1), 
-               libboost-thread1.32.0 (>= 1.32.0), libboost-thread-dev (>=1.32.0),
-               libboost-date-time1.32.0 (>= 1.32.0), libboost-date-time-dev (>= 1.32.0),
-               libboost-filesystem1.32.0 (>= 1.32.0), libboost-filesystem-dev (>= 1.32.0)
-Standards-Version: 3.6.2
+Maintainer: Elric Milon <elric-d@zenpl.com>
+Build-Depends: debhelper (>= 6), autotools-dev, autotools-dev (>= 20050422.1), 
+               libboost-thread1.35.0 (>= 1.35.0), libboost-thread1.35-dev (>=1.35.0),
+               libboost-date-time1.35.0 (>= 1.35.0), libboost-date-time1.35-dev (>= 1.35.0),
+               libboost-filesystem1.35.0 (>= 1.35.0), libboost-filesystem1.35-dev (>= 1.35.0),
+               libboost-system1.35.0 (>= 1.35.0), libboost-system1.35-dev (>= 1.35.0),
+               bjam, boost-build, libasio-dev
+Standards-Version: 3.7.2
 
-Package: libtorrent0-dev
+Package: libtorrent-rasterbar0.13-dev
 Section: libdevel
 Architecture: any
-Depends: libtorrent0 (= ${Source-Version})
-Provides: libtorrent-dev
-Conflicts: libtorrent-dev
-Description: Torrent library, headers.
+Depends: libtorrent-rasterbar0.13 (= ${Source-Version})
+Provides: libtorrent-rasterbar-dev
+Conflicts: libtorrent-rasterbar-dev
+Description: Rasterbar's Torrent library, headers.
  libtorrent is a C++ library that aims to be a good alternative to all
  the other bittorrent implementations around. It is a library and not a
  full featured client, although it comes with a working example client.
 
-Package: libtorrent0
+Package: libtorrent-rasterbar0.13
 Section: libs
 Architecture: any
-Depends: ${shlibs:Depends} libboost-thread1.32.0 (>= 1.32.0), libboost-date-time1.32.0 (>= 1.32.0), libboost-filesystem1.32.0 (>= 1.32.0)
-Description: Torrent library, libs.
+Depends: ${shlibs:Depends} libboost-thread1.35.0 (>= 1.35.0), libboost-date-time1.35.0 (>= 1.35.0), libboost-filesystem1.35.0 (>= 1.35.0), libboost-system1.35.0 (>= 1.35.0)
+Description: Rasterbar's Torrent library, libs.
  libtorrent is a C++ library that aims to be a good alternative to all
  the other bittorrent implementations around. It is a library and not a
  full featured client, although it comes with a working example client.
+
+Package: libtorrent-rasterbar0.13-doc
+Section: libs
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: Rasterbar's Torrent library, documentation.
+ libtorrent is a C++ library that aims to be a good alternative to all
+ the other bittorrent implementations around. It is a library and not a
+ full featured client, although it comes with a working example client.
+
+Package: python-libtorrent-rasterbar
+Section: devel
+Architecture: any
+Depends: ${shlibs:Depends} libtorrent-rasterbar0.13
+Description: Rasterbar's Torrent library, python bindings.
+ libtorrent is a C++ library that aims to be a good alternative to all
+ the other bittorrent implementations around. It is a library and not a
+ full featured client, although it comes with a working example client.
Index: debian/libtorrent-rasterbar0.13-doc.install
===================================================================
--- debian/libtorrent-rasterbar0.13-doc.install	(revision 0)
+++ debian/libtorrent-rasterbar0.13-doc.install	(revision 0)
@@ -0,0 +1 @@
+usr/share/doc/*
Index: debian/compat
===================================================================
--- debian/compat	(revision 2487)
+++ debian/compat	(working copy)
@@ -1 +1 @@
-4
+6
Index: debian/libtorrent0-dev.install
===================================================================
--- debian/libtorrent0-dev.install	(revision 2487)
+++ debian/libtorrent0-dev.install	(working copy)
@@ -1,4 +0,0 @@
-usr/include/*
-usr/lib/lib*.a
-usr/lib/lib*.so
-usr/lib/pkgconfig/*
Index: debian/changelog
===================================================================
--- debian/changelog	(revision 2487)
+++ debian/changelog	(working copy)
@@ -1,6 +1,6 @@
-libtorrent (0.9-1) unstable; urgency=low
+libtorrent-rasterbar (0.13+svn20080605-1) unstable; urgency=low
 
-  * Initial release.
+  * Initial release
 
- -- Michael Wojciechowski <wojci@wojci.dk>  Fri, 19 Aug 2005 23:31:46 +0200
+ -- Elric Milon <elric-d@zenpl.com>  Wed, 05 Jun 2008 15:09:22 +0200
 
Index: debian/docs
===================================================================
--- debian/docs	(revision 0)
+++ debian/docs	(revision 0)
@@ -0,0 +1,2 @@
+NEWS
+README
Index: debian/libtorrent-rasterbar0.13-dev.install
===================================================================
--- debian/libtorrent-rasterbar0.13-dev.install	(revision 0)
+++ debian/libtorrent-rasterbar0.13-dev.install	(revision 0)
@@ -0,0 +1 @@
+usr/include/libtorrent-rasterbar
Index: debian/rules
===================================================================
--- debian/rules	(revision 2487)
+++ debian/rules	(working copy)
@@ -1,85 +1,94 @@
 #!/usr/bin/make -f
-# -*- makefile -*-
 # Sample debian/rules that uses debhelper.
-# This file was originally written by Joey Hess and Craig Small.
-# As a special exception, when this file is copied by dh-make into a
-# dh-make output file, you may use that output file without restriction.
-# This special exception was added by Craig Small in version 0.37 of dh-make.
+# This file is public domain software, originally written by Joey Hess. 
 
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+BJAM = bjam -q dht-support=on toolset=gcc boost=system release need-librt=yes link=shared -j3
+PYVER = 2.5
+INSTALLDIR = debian/.install
+LIBNAME = libtorrent-rasterbar
+LIBVERSION = 0.13
+DOCDIRNAME = $(LIBNAME)$(LIBVERSION)-doc
 
-# 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)
-
-
-ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
-	INSTALL_PROGRAM += -s
-endif
-
-config.status: configure
-	dh_testdir
-	touch config.h.in;\
-	find . -type f -name Makefile.am -print |\
-		sed 's/\.am$$/.in/' |\
-		while read f; do touch "$$f"; done;\
-	touch configure;\
-	./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
+build-stamp: 
 	dh_testdir
-	$(MAKE)
+	#Main project
+	$(BJAM)
+	#Python Bindings
+	[ ! -e project-root.jam.ori ] || mv  project-root.jam.ori project-root.jam
+	mv  project-root.jam project-root.jam.ori
+	echo "using python : $(PYVER) ;" \
+		> project-root.jam
+	cat project-root.jam.ori >> project-root.jam
+	cd bindings/python ;\
+	$(BJAM)
+	mv  project-root.jam.ori project-root.jam
+	#Examples
+	#cd examples ;\
+	#$(BJAM)
+	#Done building
 	touch build-stamp
 
 clean:
 	dh_testdir
 	dh_testroot
-	rm -f build-stamp 
-	-$(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 
+	rm -rf bin bindings/python/bin 
+	rm -f build-stamp
+	rm -f configure-stamp
+	# Add here commands to clean up after the build process.
+	#Main project
+	rm -fr bin/
+	#Pyton bindings
+	rm -fr bindings/python/bin/
+	#Examples
+	#rm -fr examples/bin
 
+	rm -Rf debian/.install
 
+	dh_clean
+
 install: build
 	dh_testdir
 	dh_testroot
-	dh_clean -k 
+	dh_clean -k
 	dh_installdirs
-	$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
+	mkdir -p $(INSTALLDIR)/usr/lib/python2.5/site-packages/ \
+		$(INSTALLDIR)/usr/lib/pkgconfig/ \
+		$(INSTALLDIR)/usr/share/doc/$(DOCDIRNAME)/ \
+		$(INSTALLDIR)/usr/include/ \
+		$(INSTALLDIR)/usr/bin/
+	#Python bindings
+	install -s -D bindings/python/bin/gcc-*/release/*/libtorrent.so  $(INSTALLDIR)/usr/lib/python2.5/site-packages/
+	#Libtorrent
+	install -s -D bin/gcc-*/release/*/threading-multi/libtorrent.so $(INSTALLDIR)/usr/lib/libtorrent-rasterbar.so.$(LIBVERSION)
+	#-install -m444 -D libtorrent.pc $(INSTALLDIR)/usr/lib/pkgconfig/libtorrent-rasterbar.pc
+	#Example binaries
+	#install -D examples/bin/gcc-*/release/need-librt-*/threading-*/make_torrent $(INSTALLDIR)/usr/bin/make_torrent
 
+	#Headers
+	cp -r include/libtorrent  $(INSTALLDIR)/usr/include/libtorrent-rasterbar
+	#Documentation
+	cp -r docs/*{jpg,png,gif,html} $(INSTALLDIR)/usr/share/doc/$(DOCDIRNAME)/
+	#Delete .svn files in INSTALLDIR, just in case...
+	find $(INSTALLDIR) -depth -name .svn -exec rm -fR {} \;
 
-# 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 ChangeLog
-	dh_installdocs
-	dh_install --sourcedir=debian/tmp
+	dh_installchangelogs
+	dh_install --sourcedir=$(INSTALLDIR)
 	dh_strip
 	dh_compress
 	dh_fixperms
-	dh_makeshlibs -V
-	dh_shlibdeps
+	dh_pycentral
+	dh_makeshlibs
 	dh_installdeb
 	dh_gencontrol
 	dh_md5sums
 	dh_builddeb
 
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install 
+binary: binary-arch
Index: debian/libtorrent0.docs
===================================================================
--- debian/libtorrent0.docs	(revision 2487)
+++ debian/libtorrent0.docs	(working copy)
@@ -1,2 +0,0 @@
-AUTHORS
-README
Index: debian/python-libtorrent-rasterbar.install
===================================================================
--- debian/python-libtorrent-rasterbar.install	(revision 0)
+++ debian/python-libtorrent-rasterbar.install	(revision 0)
@@ -0,0 +1 @@
+usr/lib/python*
Index: debian/files
===================================================================
--- debian/files	(revision 2487)
+++ debian/files	(working copy)
@@ -1,2 +0,0 @@
-libtorrent0-dev_0.9-1_i386.deb libdevel optional
-libtorrent0_0.9-1_i386.deb libs optional
Index: debian/libtorrent0.dirs
===================================================================
--- debian/libtorrent0.dirs	(revision 2487)
+++ debian/libtorrent0.dirs	(working copy)
@@ -1 +0,0 @@
-usr/lib
Index: debian/libtorrent0-dev.docs
===================================================================
--- debian/libtorrent0-dev.docs	(revision 2487)
+++ debian/libtorrent0-dev.docs	(working copy)
@@ -1,2 +0,0 @@
-AUTHORS
-README
Index: debian/copyright
===================================================================
--- debian/copyright	(revision 2487)
+++ debian/copyright	(working copy)
@@ -1,10 +1,67 @@
-This package was debianized by Michael Wojciechowski <wojci@wojci.dk> on
-Fri, 19 Aug 2005 23:31:46 +0200.
+This package was debianized by Elric Milon <elric-d@zenpl.com> on
+Wed, 14 May 2008 15:09:22 +0200.
 
-It was downloaded from http://sourceforge.net/cvs/?group_id=79942.
+It was downloaded from https://libtorrent.sourceforge.net
 
-Copyright Holder: Arvid Norberg, c99ang@cs.umu.se
+Upstream Author(s): 
 
-License: The BSD License
 
-http://www.opensource.org/licenses/bsd-license.php
+Written by Arvid Norberg. Copyright (c) 2003-2007
+
+    Lots of testing, suggestions and contributions by:
+    Massaroddel
+    Tianhao Qiu.
+
+    Contributions by:
+    Shyam
+    Magnus Jonsson
+    Daniel Wallin
+    Cory Nelson
+    Stas Khirman
+    Ryan Norton
+    Andrew Resch
+
+    Building and maintainance of the autotools scripts:
+    Michael Wojciechowski
+    Peter Koeleman
+
+    Thanks to Reimond Retz for bugfixes, suggestions and testing
+
+    Thanks to University of Ume<8c> for providing development and test hardware.
+
+    Project is hosted by sourceforge.
+
+Copyright: 
+
+    (c) 2003 - 2007, Arvid Norberg
+
+License:
+
+    Redistribution and use in source and binary forms, with or without
+    modification, are permitted provided that the following conditions
+    are met:
+
+        * Redistributions of source code must retain the above copyright
+          notice, this list of conditions and the following disclaimer.
+        * Redistributions in binary form must reproduce the above copyright
+          notice, this list of conditions and the following disclaimer in
+          the documentation and/or other materials provided with the distribution.
+        * Neither the name of Rasterbar Software nor the names of its
+          contributors may be used to endorse or promote products derived
+          from this software without specific prior written permission.
+
+    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+    AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+    ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+    LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+    CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+    SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+    INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+    CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+    ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+    POSSIBILITY OF SUCH DAMAGE.
+
+
+The Debian packaging is (C) 2008, Elric Milon <elric-d@zenpl.com> and
+is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
Index: debian/libtorrent0.install
===================================================================
--- debian/libtorrent0.install	(revision 2487)
+++ debian/libtorrent0.install	(working copy)
@@ -1 +0,0 @@
-usr/lib/lib*.so.*
Index: debian/libtorrent-rasterbar0.13.install
===================================================================
--- debian/libtorrent-rasterbar0.13.install	(revision 0)
+++ debian/libtorrent-rasterbar0.13.install	(revision 0)
@@ -0,0 +1 @@
+usr/lib/libtorrent-rasterbar.so*