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
33 make_build_targets += OPTFLAGS="%{CFLAGS}" SELINUX=1
34 make_install_targets += devdir=/dev makedevdir=/sbin
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
51 prerequires = shadow-utils
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
64 package %{name}-debuginfo