]>
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 MT |
6 | name = udev |
7 | version = 172 | |
8 | release = 2 | |
9b3bc800 | 9 | |
802ea3af MT |
10 | groups = Base System/Base |
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 | |
24 | glib2-devel | |
25 | gperf | |
26 | kbd | |
27 | libacl-devel | |
28 | libselinux-devel | |
29 | libsepol-devel | |
30 | libuuid-devel | |
31 | libusb-compat-devel | |
32 | pciutils | |
33 | pkg-config | |
34 | usbutils | |
35 | end | |
9b3bc800 | 36 | |
802ea3af MT |
37 | configure_options += \ |
38 | --exec-prefix="" \ | |
39 | --sbindir=/sbin \ | |
40 | --sysconfdir=/etc \ | |
41 | --libexecdir=/lib/udev \ | |
42 | --with-rootlibdir=/lib \ | |
43 | --with-selinux \ | |
44 | --disable-introspection \ | |
45 | --with-systemdsystemunitdir=/lib/systemd/system | |
ba55c5c9 | 46 | |
802ea3af MT |
47 | install_cmds |
48 | # Install rules | |
49 | mkdir -pv %{BUILDROOT}/lib/udev/rules.d/ | |
50 | install -m644 -v %{DIR_SOURCE}/rules/*.rules %{BUILDROOT}/lib/udev/rules.d/ | |
9b3bc800 | 51 | |
802ea3af MT |
52 | # Install pkg-config files correctly |
53 | mv -v %{BUILDROOT}/lib/pkgconfig %{BUILDROOT}/usr/lib | |
9b3bc800 | 54 | |
802ea3af MT |
55 | rm -vf %{BUILDROOT}/lib/lib{udev,gudev-1.0}.so |
56 | ln -svf ../../lib/libudev.so.0 %{BUILDROOT}/usr/lib/libudev.so | |
57 | ln -svf ../../lib/libgudev-1.0.so.0 %{BUILDROOT}/usr/lib/libgudev-1.0.so | |
9b3bc800 | 58 | |
802ea3af MT |
59 | ln -svf ../../../../lib/udev/udev-acl \ |
60 | %{BUILDROOT}/usr/lib/ConsoleKit/run-seat.d/udev-acl.ck | |
8ad0a97a | 61 | |
802ea3af | 62 | install -m 755 %{DIR_SOURCE}/console_init %{BUILDROOT}/lib/udev/ |
4ad90dc6 | 63 | |
802ea3af MT |
64 | # Remove network rules. We have our own in the network package. |
65 | rm -v %{BUILDROOT}/lib/udev/{write_net_rules,rules.d/75-persistent-net-generator.rules} | |
66 | end | |
67 | end | |
62416564 | 68 | |
802ea3af MT |
69 | packages |
70 | package %{name} | |
71 | end | |
72 | ||
73 | package lib%{name} | |
74 | template LIBS | |
75 | end | |
76 | ||
77 | package lib%{name}-devel | |
78 | template DEVEL | |
79 | end | |
80 | end |