]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blob - MAKEDEV/MAKEDEV.nm
pyliblzma: Drop package
[people/amarx/ipfire-3.x.git] / MAKEDEV / MAKEDEV.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = MAKEDEV
7 version = 3.24
8 release = 1
9
10 groups = System/Base
11 url =
12 license = GPLv2
13 summary = A program used for creating device files in /dev.
14
15 description
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.
24 end
25
26 sources = %{thisapp}-1.tar.gz
27
28 build
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
45 end
46
47 packages
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
63
64 package %{name}-debuginfo
65 template DEBUGINFO
66 end
67 end