Group :: Monitoring
RPM: gkrellm-shoot
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: gkrellshoot-0.4.1-alt-install.patch
Download
Download
diff -Naur gkrellShoot-0.4.1/Makefile gkrellShoot-0.4.1.new/Makefile
--- gkrellShoot-0.4.1/Makefile 2003-03-30 20:23:14 +0300
+++ gkrellShoot-0.4.1.new/Makefile 2003-03-30 20:24:12 +0300
@@ -1,5 +1,10 @@
-GTK_INCLUDE = `pkg-config gtk+-2.0 --cflags`
-GTK_LIB = `pkg-config gtk+-2.0 --libs`
+GTK_CONFIG ?=pkg-config gtk+-2.0
+PLUGIN_DIR ?=/usr/local/lib/gkrellm2/plugins
+
+GTK_INCLUDE = `$(GTK_CONFIG) --cflags`
+GTK_LIB = `$(GTK_CONFIG) --libs`
+
+INSTALL=install -c -m 755
FLAGS = -O2 -Wall -fPIC $(GTK_INCLUDE)
LIBS = $(GTK_LIB)
@@ -29,15 +34,11 @@
gkrellshoot.o: gkrellshoot.c
-install:
+install: gkrellshoot.so
(cd po && ${MAKE} install )
- if [ -d /usr/local/lib/gkrellm2/plugins/ ] ; then \
- install -c -s -m 644 gkrellshoot.so /usr/local/lib/gkrellm2/plugins/ ; \
- elif [ -d /usr/lib/gkrellm2/plugins/ ] ; then \
- install -c -s -m 644 gkrellshoot.so /usr/lib/gkrellm2/plugins/ ; \
- else \
- install -D -c -s -m 644 gkrellshoot.so /usr/lib/gkrellm2/plugins/gkrellshoot.so ; \
- fi
+ $(INSTALL) -d $(PLUGIN_DIR)
+ $(INSTALL) gkrellshoot.so $(PLUGIN_DIR)
+
userinstall:
if [ -d $(HOME)/.gkrellm2/plugins/ ] ; then \
install -C -s -m 644 gkrellshoot.so $(HOME)/.gkrellm2/plugins/ ; \