]> git.ipfire.org Git - ipfire-3.x.git/blame - lfs/e2fsprogs
Load FS modules that installer gets them supported.
[ipfire-3.x.git] / lfs / e2fsprogs
CommitLineData
cd1a2927 1###############################################################################
cd1a2927 2# #
70df8302 3# IPFire.org - A linux based firewall #
69b7a757 4# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
70df8302
MT
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
3888140c 27PKG_NAME = e2fsprogs
6035aa7b 28VER = 1.41.4
69b7a757 29PKG_VER = 0
cd1a2927 30
3888140c 31THISAPP = $(PKG_NAME)-$(VER)
db85c6af 32DL_FILE = $(THISAPP).tar.gz
cd1a2927 33DIR_APP = $(DIR_SRC)/$(THISAPP)
3888140c 34
6679675b 35OBJECT = $(DIR_INFO)/$(STAGE_ORDER)_$(STAGE)/$(THISAPP)
cd1a2927 36
69b7a757
MT
37MAINTAINER =
38GROUP = System/Filesystems
39EXTRA = no
40DEBUG = no
41DEPS =
42
43URL = http://e2fsprogs.sourceforge.net/
44LICENSE = GPLv2
45SHORT_DESC = Utilities for managing the second and third extended (ext2/ext3) filesystems.
46
47define LONG_DESC
48 The e2fsprogs package contains a number of utilities for creating, \
49 checking, modifying, and correcting any inconsistencies in second \
50 and third extended (ext2/ext3) filesystems.
51endef
52
cd1a2927
MT
53###############################################################################
54# Top-level Rules
55###############################################################################
56
57objects = $(DL_FILE)
58
69b7a757
MT
59download: $(objects)
60
03278b39
MT
61info:
62 $(DO_PKG_INFO)
63
69b7a757 64install: $(OBJECT)
cd1a2927 65
69b7a757
MT
66package:
67 @$(DO_PACKAGE)
cd1a2927 68
69b7a757 69$(objects):
cd1a2927
MT
70 @$(LOAD)
71
cd1a2927
MT
72###############################################################################
73# Installation Details
74###############################################################################
75
69b7a757 76$(OBJECT): $(objects)
cd1a2927 77 @$(PREBUILD)
69b7a757 78 @rm -rf $(DIR_APP) && cd $(DIR_SRC) && $(EXTRACTOR) $(DIR_DL)/$(DL_FILE)
3888140c 79 -mkdir $(DIR_APP)/build
e3d88b86
MT
80
81ifeq "$(STAGE)" "toolchain"
88068980
MT
82 # Fix DT_TEXTREL in e2fsprogs libraries. --disable-shared and
83 # --with-pic are not options in E2fsprogs:
84 cd $(DIR_APP) && \
85 find lib/ -name Makefile.in -exec sed -i "s/\$$(ALL_CFLAGS)/& -fPIC/" {} \;
86
87 # At run time libblkid looks for the BLKID_DEBUG environment variable to
88 # enable debbugging, with getenv(3). Some suid-root programs use libblkid,
89 # such as mount(1). e2fsprogs includes a safe_getenv() function, which calls
90 # __secure_getenv() from libc. __secure_getenv will restrict some environment
91 # variables if the user is suid or sgid. So, this command replaces getenv()
92 # with safe_getenv():
93 cd $(DIR_APP) && sed \
94 -e "s/getenv(\"BLKID_DEBUG\")/safe_getenv(\"BLKID_DEBUG\")/" \
95 -i lib/blkid/cache.c
96
97 cd $(DIR_APP)/build && \
98 ../configure \
99 $(CONFIGURE_ARCH) \
100 --prefix=$(TOOLS_DIR) \
101 --enable-elf-shlibs
3d84c75d 102 cd $(DIR_APP)/build && make $(PARALLELISMFLAGS)
e3d88b86
MT
103 cd $(DIR_APP)/build && make install-libs
104endif
105
106ifeq "$(STAGE)" "base"
69b7a757
MT
107 cd $(DIR_APP)/build && \
108 ../configure \
e40cd19f 109 $(CONFIGURE_ARCH) \
69b7a757
MT
110 --prefix=/usr \
111 --with-root-prefix="" \
112 --enable-elf-shlibs
3d84c75d 113 cd $(DIR_APP)/build && make $(PARALLELISMFLAGS)
3888140c
MT
114 cd $(DIR_APP)/build && make install
115 cd $(DIR_APP)/build && make install-libs
e3d88b86
MT
116endif
117
3888140c 118 @rm -rf $(DIR_APP)
cd1a2927 119 @$(POSTBUILD)