--- ftpcopy-0.6.7.orig/debian/diff/diet-includes.diff +++ ftpcopy-0.6.7/debian/diff/diet-includes.diff @@ -0,0 +1,22 @@ +diff -ur web/ftpcopy-0.6.7.orig/src/ftpcopy.c web/ftpcopy-0.6.7/src/ftpcopy.c +--- web/ftpcopy-0.6.7.orig/src/ftpcopy.c 2004-08-10 07:36:05.000000000 +0000 ++++ web/ftpcopy-0.6.7/src/ftpcopy.c 2005-04-28 08:49:38.000000000 +0000 +@@ -31,7 +31,6 @@ + #include "str.h" + #include "error.h" + #include "open.h" +-#include "readwrite.h" + #include "close.h" + #include "nowarn.h" + #include "get_cwd.h" +diff -ur web/ftpcopy-0.6.7.orig/src/ftpls.c web/ftpcopy-0.6.7/src/ftpls.c +--- web/ftpcopy-0.6.7.orig/src/ftpls.c 2004-07-27 11:36:00.000000000 +0000 ++++ web/ftpcopy-0.6.7/src/ftpls.c 2005-04-28 08:49:53.000000000 +0000 +@@ -27,7 +27,6 @@ + #include "bailout.h" + #include "close.h" + #include "str.h" +-#include "readwrite.h" + #include "sort_it.h" + #include "strhash.h" + #include "socket.h" --- ftpcopy-0.6.7.orig/debian/README.Debian.diet +++ ftpcopy-0.6.7/debian/README.Debian.diet @@ -0,0 +1,15 @@ +Building with the diet libc +--------------------------- + +This package optionally can be built with the diet libc instead of the +glibc to provide small statically linked programs. The resulting package +has no dependency on any other package. + +To use the diet libc, make sure the latest versions of the dietlibc-dev +package is installed, and set DEB_BUILD_OPTIONS=diet in the environment +when building the package, e.g.: + + # apt-get install dietlibc-dev + $ DEB_BUILD_OPTIONS=diet fakeroot apt-get source -b ftpcopy + + -- Gerrit Pape , Thu, 28 Apr 2005 08:41:40 +0000 --- ftpcopy-0.6.7.orig/debian/changelog +++ ftpcopy-0.6.7/debian/changelog @@ -0,0 +1,13 @@ +ftpcopy (0.6.7-2) unstable; urgency=low + + * debian/implicit: add proper dependencies to support 'parallel build' + through make -j (thx Daniel Schepler for the patch, closes: #445824). + * debian/control: Standards-Version: 3.7.2.2. + + -- Gerrit Pape Tue, 11 Dec 2007 12:31:01 +0000 + +ftpcopy (0.6.7-1) unstable; urgency=low + + * initial version (closes: #307041). + + -- Gerrit Pape Mon, 16 May 2005 10:56:47 +0000 --- ftpcopy-0.6.7.orig/debian/control +++ ftpcopy-0.6.7/debian/control @@ -0,0 +1,22 @@ +Source: ftpcopy +Section: web +Priority: optional +Maintainer: Gerrit Pape +Standards-Version: 3.7.2.2 + +Package: ftpcopy +Architecture: any +Depends: ${shlibs:Depends} +Description: FTP clients collection + ftpcopy is a simple FTP client written to copy files or directories + (recursively) from an FTP server. It was written to mirror FTP sites + which support the EPLF directory listing format, but it also supports + the traditional listing format (/bin/ls). + . + ftpls is an FTP client which generates directory listings, either in + plain text or HTML. + . + The tools only support passive mode FTP. There is no plan to support + active mode. + . + See http://www.ohse.de/uwe/ftpcopy.html for more information. --- ftpcopy-0.6.7.orig/debian/copyright +++ ftpcopy-0.6.7/debian/copyright @@ -0,0 +1,14 @@ +This package was debianized by Gerrit Pape on +Thu, 28 Apr 2005 07:45:00 +0000. + +It was downloaded from http://www.ohse.de/uwe/ftpcopy/install.html + +Upstream Author: Uwe Ohse + +Copyright: + +This package is Copyright (C) 2003 Uwe Ohse, and licensed under the terms +of the GNU General Public License Version 2. The software comes with NO +WARRANTY, to the extent permitted by law. + +The full text of the GPL can be found at /usr/share/common-licenses/GPL-2. --- ftpcopy-0.6.7.orig/debian/ftpcopy.docs +++ ftpcopy-0.6.7/debian/ftpcopy.docs @@ -0,0 +1,4 @@ +web/ftpcopy/src/NEWS +web/ftpcopy/src/README +web/ftpcopy/src/THANKS +debian/README.Debian.diet --- ftpcopy-0.6.7.orig/debian/implicit +++ ftpcopy-0.6.7/debian/implicit @@ -0,0 +1,93 @@ +# $Id: 60d9070435b8d5608f20f60bc44e081960b6e39d $ + +.PHONY: deb-checkdir deb-checkuid + +deb-checkdir: + @test -e debian/control || sh -cx '! : wrong directory' +deb-checkuid: + @test "`id -u`" -eq 0 || sh -cx '! : need root privileges' + +%.deb: %.deb-docs %.deb-DEBIAN + @rm -f $*.deb $*.deb-checkdir $*.deb-docs $*.deb-docs-base \ + $*.deb-docs-docs $*.deb-docs-examples $*.deb-DEBIAN \ + $*.deb-DEBIAN-dir $*.deb-DEBIAN-scripts $*.deb-DEBIAN-md5sums + +%.udeb: %.deb-DEBIAN + @rm -f $*.deb $*.deb-checkdir $*.deb-DEBIAN $*.deb-DEBIAN-dir \ + $*.deb-DEBIAN-scripts $*.deb-DEBIAN-md5sums + +%.deb-checkdir: install + @test -d debian/$* || sh -cx '! : directory debian/$* missing' + @test "`id -u`" -eq 0 || sh -cx '! : need root privileges' + +%.deb-docs-base: install + : implicit + @rm -f debian/$*/usr/share/doc/$*/* || : + @install -d -m0755 debian/$*/usr/share/doc/$* + : debian/$*/usr/share/doc/$*/ + @sh -cx 'install -m0644 debian/copyright debian/$*/usr/share/doc/$*/' + @sh -cx 'install -m0644 debian/changelog \ + debian/$*/usr/share/doc/$*/changelog.Debian' + @test ! -r changelog || \ + sh -cx 'install -m0644 changelog debian/$*/usr/share/doc/$*/' + @test -r debian/$*/usr/share/doc/$*/changelog || \ + sh -cx 'mv debian/$*/usr/share/doc/$*/changelog.Debian \ + debian/$*/usr/share/doc/$*/changelog' + @test -s debian/$*/usr/share/doc/$*/changelog || \ + sh -cx 'rm -f debian/$*/usr/share/doc/$*/changelog' + @gzip -9 debian/$*/usr/share/doc/$*/changelog* +%.deb-docs-docs: %.deb-docs-base + @for i in `cat debian/$*.docs 2>/dev/null || :`; do \ + if test -d $$i; then \ + sh -cx "install -d -m0755 debian/$*/usr/share/doc/$*/$${i##*/}" && \ + for j in $$i/*; do \ + sh -cx "install -m0644 $$j \ + debian/$*/usr/share/doc/$*/$${i##*/}/" || exit 1; \ + done || exit 1; \ + continue; \ + fi; \ + sh -cx "install -m0644 $$i debian/$*/usr/share/doc/$*/" || exit 1; \ + done + @test ! -r debian/$*.README.Debian || \ + sh -cx 'install -m0644 debian/$*.README.Debian \ + debian/$*/usr/share/doc/$*/README.Debian' + @if test -r debian/$*.NEWS.Debian; then \ + sh -cx 'install -m0644 debian/$*.NEWS.Debian \ + debian/$*/usr/share/doc/$*/NEWS.Debian && \ + gzip -9 debian/$*/usr/share/doc/$*/NEWS.Debian'; \ + fi +%.deb-docs-examples: %.deb-docs-docs + @rm -rf debian/$*/usr/share/doc/$*/examples + : debian/$*/usr/share/doc/$*/examples/ + @test ! -r debian/$*.examples || \ + install -d -m0755 debian/$*/usr/share/doc/$*/examples + @for i in `cat debian/$*.examples 2>/dev/null || :`; do \ + sh -cx "install -m0644 $$i debian/$*/usr/share/doc/$*/examples/" \ + || exit 1; \ + done +%.deb-docs: %.deb-checkdir %.deb-docs-base %.deb-docs-docs %.deb-docs-examples + : debian/$*/usr/share/doc/$*/ ok + +%.deb-DEBIAN-base: install + @rm -rf debian/$*/DEBIAN + : debian/$*/DEBIAN/ + @install -d -m0755 debian/$*/DEBIAN + @for i in conffiles shlibs templates; do \ + test ! -r debian/$*.$$i || \ + sh -cx "install -m0644 debian/$*.$$i debian/$*/DEBIAN/$$i" \ + || exit 1; \ + done +%.deb-DEBIAN-scripts: %.deb-DEBIAN-base + @for i in preinst prerm postinst postrm config; do \ + test ! -r debian/$*.$$i || \ + sh -cx "install -m0755 debian/$*.$$i debian/$*/DEBIAN/$$i" \ + || exit 1; \ + done +%.deb-DEBIAN-md5sums: %.deb-DEBIAN-base %.deb-docs + : debian/$*/DEBIAN/md5sums + @rm -f debian/$*/DEBIAN/md5sums + @cd debian/$* && find * -path 'DEBIAN' -prune -o \ + -type f -exec md5sum {} >>DEBIAN/md5sums \; +%.deb-DEBIAN: %.deb-checkdir %.deb-DEBIAN-base %.deb-DEBIAN-scripts \ + %.deb-DEBIAN-md5sums + : debian/$*/DEBIAN/ ok --- ftpcopy-0.6.7.orig/debian/rules +++ ftpcopy-0.6.7/debian/rules @@ -0,0 +1,82 @@ +#!/usr/bin/make -f + +STRIP =strip +ifneq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + STRIP =: nostrip +endif + +DIET =0 +CFLAGS =-g -O2 -Wall +LDFLAGS = +CC =gcc +ifneq (,$(findstring diet,$(DEB_BUILD_OPTIONS))) + DIET =1 + CC =diet -v -Os gcc -nostdinc + CFLAGS =-Wall +endif + +DIR =$(shell pwd)/debian/ftpcopy + +unpack: deb-checkdir unpack-stamp +unpack-stamp: + rm -rf web + tar xzf ftpcopy-0.6.7.tar.gz + rm -f web/ftpcopy && ln -s ftpcopy-0.6.7 web/ftpcopy + test '$(DIET)' -eq 0 || patch -p0 web/ftpcopy/src/conf-cc + echo '$(CC)' >web/ftpcopy/src/conf-ld + echo '$(CFLAGS)' >web/ftpcopy/src/conf-cflags + echo '$(LDFLAGS)' >web/ftpcopy/src/conf-ldflags + touch unpack-stamp + +build: deb-checkdir build-arch-stamp + +build-arch: deb-checkdir build-arch-stamp +build-arch-stamp: unpack-stamp + -gcc -v + (cd web/ftpcopy && exec package/compile) + touch build-arch-stamp + +build-indep: deb-checkdir build-indep-stamp +build-indep-stamp: + touch build-indep-stamp + +clean: deb-checkdir deb-checkuid + rm -rf web + rm -rf '$(DIR)' '$(DIR)'-run + rm -f unpack-stamp build-arch-stamp + rm -f debian/files debian/substvars changelog + +install: install-arch + +install-arch: deb-checkdir deb-checkuid build-arch-stamp + rm -rf '$(DIR)' + install -d -m0755 '$(DIR)'/usr/bin + for i in ftpcopy ftpcp ftpls; do \ + install -m0755 web/ftpcopy/command/$$i '$(DIR)'/usr/bin/ || exit 1; \ + done + for i in ftpcopy ftpls; do \ + $(STRIP) -R .comment -R .note '$(DIR)'/usr/bin/$$i || exit 1; \ + done + # man pages + install -d -m0755 '$(DIR)'/usr/share/man/man1 + install -m0644 web/ftpcopy/doc/*.1 '$(DIR)'/usr/share/man/man1/ + gzip -9 '$(DIR)'/usr/share/man/man1/*.1 + # changelog + test -r changelog || ln -s web/ftpcopy/src/ChangeLog changelog + +install-indep: deb-checkdir deb-checkuid build-indep-stamp + +binary-arch: deb-checkdir deb-checkuid install-arch ftpcopy.deb + test '$(DIET)' -ne 0 || dpkg-shlibdeps '$(DIR)'/usr/bin/* + dpkg-gencontrol -isp -pftpcopy -P'$(DIR)' + dpkg -b '$(DIR)' .. + +binary-indep: deb-checkdir deb-checkuid install-indep + +binary: binary-arch + +.PHONY: unpack build binary-arch build-indep clean install install-arch \ +install-indep binary-arch binary-indep binary + +include debian/implicit