]> git.ipfire.org Git - people/stevee/ipfire-3.x.git/blob - util-linux/util-linux.nm
Merge remote-tracking branch 'stevee/bind'
[people/stevee/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 = 3
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/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
82
83 # Create /etc/mtab symlink
84 mkdir -pv %{BUILDROOT}/etc
85 ln -svf /proc/mounts %{BUILDROOT}/etc/mtab
86 end
87
88 export PKG_REQUIRES_FILTER = /proc/.*/mounts
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 obsoletes = util-linux-ng
107
108 conflicts
109 setup<3.0-2
110 util-linux-ng
111 end
112 end
113
114 # Package information for libblkid
115 package libblkid
116 summary = Block device ID library.
117 description
118 This is the block device identification library,
119 part of util-linux.
120 end
121
122 files
123 /lib/libblkid.*
124 end
125 end
126
127 # Package information for libblkid-devel
128 package libblikid-devel
129 summary = Development library and header of libblkid.
130 description = %{summary}
131
132 files
133 /usr/include/blkid/
134 /usr/lib/libblkid.*
135 /usr/lib/pkgconfig/blkid.pc
136 /usr/share/man/man3/*blkid*
137 end
138 end
139
140 # Package information for libuuid
141 package libuuid
142 summary = Universally unique ID library.
143 description
144 This is the universally unique ID library,
145 part of util-linux.
146 end
147
148 files
149 /lib/libuuid.*
150 end
151 end
152
153 # Package information for libuuid-devel
154 package libuuid-devel
155 summary = Development library and header of libuuid.
156 description = %{summary}
157
158 files
159 /usr/include/uuid/
160 /usr/lib/libuuid.*
161 /usr/lib/pkgconfig/uuid.pc
162 /usr/share/man/man3/*uuid*
163 end
164 end
165
166 # Package information for libmount
167 package libmount
168 summary = Device mounting library.
169 description
170 This is the device mounting library,
171 part of util-linux.
172 end
173
174 files
175 /lib/libmount.*
176 end
177 end
178
179 # Package information for libmount-devel
180 package libmount-devel
181 summary = Development library and header of libmount.
182 description = %{summary}
183
184 files
185 /usr/include/mount/
186 /usr/lib/libmount.*
187 /usr/lib/pkgconfig/mount.pc
188 /usr/share/man/man3/*mount*
189 end
190 end
191 end