]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - util-linux/util-linux.nm
Move all packages to root.
[people/ms/ipfire-3.x.git] / util-linux / util-linux.nm
CommitLineData
88b867df 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
88b867df
MT
4###############################################################################
5
802ea3af
MT
6name = util-linux
7version = 2.19
8major_ver = 2.19
9release = 2
10
11groups = System/Base
12#groups-%{name} = Base %{groups}
13url = http://kernel.org/~kzak/util-linux/
14license = GPLv2 and GPLv2+ and BSD with advertising and Public Domain
15summary = A collection of basic system utilities.
16
17description
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
88b867df 21 program.
802ea3af
MT
22end
23
24source_dl = ftp://ftp.kernel.org/pub/linux/utils/util-linux/v%{major_ver}/
25
26build
27 requires
28 audit-devel
29 gettext
30 libcap-devel
31 libselinux-devel
32 libsepol-devel
33 ncurses-devel
34 pam-devel
35 zlib-devel
36 end
37
38 CFLAGS += \
39 -D_LARGEFILE_SOURCE \
40 -D_LARGEFILE64_SOURCE \
41 -D_FILE_OFFSET_BITS=64
42
43 configure_options += \
44 --bindir=/bin \
45 --sbindir=/sbin \
46 --disable-wall \
47 --enable-arch \
48 --enable-kill \
49 --enable-login-utils \
50 --enable-partx \
51 --enable-write \
52 --enable-libmount-mount \
53 --with-selinux \
54 --with-audit \
55 --disable-makeinstall-chown \
56 --disable-static
57
58 prepare_cmds
59 sed -e 's@etc/adjtime@var/lib/hwclock/adjtime@g' \
60 -i $(grep -rl '/etc/adjtime' .)
61 end
62
63 # Build nolodin
64 build_cmds
65 gcc %{CFLAGS} -o nologin %{DIR_SOURCE}/nologin.c
66 end
67
68 install_cmds
69 mkdir -pv %{BUILDROOT}/sbin \
70 %{BUILDROOT}/var/lib/hwclock \
71 %{BUILDROOT}/usr/share/man/man8 \
72 %{BUILDROOT}/var/log
73
74 install -m 755 %{DIR_APP}/nologin %{BUILDROOT}/sbin
75 install -m 644 %{DIR_SOURCE}/nologin.8 %{BUILDROOT}/usr/share/man/man8/
76
77 touch %{BUILDROOT}/var/log/lastlog
78
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
84
85 # Create /etc/mtab symlink
86 mkdir -pv %{BUILDROOT}/etc
87 ln -svf /proc/mounts %{BUILDROOT}/etc/mtab
88 end
89
90 export PKG_REQUIRES_FILTER = /proc/.*/mounts
91end
4eb2b603 92
d2ab169e 93# This symlink is allowed to be absolute.
802ea3af
MT
94quality-agent
95 whitelist_symlink
96 /etc/mtab
97 end
98end
99
100packages
101 package %{name}
102 requires = /etc/pam.d/system-auth
103 end
a4453cda 104
802ea3af
MT
105 # Package information for libblkid
106 package libblkid
107 summary = Block device ID library.
108 description
109 This is the block device identification library,
110 part of util-linux.
111 end
112
113 files
114 /lib/libblkid.*
115 end
116 end
117
118 # Package information for libblkid-devel
119 package libblikid-devel
120 summary = Development library and header of libblkid.
121 description = %{summary}
122
123 files
124 /usr/include/blkid/
125 /usr/lib/libblkid.*
126 /usr/lib/pkgconfig/blkid.pc
127 /usr/share/man/man3/*blkid*
128 end
129 end
130
131 # Package information for libuuid
132 package libuuid
133 summary = Universally unique ID library.
134 description
135 This is the universally unique ID library,
136 part of util-linux.
137 end
138
139 files
140 /lib/libuuid.*
141 end
142 end
143
144 # Package information for libuuid-devel
145 package libuuid-devel
146 summary = Development library and header of libuuid.
147 description = %{summary}
148
149 files
150 /usr/include/uuid/
151 /usr/lib/libuuid.*
152 /usr/lib/pkgconfig/uuid.pc
153 /usr/share/man/man3/*uuid*
154 end
155 end
156
157 # Package information for libmount
158 package libmount
159 summary = Device mounting library.
160 description
161 This is the device mounting library,
162 part of util-linux.
163 end
164
165 files
166 /lib/libmount.*
167 end
168 end
169
170 # Package information for libmount-devel
171 package libmount-devel
172 summary = Development library and header of libmount.
173 description = %{summary}
174
175 files
176 /usr/include/mount/
177 /usr/lib/libmount.*
178 /usr/lib/pkgconfig/mount.pc
179 /usr/share/man/man3/*mount*
180 end
181 end
182end