From a869bbd6e70b237705692fe89b8e6ae2a138bf92 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Sat, 14 Nov 2020 15:52:12 +0000 Subject: bwbar: debian patches to allow for longer interface names like 'docker0' and to add a '--directory' option --- bwbar/build/bwbar.SlackBuild | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/bwbar/build/bwbar.SlackBuild b/bwbar/build/bwbar.SlackBuild index c02152c0..6ec5c54b 100755 --- a/bwbar/build/bwbar.SlackBuild +++ b/bwbar/build/bwbar.SlackBuild @@ -33,6 +33,8 @@ # Changelog: # 1.2.2-1: 13/Nov/2020 by Eric Hameleers # * Initial build. +# 1.2.2-2: 43/Nov/2020 by Eric Hameleers +# * Allow for longer interface names (like 'docker0') # # Run 'sh bwbar.SlackBuild' to build a Slackware package. # The package (.t?z) and .txt file as well as build logs are created in /tmp . @@ -153,6 +155,15 @@ cd ${PRGNAM}-${VERSION} sed -i '1,1i#include ' bwbar.c sed -i 's,png_ptr->jmpbuf,png_jmpbuf(png_ptr),' bwbar.c +# Debian patches: +touch $OUTPUT/patch-${PRGNAM}.log +# Allow for longer interface names (like 'docker0'): +cat $SRCDIR/patches/bwbar_proc_net_2.6.x_fix.patch | patch -p1 --verbose \ + 2>&1 | tee -a $OUTPUT/patch-${PRGNAM}.log +# Add '--directory' option: +cat $SRCDIR/patches/bwbar_directory_option.patch + 2>&1 | tee -a $OUTPUT/patch-${PRGNAM}.log + chown -R root:root . chmod -R u+w,go+r-w,a+rX-st . -- cgit v1.2.3