]>
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 | 6 | name = e2fsprogs |
635b92fe | 7 | version = 1.42.7 |
9ddcd279 | 8 | release = 2 |
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 |
635b92fe SS |
16 | The e2fsprogs package contains a number of utilities for creating, |
17 | checking, modifying, and correcting any inconsistencies in second | |
166a6c21 | 18 | and third extended (ext2/ext3) filesystems. |
802ea3af MT |
19 | end |
20 | ||
42c105ee | 21 | source_dl = http://prdownloads.sourceforge.net/%{name}/ |
802ea3af MT |
22 | |
23 | build | |
24 | requires | |
25 | libblkid-devel | |
26 | libselinux-devel | |
27 | libsepol-devel | |
28 | libuuid-devel | |
42c105ee | 29 | psmisc |
802ea3af MT |
30 | end |
31 | ||
32 | prepare_cmds | |
33 | mkdir -pv %{DIR_APP}/build | |
34 | ||
802ea3af MT |
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 \ | |
918f28d1 | 42 | -e 's/getenv("BLKID_DEBUG")/safe_getenv("BLKID_DEBUG")/' \ |
802ea3af MT |
43 | -i lib/blkid/cache.c |
44 | end | |
45 | ||
918f28d1 MT |
46 | configure_options += \ |
47 | --with-root-prefix="" \ | |
48 | --enable-elf-shlibs \ | |
49 | --disable-libblkid \ | |
50 | --disable-fsck \ | |
51 | --disable-uuidd \ | |
52 | --disable-libuuid | |
53 | ||
802ea3af MT |
54 | build |
55 | cd build | |
166a6c21 | 56 | ../configure \ |
918f28d1 | 57 | %{configure_options} |
166a6c21 | 58 | |
802ea3af MT |
59 | make %{PARALLELISMFLAGS} |
60 | end | |
61 | ||
62 | test | |
918f28d1 MT |
63 | # Create empty mtab file if it does not exist. |
64 | [ -e /etc/mtab ] || touch /etc/mtab | |
65 | ||
802ea3af MT |
66 | cd build && make check |
67 | end | |
68 | ||
69 | install | |
70 | cd build | |
71 | make install install-libs DESTDIR=%{BUILDROOT} | |
802ea3af MT |
72 | end |
73 | end | |
74 | ||
75 | packages | |
76 | package %{name} | |
77 | groups += Base | |
78 | end | |
1f9bc2f0 | 79 | |
635b92fe SS |
80 | package %{name}-libs |
81 | template LIBS | |
82 | end | |
83 | ||
802ea3af MT |
84 | package %{name}-devel |
85 | template DEVEL | |
9ddcd279 SS |
86 | |
87 | requires | |
88 | libcom_err-devel | |
89 | libss-devel | |
90 | end | |
802ea3af | 91 | end |
1f9bc2f0 | 92 | |
635b92fe SS |
93 | package libcom_err |
94 | summary = Common error description library. | |
95 | description | |
96 | This is the common error description library, part of e2fsprogs. | |
97 | end | |
98 | ||
99 | files | |
100 | %{libdir}/libcom_err.so.* | |
101 | end | |
102 | end | |
103 | ||
104 | package libcom_err-devel | |
105 | summary = Development files for libcom_err. | |
106 | description = %{summary} | |
107 | ||
108 | files | |
109 | %{bindir}/compile_et | |
110 | %{libdir}/libcom_err.so | |
111 | %{libdir}/pkgconfig/com_err.pc | |
112 | %{includedir}/com_err.h | |
113 | %{includedir}/et | |
114 | %{datadir}/et | |
115 | %{mandir}/man1/compile_et.1* | |
116 | %{mandir}/man3/com_err.3* | |
117 | end | |
118 | end | |
119 | ||
120 | package libss | |
121 | summary = Command line interface parsing library. | |
122 | description | |
123 | This is libss, a command line interface parsing library, part of e2fsprogs. | |
124 | end | |
125 | ||
126 | files | |
127 | %{libdir}/libss.so.* | |
128 | end | |
129 | end | |
130 | ||
131 | package libss-devel | |
132 | summary = Development files for libss. | |
133 | description = %{summary} | |
134 | ||
135 | files | |
136 | %{bindir}/mk_cmds | |
137 | %{libdir}/libss.so | |
138 | %{libdir}/pkgconfig/ss.pc | |
139 | %{includedir}/ss | |
140 | %{datadir}/ss | |
141 | %{mandir}/man1/mk_cmds.1* | |
142 | end | |
143 | end | |
1f9bc2f0 MT |
144 | package %{name}-debuginfo |
145 | template DEBUGINFO | |
146 | end | |
802ea3af | 147 | end |