Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37714535
en ru br
Репозитории ALT
S:2.0.0-alt2.qa1
5.1: 2.0.0-alt2
4.1: 2.0.0-alt2
4.0: 2.0.0-alt2
3.0: 2.0.0-alt2
www.altlinux.org/Changes

Группа :: Мониторинг
Пакет: gkrellm-reminder

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: gkrellm-reminder-2.0.0-alt-install.patch
Скачать


diff -Naur gkrellm-reminder-2.0.0/Makefile gkrellm-reminder-2.0.0.new/Makefile
--- gkrellm-reminder-2.0.0/Makefile	2003-03-30 19:38:54 +0300
+++ gkrellm-reminder-2.0.0.new/Makefile	2003-03-30 19:40:09 +0300
@@ -1,6 +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
 CFLAGS = -O2 -Wall -fPIC $(GTK_INCLUDE) -I/usr/pkg/include
 
 LIBS = $(GTK_LIB)
@@ -30,15 +34,8 @@
 
 install:
 	(cd po && ${MAKE} install )
-	if [ -d /usr/lib/gkrellm2/plugins/ ] ; then \
-		install -c -s -m 644 reminder.so /usr/lib/gkrellm2/plugins/ ; \
-	elif [ -d /usr/local/lib/gkrellm2/plugins/ ] ; then \
-		install -c -s -m 644 reminder.so /usr/local/lib/gkrellm2/plugins/ ; \
-	elif [ -d /usr/pkg/lib/gkrellm2/plugins/ ] ; then \
-		install -c -s -m 644 reminder.so /usr/pkg/lib/gkrellm2/plugins/ ; \
-	else \
-		install -D -c -s -m 644 reminder.so /usr/lib/gkrellm2/plugins/reminder.so ; \
-	fi
+	$(INSTALL) -d $(PLUGIN_DIR)
+	$(INSTALL) reminder.so $(PLUGIN_DIR)
 
 uninstall:
 	rm -f /usr/lib/gkrellm/plugins2/reminder.so
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin