]> git.ipfire.org Git - ipfire-3.x.git/blob - util-linux/util-linux.nm
Merge remote-tracking branch 'stevee/dbus'
[ipfire-3.x.git] / util-linux / util-linux.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = util-linux
7 version = 2.19
8 major_ver = 2.19
9 release = 5
10
11 groups = System/Base
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.
15
16 description
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
20 program.
21 end
22
23 source_dl = ftp://ftp.kernel.org/pub/linux/utils/util-linux/v%{major_ver}/
24
25 build
26 requires
27 audit-devel
28 gettext
29 libcap-devel
30 libselinux-devel
31 libsepol-devel
32 ncurses-devel
33 pam-devel
34 zlib-devel
35 end
36
37 CFLAGS += \
38 -D_LARGEFILE_SOURCE \
39 -D_LARGEFILE64_SOURCE \
40 -D_FILE_OFFSET_BITS=64
41
42 configure_options += \
43 --bindir=/bin \
44 --sbindir=/sbin \
45 --disable-wall \
46 --enable-kill \
47 --enable-login-utils \
48 --enable-partx \
49 --enable-write \
50 --enable-libmount-mount \
51 --with-selinux \
52 --with-audit \
53 --disable-makeinstall-chown \
54 --disable-static
55
56 prepare_cmds
57 sed -e 's@etc/adjtime@var/lib/hwclock/adjtime@g' \
58 -i $(grep -rl '/etc/adjtime' .)
59 end
60
61 # Build nolodin
62 build_cmds
63 gcc %{CFLAGS} -o nologin %{DIR_SOURCE}/nologin.c
64 end
65
66 install_cmds
67 mkdir -pv %{BUILDROOT}/sbin \
68 %{BUILDROOT}/var/lib/hwclock \
69 %{BUILDROOT}/usr/share/man/man8 \
70 %{BUILDROOT}/var/log
71
72 install -m 755 %{DIR_APP}/nologin %{BUILDROOT}/sbin
73 install -m 644 %{DIR_SOURCE}/nologin.8 %{BUILDROOT}/usr/share/man/man8/
74
75 touch %{BUILDROOT}/var/log/lastlog
76
77 # Remove deprecated commands
78 rm -fv %{BUILDROOT}/{sbin,usr/share/man/man*}/{fsck,mkfs}.{bfs,minix}* \
79 %{BUILDROOT}/usr/{,s}bin/{chkdupexe,newgrp,vi{gr,pw}} \
80 %{BUILDROOT}/sbin/{sln,shutdown} %{BUILDROOT}/bin/{line,pg}
81 rm -fv %{BUILDROOT}/usr/share/man/man1/{chkdupexe,line,pg,newgrp}.* \
82 %{BUILDROOT}/usr/share/man/man8/{vipw,vigr}.*
83 rm -fv %{BUILDROOT}/usr/share/getopt/*.tcsh
84
85 # Create /etc/mtab symlink
86 mkdir -pv %{BUILDROOT}/etc
87 ln -svf /proc/mounts %{BUILDROOT}/etc/mtab
88 end
89 end
90
91 # This symlink is allowed to be absolute.
92 quality-agent
93 whitelist_symlink
94 /etc/mtab
95 end
96 end
97
98 packages
99 package %{name}
100 groups += Base
101
102 requires
103 /etc/pam.d/system-auth
104 end
105
106 filter_requires = /proc/.*/mounts
107
108 obsoletes = util-linux-ng
109
110 conflicts
111 setup<3.0-2
112 util-linux-ng
113 end
114 end
115
116 # Package information for libblkid
117 package libblkid
118 summary = Block device ID library.
119 description
120 This is the block device identification library,
121 part of util-linux.
122 end
123
124 files
125 /lib/libblkid.*
126 end
127 end
128
129 # Package information for libblkid-devel
130 package libblkid-devel
131 summary = Development library and header of libblkid.
132 description = %{summary}
133
134 files
135 /usr/include/blkid/
136 /usr/lib/libblkid.*
137 /usr/lib/pkgconfig/blkid.pc
138 /usr/share/man/man3/*blkid*
139 end
140 end
141
142 # Package information for libuuid
143 package libuuid
144 summary = Universally unique ID library.
145 description
146 This is the universally unique ID library,
147 part of util-linux.
148 end
149
150 files
151 /lib/libuuid.*
152 end
153 end
154
155 # Package information for libuuid-devel
156 package libuuid-devel
157 summary = Development library and header of libuuid.
158 description = %{summary}
159
160 files
161 /usr/include/uuid/
162 /usr/lib/libuuid.*
163 /usr/lib/pkgconfig/uuid.pc
164 /usr/share/man/man3/*uuid*
165 end
166 end
167
168 # Package information for libmount
169 package libmount
170 summary = Device mounting library.
171 description
172 This is the device mounting library,
173 part of util-linux.
174 end
175
176 files
177 /lib/libmount.*
178 end
179 end
180
181 # Package information for libmount-devel
182 package libmount-devel
183 summary = Development library and header of libmount.
184 description = %{summary}
185
186 files
187 /usr/include/mount/
188 /usr/lib/libmount.*
189 /usr/lib/pkgconfig/mount.pc
190 /usr/share/man/man3/*mount*
191 end
192 end
193 end