]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blob - udev/udev.nm
f7375ab7015d64abc1d1feef478e0037d478b3e8
[people/amarx/ipfire-3.x.git] / udev / udev.nm
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 = 4
9
10 groups = 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 pkg-config files correctly
49 mv -v %{BUILDROOT}/lib/pkgconfig %{BUILDROOT}/usr/lib
50
51 rm -vf %{BUILDROOT}/lib/lib{udev,gudev-1.0}.so
52 ln -svf ../../lib/libudev.so.0 %{BUILDROOT}/usr/lib/libudev.so
53 ln -svf ../../lib/libgudev-1.0.so.0 %{BUILDROOT}/usr/lib/libgudev-1.0.so
54
55 ln -svf ../../../../lib/udev/udev-acl \
56 %{BUILDROOT}/usr/lib/ConsoleKit/run-seat.d/udev-acl.ck
57
58 # Remove network rules. We have our own in the network package.
59 rm -v %{BUILDROOT}/lib/udev/{write_net_rules,rules.d/75-persistent-net-generator.rules}
60 end
61 end
62
63 packages
64 package %{name}
65 groups += Base
66 end
67
68 package lib%{name}
69 template LIBS
70 end
71
72 package lib%{name}-devel
73 template DEVEL
74 end
75 end