]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blob - util-linux/util-linux.nm
Merge branch 'master' of ssh://git.ipfire.org/pub/git/ipfire-3.x into docbook
[people/arne_f/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 = 7
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 # Set capabilities
86 chmod -v -s %{BUILDROOT}/bin/mount
87 setcap CAP_DAC_OVERRIDE,CAP_SYS_ADMIN=ep %{BUILDROOT}/bin/mount
88 chmod -v -s %{BUILDROOT}/bin/umount
89 setcap CAP_DAC_OVERRIDE,CAP_SYS_ADMIN=ep %{BUILDROOT}/bin/umount
90 end
91 end
92
93 packages
94 package %{name}
95 groups += Base
96
97 requires
98 /etc/pam.d/system-auth
99 end
100
101 obsoletes = util-linux-ng
102
103 conflicts
104 setup<3.0-2
105 util-linux-ng
106 end
107
108 preprequires += coreutils
109
110 script postin
111 touch /var/log/lastlog
112
113 # mtab symlink
114 rm -f /etc/mtab
115 ln -s /proc/mounts /etc/mtab
116 end
117 end
118
119 # Package information for libblkid
120 package libblkid
121 summary = Block device ID library.
122 description
123 This is the block device identification library,
124 part of util-linux.
125 end
126
127 files
128 /lib/libblkid.*
129 end
130 end
131
132 # Package information for libblkid-devel
133 package libblkid-devel
134 summary = Development library and header of libblkid.
135 description = %{summary}
136
137 files
138 /usr/include/blkid/
139 /usr/lib/libblkid.*
140 /usr/lib/pkgconfig/blkid.pc
141 /usr/share/man/man3/*blkid*
142 end
143 end
144
145 # Package information for libuuid
146 package libuuid
147 summary = Universally unique ID library.
148 description
149 This is the universally unique ID library,
150 part of util-linux.
151 end
152
153 files
154 /lib/libuuid.*
155 end
156 end
157
158 # Package information for libuuid-devel
159 package libuuid-devel
160 summary = Development library and header of libuuid.
161 description = %{summary}
162
163 files
164 /usr/include/uuid/
165 /usr/lib/libuuid.*
166 /usr/lib/pkgconfig/uuid.pc
167 /usr/share/man/man3/*uuid*
168 end
169 end
170
171 # Package information for libmount
172 package libmount
173 summary = Device mounting library.
174 description
175 This is the device mounting library,
176 part of util-linux.
177 end
178
179 files
180 /lib/libmount.*
181 end
182 end
183
184 # Package information for libmount-devel
185 package libmount-devel
186 summary = Development library and header of libmount.
187 description = %{summary}
188
189 files
190 /usr/include/mount/
191 /usr/lib/libmount.*
192 /usr/lib/pkgconfig/mount.pc
193 /usr/share/man/man3/*mount*
194 end
195 end
196 end