############################################################################### # IPFire.org - An Open Source Firewall Solution # # Copyright (C) - IPFire Development Team # ############################################################################### name = e2fsprogs version = 1.42.2 release = 1 groups = System/Filesystems url = http://e2fsprogs.sourceforge.net/ license = GPLv2 summary = Utilities for managing the extended (ext2/ext3/ext4) filesystems. description The e2fsprogs package contains a number of utilities for creating, \ checking, modifying, and correcting any inconsistencies in second \ and third extended (ext2/ext3) filesystems. end source_dl = http://prdownloads.sourceforge.net/%{name}/ build requires libblkid-devel libselinux-devel libsepol-devel libuuid-devel psmisc end prepare_cmds mkdir -pv %{DIR_APP}/build # At run time libblkid looks for the BLKID_DEBUG environment variable to # enable debbugging, with getenv(3). Some suid-root programs use libblkid, # such as mount(1). e2fsprogs includes a safe_getenv() function, which calls # __secure_getenv() from libc. __secure_getenv will restrict some environment # variables if the user is suid or sgid. So, this command replaces getenv() # with safe_getenv(): sed \ -e 's/getenv("BLKID_DEBUG")/safe_getenv("BLKID_DEBUG")/' \ -i lib/blkid/cache.c end configure_options += \ --with-root-prefix="" \ --enable-elf-shlibs \ --disable-libblkid \ --disable-fsck \ --disable-uuidd \ --disable-libuuid build cd build ../configure \ %{configure_options} make %{PARALLELISMFLAGS} end test # Create empty mtab file if it does not exist. [ -e /etc/mtab ] || touch /etc/mtab cd build && make check end install cd build make install install-libs DESTDIR=%{BUILDROOT} end end packages package %{name} groups += Base end package %{name}-devel template DEVEL end package %{name}-debuginfo template DEBUGINFO end end