]>
Commit | Line | Data |
---|---|---|
cd1a2927 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 | # Modifications by: # | |
22 | # ??-12-2003 Mark Wormgoor < mark@wormgoor.com> # | |
23 | # - Modified Makefile for IPCop build # | |
24 | # # | |
25 | # $Id: makedev,v 1.11.2.3 2005/02/05 15:38:15 gespinasse Exp $ | |
26 | # # | |
27 | ############################################################################### | |
28 | ||
29 | ############################################################################### | |
30 | # Definitions | |
31 | ############################################################################### | |
32 | ||
33 | include Config | |
34 | ||
35 | VER = 1.2 | |
36 | ||
37 | THISAPP = make_devices-$(VER) | |
38 | DL_FILE = $(THISAPP).bz2 | |
39 | DL_FROM = $(URL_LFS_FTP) | |
40 | TARGET = $(DIR_INFO)/$(THISAPP) | |
41 | ||
42 | ############################################################################### | |
43 | # Top-level Rules | |
44 | ############################################################################### | |
45 | ||
46 | objects = $(DL_FILE) | |
47 | ||
48 | $(DL_FILE) = $(DL_FROM)/$(DL_FILE) | |
49 | ||
50 | $(DL_FILE)_MD5 = 2863fbe7f5953efb5a0d0a840e1e9d21 | |
51 | ||
52 | install : $(TARGET) | |
53 | ||
54 | check : $(patsubst %,$(DIR_CHK)/%,$(objects)) | |
55 | ||
56 | download :$(patsubst %,$(DIR_DL)/%,$(objects)) | |
57 | ||
58 | md5 : $(subst %,%_MD5,$(objects)) | |
59 | ||
60 | ############################################################################### | |
61 | # Downloading, checking, md5sum | |
62 | ############################################################################### | |
63 | ||
64 | $(patsubst %,$(DIR_CHK)/%,$(objects)) : | |
65 | @$(CHECK) | |
66 | ||
67 | $(patsubst %,$(DIR_DL)/%,$(objects)) : | |
68 | @$(LOAD) | |
69 | ||
70 | $(subst %,%_MD5,$(objects)) : | |
71 | @$(MD5) | |
72 | ||
73 | ############################################################################### | |
74 | # Installation Details | |
75 | ############################################################################### | |
76 | ||
77 | $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) | |
78 | @$(PREBUILD) | |
79 | cd /dev && bzcat $(DIR_DL)/$(DL_FILE) > make_devices | |
80 | cd /dev && chmod 754 make_devices | |
81 | cd /dev && patch -Np0 < $(DIR_SRC)/src/patches/make_devices.patch | |
82 | cd /dev && ./make_devices | |
83 | # ipsec | |
84 | cd /dev && rm -f ipsec | |
85 | cd /dev && mknod ipsec c 36 10 | |
86 | chmod 200 /dev/ipsec | |
87 | ||
88 | # tap/tun | |
89 | cd /dev/net && rm -f tun | |
90 | cd /dev/net && mknod tun c 10 200 | |
91 | ||
92 | # PULSARDSL Devices | |
93 | cd /dev && rm -f ttyG0 | |
94 | cd /dev && mknod ttyG0 c 43 0 | |
95 | cd /dev && rm -f cug0 | |
96 | cd /dev && mknod cug0 c 44 0 | |
97 | ||
98 | # ISDN Symlink + Permissions | |
99 | cd /dev && ln -sf isdnctrl0 isdnctrl | |
100 | ||
101 | # isdninfo | |
102 | cd /dev && rm -f isdninfo | |
103 | cd /dev && mknod isdninfo c 45 255 | |
104 | chown root:nobody /dev/isdninfo | |
105 | chmod 640 /dev/isdninfo | |
106 | ||
107 | # USB HID Dev | |
108 | -mkdir /dev/usb | |
109 | for i in `seq 0 7`; do \ | |
110 | rm -f /dev/usb/hiddev$$i; \ | |
111 | mknod /dev/usb/hiddev$$i c 180 $$(( 96 + $$i )); \ | |
112 | done | |
113 | ||
114 | # USB ACM Modems | |
115 | for i in `seq 0 7`; do \ | |
116 | rm -f /dev/usb/ttyACM$$i; \ | |
117 | mknod /dev/usb/ttyACM$$i c 166 $$i; \ | |
118 | done | |
119 | ||
120 | # Add a symlink to the default floppy dev. updfstab will change it to USB if | |
121 | # necessary, but it must be present if it appears in /etc/mtab | |
122 | cd /dev && ln -sf fd0 floppy | |
123 | ||
f8ae001e | 124 | # Nodes for Framebuffer |
6693216e MT |
125 | for i in `seq 0 7` 12; do \ |
126 | rm -f /dev/fb$$; \ | |
127 | mknod /dev/fb$$i c 29 $$(($$i * 32)); \ | |
f8ae001e MT |
128 | done |
129 | ||
cd1a2927 | 130 | @$(POSTBUILD) |