mds/app-admin/pulse2-mmc-plugins/files/pulse2-mmc-plugins-1.2.4-install-target-1.patch

48 lines
1.6 KiB
Diff
Raw Normal View History

Submitted By: Mario Fetka (geos_one) (mario dot fetka at gmail dot com)
Date: 2010-05-01
Initial Package Version: 1.2.4
Origin: me
Upstream Status: unknown
Description: split the install target
diff -Naur pulse2-mmc-plugins-1.2.4.orig/Makefile pulse2-mmc-plugins-1.2.4/Makefile
--- pulse2-mmc-plugins-1.2.4.orig/Makefile 2008-11-07 15:45:47.000000000 +0000
+++ pulse2-mmc-plugins-1.2.4/Makefile 2010-05-01 13:09:08.818871118 +0000
@@ -36,22 +36,31 @@
all:
# Install everything
-install:
+install: install_py install_cfg install_sbin
+
+install_nopy: install_cfg install_sbin
+
+install_py:
@# Install directories
- @echo "Creating directories..."
- $(INSTALL) -d -m 755 -o root -g root $(DESTDIR)$(ETCDIR)
+ @echo "Creating python directories..."
$(INSTALL) -d -m 755 -o root -g root $(DESTDIR)$(PYTHON_PREFIX)
- $(INSTALL) -d -m 755 -o root -g root $(DESTDIR)$(SBINDIR)
-
@echo ""
@echo "Install python code in $(DESTDIR)$(PYTHON_PREFIX)"
$(PYTHON) setup.py install --no-compile --prefix $(DESTDIR)$(PYTHON_PREFIX)
+install_cfg:
+ @# Install directories
+ @echo "Creating config directories..."
+ $(INSTALL) -d -m 755 -o root -g root $(DESTDIR)$(ETCDIR)
@echo ""
@echo "Install CONFILES in $(DESTDIR)$(ETCDIR)"
$(INSTALL) -d -m 755 -o root -g root $(DESTDIR)$(ETCDIR)/plugins
$(INSTALL) conf/plugins/* -m 600 -o root -g root $(DESTDIR)$(ETCDIR)/plugins
+install_sbin:
+ @# Install directories
+ @echo "Creating sbin directories..."
+ $(INSTALL) -d -m 755 -o root -g root $(DESTDIR)$(SBINDIR)
@echo ""
@echo "Install additionnal tools in $(DESTDIR)$(SBINDIR)"
$(INSTALL) $(SBINFILES) -m 755 -o root -g root $(DESTDIR)$(SBINDIR)