]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - pkgs/udev/udev.nm
Move packages to pkgs subdirectory.
[people/ms/ipfire-3.x.git] / pkgs / udev / udev.nm
CommitLineData
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
25include $(PKGROOT)/Include
26
27PKG_NAME = udev
789a1098 28PKG_VER = 160
7b510c8b 29PKG_REL = 2
9b3bc800
MT
30
31PKG_MAINTAINER =
32PKG_GROUP = System/Base
33PKG_URL = ftp://ftp.kernel.org/pub/linux/utils/kernel/hotplug/
34PKG_LICENSE = GPLv2+
35PKG_SUMMARY = A userspace implementation of devfs.
36
7b510c8b 37PKG_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
41define PKG_DESCRIPTION
42 The udev package contains an implementation of devfs in userspace using \
43 sysfs and netlink.
44endef
45
b7a617a5 46PKG_TARBALL = $(THISAPP).tar.gz
9b3bc800 47
ba55c5c9
MT
48PKG_PACKAGES += libudev libudev-devel
49
9b3bc800
MT
50CONFIGURE_OPTIONS += \
51 --exec-prefix="" \
52 --sbindir=/sbin \
53 --sysconfdir=/etc \
54 --libexecdir=/lib/udev \
55 --with-rootlibdir=/lib \
0878cdd7 56 --with-selinux \
05e3bacd 57 --disable-introspection
9b3bc800
MT
58
59define 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
8ad0a97a
MT
70
71 ln -svf ../../../../lib/udev/udev-acl \
72 $(BUILDROOT)/usr/lib/ConsoleKit/run-seat.d/udev-acl.ck
4ad90dc6
MT
73
74 install -m 755 $(DIR_SOURCE)/console_init $(BUILDROOT)/lib/udev/
9b3bc800 75endef