--- libnzb-0.0.20050629.orig/aclocal.m4 +++ libnzb-0.0.20050629/aclocal.m4 @@ -1455,7 +1455,10 @@ x86_64-*linux*) LD="${LD-ld} -m elf_i386" ;; - ppc64-*linux*|powerpc64-*linux*) + powerpc64le-*) + LD="${LD-ld} -m elf32lppclinux" + ;; + powerpc64-*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) @@ -1471,7 +1474,10 @@ x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; - ppc*-*linux*|powerpc*-*linux*) + powerpcle-*) + LD="${LD-ld} -m elf64lppc" + ;; + powerpc-*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*) --- libnzb-0.0.20050629.orig/configure +++ libnzb-0.0.20050629/configure @@ -3714,7 +3714,10 @@ x86_64-*linux*) LD="${LD-ld} -m elf_i386" ;; - ppc64-*linux*|powerpc64-*linux*) + powerpc64le-*) + LD="${LD-ld} -m elf32lppclinux" + ;; + powerpc64-*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) @@ -3730,7 +3733,10 @@ x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; - ppc*-*linux*|powerpc*-*linux*) + powerpcle-*) + LD="${LD-ld} -m elf64lppc" + ;; + powerpc-*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*) --- libnzb-0.0.20050629.orig/debian/changelog +++ libnzb-0.0.20050629/debian/changelog @@ -0,0 +1,82 @@ +libnzb (0.0.20050629-6.1ubuntu1) trusty; urgency=medium + + * Manually patch aclocal.m4 and configure to add ppc64el support. + + -- Logan Rosen Wed, 05 Mar 2014 19:35:14 -0500 + +libnzb (0.0.20050629-6.1) unstable; urgency=low + + * Non-maintainer upload. + * Don't ship .la files (Closes: #621678). + + -- Luk Claes Fri, 01 Jul 2011 19:19:40 +0200 + +libnzb (0.0.20050629-6) unstable; urgency=low + + * Fixed FTBFS bug introduced in debian/rules (closes: #523782) + + -- Mattias Nordstrom Mon, 13 Apr 2009 14:36:12 +0300 + +libnzb (0.0.20050629-5) unstable; urgency=low + + * Acknowledged NMU. + * Updated to Debian Policy v3.8.1.0, no changes needed. + * Changed maintainer email address. + * Updated to debhelper compat version 5. + + -- Mattias Nordstrom Sat, 11 Apr 2009 16:57:45 +0300 + +libnzb (0.0.20050629-4.1) unstable; urgency=low + + * Non-maintainer upload. + * Fix g++-4.3 FTBFS thanks to Cyril Brulebois (Closes: 455183) + + -- Pierre Habouzit Sun, 16 Mar 2008 21:01:03 +0000 + +libnzb (0.0.20050629-4) unstable; urgency=low + + * Fixed FTBFS by adding build-dep on autotools-dev (closes: #417909) + + -- Mattias Nordstrom Tue, 10 Apr 2007 11:11:39 +0300 + +libnzb (0.0.20050629-3) unstable; urgency=low + + * Updated to Debian Policy v3.7.2.2, no changes needed. + * Fixed FTBFS with GCC 4.3 (closes: #417354) + + -- Mattias Nordstrom Wed, 04 Apr 2007 17:38:27 +0300 + +libnzb (0.0.20050629-2) unstable; urgency=low + + * libstdc++ transition (closes: #339213) + + -- Mattias Nordstrom Thu, 17 Nov 2005 23:53:57 +0200 + +libnzb (0.0.20050629-1) unstable; urgency=low + + * libnzb package renamed to libnzb0. + * New Debian package (closes: #302432) + + -- Mattias Nordstrom Wed, 29 Jun 2005 00:30:30 +0300 + +libnzb (0.0.20050619-2) unstable; urgency=low + + * Library files moved to correct packages. + + -- Mattias Nordstrom Sun, 19 Jun 2005 18:26:11 +0300 + +libnzb (0.0.20050619-1) unstable; urgency=low + + * New upstream CVS checkout. + * Cleanup. + + -- Mattias Nordstrom Sun, 19 Jun 2005 14:27:38 +0300 + +libnzb (0.0.20050328-1) unstable; urgency=low + + * Initial Release. + * My first Debian package, using this to gain experience and trust as + a Debian developer. + + -- Mattias Nordstrom Mon, 28 Mar 2005 14:56:32 +0300 + --- libnzb-0.0.20050629.orig/debian/compat +++ libnzb-0.0.20050629/debian/compat @@ -0,0 +1 @@ +5 --- libnzb-0.0.20050629.orig/debian/control +++ libnzb-0.0.20050629/debian/control @@ -0,0 +1,26 @@ +Source: libnzb +Section: libs +Priority: optional +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Mattias Nordstrom +Build-Depends: debhelper (>= 4.0.0), libxml2-dev (>= 2.6.16), autotools-dev +Standards-Version: 3.8.1.0 +Homepage: http://nzb.sourceforge.net/ + +Package: libnzb-dev +Section: libdevel +Architecture: any +Depends: libnzb0c2a (= ${binary:Version}) +Description: An nzb based Usenet binary grabber (development files) + libnzb is a library that provides functions to parse nzb files, grab the + content over NNTP and decode the yEnc/uuencode encoded file. + +Package: libnzb0c2a +Section: libs +Architecture: any +Depends: ${shlibs:Depends} +Conflicts: libnzb0 +Replaces: libnzb0 +Description: An nzb based Usenet binary grabber (runtime library) + libnzb is a library that provides functions to parse nzb files, grab the + content over NNTP and decode the yEnc/uuencode encoded file. --- libnzb-0.0.20050629.orig/debian/copyright +++ libnzb-0.0.20050629/debian/copyright @@ -0,0 +1,13 @@ +This package was debianized by Mattias Nordstrom on +Mon, 28 Mar 2005 21:00:00 +0300. + +It was downloaded from http://nzb.sourceforge.net/ + +Upstream Author: Mattias Nordstrom + +This software is copyright (c) 2004-2005 by Mattias Nordstrom. + +You are free to distribute this software under the terms of +the GNU General Public License. +On Debian systems, the complete text of the GNU General Public +License can be found in the file '/usr/share/common-licenses/GPL'. --- libnzb-0.0.20050629.orig/debian/docs +++ libnzb-0.0.20050629/debian/docs @@ -0,0 +1,3 @@ +README +TODO +AUTHORS --- libnzb-0.0.20050629.orig/debian/libnzb-dev.install +++ libnzb-0.0.20050629/debian/libnzb-dev.install @@ -0,0 +1,3 @@ +usr/include/* +usr/lib/lib*.so +usr/lib/*.a --- libnzb-0.0.20050629.orig/debian/libnzb0c2a.install +++ libnzb-0.0.20050629/debian/libnzb0c2a.install @@ -0,0 +1 @@ +usr/lib/lib*.so.* --- libnzb-0.0.20050629.orig/debian/rules +++ libnzb-0.0.20050629/debian/rules @@ -0,0 +1,108 @@ +#!/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) + + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +# shared library versions, option 1 +#version=0.0.20050619 +#major=0 +# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so +version=`ls src/.libs/lib*.so.* | \ + awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'` +major=`ls src/.libs/lib*.so.* | \ + awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'` + +config.status: configure + dh_testdir + +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 + + # Add here commands to configure the package. + CFLAGS="$(CFLAGS)" ./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 + + # Add here commands to compile the package. + $(MAKE) + + touch build-stamp + + +clean: config.status + dh_testdir + dh_testroot + + # Add here commands to clean up after the build process. + $(MAKE) distclean + -rm -f build-stamp config.status config.log config.sub config.guess config.h + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/tmp + $(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_installexamples + dh_install --sourcedir=debian/tmp + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms + dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- libnzb-0.0.20050629.orig/src/uenc.cpp +++ libnzb-0.0.20050629/src/uenc.cpp @@ -36,6 +36,8 @@ #include #include +#include + using namespace std; /* Single character decode. */ --- libnzb-0.0.20050629.orig/src/yenc.cpp +++ libnzb-0.0.20050629/src/yenc.cpp @@ -34,6 +34,7 @@ #include "yenc.h" #include "crc32.h" +#include #include #include