aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
authorTuan M. Hoang <tmhoang@flatglobe.org>2017-04-27 00:12:04 -0400
committerTimo Teräs <timo.teras@iki.fi>2017-04-27 09:11:53 +0300
commitb9d5d9df5a7d56c14b6a56555490b1eab3cd2ac5 (patch)
treec148c16f14e9747e1645ec124c9a4a7c3811d5e7 /community
parent481c91daf2b9061163fa84d6fe497f555e5578cc (diff)
downloadaports-b9d5d9df5a7d56c14b6a56555490b1eab3cd2ac5.tar.gz
aports-b9d5d9df5a7d56c14b6a56555490b1eab3cd2ac5.tar.bz2
aports-b9d5d9df5a7d56c14b6a56555490b1eab3cd2ac5.tar.xz
community/dynamips: add s390x support
Diffstat (limited to 'community')
-rw-r--r--community/dynamips/APKBUILD8
-rw-r--r--community/dynamips/s390x-support.patch13
2 files changed, 17 insertions, 4 deletions
diff --git a/community/dynamips/APKBUILD b/community/dynamips/APKBUILD
index 7e86321853..930f72107c 100644
--- a/community/dynamips/APKBUILD
+++ b/community/dynamips/APKBUILD
@@ -9,7 +9,8 @@ arch="all"
license="GPL2"
makedepends="cmake libpcap-dev libelf-dev linux-headers"
subpackages="$pkgname-doc"
-source="${pkgname}-${pkgver}.tar.gz::https://github.com/GNS3/${pkgname}/archive/v${pkgver}.tar.gz"
+source="${pkgname}-${pkgver}.tar.gz::https://github.com/GNS3/${pkgname}/archive/v${pkgver}.tar.gz
+ s390x-support.patch"
builddir="$srcdir"/$pkgname-$pkgver
build() {
@@ -27,6 +28,5 @@ package() {
make DESTDIR=${pkgdir} install
}
-md5sums="4b4fa938f384ed2a229d96c5e2ed286e dynamips-0.2.16.tar.gz"
-sha256sums="0fcf18d701898a77cb589bd9bad16dde436ac1ccb87516fefe07d09de1a196c0 dynamips-0.2.16.tar.gz"
-sha512sums="d2e719f3bd7d6e54ec49d0558645a3baa4cf77e0a911e069078463c7cafa391b6400a5aa7661744022b722d3e16ef07323056280df3b4121fd09eb64a7a1aa49 dynamips-0.2.16.tar.gz"
+sha512sums="d2e719f3bd7d6e54ec49d0558645a3baa4cf77e0a911e069078463c7cafa391b6400a5aa7661744022b722d3e16ef07323056280df3b4121fd09eb64a7a1aa49 dynamips-0.2.16.tar.gz
+151f9c7d53c0edd9d300b3e84ce50d500018a533d6d131609ac0c25244db640d65d2322104c126e7c0e311cc0b197c07976f21fa28909a92d48cf31b6208431b s390x-support.patch"
diff --git a/community/dynamips/s390x-support.patch b/community/dynamips/s390x-support.patch
new file mode 100644
index 0000000000..529fe9a65b
--- /dev/null
+++ b/community/dynamips/s390x-support.patch
@@ -0,0 +1,13 @@
+diff --git a/common/dynamips_common.h b/common/dynamips_common.h
+index 9c20f38..0c8ca2c 100644
+--- a/common/dynamips_common.h
++++ b/common/dynamips_common.h
+@@ -50,7 +50,7 @@
+ #define ARCH_BIG_ENDIAN 0x4321
+ #define ARCH_LITTLE_ENDIAN 0x1234
+
+-#if defined(PPC) || defined(__powerpc__) || defined(__ppc__)
++#if defined(PPC) || defined(__powerpc__) || defined(__ppc__) || defined(__s390x__)
+ #define ARCH_BYTE_ORDER ARCH_BIG_ENDIAN
+ #elif defined(__sparc) || defined(__sparc__)
+ #define ARCH_BYTE_ORDER ARCH_BIG_ENDIAN