aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJake Buchholz <tomalok@gmail.com>2020-07-04 03:10:18 +0000
committerLeo <thinkabit.ukim@gmail.com>2020-07-04 03:10:18 +0000
commit175af833c8b946ddb80c6b62ad6d8577faeadc1a (patch)
tree13dcfe3072f9a02c3719697d2e3aa1446b8da32b
parent31de10da1f821ec2606814cc3f340891e3ae0c42 (diff)
downloadaports-175af833c8b946ddb80c6b62ad6d8577faeadc1a.tar.gz
aports-175af833c8b946ddb80c6b62ad6d8577faeadc1a.tar.bz2
aports-175af833c8b946ddb80c6b62ad6d8577faeadc1a.tar.xz
testing/log_proxy: new aport
-rw-r--r--testing/log_proxy/APKBUILD30
-rw-r--r--testing/log_proxy/fix-makefile.patch19
2 files changed, 49 insertions, 0 deletions
diff --git a/testing/log_proxy/APKBUILD b/testing/log_proxy/APKBUILD
new file mode 100644
index 0000000000..d426920dc9
--- /dev/null
+++ b/testing/log_proxy/APKBUILD
@@ -0,0 +1,30 @@
+# Contributor: Jake Buchholz <tomalok@gmail.com>
+# Maintainer: Jake Buchholz <tomalok@gmail.com>
+pkgname=log_proxy
+pkgver=0.1.1
+pkgrel=0
+pkgdesc="A tiny C utility for log rotation for apps that write their logs to stdout."
+url="https://github.com/metwork-framework/log_proxy"
+arch="all"
+license="BSD-3-Clause"
+makedepends="glib-dev"
+source="
+ $pkgname-$pkgver.tar.gz::https://github.com/metwork-framework/$pkgname/archive/v$pkgver.tar.gz
+ fix-makefile.patch
+"
+builddir="$srcdir/$pkgname-$pkgver/src"
+
+build() {
+ make
+}
+
+check() {
+ make test
+}
+
+package() {
+ make install PREFIX="$pkgdir/usr" BINARIES="log_proxy log_proxy_wrapper"
+}
+
+sha512sums="c30a6cc8f474754fe565e7decc5e24c8445194e73fc115828ea60f6c8758b00d5fcfcee95d5d7e54af54583989a0593dd37bbeb6c04d3f318818b5c2983af1d4 log_proxy-0.1.1.tar.gz
+e79340643e31d7eaeecdcef54ea98b0629ff70796d0c7c29a7e2f1e27b293120fe343c8fd8375106061c1e3a45b11967706f0611de569a42673ee47c29791b22 fix-makefile.patch"
diff --git a/testing/log_proxy/fix-makefile.patch b/testing/log_proxy/fix-makefile.patch
new file mode 100644
index 0000000000..1b16a3da35
--- /dev/null
+++ b/testing/log_proxy/fix-makefile.patch
@@ -0,0 +1,19 @@
+--- a/Makefile
++++ b/Makefile
+@@ -48,13 +48,13 @@
+ rm -f app.info *.gcno *.gcda
+
+ log_proxy: log_proxy.c $(OBJECTS) options.h
+- $(GCC) $(_CFLAGS) $(_LDFLAGS) -o $@ $^
++ $(GCC) $(_CFLAGS) -o $@ $^ $(_LDFLAGS)
+
+ log_proxy_wrapper: log_proxy_wrapper.c $(OBJECTS) options.h
+- $(GCC) $(_CFLAGS) $(_LDFLAGS) -o $@ $^
++ $(GCC) $(_CFLAGS) -o $@ $^ $(_LDFLAGS)
+
+ test_log_proxy: test_log_proxy.c $(OBJECTS)
+- $(GCC) $(_CFLAGS) $(_LDFLAGS) -o $@ $^
++ $(GCC) $(_CFLAGS) -o $@ $^ $(_LDFLAGS)
+
+ control.o: control.c control.h
+ $(GCC) -c -o $@ $(_CFLAGS) $<