1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
13 summary = A program used for creating device files in /dev.
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.
22 You should install the MAKEDEV package because the MAKEDEV utility makes
23 it easy to manage the /dev directory device files.
26 sources = %{thisapp}-1.tar.gz
29 make_build_targets += OPTFLAGS="%{CFLAGS}"
30 make_install_targets += devdir=/dev makedevdir=/sbin
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
47 prerequires = shadow-utils
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
60 package %{name}-debuginfo