]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blob - udev/udev.nm
Merge branch 'master' of ssh://git.ipfire.org/pub/git/ipfire-3.x
[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 = 5
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 rm -vf %{BUILDROOT}/%{lib}/lib{udev,gudev-1.0}.so
49 ln -svf ../../%{lib}/libudev.so.0 %{BUILDROOT}%{libdir}/libudev.so
50 ln -svf ../../%{lib}/libgudev-1.0.so.0 %{BUILDROOT}%{libdir}/libgudev-1.0.so
51
52 # We do not use ConsoleKit
53 rm -rf %{BUILDROOT}/usr/lib*/ConsoleKit
54
55 # Remove network rules. We have our own in the network package.
56 rm -v %{BUILDROOT}/%{lib}/udev/{write_net_rules,rules.d/75-persistent-net-generator.rules}
57 end
58 end
59
60 packages
61 package %{name}
62 groups += Base
63 end
64
65 package lib%{name}
66 template LIBS
67 end
68
69 package lib%{name}-devel
70 template DEVEL
71 end
72
73 package %{name}-debuginfo
74 template DEBUGINFO
75 end
76 end