]>
Commit | Line | Data |
---|---|---|
1 | ############################################################################### | |
2 | # IPFire.org - An Open Source Firewall Solution # | |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
4 | ############################################################################### | |
5 | ||
6 | name = e2fsprogs | |
7 | version = 1.42.2 | |
8 | release = 1 | |
9 | ||
10 | groups = System/Filesystems | |
11 | url = http://e2fsprogs.sourceforge.net/ | |
12 | license = GPLv2 | |
13 | summary = Utilities for managing the extended (ext2/ext3/ext4) filesystems. | |
14 | ||
15 | description | |
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. | |
19 | end | |
20 | ||
21 | source_dl = http://prdownloads.sourceforge.net/%{name}/ | |
22 | ||
23 | build | |
24 | requires | |
25 | libblkid-devel | |
26 | libselinux-devel | |
27 | libsepol-devel | |
28 | libuuid-devel | |
29 | psmisc | |
30 | end | |
31 | ||
32 | prepare_cmds | |
33 | mkdir -pv %{DIR_APP}/build | |
34 | ||
35 | # At run time libblkid looks for the BLKID_DEBUG environment variable to | |
36 | # enable debbugging, with getenv(3). Some suid-root programs use libblkid, | |
37 | # such as mount(1). e2fsprogs includes a safe_getenv() function, which calls | |
38 | # __secure_getenv() from libc. __secure_getenv will restrict some environment | |
39 | # variables if the user is suid or sgid. So, this command replaces getenv() | |
40 | # with safe_getenv(): | |
41 | sed \ | |
42 | -e 's/getenv("BLKID_DEBUG")/safe_getenv("BLKID_DEBUG")/' \ | |
43 | -i lib/blkid/cache.c | |
44 | end | |
45 | ||
46 | configure_options += \ | |
47 | --with-root-prefix="" \ | |
48 | --enable-elf-shlibs \ | |
49 | --disable-libblkid \ | |
50 | --disable-fsck \ | |
51 | --disable-uuidd \ | |
52 | --disable-libuuid | |
53 | ||
54 | build | |
55 | cd build | |
56 | ../configure \ | |
57 | %{configure_options} | |
58 | ||
59 | make %{PARALLELISMFLAGS} | |
60 | end | |
61 | ||
62 | test | |
63 | # Create empty mtab file if it does not exist. | |
64 | [ -e /etc/mtab ] || touch /etc/mtab | |
65 | ||
66 | cd build && make check | |
67 | end | |
68 | ||
69 | install | |
70 | cd build | |
71 | make install install-libs DESTDIR=%{BUILDROOT} | |
72 | end | |
73 | end | |
74 | ||
75 | packages | |
76 | package %{name} | |
77 | groups += Base | |
78 | end | |
79 | ||
80 | package %{name}-devel | |
81 | template DEVEL | |
82 | end | |
83 | ||
84 | package %{name}-debuginfo | |
85 | template DEBUGINFO | |
86 | end | |
87 | end |