1 ###############################################################################
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
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. #
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. #
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/>. #
19 ###############################################################################
21 ###############################################################################
23 ###############################################################################
25 include $(PKGROOT)/Include
32 PKG_GROUP = System/Base
33 PKG_URL = ftp://ftp.kernel.org/pub/linux/utils/kernel/hotplug/
35 PKG_SUMMARY = A userspace implementation of devfs.
37 PKG_BUILD_DEPS+= glib2-devel gperf kbd libacl-devel libselinux-devel \
38 libsepol-devel libuuid-devel libusb-compat-devel pciutils pkg-config \
41 define PKG_DESCRIPTION
42 The udev package contains an implementation of devfs in userspace using \
46 PKG_TARBALL = $(THISAPP).tar.gz
48 PKG_PACKAGES += libudev libudev-devel
50 CONFIGURE_OPTIONS += \
54 --libexecdir=/lib/udev \
55 --with-rootlibdir=/lib \
57 --disable-introspection
59 define STAGE_INSTALL_CMDS
61 -mkdir -pv $(BUILDROOT)/lib/udev/rules.d/
62 install -m644 -v $(DIR_SOURCE)/rules/*.rules $(BUILDROOT)/lib/udev/rules.d/
64 # Install pkg-config files correctly
65 mv -v $(BUILDROOT)/lib/pkgconfig $(BUILDROOT)/usr/lib
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
71 ln -svf ../../../../lib/udev/udev-acl \
72 $(BUILDROOT)/usr/lib/ConsoleKit/run-seat.d/udev-acl.ck
74 install -m 755 $(DIR_SOURCE)/console_init $(BUILDROOT)/lib/udev/