summaryrefslogtreecommitdiff
path: root/sysutils/logtool-devel/files/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/logtool-devel/files/patch-aa')
-rw-r--r--sysutils/logtool-devel/files/patch-aa37
1 files changed, 37 insertions, 0 deletions
diff --git a/sysutils/logtool-devel/files/patch-aa b/sysutils/logtool-devel/files/patch-aa
new file mode 100644
index 000000000000..6f3f655400b7
--- /dev/null
+++ b/sysutils/logtool-devel/files/patch-aa
@@ -0,0 +1,37 @@
+--- logtool/Makefile.orig Sat Dec 30 16:57:27 2000
++++ logtool/Makefile Sat Dec 30 20:43:49 2000
+@@ -9,12 +9,13 @@
+ csv.o html.o raw.o logtool.o main.o
+ SRC = logtool.c
+ # These options affect where logtool gets installed
+-PREFIX = /usr
+-ETCDIR = /etc/logtool
++PREFIX = %%PREFIX%%
++ETCDIR = %%PREFIX%%/etc/logtool
+ CC = gcc
+
+ # For RedHat (and most other) Linux'es, this should be ideal
+-CFLAGS= -Wall -O3 -ansi -pedantic -Werror # -DDEBUG -g # uncomment this for debugging stuff's
++CFLAGS= -I/usr/local/include -Wall -O3 -ansi -pedantic -Werror # -DDEBUG -g # uncomment this for debugging stuff's
++LIBS= -L/usr/local/lib -lgnugetopt
+
+ # For portability to non-linux'es/non-standard-linux'es, try this
+ # CFLAGS = -Wall -Werror
+@@ -22,7 +23,7 @@
+
+ ### The main build stuff
+ logtool: logtool.o $(LIB)
+- $(CC) -o $(PROG) logtool.o $(LIB) $(ADDCFLAGS)
++ $(CC) -o $(PROG) logtool.o $(LIB) $(ADDCFLAGS) ${LIBS}
+ @echo "strip $(PROG)"
+ @strip $(PROG)
+
+@@ -56,7 +57,7 @@
+
+ ### How to install this puppy
+ install: logtool
+- mkdir -p /etc/logtool
++ mkdir -p ${ETCDIR}
+ install -c -m 0644 -o root ../conf/logtool.conf $(ETCDIR)/logtool.conf
+ install -c -m 0644 -o root ../conf/green $(ETCDIR)/green
+ install -c -m 0644 -o root ../conf/yellow $(ETCDIR)/yellow