aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained
diff options
context:
space:
mode:
authorEivind Uggedal <eivind@uggedal.com>2014-05-31 09:47:16 +0000
committerEivind Uggedal <eivind@uggedal.com>2014-05-31 09:47:16 +0000
commit067ef99a2119f0dac1e98d01bdab34a7d6f167b8 (patch)
tree476869211d761141710264a15833dc1135becfe2 /unmaintained
parent037339bec8822fe30328c48fe7b109f3ed6dbebb (diff)
downloadaports-067ef99a2119f0dac1e98d01bdab34a7d6f167b8.tar.bz2
aports-067ef99a2119f0dac1e98d01bdab34a7d6f167b8.tar.xz
testing/partclone: move to unmaintained
Diffstat (limited to 'unmaintained')
-rw-r--r--unmaintained/partclone/APKBUILD68
-rw-r--r--unmaintained/partclone/memtrace.patch14
2 files changed, 82 insertions, 0 deletions
diff --git a/unmaintained/partclone/APKBUILD b/unmaintained/partclone/APKBUILD
new file mode 100644
index 0000000000..ec56ba81df
--- /dev/null
+++ b/unmaintained/partclone/APKBUILD
@@ -0,0 +1,68 @@
+# Contributor: Leonardo Arena <rnarld@alpinelinux.org>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=partclone
+pkgver=0.2.38
+pkgrel=1
+pkgdesc="Partition cloning tool"
+url="http://partclone.org/"
+arch="all"
+license="GPL2+"
+depends=
+makedepends="e2fsprogs-dev ncurses-dev ntfsprogs-dev"
+install=""
+subpackages="$pkgname-doc"
+source="http://downloads.sourceforge.net/project/partclone/stable/$pkgver/partclone_$pkgver.tar.gz
+ memtrace.patch"
+
+# TODO:
+# libreiserfs: http://reiserfs.linux.kiev.ua
+#
+_builddir="$srcdir"/partclone-$pkgver
+
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+# --enable-all enable all supported file system
+# --enable-extfs enable ext2/3/4 file system
+# --enable-xfs enable XFS file system
+# --enable-reiserfs enable REISERFS 3.6/3.6 file system
+# --enable-reiser4 enable Reiser4 file system
+# --enable-hfsp enable HFS plus file system
+# --enable-fat enable FAT file system
+# --enable-ntfs enable NTFS file system
+# --enable-ufs enable UFS(1/2) file system
+# --enable-vmfs enable vmfs file system
+# --enable-jfs enable jfs file system
+# --enable-btrfs enable btrfs file system
+## --enable-xfs \
+ ac_cv_lib_rt_aio_init=yes ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ --enable-extfs \
+ --enable-fat \
+ --enable-ntfs \
+ --enable-ncursesw \
+ --disable-nls \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="8577ac06ad54a829435f272eecedfa14 partclone_0.2.38.tar.gz
+83dfb01e5d68795266726826a49a2de8 memtrace.patch"
diff --git a/unmaintained/partclone/memtrace.patch b/unmaintained/partclone/memtrace.patch
new file mode 100644
index 0000000000..9c8ba9af1b
--- /dev/null
+++ b/unmaintained/partclone/memtrace.patch
@@ -0,0 +1,14 @@
+diff --git a/src/main.c b/src/main.c
+index 2fb6b58..8f079f2 100644
+--- a/src/main.c
++++ b/src/main.c
+@@ -20,7 +20,9 @@
+ #include <sys/types.h>
+ #include <stdio.h>
+ #include <stdlib.h>
++#ifdef HAVE_MEMTRACE
+ #include <mcheck.h>
++#endif
+ #include <stdint.h>
+ #include <stdarg.h>
+ #include <string.h>