]>
Commit | Line | Data |
---|---|---|
9b3bc800 MT |
1 | ############################################################################### |
2 | # # | |
3 | # IPFire.org - A linux based firewall # | |
4 | # Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt # | |
5 | # # | |
6 | # This program is free software: you can redistribute it and/or modify # | |
7 | # it under the terms of the GNU General Public License as published by # | |
8 | # the Free Software Foundation, either version 3 of the License, or # | |
9 | # (at your option) any later version. # | |
10 | # # | |
11 | # This program is distributed in the hope that it will be useful, # | |
12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of # | |
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # | |
14 | # GNU General Public License for more details. # | |
15 | # # | |
16 | # You should have received a copy of the GNU General Public License # | |
17 | # along with this program. If not, see <http://www.gnu.org/licenses/>. # | |
18 | # # | |
19 | ############################################################################### | |
20 | ||
21 | ############################################################################### | |
22 | # Definitions | |
23 | ############################################################################### | |
24 | ||
25 | include $(PKGROOT)/Include | |
26 | ||
27 | PKG_NAME = udev | |
afc6dda7 | 28 | PKG_VER = 172 |
62416564 | 29 | PKG_REL = 2 |
9b3bc800 MT |
30 | |
31 | PKG_MAINTAINER = | |
b42a752b | 32 | PKG_GROUPS = Base System/Base |
9b3bc800 MT |
33 | PKG_URL = ftp://ftp.kernel.org/pub/linux/utils/kernel/hotplug/ |
34 | PKG_LICENSE = GPLv2+ | |
35 | PKG_SUMMARY = A userspace implementation of devfs. | |
36 | ||
7b510c8b | 37 | PKG_BUILD_DEPS+= glib2-devel gperf kbd libacl-devel libselinux-devel \ |
4b5e357b MT |
38 | libsepol-devel libuuid-devel libusb-compat-devel pciutils pkg-config \ |
39 | usbutils | |
9b3bc800 MT |
40 | |
41 | define PKG_DESCRIPTION | |
42 | The udev package contains an implementation of devfs in userspace using \ | |
43 | sysfs and netlink. | |
44 | endef | |
45 | ||
b7a617a5 | 46 | PKG_TARBALL = $(THISAPP).tar.gz |
9b3bc800 | 47 | |
ba55c5c9 MT |
48 | PKG_PACKAGES += libudev libudev-devel |
49 | ||
9b3bc800 MT |
50 | CONFIGURE_OPTIONS += \ |
51 | --exec-prefix="" \ | |
52 | --sbindir=/sbin \ | |
53 | --sysconfdir=/etc \ | |
54 | --libexecdir=/lib/udev \ | |
55 | --with-rootlibdir=/lib \ | |
0878cdd7 | 56 | --with-selinux \ |
1f7ba1ce SS |
57 | --disable-introspection \ |
58 | --with-systemdsystemunitdir=/lib/systemd/system | |
9b3bc800 MT |
59 | |
60 | define STAGE_INSTALL_CMDS | |
61 | # Install rules | |
62 | -mkdir -pv $(BUILDROOT)/lib/udev/rules.d/ | |
63 | install -m644 -v $(DIR_SOURCE)/rules/*.rules $(BUILDROOT)/lib/udev/rules.d/ | |
64 | ||
65 | # Install pkg-config files correctly | |
66 | mv -v $(BUILDROOT)/lib/pkgconfig $(BUILDROOT)/usr/lib | |
67 | ||
68 | rm -vf $(BUILDROOT)/lib/lib{udev,gudev-1.0}.so | |
69 | ln -svf ../../lib/libudev.so.0 $(BUILDROOT)/usr/lib/libudev.so | |
70 | ln -svf ../../lib/libgudev-1.0.so.0 $(BUILDROOT)/usr/lib/libgudev-1.0.so | |
8ad0a97a MT |
71 | |
72 | ln -svf ../../../../lib/udev/udev-acl \ | |
73 | $(BUILDROOT)/usr/lib/ConsoleKit/run-seat.d/udev-acl.ck | |
4ad90dc6 MT |
74 | |
75 | install -m 755 $(DIR_SOURCE)/console_init $(BUILDROOT)/lib/udev/ | |
62416564 MT |
76 | |
77 | # Remove network rules. We have our own in the network package. | |
78 | rm -v $(BUILDROOT)/lib/udev/{write_net_rules,rules.d/75-persistent-net-generator.rules} | |
9b3bc800 | 79 | endef |