]> git.ipfire.org Git - ipfire-3.x.git/blob - lfs/udev
Updated htop to 0.8.1.
[ipfire-3.x.git] / lfs / udev
1 ###############################################################################
2 # #
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007 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 Config
26
27 PKG_NAME = udev
28 PKG_VER = 136
29
30 THISAPP = $(PKG_NAME)-$(PKG_VER)
31 DL_FILE = $(THISAPP).tar.bz2
32 DIR_APP = $(DIR_SRC)/$(THISAPP)
33
34 OBJECT = $(DIR_INFO)/$(STAGE_ORDER)_$(STAGE)/$(THISAPP)
35
36 ###############################################################################
37 # Top-level Rules
38 ###############################################################################
39
40 objects = $(DL_FILE)
41
42 install : $(OBJECT)
43
44 download : $(objects)
45
46 $(objects) :
47 @$(LOAD)
48
49 ###############################################################################
50 # Installation Details
51 ###############################################################################
52
53 $(OBJECT) :
54 @$(PREBUILD)
55 @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
56
57 -rm -rf /lib/udev/devices
58 install -dv /lib/{firmware,udev/devices/{pts,shm}}
59 -mknod -m0666 /lib/udev/devices/null c 1 3
60 -mknod -m0600 /lib/udev/devices/kmsg c 1 11
61 ln -sfv /proc/self/fd /lib/udev/devices/fd
62 ln -sfv /proc/self/fd/0 /lib/udev/devices/stdin
63 ln -sfv /proc/self/fd/1 /lib/udev/devices/stdout
64 ln -sfv /proc/self/fd/2 /lib/udev/devices/stderr
65 ln -sfv /proc/kcore /lib/udev/devices/core
66
67 cd $(DIR_APP) && \
68 ./configure \
69 $(CONFIGURE_ARCH) \
70 --prefix=/usr \
71 --exec-prefix="" \
72 --sysconfdir=/etc
73 cd $(DIR_APP) && make $(PARALLELISMFLAGS)
74 cd $(DIR_APP) && make install
75
76 install -m644 -v $(DIR_CONFIG)/$(PKG_NAME)/*.rules /lib/udev/rules.d/
77
78 for i in $(DIR_SOURCE)/initscripts/udev/*; do \
79 install -m 755 -v $$i /lib/udev/$$(basename $$i); \
80 done
81
82 @rm -rf $(DIR_APP)
83 @$(POSTBUILD)