]> git.ipfire.org Git - people/stevee/ipfire-3.x.git/blame - pkgs/core/e2fsprogs/e2fsprogs.nm
naoki: Mixed things.
[people/stevee/ipfire-3.x.git] / pkgs / core / e2fsprogs / e2fsprogs.nm
CommitLineData
166a6c21
MT
1###############################################################################
2# #
3# IPFire.org - A linux based firewall #
4# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
5# #
6# This program is free software: you can redistribute it and/or modify #
7# it under the terms of the GNU General Public License as published by #
8# the Free Software Foundation, either version 3 of the License, or #
9# (at your option) any later version. #
10# #
11# This program is distributed in the hope that it will be useful, #
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 #
17# along with this program. If not, see <http://www.gnu.org/licenses/>. #
18# #
19###############################################################################
20
21###############################################################################
22# Definitions
23###############################################################################
24
25include ../../Config
26
27PKG_NAME = e2fsprogs
28PKG_VER = 1.41.8
29PKG_REL = 0
30
31PKG_MAINTAINER =
32PKG_GROUP = System/Filesystems
33PKG_URL = http://e2fsprogs.sourceforge.net/
34PKG_LICENSE = GPLv2
35PKG_SUMMARY = Utilities for managing the extended (ext2/ext3/ext4) filesystems.
36
48add3fd
MT
37PKG_PACKAGES += devel
38
166a6c21
MT
39define PKG_DESCRIPTION
40 The e2fsprogs package contains a number of utilities for creating, \
41 checking, modifying, and correcting any inconsistencies in second \
42 and third extended (ext2/ext3) filesystems.
43endef
44
f6c2d517
MT
45PKG_BUILD_DEPS+= pkg-config
46
166a6c21
MT
47PKG_TARBALL = $(THISAPP).tar.gz
48
49include ../../Rules
50
51###############################################################################
52# Installation Details
53###############################################################################
54
17c0ee8a 55define STAGE_PREPARE
166a6c21
MT
56 -mkdir $(DIR_APP)/build
57
58 # Fix DT_TEXTREL in e2fsprogs libraries. --disable-shared and
59 # --with-pic are not options in E2fsprogs:
60 cd $(DIR_APP) && \
61 find lib/ -name Makefile.in -exec sed -i "s/\$$(ALL_CFLAGS)/& -fPIC/" {} \;
62
63 # At run time libblkid looks for the BLKID_DEBUG environment variable to
64 # enable debbugging, with getenv(3). Some suid-root programs use libblkid,
65 # such as mount(1). e2fsprogs includes a safe_getenv() function, which calls
66 # __secure_getenv() from libc. __secure_getenv will restrict some environment
67 # variables if the user is suid or sgid. So, this command replaces getenv()
68 # with safe_getenv():
69 cd $(DIR_APP) && sed \
70 -e "s/getenv(\"BLKID_DEBUG\")/safe_getenv(\"BLKID_DEBUG\")/" \
71 -i lib/blkid/cache.c
17c0ee8a 72endef
166a6c21 73
17c0ee8a 74define STAGE_BUILD
166a6c21
MT
75 cd $(DIR_APP)/build && \
76 LDFLAGS=-lblkid \
77 ../configure \
78 $(CONFIGURE_ARCH) \
79 --prefix=/usr \
80 --with-root-prefix="" \
81 --enable-elf-shlibs \
82 --disable-libblkid \
83 --disable-fsck \
84 --disable-uuidd \
85 --disable-libuuid
86
87 cd $(DIR_APP)/build && make $(PARALLELISMFLAGS)
17c0ee8a 88endef
166a6c21 89
17c0ee8a 90define STAGE_INSTALL
166a6c21
MT
91 cd $(DIR_APP)/build && make install DESTDIR=$(BUILDROOT)
92 cd $(DIR_APP)/build && make install-libs DESTDIR=$(BUILDROOT)
93
94 ln -svf ../../lib/libcom_err.so.2 $(BUILDROOT)/usr/lib/libcom_err.so
95 ln -svf ../../lib/libe2p.so.2 $(BUILDROOT)/usr/lib/libe2p.so
96 ln -svf ../../lib/libext2fs.so.2 $(BUILDROOT)/usr/lib/libext2fs.so
97 ln -svf ../../lib/libss.so.2 $(BUILDROOT)/usr/lib/libss.so
98 ln -svf ../../lib/libuuid.so.1 $(BUILDROOT)/usr/lib/libuuid.so
17c0ee8a 99endef