34df8f40af
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/mds@2140 6952d904-891a-0410-993b-d76249ca496b
55 lines
2.2 KiB
Diff
55 lines
2.2 KiB
Diff
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 install target
|
|
|
|
diff -Naur pulse2-inventory-server-1.2.4.orig/Makefile pulse2-inventory-server-1.2.4/Makefile
|
|
--- pulse2-inventory-server-1.2.4.orig/Makefile 2009-01-15 10:12:58.000000000 +0000
|
|
+++ pulse2-inventory-server-1.2.4/Makefile 2010-05-01 13:35:35.160870668 +0000
|
|
@@ -52,25 +52,38 @@
|
|
@echo "Nothing to do"
|
|
|
|
# Install everything
|
|
-install:
|
|
+install: install_py install_sbin install_cfg
|
|
@# Install directories
|
|
@echo ""
|
|
@echo "Move old configuration files to $(DESTDIR)$(ETCDIR)$(BACKUP)"
|
|
-[ -f $(DESTDIR)$(ETCDIR)/inventory-server/inventory-server.ini ] && mv -f $(DESTDIR)$(ETCDIR)/inventory-server.ini $(DESTDIR)$(ETCDIR)/inventory-server.ini$(BACKUP)
|
|
+
|
|
+install_nopy: install_sbin install_cfg
|
|
+ @# Install directories
|
|
@echo ""
|
|
- @echo "Creating directories..."
|
|
- $(INSTALL) -d -m 755 -o root -g root $(DESTDIR)$(SBINDIR)
|
|
- $(INSTALL) -d -m 755 -o root -g root $(DESTDIR)$(ETCDIR)
|
|
- $(INSTALL) -d -m 755 -o root -g root $(DESTDIR)$(PYTHON_PREFIX)
|
|
+ @echo "Move old configuration files to $(DESTDIR)$(ETCDIR)$(BACKUP)"
|
|
+ # -[ -f $(DESTDIR)$(ETCDIR)/inventory-server/inventory-server.ini ] && mv -f $(DESTDIR)$(ETCDIR)/inventory-server.ini $(DESTDIR)$(ETCDIR)/inventory-server.ini$(BACKUP)
|
|
|
|
+install_py:
|
|
+ @echo ""
|
|
+ @echo "Creating python directories..."
|
|
+ $(INSTALL) -d -m 755 -o root -g root $(DESTDIR)$(PYTHON_PREFIX)
|
|
@echo ""
|
|
@echo "Install python code in $(DESTDIR)$(PYTHON_PREFIX)"
|
|
$(PYTHON) setup.py install --no-compile --prefix $(DESTDIR)$(PYTHON_PREFIX)
|
|
|
|
+install_sbin:
|
|
+ @echo ""
|
|
+ @echo "Creating sbin directories..."
|
|
+ $(INSTALL) -d -m 755 -o root -g root $(DESTDIR)$(SBINDIR)
|
|
@echo ""
|
|
@echo "Install SBINFILES in $(DESTDIR)$(SBINDIR)"
|
|
$(INSTALL) $(SBINFILES) -m 755 -o root -g root $(DESTDIR)$(SBINDIR)
|
|
|
|
+install_cfg:
|
|
+ @echo ""
|
|
+ @echo "Creating config directories..."
|
|
+ $(INSTALL) -d -m 755 -o root -g root $(DESTDIR)$(ETCDIR)
|
|
@echo ""
|
|
@echo "Install CONFILES in $(DESTDIR)$(ETCDIR)"
|
|
$(INSTALL) conf/inventory-server/inventory-server.ini -m 600 -o root -g root $(DESTDIR)$(ETCDIR)
|