]>
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 |
763b73af | 7 | version = 1.42.13 |
5b285d71 | 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 | ||
5b285d71 MT |
46 | CFLAGS += -fno-strict-aliasing |
47 | ||
918f28d1 MT |
48 | configure_options += \ |
49 | --with-root-prefix="" \ | |
50 | --enable-elf-shlibs \ | |
51 | --disable-libblkid \ | |
52 | --disable-fsck \ | |
53 | --disable-uuidd \ | |
54 | --disable-libuuid | |
55 | ||
802ea3af MT |
56 | build |
57 | cd build | |
166a6c21 | 58 | ../configure \ |
918f28d1 | 59 | %{configure_options} |
166a6c21 | 60 | |
802ea3af MT |
61 | make %{PARALLELISMFLAGS} |
62 | end | |
63 | ||
64 | test | |
918f28d1 MT |
65 | # Create empty mtab file if it does not exist. |
66 | [ -e /etc/mtab ] || touch /etc/mtab | |
67 | ||
802ea3af MT |
68 | cd build && make check |
69 | end | |
70 | ||
71 | install | |
72 | cd build | |
73 | make install install-libs DESTDIR=%{BUILDROOT} | |
802ea3af MT |
74 | end |
75 | end | |
76 | ||
77 | packages | |
78 | package %{name} | |
79 | groups += Base | |
80 | end | |
1f9bc2f0 | 81 | |
635b92fe SS |
82 | package %{name}-libs |
83 | template LIBS | |
84 | end | |
85 | ||
802ea3af MT |
86 | package %{name}-devel |
87 | template DEVEL | |
9ddcd279 SS |
88 | |
89 | requires | |
90 | libcom_err-devel | |
91 | libss-devel | |
92 | end | |
802ea3af | 93 | end |
1f9bc2f0 | 94 | |
635b92fe SS |
95 | package libcom_err |
96 | summary = Common error description library. | |
97 | description | |
98 | This is the common error description library, part of e2fsprogs. | |
99 | end | |
100 | ||
101 | files | |
102 | %{libdir}/libcom_err.so.* | |
103 | end | |
104 | end | |
105 | ||
106 | package libcom_err-devel | |
107 | summary = Development files for libcom_err. | |
108 | description = %{summary} | |
109 | ||
110 | files | |
111 | %{bindir}/compile_et | |
112 | %{libdir}/libcom_err.so | |
113 | %{libdir}/pkgconfig/com_err.pc | |
114 | %{includedir}/com_err.h | |
115 | %{includedir}/et | |
116 | %{datadir}/et | |
117 | %{mandir}/man1/compile_et.1* | |
118 | %{mandir}/man3/com_err.3* | |
119 | end | |
120 | end | |
121 | ||
122 | package libss | |
123 | summary = Command line interface parsing library. | |
124 | description | |
125 | This is libss, a command line interface parsing library, part of e2fsprogs. | |
126 | end | |
127 | ||
128 | files | |
129 | %{libdir}/libss.so.* | |
130 | end | |
131 | end | |
132 | ||
133 | package libss-devel | |
134 | summary = Development files for libss. | |
135 | description = %{summary} | |
136 | ||
137 | files | |
138 | %{bindir}/mk_cmds | |
139 | %{libdir}/libss.so | |
140 | %{libdir}/pkgconfig/ss.pc | |
141 | %{includedir}/ss | |
142 | %{datadir}/ss | |
143 | %{mandir}/man1/mk_cmds.1* | |
144 | end | |
145 | end | |
1f9bc2f0 MT |
146 | package %{name}-debuginfo |
147 | template DEBUGINFO | |
148 | end | |
802ea3af | 149 | end |