diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-01-10 18:45:23 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-01-10 18:45:23 +0000 |
commit | 4afc854d8d31fb2dca0d7df866af6695e4cbda97 (patch) | |
tree | 31e7b8790c7daca0095772e1d89514c6defec581 | |
parent | dfffba60fd07ce33061293f0801719f0199d5cb4 (diff) | |
download | packages-4afc854d8d31fb2dca0d7df866af6695e4cbda97.tar.gz packages-4afc854d8d31fb2dca0d7df866af6695e4cbda97.tar.bz2 packages-4afc854d8d31fb2dca0d7df866af6695e4cbda97.tar.xz packages-4afc854d8d31fb2dca0d7df866af6695e4cbda97.zip |
user/chelf: new package
-rw-r--r-- | user/chelf/APKBUILD | 29 | ||||
-rw-r--r-- | user/chelf/fix-uninitialised-read.patch | 11 |
2 files changed, 40 insertions, 0 deletions
diff --git a/user/chelf/APKBUILD b/user/chelf/APKBUILD new file mode 100644 index 000000000..83b9c1402 --- /dev/null +++ b/user/chelf/APKBUILD @@ -0,0 +1,29 @@ +# Contributor: A. Wilcox <awilfox@adelielinux.org> +# Maintainer: A. Wilcox <awilfox@adelielinux.org> +pkgname=chelf +pkgver=0.1_git20190110 +pkgrel=0 +pkgdesc="Display or change the stack size of an ELF binary" +url=" " +arch="all" +options="!check" # No test suite. +license="BSD-2-Clause" +depends="" +makedepends="" +subpackages="" +source="$pkgname-$pkgver.tar.xz::https://distfiles.adelielinux.org/source/$pkgname-$pkgver.txz + fix-uninitialised-read.patch + " + +build() { + cd "$builddir" + make +} + +package() { + cd "$builddir" + install -D -m755 chelf "$pkgdir"/usr/bin/chelf +} + +sha512sums="6154e1580f4ea355aaa5017cced37d278d7e864d2c924e521aadc79d839ce79d1a94a9f8ebef1274f92748058278b628ec384f5d5e4572fe56d7745208146dbe chelf-0.1_git20190110.tar.xz +435610112eec83b27c922b5f84ca1e9abfa8c1834f5fafea0deb6911532fd7c0924da002a0c5523d6cd013c8d56e02cc6ae30321fdf4955399b7fcabe5c64e35 fix-uninitialised-read.patch" diff --git a/user/chelf/fix-uninitialised-read.patch b/user/chelf/fix-uninitialised-read.patch new file mode 100644 index 000000000..0623647fe --- /dev/null +++ b/user/chelf/fix-uninitialised-read.patch @@ -0,0 +1,11 @@ +--- chelf-0.1_git20190110/main.c.old 2018-10-29 10:37:25.000000000 +0000 ++++ chelf-0.1_git20190110/main.c 2019-01-10 18:44:45.320000000 +0000 +@@ -32,7 +32,7 @@ + { + int fd, rv = -1; + struct stat st; +- void *elf; ++ void *elf = NULL; + const int open_flags = (mode == MODE_WRITE) ? O_RDWR : O_RDONLY; + const int mmap_flags = (mode == MODE_WRITE) ? + (PROT_WRITE|PROT_READ) : PROT_READ; |