1 ###############################################################################
2 # This file is part of the IPCop Firewall. #
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. #
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. #
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 #
18 # Makefiles are based on LFSMake, which is #
19 # Copyright (C) 2002 Rod Roard <rod@sunsetsystems.com> #
22 # ??-12-2003 Mark Wormgoor < mark@wormgoor.com> #
23 # - Modified Makefile for IPCop build #
25 # $Id: makedev,v 1.11.2.3 2005/02/05 15:38:15 gespinasse Exp $
27 ###############################################################################
29 ###############################################################################
31 ###############################################################################
37 THISAPP = make_devices-$(VER)
38 DL_FILE = $(THISAPP).bz2
39 DL_FROM = $(URL_LFS_FTP)
40 TARGET = $(DIR_INFO)/$(THISAPP)
42 ###############################################################################
44 ###############################################################################
48 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
50 $(DL_FILE)_MD5 = 2863fbe7f5953efb5a0d0a840e1e9d21
54 check : $(patsubst %,$(DIR_CHK)/%,$(objects))
56 download :$(patsubst %,$(DIR_DL)/%,$(objects))
58 md5 : $(subst %,%_MD5,$(objects))
60 ###############################################################################
61 # Downloading, checking, md5sum
62 ###############################################################################
64 $(patsubst %,$(DIR_CHK)/%,$(objects)) :
67 $(patsubst %,$(DIR_DL)/%,$(objects)) :
70 $(subst %,%_MD5,$(objects)) :
73 ###############################################################################
74 # Installation Details
75 ###############################################################################
77 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
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
84 cd /dev && rm -f ipsec
85 cd /dev && mknod ipsec c 36 10
89 cd /dev/net && rm -f tun
90 cd /dev/net && mknod tun c 10 200
93 cd /dev && rm -f ttyG0
94 cd /dev && mknod ttyG0 c 43 0
96 cd /dev && mknod cug0 c 44 0
98 # ISDN Symlink + Permissions
99 cd /dev && ln -sf isdnctrl0 isdnctrl
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
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 )); \
115 for i in `seq 0 7`; do \
116 rm -f /dev/usb/ttyACM$$i; \
117 mknod /dev/usb/ttyACM$$i c 166 $$i; \
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