]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - pkgs/udev/udev.nm
Remove legacy build system.
[people/ms/ipfire-3.x.git] / pkgs / udev / udev.nm
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
28 PKG_VER = 160
29 PKG_REL = 2
30
31 PKG_MAINTAINER =
32 PKG_GROUP = System/Base
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
37 PKG_BUILD_DEPS+= glib2-devel gperf kbd libacl-devel libselinux-devel \
38 libsepol-devel libuuid-devel libusb-compat-devel pciutils pkg-config \
39 usbutils
40
41 define PKG_DESCRIPTION
42 The udev package contains an implementation of devfs in userspace using \
43 sysfs and netlink.
44 endef
45
46 PKG_TARBALL = $(THISAPP).tar.gz
47
48 PKG_PACKAGES += libudev libudev-devel
49
50 CONFIGURE_OPTIONS += \
51 --exec-prefix="" \
52 --sbindir=/sbin \
53 --sysconfdir=/etc \
54 --libexecdir=/lib/udev \
55 --with-rootlibdir=/lib \
56 --with-selinux \
57 --disable-introspection
58
59 define STAGE_INSTALL_CMDS
60 # Install rules
61 -mkdir -pv $(BUILDROOT)/lib/udev/rules.d/
62 install -m644 -v $(DIR_SOURCE)/rules/*.rules $(BUILDROOT)/lib/udev/rules.d/
63
64 # Install pkg-config files correctly
65 mv -v $(BUILDROOT)/lib/pkgconfig $(BUILDROOT)/usr/lib
66
67 rm -vf $(BUILDROOT)/lib/lib{udev,gudev-1.0}.so
68 ln -svf ../../lib/libudev.so.0 $(BUILDROOT)/usr/lib/libudev.so
69 ln -svf ../../lib/libgudev-1.0.so.0 $(BUILDROOT)/usr/lib/libgudev-1.0.so
70
71 ln -svf ../../../../lib/udev/udev-acl \
72 $(BUILDROOT)/usr/lib/ConsoleKit/run-seat.d/udev-acl.ck
73
74 install -m 755 $(DIR_SOURCE)/console_init $(BUILDROOT)/lib/udev/
75 endef