]>
Commit | Line | Data |
---|---|---|
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 |
6 | name = e2fsprogs |
7 | version = 1.41.11 | |
8 | release = 1 | |
166a6c21 | 9 | |
802ea3af MT |
10 | groups = System/Filesystems |
11 | url = http://e2fsprogs.sourceforge.net/ | |
12 | license = GPLv2 | |
13 | summary = Utilities for managing the extended (ext2/ext3/ext4) filesystems. | |
166a6c21 | 14 | |
802ea3af | 15 | description |
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 |
19 | end |
20 | ||
21 | source_dl = | |
22 | ||
23 | build | |
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 | ||
802ea3af MT |
34 | # At run time libblkid looks for the BLKID_DEBUG environment variable to |
35 | # enable debbugging, with getenv(3). Some suid-root programs use libblkid, | |
36 | # such as mount(1). e2fsprogs includes a safe_getenv() function, which calls | |
37 | # __secure_getenv() from libc. __secure_getenv will restrict some environment | |
38 | # variables if the user is suid or sgid. So, this command replaces getenv() | |
39 | # with safe_getenv(): | |
40 | sed \ | |
918f28d1 | 41 | -e 's/getenv("BLKID_DEBUG")/safe_getenv("BLKID_DEBUG")/' \ |
802ea3af MT |
42 | -i lib/blkid/cache.c |
43 | end | |
44 | ||
918f28d1 MT |
45 | configure_options += \ |
46 | --with-root-prefix="" \ | |
47 | --enable-elf-shlibs \ | |
48 | --disable-libblkid \ | |
49 | --disable-fsck \ | |
50 | --disable-uuidd \ | |
51 | --disable-libuuid | |
52 | ||
802ea3af MT |
53 | build |
54 | cd build | |
166a6c21 | 55 | ../configure \ |
918f28d1 | 56 | %{configure_options} |
166a6c21 | 57 | |
802ea3af MT |
58 | make %{PARALLELISMFLAGS} |
59 | end | |
60 | ||
61 | test | |
918f28d1 MT |
62 | # Create empty mtab file if it does not exist. |
63 | [ -e /etc/mtab ] || touch /etc/mtab | |
64 | ||
802ea3af MT |
65 | cd build && make check |
66 | end | |
67 | ||
68 | install | |
69 | cd build | |
70 | make install install-libs DESTDIR=%{BUILDROOT} | |
71 | ||
72 | ln -svf ../../lib/libcom_err.so.2 %{BUILDROOT}/usr/lib/libcom_err.so | |
73 | ln -svf ../../lib/libe2p.so.2 %{BUILDROOT}/usr/lib/libe2p.so | |
74 | ln -svf ../../lib/libext2fs.so.2 %{BUILDROOT}/usr/lib/libext2fs.so | |
75 | ln -svf ../../lib/libss.so.2 %{BUILDROOT}/usr/lib/libss.so | |
76 | end | |
77 | end | |
78 | ||
79 | packages | |
80 | package %{name} | |
81 | groups += Base | |
82 | end | |
1f9bc2f0 | 83 | |
802ea3af MT |
84 | package %{name}-devel |
85 | template DEVEL | |
86 | end | |
1f9bc2f0 MT |
87 | |
88 | package %{name}-debuginfo | |
89 | template DEBUGINFO | |
90 | end | |
802ea3af | 91 | end |