1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
12 url = http://kernel.org/~kzak/util-linux/
13 license = GPLv2 and GPLv2+ and BSD with advertising and Public Domain
14 summary = A collection of basic system utilities.
17 The util-linux package contains a large variety of low-level system
18 utilities that are necessary for a Linux system to function. Among
19 others, Util-linux contains the fdisk configuration tool and the login
23 source_dl = ftp://ftp.kernel.org/pub/linux/utils/util-linux/v%{major_ver}/
39 -D_LARGEFILE64_SOURCE \
40 -D_FILE_OFFSET_BITS=64
42 configure_options += \
45 --enable-login-utils \
48 --enable-libmount-mount \
51 --disable-makeinstall-chown \
55 sed -e 's@etc/adjtime@var/lib/hwclock/adjtime@g' \
56 -i $(grep -rl '/etc/adjtime' .)
61 gcc %{CFLAGS} -o nologin %{DIR_SOURCE}/nologin.c
66 %{BUILDROOT}/var/lib/hwclock \
67 %{BUILDROOT}/usr/share/man/man8 \
70 install -m 755 %{DIR_APP}/nologin %{BUILDROOT}%{sbindir}
71 install -m 644 %{DIR_SOURCE}/nologin.8 %{BUILDROOT}/usr/share/man/man8/
73 touch %{BUILDROOT}/var/log/lastlog
75 # Remove deprecated commands
76 rm -fv %{BUILDROOT}/{%{sbindir},usr/share/man/man*}/{fsck,mkfs}.{bfs,minix}* \
77 %{BUILDROOT}{%{bindir},%{sbindir}}/{chkdupexe,newgrp,vi{gr,pw}} \
78 %{BUILDROOT}%{sbindir}/{sln,shutdown} %{BUILDROOT}%{bindir}/{line,pg}
79 rm -fv %{BUILDROOT}/usr/share/man/man1/{chkdupexe,line,pg,newgrp}.* \
80 %{BUILDROOT}/usr/share/man/man8/{vipw,vigr}.*
81 rm -fv %{BUILDROOT}/usr/share/getopt/*.tcsh
84 chmod -v -s %{BUILDROOT}%{bindir}/mount
85 setcap CAP_DAC_OVERRIDE,CAP_SYS_ADMIN=ep %{BUILDROOT}%{bindir}/mount
86 chmod -v -s %{BUILDROOT}%{bindir}/umount
87 setcap CAP_DAC_OVERRIDE,CAP_SYS_ADMIN=ep %{BUILDROOT}%{bindir}/umount
96 /etc/pam.d/system-auth
112 obsoletes = util-linux-ng
121 preprequires += coreutils
124 touch /var/log/lastlog
128 ln -s /proc/mounts /etc/mtab
132 # Package information for libblkid
134 summary = Block device ID library.
136 This is the block device identification library,
140 conflicts = filesystem < 002
147 # Package information for libblkid-devel
148 package libblkid-devel
149 summary = Development library and header of libblkid.
150 description = %{summary}
154 %{libdir}/libblkid.so
155 %{libdir}/pkgconfig/blkid.pc
156 %{mandir}/man3/*blkid*
160 # Package information for libuuid
162 summary = Universally unique ID library.
164 This is the universally unique ID library,
168 conflicts = filesystem < 002
175 # Package information for libuuid-devel
176 package libuuid-devel
177 summary = Development library and header of libuuid.
178 description = %{summary}
183 %{libdir}/pkgconfig/uuid.pc
184 %{mandir}/man3/*uuid*
188 # Package information for libmount
190 summary = Device mounting library.
192 This is the device mounting library,
196 conflicts = filesystem < 002
203 # Package information for libmount-devel
204 package libmount-devel
205 summary = Development library and header of libmount.
206 description = %{summary}
209 %{includedir}/libmount/
210 %{libdir}/libmount.so
211 %{libdir}/pkgconfig/mount.pc
212 %{mandir}/man3/*mount*
216 package %{name}-debuginfo