]> git.ipfire.org Git - ipfire-2.x.git/blame - lfs/xampp
Korrekturen
[ipfire-2.x.git] / lfs / xampp
CommitLineData
cd1a2927
MT
1###############################################################################
2# This file is part of the IPCop Firewall. #
3# #
4# IPCop is free software; you can redistribute it and/or modify #
5# it under the terms of the GNU General Public License as published by #
6# the Free Software Foundation; either version 2 of the License, or #
7# (at your option) any later version. #
8# #
9# IPCop is distributed in the hope that it will be useful, #
10# but WITHOUT ANY WARRANTY; without even the implied warranty of #
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
12# GNU General Public License for more details. #
13# #
14# You should have received a copy of the GNU General Public License #
15# along with IPCop; if not, write to the Free Software #
16# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA #
17# #
18# Makefiles are based on LFSMake, which is #
19# Copyright (C) 2002 Rod Roard <rod@sunsetsystems.com> #
20# #
cd1a2927
MT
21###############################################################################
22
23###############################################################################
24# Definitions
25###############################################################################
26
27include Config
28
6e13d0a5 29VER = 1.5.3a
cd1a2927
MT
30
31THISAPP = xampp-linux-$(VER)
32DL_FILE = $(THISAPP).tar.gz
a2cb3a33 33DL_FROM = $(URL_IPFIRE)
8891c0e8 34DIR_APP = /opt/lampp
cd1a2927 35TARGET = $(DIR_INFO)/$(THISAPP)
a8b159e7
MT
36PROG = xampp
37PAK_VER = ipfire-beta1
cd1a2927
MT
38
39###############################################################################
40# Top-level Rules
41###############################################################################
42
bf021abd 43objects = $(DL_FILE) \
78331e30 44 xampp-linux-devel-$(VER).tar.gz \
8891c0e8 45 PostGreSQL-AddOn-1.0-pgsql8.1.tar.gz \
894c6feb
MT
46 Python-AddOn-1.3.tar.gz \
47 wwget-beta-for-ipfire.tar.gz \
48 wwget.dump
cd1a2927
MT
49
50$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
a2cb3a33
MT
51xampp-linux-devel-$(VER).tar.gz = $(URL_IPFIRE)/xampp-linux-devel-$(VER).tar.gz
52PostGreSQL-AddOn-1.0-pgsql8.1.tar.gz = $(URL_IPFIRE)/PostGreSQL-AddOn-1.0-pgsql8.1.tar.gz
8891c0e8 53Python-AddOn-1.3.tar.gz = $(URL_IPFIRE)/Python-AddOn-1.3.tar.gz
894c6feb
MT
54wwget-beta-for-ipfire.tar.gz = $(URL_IPFIRE)/wwget-beta-for-ipfire.tar.gz
55wwget.dump = $(URL_IPFIRE)/wwget.dump
cd1a2927 56
6e13d0a5
MT
57$(DL_FILE)_MD5 = 422ab1faa4ab7afb3be8918ab8223b6b
58xampp-linux-devel-$(VER).tar.gz_MD5 = 30b4bce92ec389adf61cbf67246efd1f
94025eea 59PostGreSQL-AddOn-1.0-pgsql8.1.tar.gz_MD5 = 63171afe553fd557032407e1ba6af477
8891c0e8 60Python-AddOn-1.3.tar.gz_MD5 = 5a962ea63c3e502227c8cca30e0ce786
894c6feb
MT
61wwget-beta-for-ipfire.tar.gz_MD5 = 6591e663cf911cc745b44ca0ab38d24c
62wwget.dump_MD5 = 1d3d78214da692284e15b617b3bdd6e2
cd1a2927
MT
63
64install : $(TARGET)
65
66check : $(patsubst %,$(DIR_CHK)/%,$(objects))
67
68download :$(patsubst %,$(DIR_DL)/%,$(objects))
69
70md5 : $(subst %,%_MD5,$(objects))
71
93dc5548 72dist:
a8b159e7 73 @$(PAK)
93dc5548 74
cd1a2927
MT
75###############################################################################
76# Downloading, checking, md5sum
77###############################################################################
78
79$(patsubst %,$(DIR_CHK)/%,$(objects)) :
80 @$(CHECK)
81
82$(patsubst %,$(DIR_DL)/%,$(objects)) :
83 @$(LOAD)
84
85$(subst %,%_MD5,$(objects)) :
86 @$(MD5)
87
88###############################################################################
89# Installation Details
90###############################################################################
91
92$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
93 @$(PREBUILD)
94025eea
MT
94 @rm -rf $(DIR_APP)
95 cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE) -C /opt
96 cd $(DIR_SRC) && tar zxf $(DIR_DL)/xampp-linux-devel-$(VER).tar.gz -C /opt
8891c0e8 97 cd $(DIR_SRC) && tar zxf $(DIR_DL)/Python-AddOn-1.3.tar.gz -C /tmp
94025eea 98 cd $(DIR_SRC) && tar zxf $(DIR_DL)/PostGreSQL-AddOn-1.0-pgsql8.1.tar.gz -C /tmp
894c6feb 99 cd $(DIR_SRC) && tar zxf $(DIR_DL)/wwget-beta-for-ipfire.tar.gz -C /opt/lampp/htdocs
94025eea
MT
100 cd /tmp/PostGreSQL-AddOn-1.0-pgsql8.1 && ./INSTALL
101 rm -rf /tmp/PostGreSQL-AddOn-1.0-pgsql8.1
894c6feb
MT
102 cd /tmp/Python-AddOn-1.3 && cp -fr lampp/bin /opt/lampp
103 cd /tmp/Python-AddOn-1.3 && cp -fr lampp/cgi-bin /opt/lampp
104 cd /tmp/Python-AddOn-1.3 && cp -fr lampp/etc /opt/lampp
105 cd /tmp/Python-AddOn-1.3 && cp -fr lampp/htdocs /opt/lampp
106 cd /tmp/Python-AddOn-1.3 && cp -fr lampp/include /opt/lampp
107 cd /tmp/Python-AddOn-1.3 && cp -fr lampp/lib /opt/lampp
108 # cd /tmp/Python-AddOn-1.3 && cp -fr lampp/licenses /opt/lampp
109 # cd /tmp/Python-AddOn-1.3 && cp -fr lampp/man /opt/lampp
110 cd /tmp/Python-AddOn-1.3 && cp -fr lampp/modules /opt/lampp
111 # cd /tmp/Python-AddOn-1.3 && cp -fr lampp/share /opt/lampp
8891c0e8
MT
112 rm -rf /tmp/Python-AddOn-1.3
113 grep etc/python.conf /opt/lampp/etc/httpd.conf || echo -e "Include etc/python.conf" /opt/lampp/etc/httpd.conf
cd1a2927 114 chown -R nobody.nobody /opt/lampp/htdocs
8891c0e8 115 ln -fs /opt/lampp/lib/mysql/libmysqlclient.* /usr/lib
cc70c026 116 ldconfig
cd1a2927 117 @$(POSTBUILD)