diff --git a/amule/.md5sum b/amule/.md5sum index 29ef4c792..c97c361eb 100644 --- a/amule/.md5sum +++ b/amule/.md5sum @@ -1 +1,2 @@ 64a0d41edbdd7cf36fa892e45a652bfd aMule-2.2.3.tar.bz2 +9eeb21301dfb9f046d3d2956cf818629 amule-2.2.3-configure.patch diff --git a/amule/Pkgfile b/amule/Pkgfile index dd33e46d4..e49bcbc6b 100644 --- a/amule/Pkgfile +++ b/amule/Pkgfile @@ -7,10 +7,12 @@ name=amule version=2.2.3 release=1 -source=(http://download.berlios.de/amule/aMule-$version.tar.bz2) +source=(http://download.berlios.de/amule/aMule-$version.tar.bz2 + $name-$version-configure.patch) build() { cd aMule-$version + patch -p0 -i $SRC/$name-$version-configure.patch export CFLAGS="${CFLAGS//-fstack-protector/}" export CXXFLAGS="${CXXFLAGS//-fstack-protector/}" ./configure --prefix=/usr \ diff --git a/amule/amule-2.2.3-configure.patch b/amule/amule-2.2.3-configure.patch new file mode 100644 index 000000000..2aaa55a68 --- /dev/null +++ b/amule/amule-2.2.3-configure.patch @@ -0,0 +1,11 @@ +--- configure~ 2009-04-02 22:09:33.000000000 +0300 ++++ configure 2009-04-02 22:09:44.000000000 +0300 +@@ -8451,7 +8451,7 @@ + + # Find out the crypto++ version and check against the minimum required + cryptopp_header_path="${cryptopp_includedir+$cryptopp_includedir/}$CRYPTOPP_INCLUDE_PREFIX/$cryptopp_file_with_version" +- CRYPTOPP_VERSION_STRING=`grep "Reference Manual" $cryptopp_header_path | sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'` ++ CRYPTOPP_VERSION_STRING=`grep "API Reference" $cryptopp_header_path | sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'` + CRYPTOPP_VERSION_NUMBER=`echo $CRYPTOPP_VERSION_STRING | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'` + minvers=`echo 5.1 | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'` +