summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorOliver Tappe2006-09-29 15:17:09 +0200
committerOliver Tappe2006-09-29 15:17:09 +0200
commit52f13d67a40312701b0b807285e8d41a71e728d3 (patch)
tree8a05fee77cb2219b9d98c24666833c5f44d511f9 /Makefile
parent* renamed to test-config-db.pl (diff)
downloadcore-52f13d67a40312701b0b807285e8d41a71e728d3.tar.gz
core-52f13d67a40312701b0b807285e8d41a71e728d3.tar.xz
core-52f13d67a40312701b0b807285e8d41a71e728d3.zip
* added SLX_TFTPBOOT_PATH and SLX_TEMP_PATH as these two are used, too.
* changed generation of /etc/opt/openslx/settings.default to follow shell syntax, such that the config file can be sourced by all shell- scripts, too. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@403 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile24
1 files changed, 17 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 5ce1cb09..42793430 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,9 @@
#
# (c) 2006 - OpenSLX.com
-# the following should be filled via 'configure':
+# the following defaults should be filled via 'configure'
+# and each of them can be overriden by setting the environment variable
+# in the calling shell
ifeq ($(USR_BIN_PATH),)
USR_BIN_PATH = /usr/bin
endif
@@ -29,6 +31,12 @@ endif
ifeq ($(SLX_SHARE_PATH),)
SLX_SHARE_PATH = ${SLX_BASE_PATH}/share
endif
+ifeq ($(SLX_TEMP_BASE_PATH),)
+ SLX_TEMP_BASE_PATH = /tmp
+endif
+ifeq ($(SLX_TFTPBOOT_PATH),)
+ SLX_TFTPBOOT_PATH = ${SLX_PUBLIC_PATH}/tftpboot
+endif
ifeq ($(VMWARE_PATH),)
VMWARE_PATH = ${SLX_BASE_PATH}/vmware
endif
@@ -74,7 +82,8 @@ install:
-p $(SLX_PRIVATE_PATH)/config/default/rootfs \
-p $(SLX_PRIVATE_PATH)/db \
-p $(SLX_PRIVATE_PATH)/stage1 \
- -p $(SLX_PUBLIC_PATH)/tftpboot \
+ -p $(SLX_PUBLIC_PATH) \
+ -p $(SLX_TFTPBOOT_PATH) \
-p $(SLX_SHARE_PATH)/themes
@cp initramfs/{mkdxsinitrd,slxmkramfs} $(SLX_BIN_PATH)
@chmod u+x $(SLX_BIN_PATH)/{mkdxsinitrd,slxmkramfs}
@@ -102,11 +111,12 @@ functions via\n# inclusion: '. /etc/functions' ..." \
> $(SLX_PRIVATE_PATH)/config/default/initramfs/postinit.local
@chmod u+x $(SLX_PRIVATE_PATH)/config/default/initramfs/*init.local
@echo -e "# default setup for openslx on this specific system\
-\nopenslx-basepath = ${SLX_BASE_PATH}\
-\nconfig-path = ${SLX_CONFIG_PATH}\
-\nprivate-path = ${SLX_PRIVATE_PATH}\
-\npublic-path = ${SLX_PUBLIC_PATH}\
-\nshare-path = ${SLX_SHARE_PATH}\n" \
+\nSLX_BASE_PATH=${SLX_BASE_PATH}\
+\nSLX_PRIVATE_PATH=${SLX_PRIVATE_PATH}\
+\nSLX_PUBLIC_PATH=${SLX_PUBLIC_PATH}\
+\nSLX_SHARE_PATH=${SLX_SHARE_PATH}\
+\nSLX_TEMP_BASE_PATH=${SLX_TEMP_BASE_PATH}\
+\nSLX_TFTPBOOT_PATH=${SLX_TFTPBOOT_PATH}\n" \
> $(SLX_CONFIG_PATH)/settings.default
@echo -e "# local setup for openslx (overrides settings.default)\n" \
> $(SLX_CONFIG_PATH)/settings.local