diff options
| author | Ariadne Conill <ariadne@dereferenced.org> | 2020-03-28 12:42:02 +0000 |
|---|---|---|
| committer | Ariadne Conill <ariadne@dereferenced.org> | 2020-03-28 12:42:16 +0000 |
| commit | e0cbce736016b7e833e89f80f06520aeabb84e87 (patch) | |
| tree | ad24c4a9dc26153e5bb17848baf3eb0bbfa5b44a | |
| parent | e24515b956e6265bc5f305ce65c2db9920b0f9a3 (diff) | |
| download | aports-e0cbce736016b7e833e89f80f06520aeabb84e87.tar.bz2 aports-e0cbce736016b7e833e89f80f06520aeabb84e87.tar.xz | |
community/isochronous: new aport
| -rw-r--r-- | community/isochronous/APKBUILD | 28 | ||||
| -rw-r--r-- | community/isochronous/make-install.patch | 35 |
2 files changed, 63 insertions, 0 deletions
diff --git a/community/isochronous/APKBUILD b/community/isochronous/APKBUILD new file mode 100644 index 0000000000..bd852f50f6 --- /dev/null +++ b/community/isochronous/APKBUILD @@ -0,0 +1,28 @@ +# Maintainer: Ariadne Conill <ariadne@dereferenced.org> +pkgname="isochronous" +pkgver="0.1" +pkgrel=0 +pkgdesc="isochronous network measurement tools" +url="https://git.networkservice.associates/ahamonic/isochronous" +arch="all" +license="Apache-2.0" +source="https://git.networkservice.associates/ahamonic/isochronous/-/archive/v$pkgver/isochronous-$pkgver.tar.gz + make-install.patch" +builddir="$srcdir/isochronous-v$pkgver" +options="!check" + +prepare() { + mv "$srcdir"/isochronous-v$pkgver-* "$srcdir"/isochronous-v$pkgver + default_prepare +} + +build() { + make +} + +package() { + make DESTDIR="$pkgdir" install +} + +sha512sums="03d43b5374cce6a2ec8b8b9d37f43a52f47827cec5159fd9d730011112d9a3573fea2d8779db9a778d87aed925ab265572710645805a4a94f1a64f02aa9c052d isochronous-0.1.tar.gz +5f05b8c4d7d42e0f98f59867953ff99e1501ca8da71ea04697713ec0be9294b19c767fc81953f427eaa711ed2a3e76bd3aaeceaa6876505e8607933133636eba make-install.patch" diff --git a/community/isochronous/make-install.patch b/community/isochronous/make-install.patch new file mode 100644 index 0000000000..dfcae0b9ee --- /dev/null +++ b/community/isochronous/make-install.patch @@ -0,0 +1,35 @@ +From f076d20274415f55645e80b49f76298b2b17d9d6 Mon Sep 17 00:00:00 2001 +From: User Detha <detha@jarjar.dnaq.net> +Date: Sat, 28 Mar 2020 10:04:28 +0000 +Subject: [PATCH] Add install target + +--- + Makefile | 10 ++++++++++ + 1 file changed, 10 insertions(+) + +diff --git a/Makefile b/Makefile +index 15266af..bfe1d54 100644 +--- a/Makefile ++++ b/Makefile +@@ -1,5 +1,11 @@ + CFLAGS+=-std=gnu99 -g + LDFLAGS+=-lrt -lm ++ ++DESTDIR= ++PREFIX=/usr ++BINDIR=$(PREFIX)/bin ++MANDIR=$(PREFIX)/man ++ + PROGS=udpstress isoping isostream + + all: $(PROGS) +@@ -13,5 +19,9 @@ isoping: isoping.c + isostream: isostream.c + $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS) + ++install: all ++ mkdir -p $(DESTDIR)$(BINDIR) ++ install -m0755 $(PROGS) $(DESTDIR)$(BINDIR) ++ + clean: + rm -f $(PROGS) |
