summarylogtreecommitdiffstats
path: root/plotnetcfg-v0.4.1.patch
diff options
context:
space:
mode:
authorOndřej Hlavatý2017-02-21 09:08:13 +0100
committerOndřej Hlavatý2017-02-21 09:10:40 +0100
commit5e549b8086b6259a19fe60ff6c7560358ed691bd (patch)
tree18592c550dc75e0182dfabb5f8014e0c80a0094e /plotnetcfg-v0.4.1.patch
downloadaur-5e549b8086b6259a19fe60ff6c7560358ed691bd.tar.gz
Package plotnetcfg-v0.4.1
This is the most current version released, though its a bit old. We patch the Makefile to allow changing compilator options and adjust locations where to put binaries. Signed-off-by: Ondřej Hlavatý <ohlavaty@redhat.com>
Diffstat (limited to 'plotnetcfg-v0.4.1.patch')
-rw-r--r--plotnetcfg-v0.4.1.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/plotnetcfg-v0.4.1.patch b/plotnetcfg-v0.4.1.patch
new file mode 100644
index 000000000000..dfec57bbd8b2
--- /dev/null
+++ b/plotnetcfg-v0.4.1.patch
@@ -0,0 +1,23 @@
+diff -Naur plotnetcfg-0.4.1.raw/Makefile plotnetcfg-0.4.1/Makefile
+--- plotnetcfg-0.4.1/Makefile 2015-07-27 11:07:56.000000000 +0200
++++ plotnetcfg-0.4.1.patched/Makefile 2017-01-28 13:32:02.860196078 +0100
+@@ -4,7 +4,7 @@
+ libs=$(jansson)/src/.libs/libjansson.a
+ INCLUDE=-I$(jansson)/src
+ endif
+-CFLAGS=-W -Wall $(INCLUDE)
++CFLAGS+=$(INCLUDE)
+
+ all: check-libs plotnetcfg
+
+@@ -46,8 +46,8 @@
+ rm -f version.h *.o frontends/*.o handlers/*.o plotnetcfg
+
+ install: plotnetcfg
+- install -d $(DESTDIR)/usr/sbin/
+- install plotnetcfg $(DESTDIR)/usr/sbin/
++ install -d $(DESTDIR)/usr/bin/
++ install plotnetcfg $(DESTDIR)/usr/bin/
+ install -d $(DESTDIR)/usr/share/man/man8/
+ install -d $(DESTDIR)/usr/share/man/man5/
+ install -m 644 plotnetcfg.8 $(DESTDIR)/usr/share/man/man8/