]> git.ipfire.org Git - people/stevee/ipfire-3.x.git/blame - MAKEDEV/MAKEDEV.nm
MAKEDEV: Drop support for SELinux.
[people/stevee/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
d06a6bb0 8release = 2
cde94f92
MT
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
d06a6bb0 29 make_build_targets += OPTFLAGS="%{CFLAGS}"
cde94f92
MT
30 make_install_targets += devdir=/dev makedevdir=/sbin
31
32 install_cmds
33 rm -f %{BUILDROOT}/dev/MAKEDEV
34 mkdir -pv %{BUILDROOT}/usr/share/man/man5
35 install -m 644 -p %{DIR_SOURCE}/makedev.d.5 \
36 %{BUILDROOT}/usr/share/man/man5
37 mkdir -pv %{BUILDROOT}/lib/udev/devices
38 ln -svf ../../../sbin/MAKEDEV \
39 %{BUILDROOT}/lib/udev/devices/MAKEDEV
40 end
41end
42
43packages
44 package %{name}
45 groups += Base
46
47 prerequires = shadow-utils
48 requires += udev
49
50 script prein
51 # Add the floopy group and the vcsa user.
52 getent group floppy >/dev/null || groupadd -g 19 -r -f floppy
53 getent group vcsa >/dev/null || groupadd -g 69 -r -f vcsa
54 getent passwd vcsa >/dev/null || \
55 useradd -r -g vcsa -d /dev -s /sbin/nologin -u 69 \
56 -c "virtual console memory owner" vcsa 2>/dev/null
57 end
58 end
1f9bc2f0
MT
59
60 package %{name}-debuginfo
61 template DEBUGINFO
62 end
cde94f92 63end