]> git.ipfire.org Git - ipfire-3.x.git/blame - lfs/module-init-tools
Renamed some fields...
[ipfire-3.x.git] / lfs / module-init-tools
CommitLineData
cd1a2927 1###############################################################################
cd1a2927 2# #
70df8302
MT
3# IPFire.org - A linux based firewall #
4# Copyright (C) 2007 Michael Tremer & Christian Schmidt #
5# #
6# This program is free software: you can redistribute it and/or modify #
cd1a2927 7# it under the terms of the GNU General Public License as published by #
70df8302 8# the Free Software Foundation, either version 3 of the License, or #
cd1a2927
MT
9# (at your option) any later version. #
10# #
70df8302 11# This program is distributed in the hope that it will be useful, #
cd1a2927
MT
12# but WITHOUT ANY WARRANTY; without even the implied warranty of #
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14# GNU General Public License for more details. #
15# #
16# You should have received a copy of the GNU General Public License #
70df8302 17# along with this program. If not, see <http://www.gnu.org/licenses/>. #
cd1a2927 18# #
cd1a2927
MT
19###############################################################################
20
21###############################################################################
22# Definitions
23###############################################################################
24
25include Config
26
0e61af85 27PKG_NAME = module-init-tools
8985a698 28PKG_VER = 3.5
cd1a2927 29
8985a698 30THISAPP = $(PKG_NAME)-$(PKG_VER)
9b0ff0a0 31DL_FILE = $(THISAPP).tar.bz2
cd1a2927 32DIR_APP = $(DIR_SRC)/$(THISAPP)
0e61af85 33
6679675b 34OBJECT = $(DIR_INFO)/$(STAGE_ORDER)_$(STAGE)/$(THISAPP)
cd1a2927
MT
35
36###############################################################################
37# Top-level Rules
38###############################################################################
39
b37b0910
MT
40objects = $(DL_FILE) \
41 $(THISAPP)-nostatic-1.patch
cd1a2927 42
6679675b 43install : $(OBJECT)
cd1a2927 44
87703b91 45download : $(objects)
cd1a2927 46
87703b91 47$(objects) :
cd1a2927
MT
48 @$(LOAD)
49
cd1a2927
MT
50###############################################################################
51# Installation Details
52###############################################################################
53
6679675b 54$(OBJECT) :
cd1a2927 55 @$(PREBUILD)
9b0ff0a0 56 @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
b37b0910
MT
57 cd $(DIR_APP) && patch -Np1 -i $(DIR_PATCHES)/$(THISAPP)-nostatic-1.patch
58 cd $(DIR_APP) && autoreconf --force
252dc8be
MT
59 cd $(DIR_APP) && \
60 ./configure \
61 $(CONFIGURE_ARCH) \
b37b0910
MT
62 --prefix=/ \
63 --mandir=/usr/share/man \
64 --enable-zlib
3d84c75d 65 cd $(DIR_APP) && make $(PARALLELISMFLAGS)
9b0ff0a0 66 cd $(DIR_APP) && make INSTALL=install install
cd1a2927
MT
67 @rm -rf $(DIR_APP)
68 @$(POSTBUILD)