diff --git a/Makefile.am b/Makefile.am index c49770aa3..45d7fe1fb 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,7 +1,13 @@ SUBDIRS = include @ZLIBDIR@ src examples test EXTRA_DIST = docs Jamfile project-root.jam \ m4/ac_cxx_namespaces.m4 m4/acx_pthread.m4 m4/ax_boost_date-time.m4 \ -m4/ax_boost_filesystem.m4 m4/ax_boost_thread.m4 src/file_win.cpp +m4/ax_boost_filesystem.m4 m4/ax_boost_thread.m4 src/file_win.cpp libtorrent.pc + +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = libtorrent.pc check: test test/test_hasher && test/test_bencoding && test/test_ip_filter && echo "tests done, all OK" + +deb: + dpkg-buildpackage -rfakeroot -us -uc diff --git a/configure.in b/configure.in index 3986fcdbd..50b6e82d0 100644 --- a/configure.in +++ b/configure.in @@ -115,5 +115,5 @@ AC_ARG_ENABLE( ) AC_SUBST(DEBUGFLAGS) -AC_CONFIG_FILES(Makefile src/Makefile include/Makefile examples/Makefile test/Makefile) +AC_CONFIG_FILES(Makefile src/Makefile include/Makefile examples/Makefile test/Makefile libtorrent.pc) AC_OUTPUT diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 000000000..cdf8649fa --- /dev/null +++ b/debian/changelog @@ -0,0 +1,6 @@ +libtorrent (0.9-1) unstable; urgency=low + + * Initial release. + + -- Michael Wojciechowski Fri, 19 Aug 2005 23:31:46 +0200 + diff --git a/debian/compat b/debian/compat new file mode 100644 index 000000000..b8626c4cf --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +4 diff --git a/debian/control b/debian/control new file mode 100644 index 000000000..007614fda --- /dev/null +++ b/debian/control @@ -0,0 +1,29 @@ +Source: libtorrent +Priority: optional +Section: libs +Maintainer: Michael Wojciechowski +Build-Depends: debhelper (>= 4.0.0), autotools-dev, + libboost-thread1.31.0, libboost-thread-dev, + libboost-date-time1.31.0, libboost-date-time-dev, + libboost-filesystem1.31.0, libboost-filesystem-dev +Standards-Version: 3.6.2 + +Package: libtorrent0-dev +Section: libdevel +Architecture: any +Depends: libtorrent0 (= ${Source-Version}) +Provides: libtorrent-dev +Conflicts: libtorrent-dev +Description: 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 +Section: libs +Architecture: any +Depends: ${shlibs:Depends} libboost-thread1.31.0, libboost-date-time1.31.0, libboost-filesystem1.31.0 +Description: 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. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 000000000..8853969f8 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,10 @@ +This package was debianized by Michael Wojciechowski on +Fri, 19 Aug 2005 23:31:46 +0200. + +It was downloaded from http://sourceforge.net/cvs/?group_id=79942. + +Copyright Holder: Arvid Norberg, c99ang@cs.umu.se + +License: The BSD License + +http://www.opensource.org/licenses/bsd-license.php diff --git a/debian/files b/debian/files new file mode 100644 index 000000000..73a5975fa --- /dev/null +++ b/debian/files @@ -0,0 +1,2 @@ +libtorrent0-dev_0.9-1_i386.deb libdevel optional +libtorrent0_0.9-1_i386.deb libs optional diff --git a/debian/libtorrent0-dev.dirs b/debian/libtorrent0-dev.dirs new file mode 100644 index 000000000..f49c87505 --- /dev/null +++ b/debian/libtorrent0-dev.dirs @@ -0,0 +1,2 @@ +usr/include +usr/lib/pkgconfig diff --git a/debian/libtorrent0-dev.docs b/debian/libtorrent0-dev.docs new file mode 100644 index 000000000..6f12db508 --- /dev/null +++ b/debian/libtorrent0-dev.docs @@ -0,0 +1,2 @@ +AUTHORS +README diff --git a/debian/libtorrent0-dev.install b/debian/libtorrent0-dev.install new file mode 100644 index 000000000..6cd8ddd2b --- /dev/null +++ b/debian/libtorrent0-dev.install @@ -0,0 +1,4 @@ +usr/include/* +usr/lib/lib*.a +usr/lib/lib*.so +usr/lib/pkgconfig/* diff --git a/debian/libtorrent0.dirs b/debian/libtorrent0.dirs new file mode 100644 index 000000000..68457717b --- /dev/null +++ b/debian/libtorrent0.dirs @@ -0,0 +1 @@ +usr/lib diff --git a/debian/libtorrent0.docs b/debian/libtorrent0.docs new file mode 100644 index 000000000..6f12db508 --- /dev/null +++ b/debian/libtorrent0.docs @@ -0,0 +1,2 @@ +AUTHORS +README diff --git a/debian/libtorrent0.install b/debian/libtorrent0.install new file mode 100644 index 000000000..d0dbfd18a --- /dev/null +++ b/debian/libtorrent0.install @@ -0,0 +1 @@ +usr/lib/lib*.so.* diff --git a/debian/rules b/debian/rules new file mode 100755 index 000000000..6dd2ee984 --- /dev/null +++ b/debian/rules @@ -0,0 +1,85 @@ +#!/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. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + + +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 + dh_testdir + $(MAKE) + 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 + + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp + + +# 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_strip + dh_compress + dh_fixperms + dh_makeshlibs -V + dh_shlibdeps + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install