]>
Commit | Line | Data |
---|---|---|
1 | ############################################################################### | |
2 | # IPFire.org - An Open Source Firewall Solution # | |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
4 | ############################################################################### | |
5 | ||
6 | name = udev | |
7 | version = 172 | |
8 | release = 2 | |
9 | ||
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. | |
14 | ||
15 | description | |
16 | The udev package contains an implementation of devfs in userspace using \ | |
17 | sysfs and netlink. | |
18 | end | |
19 | ||
20 | source_dl = ftp://ftp.kernel.org/pub/linux/utils/kernel/hotplug/ | |
21 | ||
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 | |
36 | ||
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 | |
46 | ||
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/ | |
51 | ||
52 | # Install pkg-config files correctly | |
53 | mv -v %{BUILDROOT}/lib/pkgconfig %{BUILDROOT}/usr/lib | |
54 | ||
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 | |
58 | ||
59 | ln -svf ../../../../lib/udev/udev-acl \ | |
60 | %{BUILDROOT}/usr/lib/ConsoleKit/run-seat.d/udev-acl.ck | |
61 | ||
62 | install -m 755 %{DIR_SOURCE}/console_init %{BUILDROOT}/lib/udev/ | |
63 | ||
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 | |
68 | ||
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 |