From 04823dd54114fd65867d3bf5932049c248cc5113 Mon Sep 17 00:00:00 2001 From: Adam Hoka Date: Fri, 8 Jun 2007 01:10:17 +0000 Subject: [PATCH] cpdup works like the standard 'cp' program but is designed to make exact mirrors of directory trees by default, whereas the 'cp' program requires a ton of options to even come close (and even then doesn't do it properly). --- cpdup/DESCR | 3 +++ cpdup/Makefile | 20 ++++++++++++++++++++ cpdup/PLIST | 3 +++ cpdup/distinfo | 7 +++++++ cpdup/patches/patch-aa | 15 +++++++++++++++ cpdup/patches/patch-ab | 12 ++++++++++++ 6 files changed, 60 insertions(+) create mode 100644 cpdup/DESCR create mode 100644 cpdup/Makefile create mode 100644 cpdup/PLIST create mode 100644 cpdup/distinfo create mode 100644 cpdup/patches/patch-aa create mode 100644 cpdup/patches/patch-ab diff --git a/cpdup/DESCR b/cpdup/DESCR new file mode 100644 index 0000000000..3dc00c8f25 --- /dev/null +++ b/cpdup/DESCR @@ -0,0 +1,3 @@ +It works like the standard 'cp' program but is designed to make exact mirrors of +directory trees by default, whereas the 'cp' program requires a ton of options +to even come close (and even then doesn't do it properly). diff --git a/cpdup/Makefile b/cpdup/Makefile new file mode 100644 index 0000000000..5d7d23f236 --- /dev/null +++ b/cpdup/Makefile @@ -0,0 +1,20 @@ +# $NetBSD: Makefile,v 1.1.1.1 2007/06/08 01:10:17 hoka_adam Exp $ +# + +DISTNAME= cpdup-1.07 +CATEGORIES= sysutils +MASTER_SITES= http://apollo.backplane.com/FreeSrc/ \ + http://utenti.gufi.org/~gmarco/files/distfiles/ +EXTRACT_SUFX= .tgz + +MAINTAINER= adam.hoka@gmail.com +HOMEPAGE= http://apollo.backplane.com/FreeSrc/ +COMMENT= Designed to make exact mirrors of directory trees + +WRKSRC= ${WRKDIR}/cpdup + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/cpdup ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/cpdup.1 ${PREFIX}/${PKGMANDIR}/man1 + +.include "../../mk/bsd.pkg.mk" diff --git a/cpdup/PLIST b/cpdup/PLIST new file mode 100644 index 0000000000..2e91341e7e --- /dev/null +++ b/cpdup/PLIST @@ -0,0 +1,3 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2007/06/08 01:10:17 hoka_adam Exp $ +bin/cpdup +man/man1/cpdup.1 diff --git a/cpdup/distinfo b/cpdup/distinfo new file mode 100644 index 0000000000..7567fa28a8 --- /dev/null +++ b/cpdup/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1.1.1 2007/06/08 01:10:17 hoka_adam Exp $ + +SHA1 (cpdup-1.07.tgz) = c5bf465a5331c7c507a90ad0dfe34858dfce82f8 +RMD160 (cpdup-1.07.tgz) = 14cb34a206eb8c65fa2b594ffdcbd7e6b62fadfd +Size (cpdup-1.07.tgz) = 23242 bytes +SHA1 (patch-aa) = abedd03e5b451e54453c2b358b84cc37abf645b3 +SHA1 (patch-ab) = 2845c3d73cd4c35bb2441069273182048472098f diff --git a/cpdup/patches/patch-aa b/cpdup/patches/patch-aa new file mode 100644 index 0000000000..41d5353dfb --- /dev/null +++ b/cpdup/patches/patch-aa @@ -0,0 +1,15 @@ +$NetBSD: patch-aa,v 1.1.1.1 2007/06/08 01:10:17 hoka_adam Exp $ + +--- Makefile.orig 2007-06-08 02:02:17.000000000 +0200 ++++ Makefile +@@ -8,8 +8,8 @@ SRCS= cpdup.c hcproto.c hclink.c misc.c + SRCS+= md5.c + .endif + +-LDADD+= -lmd +-DPADD+= ${LIBMD} ++#LDADD+= -lmd ++#DPADD+= ${LIBMD} + + .include + diff --git a/cpdup/patches/patch-ab b/cpdup/patches/patch-ab new file mode 100644 index 0000000000..30fe421c63 --- /dev/null +++ b/cpdup/patches/patch-ab @@ -0,0 +1,12 @@ +$NetBSD: patch-ab,v 1.1.1.1 2007/06/08 01:10:17 hoka_adam Exp $ + +--- md5.c.orig 2006-08-13 22:24:35.000000000 +0200 ++++ md5.c +@@ -266,6 +266,6 @@ doMD5File(const char *filename, char *bu + CountReadBytes += size; + } + } +- return MD5File(filename, buf); ++ return doMD5File(filename, buf); + } +