Gro├čes Update:
[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
78331e30 29VER = 1.5.3
cd1a2927
MT
30
31THISAPP = xampp-linux-$(VER)
32DL_FILE = $(THISAPP).tar.gz
a2cb3a33 33DL_FROM = $(URL_IPFIRE)
8891c0e8 34DIR_APP = /opt/lampp
cd1a2927
MT
35TARGET = $(DIR_INFO)/$(THISAPP)
36
37###############################################################################
38# Top-level Rules
39###############################################################################
40
bf021abd 41objects = $(DL_FILE) \
78331e30 42 xampp-linux-devel-$(VER).tar.gz \
8891c0e8
MT
43 PostGreSQL-AddOn-1.0-pgsql8.1.tar.gz \
44 Python-AddOn-1.3.tar.gz
cd1a2927
MT
45
46$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
a2cb3a33
MT
47xampp-linux-devel-$(VER).tar.gz = $(URL_IPFIRE)/xampp-linux-devel-$(VER).tar.gz
48PostGreSQL-AddOn-1.0-pgsql8.1.tar.gz = $(URL_IPFIRE)/PostGreSQL-AddOn-1.0-pgsql8.1.tar.gz
8891c0e8 49Python-AddOn-1.3.tar.gz = $(URL_IPFIRE)/Python-AddOn-1.3.tar.gz
cd1a2927 50
78331e30
MT
51$(DL_FILE)_MD5 = 649c1fdc76435e3d5315e1ad86f9bace
52xampp-linux-devel-$(VER).tar.gz_MD5 = fbdc87b3c1d6ee123173d08310baca7a
94025eea 53PostGreSQL-AddOn-1.0-pgsql8.1.tar.gz_MD5 = 63171afe553fd557032407e1ba6af477
8891c0e8 54Python-AddOn-1.3.tar.gz_MD5 = 5a962ea63c3e502227c8cca30e0ce786
cd1a2927
MT
55
56install : $(TARGET)
57
58check : $(patsubst %,$(DIR_CHK)/%,$(objects))
59
60download :$(patsubst %,$(DIR_DL)/%,$(objects))
61
62md5 : $(subst %,%_MD5,$(objects))
63
93dc5548
MT
64dist:
65 make-packages.sh xampp $(THISAPP)-ipfire-beta-1
66
cd1a2927
MT
67###############################################################################
68# Downloading, checking, md5sum
69###############################################################################
70
71$(patsubst %,$(DIR_CHK)/%,$(objects)) :
72 @$(CHECK)
73
74$(patsubst %,$(DIR_DL)/%,$(objects)) :
75 @$(LOAD)
76
77$(subst %,%_MD5,$(objects)) :
78 @$(MD5)
79
80###############################################################################
81# Installation Details
82###############################################################################
83
84$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
85 @$(PREBUILD)
94025eea
MT
86 @rm -rf $(DIR_APP)
87 cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE) -C /opt
88 cd $(DIR_SRC) && tar zxf $(DIR_DL)/xampp-linux-devel-$(VER).tar.gz -C /opt
8891c0e8 89 cd $(DIR_SRC) && tar zxf $(DIR_DL)/Python-AddOn-1.3.tar.gz -C /tmp
94025eea
MT
90 cd $(DIR_SRC) && tar zxf $(DIR_DL)/PostGreSQL-AddOn-1.0-pgsql8.1.tar.gz -C /tmp
91 cd /tmp/PostGreSQL-AddOn-1.0-pgsql8.1 && ./INSTALL
92 rm -rf /tmp/PostGreSQL-AddOn-1.0-pgsql8.1
8891c0e8
MT
93 cd /tmp/Python-AddOn-1.3 && cp -frv lampp/bin /opt/lampp
94 cd /tmp/Python-AddOn-1.3 && cp -frv lampp/cgi-bin /opt/lampp
95 cd /tmp/Python-AddOn-1.3 && cp -frv lampp/etc /opt/lampp
96 cd /tmp/Python-AddOn-1.3 && cp -frv lampp/htdocs /opt/lampp
97 cd /tmp/Python-AddOn-1.3 && cp -frv lampp/include /opt/lampp
98 cd /tmp/Python-AddOn-1.3 && cp -frv lampp/lib /opt/lampp
99 # cd /tmp/Python-AddOn-1.3 && cp -frv lampp/licenses /opt/lampp
100 # cd /tmp/Python-AddOn-1.3 && cp -frv lampp/man /opt/lampp
101 cd /tmp/Python-AddOn-1.3 && cp -frv lampp/modules /opt/lampp
102 # cd /tmp/Python-AddOn-1.3 && cp -frv lampp/share /opt/lampp
103 rm -rf /tmp/Python-AddOn-1.3
104 grep etc/python.conf /opt/lampp/etc/httpd.conf || echo -e "Include etc/python.conf" /opt/lampp/etc/httpd.conf
cd1a2927 105 chown -R nobody.nobody /opt/lampp/htdocs
8891c0e8
MT
106 ln -fs /opt/lampp/lib/mysql/libmysqlclient.* /usr/lib
107 ln -fs /opt/lampp/lib/libpq.* /usr/lib
cc70c026 108 ldconfig
cd1a2927 109 @$(POSTBUILD)