]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - MAKEDEV/MAKEDEV.nm
Add a -debuginfo for every package that is not noarch.
[people/ms/ipfire-3.x.git] / MAKEDEV / MAKEDEV.nm
CommitLineData
cde94f92
MT
1###############################################################################
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
4###############################################################################
5
6name = MAKEDEV
7version = 3.24
8release = 1
9
10groups = System/Base
1f9bc2f0 11url =
cde94f92
MT
12license = GPLv2
13summary = A program used for creating device files in /dev.
14
15description
16 This package contains the MAKEDEV program, which makes it easier to create
17 and maintain the files in the /dev directory. /dev directory files
18 correspond to a particular device supported by Linux (serial or printer
19 ports, scanners, sound cards, tape drives, CD-ROM drives, hard drives,
20 etc.) and interface with the drivers in the kernel.
21
22 You should install the MAKEDEV package because the MAKEDEV utility makes
23 it easy to manage the /dev directory device files.
24end
25
26sources = %{thisapp}-1.tar.gz
27
28build
29 requires
30 libselinux-devel
31 end
32
33 make_build_targets += OPTFLAGS="%{CFLAGS}" SELINUX=1
34 make_install_targets += devdir=/dev makedevdir=/sbin
35
36 install_cmds
37 rm -f %{BUILDROOT}/dev/MAKEDEV
38 mkdir -pv %{BUILDROOT}/usr/share/man/man5
39 install -m 644 -p %{DIR_SOURCE}/makedev.d.5 \
40 %{BUILDROOT}/usr/share/man/man5
41 mkdir -pv %{BUILDROOT}/lib/udev/devices
42 ln -svf ../../../sbin/MAKEDEV \
43 %{BUILDROOT}/lib/udev/devices/MAKEDEV
44 end
45end
46
47packages
48 package %{name}
49 groups += Base
50
51 prerequires = shadow-utils
52 requires += udev
53
54 script prein
55 # Add the floopy group and the vcsa user.
56 getent group floppy >/dev/null || groupadd -g 19 -r -f floppy
57 getent group vcsa >/dev/null || groupadd -g 69 -r -f vcsa
58 getent passwd vcsa >/dev/null || \
59 useradd -r -g vcsa -d /dev -s /sbin/nologin -u 69 \
60 -c "virtual console memory owner" vcsa 2>/dev/null
61 end
62 end
1f9bc2f0
MT
63
64 package %{name}-debuginfo
65 template DEBUGINFO
66 end
cde94f92 67end