summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/partimage/APKBUILD42
-rw-r--r--testing/partimage/partimage-0.6.8-gcc44.patch24
2 files changed, 66 insertions, 0 deletions
diff --git a/testing/partimage/APKBUILD b/testing/partimage/APKBUILD
new file mode 100644
index 000000000..8ee6c8004
--- /dev/null
+++ b/testing/partimage/APKBUILD
@@ -0,0 +1,42 @@
+# Maintainer: Leonardo Arena <rnalrd@gmail.com>
+pkgname=partimage
+pkgver=0.6.8
+pkgrel=0
+pkgdesc="Saves partitions having a supported filesystem to an image file"
+url="http://www.partimage.org"
+license="GPL"
+depends=
+makedepends="bzip2-dev newt-dev zlib-dev gettext-dev slang-dev openssl-dev \
+ newt-dev autoconf"
+install=
+subpackages="$pkgname-doc"
+source="http://downloads.sourceforge.net/project/$pkgname/stable/$pkgver/$pkgname-$pkgver.tar.bz2
+ partimage-0.6.8-gcc44.patch
+"
+
+_builddir="$srcdir"/$pkgname-$pkgver
+
+prepare() {
+ cd "$_builddir"
+ patch -p1 -i $srcdir/$pkgname-0.6.8-gcc44.patch || return 1
+}
+
+build() {
+ cd "$_builddir"
+ export LIBS="$LIBS -lintl"
+ autoconf && automake
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --disable-nls
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+md5sums="c13c8ede8cdf7745b97ec5827920ece7 partimage-0.6.8.tar.bz2
+a6430cf98c8f236c41dd3addcde1fcb8 partimage-0.6.8-gcc44.patch"
diff --git a/testing/partimage/partimage-0.6.8-gcc44.patch b/testing/partimage/partimage-0.6.8-gcc44.patch
new file mode 100644
index 000000000..b171dad08
--- /dev/null
+++ b/testing/partimage/partimage-0.6.8-gcc44.patch
@@ -0,0 +1,24 @@
+diff -Naur partimage-0.6.8/src/client/netclient.h partimage-0.6.8-new/src/client/netclient.h
+--- partimage-0.6.8/src/client/netclient.h 2009-09-24 16:21:42.000000000 -0300
++++ partimage-0.6.8-new/src/client/netclient.h 2009-11-26 09:23:07.000000000 -0200
+@@ -35,7 +35,7 @@
+ #ifdef HAVE_SSL
+ SSL_CTX * ctx;
+ X509 * server_cert;
+- SSL_METHOD * meth;
++ const SSL_METHOD * meth;
+ #endif
+ bool m_bUseSSL;
+ bool m_bMustLogin;
+diff -Naur partimage-0.6.8/src/server/netserver.h partimage-0.6.8-new/src/server/netserver.h
+--- partimage-0.6.8/src/server/netserver.h 2009-09-12 05:06:22.000000000 -0300
++++ partimage-0.6.8-new/src/server/netserver.h 2009-11-26 09:32:02.000000000 -0200
+@@ -41,7 +41,7 @@
+ #ifdef HAVE_SSL
+ SSL_CTX * ctx;
+ X509 * client_cert;
+- SSL_METHOD * meth;
++ const SSL_METHOD * meth;
+ int err;
+ #endif
+