]>
Commit | Line | Data |
---|---|---|
90d372c4 MT |
1 | ############################################################################### |
2 | # This file is part of the IPCop Firewall. # | |
3 | # # | |
4 | # IPCop is free software; you can redistribute it and/or modify # | |
5 | # it under the terms of the GNU General Public License as published by # | |
6 | # the Free Software Foundation; either version 2 of the License, or # | |
7 | # (at your option) any later version. # | |
8 | # # | |
9 | # IPCop is distributed in the hope that it will be useful, # | |
10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of # | |
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # | |
12 | # GNU General Public License for more details. # | |
13 | # # | |
14 | # You should have received a copy of the GNU General Public License # | |
15 | # along with IPCop; if not, write to the Free Software # | |
16 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # | |
17 | # # | |
18 | # Makefiles are based on LFSMake, which is # | |
19 | # Copyright (C) 2002 Rod Roard <rod@sunsetsystems.com> # | |
20 | # # | |
21 | ############################################################################### | |
22 | ||
23 | ############################################################################### | |
24 | # Definitions | |
25 | ############################################################################### | |
26 | ||
27 | include Config | |
28 | ||
29 | VER = 096 | |
30 | ||
31 | THISAPP = udev-$(VER) | |
32 | DL_FILE = $(THISAPP).tar.bz2 | |
33 | DL_FROM = $(URL_IPFIRE) | |
34 | DIR_APP = $(DIR_SRC)/$(THISAPP) | |
35 | TARGET = $(DIR_INFO)/$(THISAPP) | |
36 | ||
37 | ############################################################################### | |
38 | # Top-level Rules | |
39 | ############################################################################### | |
40 | ||
41 | objects = $(DL_FILE) udev-config-6.2.tar.bz2 | |
42 | ||
43 | $(DL_FILE) = $(DL_FROM)/$(DL_FILE) | |
44 | udev-config-6.2.tar.bz2 = $(DL_FROM)/udev-config-6.2.tar.bz2 | |
45 | ||
46 | $(DL_FILE)_MD5 = f4effef7807ce1dc91ab581686ef197b | |
47 | udev-config-6.2.tar.bz2_MD5 = 9ff2667ab0f7bfe8182966ef690078a0 | |
48 | ||
49 | install : $(TARGET) | |
50 | ||
51 | check : $(patsubst %,$(DIR_CHK)/%,$(objects)) | |
52 | ||
53 | download :$(patsubst %,$(DIR_DL)/%,$(objects)) | |
54 | ||
55 | md5 : $(subst %,%_MD5,$(objects)) | |
56 | ||
57 | ############################################################################### | |
58 | # Downloading, checking, md5sum | |
59 | ############################################################################### | |
60 | ||
61 | $(patsubst %,$(DIR_CHK)/%,$(objects)) : | |
62 | @$(CHECK) | |
63 | ||
64 | $(patsubst %,$(DIR_DL)/%,$(objects)) : | |
65 | @$(LOAD) | |
66 | ||
67 | $(subst %,%_MD5,$(objects)) : | |
68 | @$(MD5) | |
69 | ||
70 | ############################################################################### | |
71 | # Installation Details | |
72 | ############################################################################### | |
73 | ||
74 | $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) | |
75 | @$(PREBUILD) | |
76 | @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE) | |
77 | cd $(DIR_APP) && tar jxf $(DIR_DL)/udev-config-6.2.tar.bz2 | |
78 | install -dv /lib/{firmware,udev/devices/{pts,shm}} | |
79 | mknod -m0666 /lib/udev/devices/null c 1 3 | |
80 | ln -sv /proc/self/fd /lib/udev/devices/fd | |
81 | ln -sv /proc/self/fd/0 /lib/udev/devices/stdin | |
82 | ln -sv /proc/self/fd/1 /lib/udev/devices/stdout | |
83 | ln -sv /proc/self/fd/2 /lib/udev/devices/stderr | |
84 | ln -sv /proc/kcore /lib/udev/devices/core | |
85 | cd $(DIR_APP) && make $(MAKETUNING) EXTRAS="extras/ata_id extras/cdrom_id extras/edd_id \ | |
86 | extras/firmware extras/floppy extras/path_id \ | |
87 | extras/scsi_id extras/usb_id extras/volume_id" | |
88 | cd $(DIR_APP) && make DESTDIR=/ EXTRAS="extras/ata_id extras/cdrom_id extras/edd_id \ | |
89 | extras/firmware extras/floppy extras/path_id \ | |
90 | extras/scsi_id extras/usb_id extras/volume_id" install | |
91 | cd $(DIR_APP) && cp -v udev-config-6.2/[0-9]* /etc/udev/rules.d/ | |
92 | cd $(DIR_APP) && install -m644 -D -v docs/writing_udev_rules/index.html \ | |
93 | /usr/share/doc/udev-096/index.html | |
94 | @rm -rf $(DIR_APP) | |
95 | @$(POSTBUILD) |