]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - lfs/mod_perl
Imported mod_perl by xpapa.
[people/pmueller/ipfire-2.x.git] / lfs / mod_perl
index fdfea9f1642df2e82667c315ba84240d2e99dba7..876acbf1e8234939f13f727046ec83974e89e069 100644 (file)
@@ -1,22 +1,22 @@
 ###############################################################################
-# This file is part of the IPCop Firewall.                                    #
 #                                                                             #
-# IPCop is free software; you can redistribute it and/or modify               #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007  Michael Tremer & Christian Schmidt                      #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
 # it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation; either version 2 of the License, or           #
+# the Free Software Foundation, either version 3 of the License, or           #
 # (at your option) any later version.                                         #
 #                                                                             #
-# IPCop is distributed in the hope that it will be useful,                    #
+# This program is distributed in the hope that it will be useful,             #
 # but WITHOUT ANY WARRANTY; without even the implied warranty of              #
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
 # GNU General Public License for more details.                                #
 #                                                                             #
 # You should have received a copy of the GNU General Public License           #
-# along with IPCop; if not, write to the Free Software                        #
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA    #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
 #                                                                             #
-# Makefiles are based on LFSMake, which is                                    #
-# Copyright (C) 2002 Rod Roard <rod@sunsetsystems.com>                        #
+# Edit by Michel Schaaf <xpapa@embcop.org>                                   #
 #                                                                             #
 ###############################################################################
 
 
 include Config
 
-VER        = 2.0.2
+VER        = 2.0.4
 
 THISAPP    = mod_perl-$(VER)
 DL_FILE    = $(THISAPP).tar.gz
-DL_FROM    = $(URL_IPFIRE)
+DL_FROM    = http://perl.apache.org/dist
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
 TARGET     = $(DIR_INFO)/$(THISAPP)
 
@@ -40,9 +40,9 @@ TARGET     = $(DIR_INFO)/$(THISAPP)
 
 objects = $(DL_FILE)
 
-$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
+$(DL_FILE)                        = $(DL_FROM)/$(DL_FILE)
 
-$(DL_FILE)_MD5 = ad0a509fd34e3b8452887d80a1d45dea
+$(DL_FILE)_MD5                    = 1a05625ae6843085f985f5da8214502a
 
 install : $(TARGET)
 
@@ -71,9 +71,14 @@ $(subst %,%_MD5,$(objects)) :
 
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
-       @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
-       cd $(DIR_APP) && perl Makefile.PL PREFIX=/usr MP_APXS=/usr/sbin/apxs
+       @rm -rf $(DIR_APP)
+       cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
+       echo "127.0.0.1 localhost" > /etc/hosts
+       cd $(DIR_APP) && perl Makefile.PL MP_APXS=/usr/sbin/apxs
        cd $(DIR_APP) && make
        cd $(DIR_APP) && make install
+       cp $(DIR_SRC)/config/mod_perl/startup.pl /usr/lib/apache/
+       @rm /etc/hosts
        @rm -rf $(DIR_APP)
+       @rm -rf $(DIR_SRC)/apache* $(DIR_SRC)/mm-*
        @$(POSTBUILD)