]> git.ipfire.org Git - ipfire-3.x.git/blame - e2fsprogs/e2fsprogs.nm
ncurses: Refactor package.
[ipfire-3.x.git] / e2fsprogs / e2fsprogs.nm
CommitLineData
166a6c21 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
166a6c21
MT
4###############################################################################
5
802ea3af
MT
6name = e2fsprogs
7version = 1.41.11
8release = 1
166a6c21 9
802ea3af
MT
10groups = System/Filesystems
11url = http://e2fsprogs.sourceforge.net/
12license = GPLv2
13summary = Utilities for managing the extended (ext2/ext3/ext4) filesystems.
166a6c21 14
802ea3af 15description
166a6c21
MT
16 The e2fsprogs package contains a number of utilities for creating, \
17 checking, modifying, and correcting any inconsistencies in second \
18 and third extended (ext2/ext3) filesystems.
802ea3af
MT
19end
20
21source_dl =
22
23build
24 requires
25 libblkid-devel
26 libselinux-devel
27 libsepol-devel
28 libuuid-devel
29 end
30
31 prepare_cmds
32 mkdir -pv %{DIR_APP}/build
33
34 # Fix DT_TEXTREL in e2fsprogs libraries. --disable-shared and
35 # --with-pic are not options in E2fsprogs:
36 find lib/ -name Makefile.in -exec sed -i "s/\%{ALL_CFLAGS}/& -fPIC/" {} \;
37
38 # At run time libblkid looks for the BLKID_DEBUG environment variable to
39 # enable debbugging, with getenv(3). Some suid-root programs use libblkid,
40 # such as mount(1). e2fsprogs includes a safe_getenv() function, which calls
41 # __secure_getenv() from libc. __secure_getenv will restrict some environment
42 # variables if the user is suid or sgid. So, this command replaces getenv()
43 # with safe_getenv():
44 sed \
45 -e "s/getenv(\"BLKID_DEBUG\")/safe_getenv(\"BLKID_DEBUG\")/" \
46 -i lib/blkid/cache.c
47 end
48
49 build
50 cd build
166a6c21 51 ../configure \
166a6c21
MT
52 --prefix=/usr \
53 --with-root-prefix="" \
54 --enable-elf-shlibs \
55 --disable-libblkid \
56 --disable-fsck \
57 --disable-uuidd \
58 --disable-libuuid
59
802ea3af
MT
60 make %{PARALLELISMFLAGS}
61 end
62
63 test
64 cd build && make check
65 end
66
67 install
68 cd build
69 make install install-libs DESTDIR=%{BUILDROOT}
70
71 ln -svf ../../lib/libcom_err.so.2 %{BUILDROOT}/usr/lib/libcom_err.so
72 ln -svf ../../lib/libe2p.so.2 %{BUILDROOT}/usr/lib/libe2p.so
73 ln -svf ../../lib/libext2fs.so.2 %{BUILDROOT}/usr/lib/libext2fs.so
74 ln -svf ../../lib/libss.so.2 %{BUILDROOT}/usr/lib/libss.so
75 end
76end
77
78packages
79 package %{name}
80 groups += Base
81 end
82
83 package %{name}-devel
84 template DEVEL
85 end
86end