Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37742796
en ru br
ALT Linux repos
S:0.4.4-alt1.qa1
5.0: 0.4.4-alt1
4.1: 0.4.1-alt3
4.0: 0.4.1-alt3
3.0: 0.4.1-alt3

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


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/ ; \
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin