]>
Commit | Line | Data |
---|---|---|
9b3bc800 | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
9b3bc800 MT |
4 | ############################################################################### |
5 | ||
802ea3af | 6 | name = udev |
2b715a47 | 7 | version = 182 |
71b985af | 8 | release = 3 |
9b3bc800 | 9 | |
a732dc65 | 10 | groups = System/Base |
802ea3af MT |
11 | url = ftp://ftp.kernel.org/pub/linux/utils/kernel/hotplug/ |
12 | license = GPLv2+ | |
13 | summary = A userspace implementation of devfs. | |
9b3bc800 | 14 | |
802ea3af | 15 | description |
9b3bc800 MT |
16 | The udev package contains an implementation of devfs in userspace using \ |
17 | sysfs and netlink. | |
802ea3af MT |
18 | end |
19 | ||
20 | source_dl = ftp://ftp.kernel.org/pub/linux/utils/kernel/hotplug/ | |
9b3bc800 | 21 | |
802ea3af MT |
22 | build |
23 | requires | |
71b985af | 24 | filesystem >= 002 |
802ea3af | 25 | glib2-devel |
c1ec13d2 | 26 | gobject-introspection-devel |
802ea3af MT |
27 | gperf |
28 | kbd | |
547ccc0c | 29 | kmod-devel >= 5 |
802ea3af | 30 | libacl-devel |
c1ec13d2 | 31 | libblkid-devel >= 2.20 |
802ea3af MT |
32 | libselinux-devel |
33 | libsepol-devel | |
34 | libuuid-devel | |
35 | libusb-compat-devel | |
c1ec13d2 | 36 | libxslt |
802ea3af | 37 | pciutils |
71b985af MT |
38 | shadow-utils |
39 | systemd-units | |
802ea3af MT |
40 | usbutils |
41 | end | |
9b3bc800 | 42 | |
802ea3af | 43 | configure_options += \ |
71b985af | 44 | --libexecdir=%{prefix}/lib \ |
802ea3af | 45 | --with-selinux \ |
71b985af | 46 | --with-systemdsystemunitdir=%{unitdir} |
802ea3af | 47 | end |
62416564 | 48 | |
802ea3af MT |
49 | packages |
50 | package %{name} | |
a732dc65 | 51 | groups += Base |
c428a2f0 | 52 | |
71b985af MT |
53 | requires |
54 | hwdata | |
c428a2f0 | 55 | systemd-units |
71b985af MT |
56 | util-linux |
57 | end | |
58 | ||
59 | conflicts | |
60 | filesystem < 002 | |
c428a2f0 MT |
61 | end |
62 | ||
63 | script prein | |
64 | getent group cdrom >/dev/null || groupadd -g 11 cdrom || : | |
65 | getent group tape >/dev/null || groupadd -g 33 tape || : | |
66 | getent group dialout >/dev/null || groupadd -g 18 dialout || : | |
67 | getent group floppy >/dev/null || groupadd -g 19 floppy || : | |
68 | systemctl stop udev.service udev-control.socket udev-kernel.socket >/dev/null 2>&1 || : | |
69 | end | |
70 | ||
71 | script postin | |
72 | systemctl daemon-reload >/dev/null 2>&1 || : | |
73 | systemctl start udev.service >/dev/null 2>&1 || : | |
74 | end | |
75 | ||
76 | script postun | |
77 | systemctl daemon-reload >/dev/null 2>&1 || : | |
78 | end | |
a732dc65 | 79 | end |
58397358 | 80 | |
802ea3af MT |
81 | package lib%{name} |
82 | template LIBS | |
71b985af MT |
83 | |
84 | conflicts | |
85 | filesystem < 002 | |
86 | end | |
802ea3af | 87 | end |
58397358 | 88 | |
802ea3af MT |
89 | package lib%{name}-devel |
90 | template DEVEL | |
91 | end | |
1f9bc2f0 MT |
92 | |
93 | package %{name}-debuginfo | |
94 | template DEBUGINFO | |
95 | end | |
802ea3af | 96 | end |