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 += \
47 --enable-login-utils \
50 --enable-libmount-mount \
53 --disable-makeinstall-chown \
57 sed -e 's@etc/adjtime@var/lib/hwclock/adjtime@g' \
58 -i $(grep -rl '/etc/adjtime' .)
63 gcc %{CFLAGS} -o nologin %{DIR_SOURCE}/nologin.c
67 mkdir -pv %{BUILDROOT}/sbin \
68 %{BUILDROOT}/var/lib/hwclock \
69 %{BUILDROOT}/usr/share/man/man8 \
72 install -m 755 %{DIR_APP}/nologin %{BUILDROOT}/sbin
73 install -m 644 %{DIR_SOURCE}/nologin.8 %{BUILDROOT}/usr/share/man/man8/
75 touch %{BUILDROOT}/var/log/lastlog
77 # Remove deprecated commands
78 rm -fv %{BUILDROOT}/{sbin,usr/share/man/man*}/{fsck,mkfs}.{bfs,minix}* \
79 %{BUILDROOT}/usr/bin/chkdupexe %{BUILDROOT}/usr/bin/vi{gr,pw} \
80 %{BUILDROOT}/sbin/{sln,shutdown} %{BUILDROOT}/bin/{line,newgrp,pg}
81 rm -fv %{BUILDROOT}/usr/share/getopt/*.tcsh
83 # Create /etc/mtab symlink
84 mkdir -pv %{BUILDROOT}/etc
85 ln -svf /proc/mounts %{BUILDROOT}/etc/mtab
89 # This symlink is allowed to be absolute.
101 /etc/pam.d/system-auth
104 filter_requires = /proc/.*/mounts
106 obsoletes = util-linux-ng
114 # Package information for libblkid
116 summary = Block device ID library.
118 This is the block device identification library,
127 # Package information for libblkid-devel
128 package libblikid-devel
129 summary = Development library and header of libblkid.
130 description = %{summary}
135 /usr/lib/pkgconfig/blkid.pc
136 /usr/share/man/man3/*blkid*
140 # Package information for libuuid
142 summary = Universally unique ID library.
144 This is the universally unique ID library,
153 # Package information for libuuid-devel
154 package libuuid-devel
155 summary = Development library and header of libuuid.
156 description = %{summary}
161 /usr/lib/pkgconfig/uuid.pc
162 /usr/share/man/man3/*uuid*
166 # Package information for libmount
168 summary = Device mounting library.
170 This is the device mounting library,
179 # Package information for libmount-devel
180 package libmount-devel
181 summary = Development library and header of libmount.
182 description = %{summary}
187 /usr/lib/pkgconfig/mount.pc
188 /usr/share/man/man3/*mount*