summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Wegener <swegener@gentoo.org>2006-09-24 19:30:39 +0000
committerSven Wegener <swegener@gentoo.org>2006-09-24 19:30:39 +0000
commitca4cf4190215dfdbf79dfc8c2bfd5a5562d7e221 (patch)
tree1bed7bce3a1f042db146f9ba19bd65e075f36d96 /app-arch/par2cmdline
parentUpdate DEPEND to use new sun-jaf and sun-javamail. (diff)
downloadhistorical-ca4cf4190215dfdbf79dfc8c2bfd5a5562d7e221.tar.gz
historical-ca4cf4190215dfdbf79dfc8c2bfd5a5562d7e221.tar.bz2
historical-ca4cf4190215dfdbf79dfc8c2bfd5a5562d7e221.zip
Revision bump, include an update wildcard fix, a fix from debian and a fix from fedora, bugs #129093, #144410 and #137092.
Package-Manager: portage-2.1.2_pre1-r1
Diffstat (limited to 'app-arch/par2cmdline')
-rw-r--r--app-arch/par2cmdline/ChangeLog12
-rw-r--r--app-arch/par2cmdline/Manifest55
-rw-r--r--app-arch/par2cmdline/files/digest-par2cmdline-0.42
-rw-r--r--app-arch/par2cmdline/files/digest-par2cmdline-0.4-r12
-rw-r--r--app-arch/par2cmdline/files/digest-par2cmdline-0.4-r23
-rw-r--r--app-arch/par2cmdline/files/par2cmdline-0.4-letype.patch219
-rw-r--r--app-arch/par2cmdline/files/par2cmdline-0.4-offset.patch16
-rw-r--r--app-arch/par2cmdline/files/par2cmdline-0.4-wildcard-fix.patch92
-rw-r--r--app-arch/par2cmdline/par2cmdline-0.4-r2.ebuild35
9 files changed, 347 insertions, 89 deletions
diff --git a/app-arch/par2cmdline/ChangeLog b/app-arch/par2cmdline/ChangeLog
index fb1dae5bc131..a935be816ce7 100644
--- a/app-arch/par2cmdline/ChangeLog
+++ b/app-arch/par2cmdline/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for app-arch/par2cmdline
-# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-arch/par2cmdline/ChangeLog,v 1.13 2005/08/22 04:02:00 swegener Exp $
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-arch/par2cmdline/ChangeLog,v 1.14 2006/09/24 19:30:39 swegener Exp $
+
+*par2cmdline-0.4-r2 (24 Sep 2006)
+
+ 24 Sep 2006; Sven Wegener <swegener@gentoo.org>
+ +files/par2cmdline-0.4-letype.patch, +files/par2cmdline-0.4-offset.patch,
+ files/par2cmdline-0.4-wildcard-fix.patch, +par2cmdline-0.4-r2.ebuild:
+ Revision bump, include an update wildcard fix, a fix from debian and a fix
+ from fedora, bugs #129093, #144410 and #137092.
22 Aug 2005; Sven Wegener <swegener@gentoo.org> par2cmdline-0.4-r1.ebuild:
Replace hardlinks with symlinks.
diff --git a/app-arch/par2cmdline/Manifest b/app-arch/par2cmdline/Manifest
index 25364877c194..8ab6fde2d39b 100644
--- a/app-arch/par2cmdline/Manifest
+++ b/app-arch/par2cmdline/Manifest
@@ -1,31 +1,56 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
AUX par2cmdline-0.4-gcc4.patch 2064 RMD160 f48469a62b7a09040b7e2816577c7e685fbe9713 SHA1 e91540f729115c5ddc210c93bdda34090e2a2cf1 SHA256 eda0a381f944b1bc9d3d78bf4526f77620bcb01de48abcb08878178e47c833f7
MD5 d52515669d3bc43f19c545fd6405dacc files/par2cmdline-0.4-gcc4.patch 2064
RMD160 f48469a62b7a09040b7e2816577c7e685fbe9713 files/par2cmdline-0.4-gcc4.patch 2064
SHA256 eda0a381f944b1bc9d3d78bf4526f77620bcb01de48abcb08878178e47c833f7 files/par2cmdline-0.4-gcc4.patch 2064
-AUX par2cmdline-0.4-wildcard-fix.patch 1928 RMD160 da870ad57d63660e25320a683fbe811afc55e0ea SHA1 f474adbd82629a798c4e02e017b92411c7522307 SHA256 9b8d88b59f05ecaf16dbfdef5141659e591fc50fe5d3faf674861c63b807cc1c
-MD5 63535457a22c3f35097d27d7af6e8d10 files/par2cmdline-0.4-wildcard-fix.patch 1928
-RMD160 da870ad57d63660e25320a683fbe811afc55e0ea files/par2cmdline-0.4-wildcard-fix.patch 1928
-SHA256 9b8d88b59f05ecaf16dbfdef5141659e591fc50fe5d3faf674861c63b807cc1c files/par2cmdline-0.4-wildcard-fix.patch 1928
-DIST par2cmdline-0.4.tar.gz 239312
+AUX par2cmdline-0.4-letype.patch 4761 RMD160 b2a75dc03b42ed59ad34852f80463fb4d1902337 SHA1 62d1e0a23b492fe1b95802b44941846e6baec838 SHA256 54b41cc8237dd0764629267ca51ded256f820c6bc100acfa3d011638b07b5973
+MD5 1f7adb9308d4e972a5630eb56a42f8d5 files/par2cmdline-0.4-letype.patch 4761
+RMD160 b2a75dc03b42ed59ad34852f80463fb4d1902337 files/par2cmdline-0.4-letype.patch 4761
+SHA256 54b41cc8237dd0764629267ca51ded256f820c6bc100acfa3d011638b07b5973 files/par2cmdline-0.4-letype.patch 4761
+AUX par2cmdline-0.4-offset.patch 519 RMD160 2bf35fba2f326217d1c52f0ee0287bc9146dc7b7 SHA1 9b86e598786d6ff633011aed17eb181b6f0534d2 SHA256 391ffaea8c7a684dbc40ed1edc221681d34a58feafd707d36b0a0af3436d3917
+MD5 cd54801b5107f03982c2b01ead21f02a files/par2cmdline-0.4-offset.patch 519
+RMD160 2bf35fba2f326217d1c52f0ee0287bc9146dc7b7 files/par2cmdline-0.4-offset.patch 519
+SHA256 391ffaea8c7a684dbc40ed1edc221681d34a58feafd707d36b0a0af3436d3917 files/par2cmdline-0.4-offset.patch 519
+AUX par2cmdline-0.4-wildcard-fix.patch 888 RMD160 ec6a5cc616ba6c6ec498e408362d72c2aa612e29 SHA1 b3f6962a5cfa04b522fc06db046da3940ecfdabc SHA256 56d0fe724853298b818a8067b39d918ab2c8e27bb81380fde0499cecea41ab4b
+MD5 c823d25f8862531e6e435ce0c76f8384 files/par2cmdline-0.4-wildcard-fix.patch 888
+RMD160 ec6a5cc616ba6c6ec498e408362d72c2aa612e29 files/par2cmdline-0.4-wildcard-fix.patch 888
+SHA256 56d0fe724853298b818a8067b39d918ab2c8e27bb81380fde0499cecea41ab4b files/par2cmdline-0.4-wildcard-fix.patch 888
+DIST par2cmdline-0.4.tar.gz 239312 RMD160 e98dc84fa7a4304b8d71c1d373fdce0bca1e6290 SHA1 2fcdc932b5d7b4b1c68c4a4ca855ca913d464d2f SHA256 9e32b7dbcf7bca8249f98824757d4868714156fe2276516504cd26f736e9f677
EBUILD par2cmdline-0.4-r1.ebuild 860 RMD160 2fbb807d8aa418930c682c12678156ec934477cc SHA1 07c980b3c406d3c75f6c296fd7a5ed7d3e293d20 SHA256 6efbb9778f9458b253541b96d0629ce47239fd08841318a5ee80752787563e6d
MD5 c07cc3c6d08dc7bc5040ff8f7e7f6e12 par2cmdline-0.4-r1.ebuild 860
RMD160 2fbb807d8aa418930c682c12678156ec934477cc par2cmdline-0.4-r1.ebuild 860
SHA256 6efbb9778f9458b253541b96d0629ce47239fd08841318a5ee80752787563e6d par2cmdline-0.4-r1.ebuild 860
+EBUILD par2cmdline-0.4-r2.ebuild 942 RMD160 1ba0efdbbac8e9b24e7fa0121c397ca8d0aaad64 SHA1 57339f31400b17afb20db2ed4c8eddbe0916632f SHA256 7bc151bc031f111261fb655d83cc769809038c4b7cd9373863f068ab40da4f15
+MD5 6159eb9a55b6c366828dc3c0a301cabc par2cmdline-0.4-r2.ebuild 942
+RMD160 1ba0efdbbac8e9b24e7fa0121c397ca8d0aaad64 par2cmdline-0.4-r2.ebuild 942
+SHA256 7bc151bc031f111261fb655d83cc769809038c4b7cd9373863f068ab40da4f15 par2cmdline-0.4-r2.ebuild 942
EBUILD par2cmdline-0.4.ebuild 630 RMD160 af6182ca38c59951a0f9706476c6ccc809fa60f0 SHA1 f51ca8008b578dd4c2a18bde5baab6dd21ffacfd SHA256 a454844c9119b0847b0ff50368354826fade2439e54966474ccf6d272b923a56
MD5 c94644ad155ca9b9876df4dad13105cb par2cmdline-0.4.ebuild 630
RMD160 af6182ca38c59951a0f9706476c6ccc809fa60f0 par2cmdline-0.4.ebuild 630
SHA256 a454844c9119b0847b0ff50368354826fade2439e54966474ccf6d272b923a56 par2cmdline-0.4.ebuild 630
-MISC ChangeLog 1751 RMD160 bc7b2191218a6c3b0e84e726577a79a7bf9b6539 SHA1 e47cf149f099f74b1ffdc94d6d7371dc3779c2c8 SHA256 ee815d85213e136da39594f28b7b9e2ce9dad2f620dc466ad3957829a847308c
-MD5 241a94dc6b2611304c3d9bd4e8e0c7a1 ChangeLog 1751
-RMD160 bc7b2191218a6c3b0e84e726577a79a7bf9b6539 ChangeLog 1751
-SHA256 ee815d85213e136da39594f28b7b9e2ce9dad2f620dc466ad3957829a847308c ChangeLog 1751
+MISC ChangeLog 2112 RMD160 bfdbf61dbf7363aa10e4ca25cbacd6fad2ddb274 SHA1 407d96e7b36f86b2586ac959e75cd3e6867dacc3 SHA256 aca1b4ca7834dfa0acd5559f2fe335eacbcf80be40ca61120cf4069c2ee430c0
+MD5 00f4516beb0686b32d614aa3e64dd7fa ChangeLog 2112
+RMD160 bfdbf61dbf7363aa10e4ca25cbacd6fad2ddb274 ChangeLog 2112
+SHA256 aca1b4ca7834dfa0acd5559f2fe335eacbcf80be40ca61120cf4069c2ee430c0 ChangeLog 2112
MISC metadata.xml 275 RMD160 7aca4724ede81b0eaad9b4536f00a6a805727cef SHA1 b1a92ff0d6bfacd26122ac4dbd4725ef2b023f81 SHA256 1e9c7343efc06a4d4143421f4bf3740c30f71ed6ce5011231505e7e911f31548
MD5 f5775272cd7e22ae38566107c416c1e4 metadata.xml 275
RMD160 7aca4724ede81b0eaad9b4536f00a6a805727cef metadata.xml 275
SHA256 1e9c7343efc06a4d4143421f4bf3740c30f71ed6ce5011231505e7e911f31548 metadata.xml 275
-MD5 c4c768958c9fb685125ffc0399983685 files/digest-par2cmdline-0.4 67
-RMD160 8f5af375abe7c9a4b4b4366b4aa928414d702d62 files/digest-par2cmdline-0.4 67
-SHA256 af5128838b8b2dd997954728c45ac16d4300005df2f750eeb37e87dfbf4524c1 files/digest-par2cmdline-0.4 67
-MD5 c4c768958c9fb685125ffc0399983685 files/digest-par2cmdline-0.4-r1 67
-RMD160 8f5af375abe7c9a4b4b4366b4aa928414d702d62 files/digest-par2cmdline-0.4-r1 67
-SHA256 af5128838b8b2dd997954728c45ac16d4300005df2f750eeb37e87dfbf4524c1 files/digest-par2cmdline-0.4-r1 67
+MD5 9aabf32d58c7d06a3bb549444e85da48 files/digest-par2cmdline-0.4 247
+RMD160 d838a0bc0a34ea226efee7c9204266ae6444cc20 files/digest-par2cmdline-0.4 247
+SHA256 88ea563f9e9bdc6989acf11788189f117dbc4f6e6f87731a387ba18ce120f5b8 files/digest-par2cmdline-0.4 247
+MD5 9aabf32d58c7d06a3bb549444e85da48 files/digest-par2cmdline-0.4-r1 247
+RMD160 d838a0bc0a34ea226efee7c9204266ae6444cc20 files/digest-par2cmdline-0.4-r1 247
+SHA256 88ea563f9e9bdc6989acf11788189f117dbc4f6e6f87731a387ba18ce120f5b8 files/digest-par2cmdline-0.4-r1 247
+MD5 9aabf32d58c7d06a3bb549444e85da48 files/digest-par2cmdline-0.4-r2 247
+RMD160 d838a0bc0a34ea226efee7c9204266ae6444cc20 files/digest-par2cmdline-0.4-r2 247
+SHA256 88ea563f9e9bdc6989acf11788189f117dbc4f6e6f87731a387ba18ce120f5b8 files/digest-par2cmdline-0.4-r2 247
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.5 (GNU/Linux)
+
+iD8DBQFFFtzlI1lqEGTUzyQRAo13AKCV6MQeucGhVRytX+eeJsxdK2zY0gCbBtd2
+4DmQQNtY9IJjC4yNQr7he5s=
+=ij2P
+-----END PGP SIGNATURE-----
diff --git a/app-arch/par2cmdline/files/digest-par2cmdline-0.4 b/app-arch/par2cmdline/files/digest-par2cmdline-0.4
index baa9c66a199c..904aac66aafb 100644
--- a/app-arch/par2cmdline/files/digest-par2cmdline-0.4
+++ b/app-arch/par2cmdline/files/digest-par2cmdline-0.4
@@ -1 +1,3 @@
MD5 1551b63e57e3c232254dc62073b723a9 par2cmdline-0.4.tar.gz 239312
+RMD160 e98dc84fa7a4304b8d71c1d373fdce0bca1e6290 par2cmdline-0.4.tar.gz 239312
+SHA256 9e32b7dbcf7bca8249f98824757d4868714156fe2276516504cd26f736e9f677 par2cmdline-0.4.tar.gz 239312
diff --git a/app-arch/par2cmdline/files/digest-par2cmdline-0.4-r1 b/app-arch/par2cmdline/files/digest-par2cmdline-0.4-r1
index baa9c66a199c..904aac66aafb 100644
--- a/app-arch/par2cmdline/files/digest-par2cmdline-0.4-r1
+++ b/app-arch/par2cmdline/files/digest-par2cmdline-0.4-r1
@@ -1 +1,3 @@
MD5 1551b63e57e3c232254dc62073b723a9 par2cmdline-0.4.tar.gz 239312
+RMD160 e98dc84fa7a4304b8d71c1d373fdce0bca1e6290 par2cmdline-0.4.tar.gz 239312
+SHA256 9e32b7dbcf7bca8249f98824757d4868714156fe2276516504cd26f736e9f677 par2cmdline-0.4.tar.gz 239312
diff --git a/app-arch/par2cmdline/files/digest-par2cmdline-0.4-r2 b/app-arch/par2cmdline/files/digest-par2cmdline-0.4-r2
new file mode 100644
index 000000000000..904aac66aafb
--- /dev/null
+++ b/app-arch/par2cmdline/files/digest-par2cmdline-0.4-r2
@@ -0,0 +1,3 @@
+MD5 1551b63e57e3c232254dc62073b723a9 par2cmdline-0.4.tar.gz 239312
+RMD160 e98dc84fa7a4304b8d71c1d373fdce0bca1e6290 par2cmdline-0.4.tar.gz 239312
+SHA256 9e32b7dbcf7bca8249f98824757d4868714156fe2276516504cd26f736e9f677 par2cmdline-0.4.tar.gz 239312
diff --git a/app-arch/par2cmdline/files/par2cmdline-0.4-letype.patch b/app-arch/par2cmdline/files/par2cmdline-0.4-letype.patch
new file mode 100644
index 000000000000..e0c8d6c57b74
--- /dev/null
+++ b/app-arch/par2cmdline/files/par2cmdline-0.4-letype.patch
@@ -0,0 +1,219 @@
+diff -ur par2cmdline-0.4-orig/letype.h par2cmdline-0.4/letype.h
+--- par2cmdline-0.4-orig/letype.h 2003-05-26 20:01:17.000000000 +0200
++++ par2cmdline-0.4/letype.h 2006-05-09 10:47:29.000000000 +0200
+@@ -28,44 +28,15 @@
+
+ #else
+
+-class leu16
++struct leu16
+ {
+-public:
+- leu16(void);
+-
+- leu16(const leu16 &other);
+- leu16& operator=(const leu16 &other);
+-
+- leu16(const u16 &other);
+ leu16& operator=(const u16 &other);
+
+ operator u16(void) const;
+
+-protected:
+ u16 value;
+ };
+
+-inline leu16::leu16(void)
+-{
+-}
+-
+-inline leu16::leu16(const leu16 &other)
+-: value(other.value)
+-{
+-}
+-
+-inline leu16& leu16::operator =(const leu16 &other)
+-{
+- value = other.value;
+- return *this;
+-}
+-
+-inline leu16::leu16(const u16 &other)
+-{
+- ((unsigned char*)&value)[0] = (unsigned char)((other >> 0) & 0xff);
+- ((unsigned char*)&value)[1] = (unsigned char)((other >> 8) & 0xff);
+-}
+-
+ inline leu16& leu16::operator=(const u16 &other)
+ {
+ ((unsigned char*)&value)[0] = (unsigned char)((other >> 0) & 0xff);
+@@ -81,46 +52,15 @@
+ }
+
+
+-class leu32
++struct leu32
+ {
+-public:
+- leu32(void);
+-
+- leu32(const leu32 &other);
+- leu32& operator=(const leu32 &other);
+-
+- leu32(const u32 &other);
+ leu32& operator=(const u32 &other);
+
+ operator u32(void) const;
+
+-protected:
+ u32 value;
+ };
+
+-inline leu32::leu32(void)
+-{
+-}
+-
+-inline leu32::leu32(const leu32 &other)
+-: value(other.value)
+-{
+-}
+-
+-inline leu32& leu32::operator =(const leu32 &other)
+-{
+- value = other.value;
+- return *this;
+-}
+-
+-inline leu32::leu32(const u32 &other)
+-{
+- ((unsigned char*)&value)[0] = (unsigned char)((other >> 0) & 0xff);
+- ((unsigned char*)&value)[1] = (unsigned char)((other >> 8) & 0xff);
+- ((unsigned char*)&value)[2] = (unsigned char)((other >> 16) & 0xff);
+- ((unsigned char*)&value)[3] = (unsigned char)((other >> 24) & 0xff);
+-}
+-
+ inline leu32& leu32::operator=(const u32 &other)
+ {
+ ((unsigned char*)&value)[0] = (unsigned char)((other >> 0) & 0xff);
+@@ -140,50 +80,15 @@
+ }
+
+
+-class leu64
++struct leu64
+ {
+-public:
+- leu64(void);
+-
+- leu64(const leu64 &other);
+- leu64& operator=(const leu64 &other);
+-
+- leu64(const u64 &other);
+ leu64& operator=(const u64 &other);
+
+ operator u64(void) const;
+
+-protected:
+ u64 value;
+ };
+
+-inline leu64::leu64(void)
+-{
+-}
+-
+-inline leu64::leu64(const leu64 &other)
+-: value(other.value)
+-{
+-}
+-
+-inline leu64& leu64::operator =(const leu64 &other)
+-{
+- value = other.value;
+- return *this;
+-}
+-
+-inline leu64::leu64(const u64 &other)
+-{
+- ((unsigned char*)&value)[0] = (unsigned char)((other >> 0) & 0xff);
+- ((unsigned char*)&value)[1] = (unsigned char)((other >> 8) & 0xff);
+- ((unsigned char*)&value)[2] = (unsigned char)((other >> 16) & 0xff);
+- ((unsigned char*)&value)[3] = (unsigned char)((other >> 24) & 0xff);
+- ((unsigned char*)&value)[4] = (unsigned char)((other >> 32) & 0xff);
+- ((unsigned char*)&value)[5] = (unsigned char)((other >> 40) & 0xff);
+- ((unsigned char*)&value)[6] = (unsigned char)((other >> 48) & 0xff);
+- ((unsigned char*)&value)[7] = (unsigned char)((other >> 56) & 0xff);
+-}
+-
+ inline leu64& leu64::operator=(const u64 &other)
+ {
+ ((unsigned char*)&value)[0] = (unsigned char)((other >> 0) & 0xff);
+diff -ur par2cmdline-0.4-orig/md5.h par2cmdline-0.4/md5.h
+--- par2cmdline-0.4-orig/md5.h 2003-08-02 01:41:04.000000000 +0200
++++ par2cmdline-0.4/md5.h 2006-05-09 10:47:29.000000000 +0200
+@@ -20,6 +20,13 @@
+ #ifndef __MD5_H__
+ #define __MD5_H__
+
++#ifdef WIN32
++#pragma pack(push, 1)
++#define PACKED
++#else
++#define PACKED __attribute__ ((packed))
++#endif
++
+ // This file defines the MD5Hash and MD5Context objects which are used
+ // to compute and manipulate the MD5 Hash values for a block of data.
+
+@@ -35,12 +42,11 @@
+
+ // MD5 Hash value
+
+-class MD5Hash
+-{
+-public:
+- // Constructor does not initialise the value
+- MD5Hash(void) {};
++struct MD5Hash;
++ostream& operator<<(ostream &s, const MD5Hash &hash);
+
++struct MD5Hash
++{
+ // Comparison operators
+ bool operator==(const MD5Hash &other) const;
+ bool operator!=(const MD5Hash &other) const;
+@@ -54,13 +60,8 @@
+ friend ostream& operator<<(ostream &s, const MD5Hash &hash);
+ string print(void) const;
+
+- // Copy and assignment
+- MD5Hash(const MD5Hash &other);
+- MD5Hash& operator=(const MD5Hash &other);
+-
+-public:
+ u8 hash[16]; // 16 byte MD5 Hash value
+-};
++} PACKED;
+
+ // Intermediate computation state
+
+@@ -144,16 +145,9 @@
+ return !other.operator<(*this);
+ }
+
+-inline MD5Hash::MD5Hash(const MD5Hash &other)
+-{
+- memcpy(&hash, &other.hash, sizeof(hash));
+-}
+-
+-inline MD5Hash& MD5Hash::operator=(const MD5Hash &other)
+-{
+- memcpy(&hash, &other.hash, sizeof(hash));
+-
+- return *this;
+-}
++#ifdef WIN32
++#pragma pack(pop)
++#endif
++#undef PACKED
+
+ #endif // __MD5_H__
diff --git a/app-arch/par2cmdline/files/par2cmdline-0.4-offset.patch b/app-arch/par2cmdline/files/par2cmdline-0.4-offset.patch
new file mode 100644
index 000000000000..653928066807
--- /dev/null
+++ b/app-arch/par2cmdline/files/par2cmdline-0.4-offset.patch
@@ -0,0 +1,16 @@
+--- par2cmdline-0.4.orig/par2creatorsourcefile.cpp 2004-04-15 14:45:23.000000000 +0100
++++ par2cmdline-0.4/par2creatorsourcefile.cpp 2005-09-29 02:27:43.000000000 +0100
+@@ -213,11 +213,12 @@
+ }
+ }
+
++ offset += want;
++
+ if (noiselevel > CommandLine::nlQuiet)
+ {
+ // Display progress
+ u32 oldfraction = (u32)(1000 * offset / filesize);
+- offset += want;
+ u32 newfraction = (u32)(1000 * offset / filesize);
+ if (oldfraction != newfraction)
+ {
diff --git a/app-arch/par2cmdline/files/par2cmdline-0.4-wildcard-fix.patch b/app-arch/par2cmdline/files/par2cmdline-0.4-wildcard-fix.patch
index a3dd738e28ad..d5f43c7963ad 100644
--- a/app-arch/par2cmdline/files/par2cmdline-0.4-wildcard-fix.patch
+++ b/app-arch/par2cmdline/files/par2cmdline-0.4-wildcard-fix.patch
@@ -1,75 +1,23 @@
-Fix wildcard expansion of non-regular files.
-
-Patch by Bardur Arantsson.
-
-http://bugs.gentoo.org/51817
-http://sourceforge.net/tracker/index.php?func=detail&aid=958902&group_id=30568&atid=399698
-
---- par2cmdline-0.4/diskfile.cpp
-+++ par2cmdline-0.4/diskfile.cpp
-@@ -618,6 +618,12 @@
- return result;
- }
-
-+bool is_regular_file(const string &p)
-+{
-+ struct stat st;
-+ return (stat(p.c_str(), &st) == 0 && S_ISREG(st.st_mode));
-+}
-+
- list<string>* DiskFile::FindFiles(string path, string wildcard)
- {
- list<string> *matches = new list<string>;
-@@ -648,7 +654,15 @@
- name.substr(0, where) == front &&
- name.substr(name.size()-back.size()) == back)
- {
-- matches->push_back(path + name);
-+ if (is_regular_file(path + name))
-+ {
-+ matches->push_back(path + name);
-+ }
-+ else
-+ {
-+ cerr << "Warning: '" << (path + name)
-+ << "' ignored; not a regular file" << endl;
-+ }
- }
+--- commandline.cpp.orig 2006-04-06 21:41:27.000000000 -0700
++++ commandline.cpp 2006-04-07 00:12:29.000000000 -0700
+@@ -550,6 +550,20 @@
}
else
-@@ -667,7 +681,15 @@
-
- if (pw == wildcard.end())
- {
-- matches->push_back(path + name);
-+ if (is_regular_file(path + name))
-+ {
-+ matches->push_back(path + name);
-+ }
-+ else
-+ {
-+ cerr << "Warning: '" << (path + name)
-+ << "' ignored; not a regular file" << endl;
-+ }
- }
- }
+ {
++ //start of shell expanded * patch. -- Michael Evans
++ //The shell might expaned * so, if we have our name and we're creating, then filter for files...
++ if ((parfilename.length() != 0) && (operation == opCreate))
++ {
++ struct stat st;
++ if (!(stat(argv[0], &st) == 0 && S_ISREG(st.st_mode)))
++ {
++ cerr << "Skipping non-regular file: " << argv[0] << endl;
++ argc--;
++ argv++;
++ options = false;
++ continue;
++ }
++ }//end of shell expanded * patch. -- Michael Evans
+ filenames = new list<string>;
+ filenames->push_back(argv[0]);
}
-@@ -678,12 +700,15 @@
- }
- else
- {
-- struct stat st;
-- string fn = path + wildcard;
-- if (stat(fn.c_str(), &st) == 0)
-+ if (is_regular_file(path + wildcard))
- {
- matches->push_back(path + wildcard);
- }
-+ else
-+ {
-+ cerr << "Warning: '" << (path + wildcard)
-+ << "' ignored; not a regular file" << endl;
-+ }
- }
-
- return matches;
diff --git a/app-arch/par2cmdline/par2cmdline-0.4-r2.ebuild b/app-arch/par2cmdline/par2cmdline-0.4-r2.ebuild
new file mode 100644
index 000000000000..803b3c109807
--- /dev/null
+++ b/app-arch/par2cmdline/par2cmdline-0.4-r2.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-arch/par2cmdline/par2cmdline-0.4-r2.ebuild,v 1.1 2006/09/24 19:30:39 swegener Exp $
+
+inherit eutils
+
+DESCRIPTION="A PAR-2.0 file verification and repair tool"
+HOMEPAGE="http://parchive.sourceforge.net/"
+SRC_URI="mirror://sourceforge/parchive/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~ppc ~ppc-macos ~x86"
+IUSE=""
+
+DEPEND=""
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}"/${P}-wildcard-fix.patch
+ epatch "${FILESDIR}"/${P}-offset.patch
+ epatch "${FILESDIR}"/${P}-letype.patch
+ epatch "${FILESDIR}"/${P}-gcc4.patch
+}
+
+src_install() {
+ make install DESTDIR="${D}" || die "make install failed"
+ # Replace the hardlinks with symlinks
+ dosym par2 /usr/bin/par2create
+ dosym par2 /usr/bin/par2repair
+ dosym par2 /usr/bin/par2verify
+ dodoc AUTHORS ChangeLog README
+}