aboutsummaryrefslogtreecommitdiffstats
path: root/testing/memdump/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/memdump/APKBUILD')
-rw-r--r--testing/memdump/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/memdump/APKBUILD b/testing/memdump/APKBUILD
new file mode 100644
index 0000000000..e17fc9b90a
--- /dev/null
+++ b/testing/memdump/APKBUILD
@@ -0,0 +1,39 @@
+# Maintainer: Niklas Cathor <niklas.cathor@gmx.de>
+pkgname=memdump
+pkgver=1.01
+pkgrel=0
+pkgdesc="utility to dump memory contents to standard output"
+url="http://www.porcupine.org/forensics/tct.html"
+arch="all"
+license="IPL-1.0"
+options="!check" # No test suite
+subpackages="$pkgname-doc"
+
+# Patches 01-05 are taken from Debian (https://salsa.debian.org/pkg-security-team/memdump/)
+# Patch 06 is necessary because musl-dev's "paths.h" does not set _PATH_MEM / _PATH_KMEM.
+source="
+ memdump-$pkgver.tar.gz::http://www.porcupine.org/forensics/memdump-$pkgver.tar.gz
+ 01-hurd.patch
+ 02-linux3.patch
+ 03-build-flags-support.patch
+ 04-change-manpage-level.patch
+ 05-fix-option-manpage.patch
+ 06-fall-back-to-default-dev-mem.patch
+ "
+
+build() {
+ make
+}
+
+package() {
+ install -Dm755 memdump "$pkgdir"/usr/sbin/memdump
+ install -Dm644 memdump.1 "$pkgdir"/usr/share/doc/$pkgname
+}
+
+sha512sums="46d013f812b0a5807c7ba38d6c3940e105057ba8e64b4f45b75a0800cab212d164caf881efbc1958d5c5c239236fdcb61f6fe093886ff3e28bc0b70791aaee3e memdump-1.01.tar.gz
+1f8787875a9e63de99f36fda9d8924a441f9167b13dae244f5fc71f977a5b3e764857d81cbaf1e3af43ca06686d8679371792306f09f5469f1d0f9948a38a92f 01-hurd.patch
+fd79b0ad42b2645990b5dab498f30e122894e91414b40604da9a4da58e77ebf1389374a234f70006e2004ebc348607d04146d95be00e174108550644984faa83 02-linux3.patch
+7c0506f2487b26da977f411361ad750fbb75bc68a0e1cd54a811379ea7eee2ca41a15e9c4f7169810c2ec0757bfd22020fc6b4cd6b2655814b13ea7889f6a5e1 03-build-flags-support.patch
+11c6b2472a3046767b12f0506e62459dcb7ad83880807f004228f3f1025300a370706717caaa3bf3995ca2f9c985d6bb3d605a3407d9fd1b9be8157b8e0df3d6 04-change-manpage-level.patch
+0fac725f948080632ad169a4923253cf63d06098181dea5b0eda3828dc50dab15cea7b9c08008029732db2c68e5f78cfa93096c0cf978be962be095535c33a93 05-fix-option-manpage.patch
+24b9fe0af8216cc2fb347820d8b999e30c321d0b398d0b603962158986af98156845ceb9717798622983d5dd9cfcc3509a51089c3139ee8e5fef857144dd0545 06-fall-back-to-default-dev-mem.patch"