aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorSimon Rupf <simon@rupf.net>2020-02-14 07:06:06 +0100
committerRasmus Thomsen <oss@cogitri.dev>2020-02-17 18:03:18 +0100
commite06c3e6cfdf4bdd5f9cdb734a7f65842dd0fca33 (patch)
tree6711b2a97d50f2c0d4f49710ef8acb1a190edd94 /testing
parent3bf4e490b361f0079bd538dc01530a6384c6563f (diff)
downloadaports-e06c3e6cfdf4bdd5f9cdb734a7f65842dd0fca33.tar.bz2
aports-e06c3e6cfdf4bdd5f9cdb734a7f65842dd0fca33.tar.xz
testing/dar: new aport
http://dar.linux.free.fr/ Disk ARchive Co-authored-by: Rasmus Thomsen <oss@cogitri.dev>
Diffstat (limited to 'testing')
-rw-r--r--testing/dar/APKBUILD35
-rw-r--r--testing/dar/configure-sys-xattr.patch21
-rw-r--r--testing/dar/fix-autoreconf.patch10
3 files changed, 66 insertions, 0 deletions
diff --git a/testing/dar/APKBUILD b/testing/dar/APKBUILD
new file mode 100644
index 0000000000..b2de0d5783
--- /dev/null
+++ b/testing/dar/APKBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Simon Rupf <simon@rupf.net>
+pkgname=dar
+pkgver=2.6.8
+pkgrel=0
+pkgdesc="Disk ARchive"
+url="http://dar.linux.free.fr/"
+arch="all"
+license="GPL-2.0-or-later"
+options="!check" # the provided "make check" requires root permissions
+makedepends="zlib-dev bzip2-dev lzo-dev xz-dev libgcrypt-dev gpgme-dev
+ e2fsprogs-dev librsync-dev curl-dev gettext-dev automake
+ autoconf libtool libthreadar-dev"
+subpackages="$pkgname-doc $pkgname-lang $pkgname-libs $pkgname-dev"
+source="https://downloads.sourceforge.net/dar/dar-$pkgver.tar.gz
+ configure-sys-xattr.patch
+ fix-autoreconf.patch"
+
+prepare() {
+ default_prepare
+
+ autoreconf -fi
+}
+
+build() {
+ ./configure --prefix=/usr --disable-dar-static --disable-static --disable-upx
+ make
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="a36c020a92154889821add12c51b5195bf7253f6b3edfa343ae359fea6b93a0b7f6fb1e6673198aa78e1682ed98102633c731a99456b38f0521774d386596da7 dar-2.6.8.tar.gz
+0635b62bc38d8493ae9b3631f0b4989996f5f631b93c7c9e9396bf12d4699f0fed1a507c52867651f9c2b88d9d6a72063389989153e9566cf62ea682580816e5 configure-sys-xattr.patch
+cd28d64c49afa3e648b2082f7f287221c9d407f0f86457c54c1fef090694e005e46caf29d89fcdc7a7cca6a73f9bb706ef233cbf87799942e404b881262437e8 fix-autoreconf.patch"
diff --git a/testing/dar/configure-sys-xattr.patch b/testing/dar/configure-sys-xattr.patch
new file mode 100644
index 0000000000..e1cafa9813
--- /dev/null
+++ b/testing/dar/configure-sys-xattr.patch
@@ -0,0 +1,21 @@
+--- ./configure.ac
++++ ./configure.ac
+@@ -648,7 +648,7 @@
+ [ AC_MSG_CHECKING([for Extended Attribute support])
+ AC_MSG_RESULT([disabled])
+ ],
+- [ AC_CHECK_HEADERS([attr/xattr.h])
++ [ AC_CHECK_HEADERS([attr/xattr.h sys/xattr.h])
+ AC_CHECK_LIB(attr, [lgetxattr], [], [])
+ AC_MSG_CHECKING([for Unix Extended Attribute support])
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[extern "C" {
+@@ -658,6 +658,9 @@
+ #if HAVE_ATTR_XATTR_H
+ #include <attr/xattr.h>
+ #endif
++ #if HAVE_SYS_XATTR_H
++ #include <sys/xattr.h>
++ #endif
+ }]],
+ [ lgetxattr((char *)0, (char *)0, (void *)0, 0); ])
+ ],
diff --git a/testing/dar/fix-autoreconf.patch b/testing/dar/fix-autoreconf.patch
new file mode 100644
index 0000000000..1792514455
--- /dev/null
+++ b/testing/dar/fix-autoreconf.patch
@@ -0,0 +1,10 @@
+--- a/configure.ac 2020-02-17 18:00:18.107774067 +0100
++++ b/configure.ac 2020-02-17 18:00:33.294204580 +0100
+@@ -30,7 +30,7 @@
+
+ AM_INIT_AUTOMAKE([subdir-objects])
+ AM_GNU_GETTEXT([external])
+-AM_GNU_GETTEXT_VERSION
++AM_GNU_GETTEXT_VERSION(0.18.3)
+ XGETTEXT_EXTRA_OPTIONS='--keyword=dar_gettext'
+ AM_ICONV