Revision: 6450
          http://ipcop.svn.sourceforge.net/ipcop/?rev=6450&view=rev
Author:   owes
Date:     2012-03-03 07:16:59 +0000 (Sat, 03 Mar 2012)
Log Message:
-----------
Add LFS file for kmod. Do not fully include yet, switch to kmod + recent udev 
breaks to many things.

Modified Paths:
--------------
    ipcop/trunk/make.sh

Added Paths:
-----------
    ipcop/trunk/lfs/kmod

Added: ipcop/trunk/lfs/kmod
===================================================================
--- ipcop/trunk/lfs/kmod                                (rev 0)
+++ ipcop/trunk/lfs/kmod        2012-03-03 07:16:59 UTC (rev 6450)
@@ -0,0 +1,107 @@
+###############################################################################
+# This file is part of the IPCop Firewall.                                    #
+#                                                                             #
+# IPCop 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           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# IPCop 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    #
+#                                                                             #
+# Makefiles are based on LFSMake, which is                                    #
+# Copyright (C) 2002 Rod Roard <r...@sunsetsystems.com>                        
#
+#                                                                             #
+# Modifications by:                                                           #
+# ??-12-2003 Mark Wormgoor < m...@wormgoor.com>                               #
+#          - Modified Makefile for IPCop build                                #
+#                                                                             #
+# $Id: module-init-tools 6311 2012-02-04 14:43:33Z owes $
+#                                                                             #
+###############################################################################
+
+###############################################################################
+# Definitions
+###############################################################################
+
+include Config
+
+PKG_NAME   = kmod
+VER        = 6
+HOST_ARCH  = all
+OTHER_SRC  = yes
+
+THISAPP    = $(PKG_NAME)-$(VER)
+DL_FILE    = $(THISAPP).tar.xz
+DL_FROM    = $(URL_KERNEL)/linux/utils/kernel/kmod
+DIR_APP    = $(DIR_SRC)/$(THISAPP)
+TARGET     = $(DIR_INFO)/$(STAGE_ORDER)_$(STAGE)/$(THISAPP)
+
+
+###############################################################################
+# Top-level Rules
+###############################################################################
+
+objects = $(DL_FILE)
+
+$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
+
+$(DL_FILE)_MD5 = bad08102fad212cd34405136d9a7eb94
+
+install : $(TARGET)
+
+check : $(patsubst %,$(DIR_CHK)/%,$(objects))
+
+download :$(patsubst %,$(DIR_DL)/%,$(objects))
+
+md5 : $(subst %,%_MD5,$(objects))
+
+###############################################################################
+# Downloading, checking, md5sum
+###############################################################################
+
+$(patsubst %,$(DIR_CHK)/%,$(objects)) :
+       @$(CHECK)
+
+$(patsubst %,$(DIR_DL)/%,$(objects)) :
+       @$(LOAD)
+
+$(subst %,%_MD5,$(objects)) :
+       @$(MD5)
+
+###############################################################################
+# Installation Details
+###############################################################################
+
+$(TARGET) : $(firstword $(MAKEFILE_LIST)) $(patsubst %,$(DIR_DL)/%,$(objects))
+       @$(PREBUILD)
+       @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar xf $(DIR_DL)/$(DL_FILE)
+
+       cd $(DIR_APP) && ./configure    --prefix=/usr \
+                                       --sysconfdir=/etc \
+                                       --with-zlib
+
+       cd $(DIR_APP) && make
+
+ifeq "$(RUNNING_TEST)" "yes"
+       # 7 tests pass
+       cd $(DIR_APP) && make -j 1 check &> 
$(DIR_TEST)/$(THISAPP)-$(STAGE_ORDER).log
+endif
+
+       cd $(DIR_APP) && make install
+
+       # Symlinks for 'module-init-tools' compatibility
+       for target in depmod modinfo modprobe; do \
+               ln -sf /usr/bin/kmod /sbin/$$target; \
+       done
+       ln -sf /usr/bin/kmod /bin/lsmod
+
+       # Currently testing
+       #@rm -rf $(DIR_APP)
+       @$(POSTBUILD)


Property changes on: ipcop/trunk/lfs/kmod
___________________________________________________________________
Added: svn:keyword
   + Id

Modified: ipcop/trunk/make.sh
===================================================================
--- ipcop/trunk/make.sh 2012-03-03 06:50:23 UTC (rev 6449)
+++ ipcop/trunk/make.sh 2012-03-03 07:16:59 UTC (rev 6450)
@@ -1734,6 +1734,7 @@
        chroot_make make
        chroot_make xz                  # man-db depend of xz, but we don't 
build man-db
        chroot_make module-init-tools
+       #chroot_make kmod
        chroot_make patch
        chroot_make rsyslog
        chroot_make shadow

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Ipcop-svn mailing list
Ipcop-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipcop-svn

Reply via email to