1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
12 #groups-%{name} = Base %{groups}
13 url = http://kernel.org/~kzak/util-linux/
14 license = GPLv2 and GPLv2+ and BSD with advertising and Public Domain
15 summary = A collection of basic system utilities.
18 The util-linux package contains a large variety of low-level system
19 utilities that are necessary for a Linux system to function. Among
20 others, Util-linux contains the fdisk configuration tool and the login
24 source_dl = ftp://ftp.kernel.org/pub/linux/utils/util-linux/v%{major_ver}/
40 -D_LARGEFILE64_SOURCE \
41 -D_FILE_OFFSET_BITS=64
43 configure_options += \
49 --enable-login-utils \
52 --enable-libmount-mount \
55 --disable-makeinstall-chown \
59 sed -e 's@etc/adjtime@var/lib/hwclock/adjtime@g' \
60 -i $(grep -rl '/etc/adjtime' .)
65 gcc %{CFLAGS} -o nologin %{DIR_SOURCE}/nologin.c
69 mkdir -pv %{BUILDROOT}/sbin \
70 %{BUILDROOT}/var/lib/hwclock \
71 %{BUILDROOT}/usr/share/man/man8 \
74 install -m 755 %{DIR_APP}/nologin %{BUILDROOT}/sbin
75 install -m 644 %{DIR_SOURCE}/nologin.8 %{BUILDROOT}/usr/share/man/man8/
77 touch %{BUILDROOT}/var/log/lastlog
79 # Remove deprecated commands
80 rm -fv %{BUILDROOT}/{sbin,usr/share/man/man*}/{fsck,mkfs}.{bfs,minix}* \
81 %{BUILDROOT}/usr/bin/chkdupexe %{BUILDROOT}/usr/bin/vi{gr,pw} \
82 %{BUILDROOT}/sbin/{sln,shutdown} %{BUILDROOT}/bin/{line,newgrp,pg}
83 rm -fv %{BUILDROOT}/usr/share/getopt/*.tcsh
85 # Create /etc/mtab symlink
86 mkdir -pv %{BUILDROOT}/etc
87 ln -svf /proc/mounts %{BUILDROOT}/etc/mtab
90 export PKG_REQUIRES_FILTER = /proc/.*/mounts
93 # This symlink is allowed to be absolute.
102 requires = /etc/pam.d/system-auth
105 # Package information for libblkid
107 summary = Block device ID library.
109 This is the block device identification library,
118 # Package information for libblkid-devel
119 package libblikid-devel
120 summary = Development library and header of libblkid.
121 description = %{summary}
126 /usr/lib/pkgconfig/blkid.pc
127 /usr/share/man/man3/*blkid*
131 # Package information for libuuid
133 summary = Universally unique ID library.
135 This is the universally unique ID library,
144 # Package information for libuuid-devel
145 package libuuid-devel
146 summary = Development library and header of libuuid.
147 description = %{summary}
152 /usr/lib/pkgconfig/uuid.pc
153 /usr/share/man/man3/*uuid*
157 # Package information for libmount
159 summary = Device mounting library.
161 This is the device mounting library,
170 # Package information for libmount-devel
171 package libmount-devel
172 summary = Development library and header of libmount.
173 description = %{summary}
178 /usr/lib/pkgconfig/mount.pc
179 /usr/share/man/man3/*mount*