]> git.ipfire.org Git - ipfire-3.x.git/blame - pkgs/core/udev/udev.nm
util-linux-ng: Update package to be built with the new version of the buildsystem.
[ipfire-3.x.git] / pkgs / core / 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
9b3bc800
MT
29PKG_REL = 0
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
0c60d0b6 37PKG_DEPS += acl glib2 gperf kbd libusb-compat pciutils usbutils util-linux-ng
9b3bc800
MT
38
39define PKG_DESCRIPTION
40 The udev package contains an implementation of devfs in userspace using \
41 sysfs and netlink.
42endef
43
b7a617a5 44PKG_TARBALL = $(THISAPP).tar.gz
9b3bc800
MT
45
46CONFIGURE_OPTIONS += \
47 --exec-prefix="" \
48 --sbindir=/sbin \
49 --sysconfdir=/etc \
50 --libexecdir=/lib/udev \
51 --with-rootlibdir=/lib \
05e3bacd 52 --disable-introspection
9b3bc800
MT
53
54define STAGE_INSTALL_CMDS
55 # Install rules
56 -mkdir -pv $(BUILDROOT)/lib/udev/rules.d/
57 install -m644 -v $(DIR_SOURCE)/rules/*.rules $(BUILDROOT)/lib/udev/rules.d/
58
59 # Install pkg-config files correctly
60 mv -v $(BUILDROOT)/lib/pkgconfig $(BUILDROOT)/usr/lib
61
62 rm -vf $(BUILDROOT)/lib/lib{udev,gudev-1.0}.so
63 ln -svf ../../lib/libudev.so.0 $(BUILDROOT)/usr/lib/libudev.so
64 ln -svf ../../lib/libgudev-1.0.so.0 $(BUILDROOT)/usr/lib/libgudev-1.0.so
8ad0a97a
MT
65
66 ln -svf ../../../../lib/udev/udev-acl \
67 $(BUILDROOT)/usr/lib/ConsoleKit/run-seat.d/udev-acl.ck
4ad90dc6
MT
68
69 install -m 755 $(DIR_SOURCE)/console_init $(BUILDROOT)/lib/udev/
9b3bc800 70endef