]>
Commit | Line | Data |
---|---|---|
642c6f37 MT |
1 | ############################################################################### |
2 | # # | |
3 | # IPFire.org - A linux based firewall # | |
b6860f43 | 4 | # Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt # |
642c6f37 MT |
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 | ||
b6860f43 MT |
21 | ############################################################################### |
22 | # Definitions | |
23 | ############################################################################### | |
24 | ||
25 | include $(PKGROOT)/Include | |
26 | ||
27 | PKG_NAME = network | |
28 | PKG_VER = | |
29 | PKG_REL = 0 | |
30 | ||
31 | PKG_MAINTAINER = Michael Tremer <michael.tremer@ipfire.org> | |
32 | PKG_GROUP = Networking/Tools | |
33 | PKG_URL = http://www.ipfire.org/ | |
34 | PKG_LICENSE = GPLv3+ | |
35 | PKG_SUMMARY = The IPFire Networking Scripts. | |
36 | ||
d1a9be93 | 37 | PKG_DEPS += bash brctl coreutils dhcp grep iproute2 ppp sqlite vlan |
b6860f43 MT |
38 | |
39 | define PKG_DESCRIPTION | |
40 | This script installs the IPFire Networking Scripts. | |
41 | endef | |
42 | ||
43 | DIR_APP = $(DIR_SOURCE)/src | |
44 | ||
45 | PKG_TARBALL = | |
46 | ||
47 | STAGE_PREPARE = # Do nothing | |
48 | STAGE_BUILD = # Do nothing | |
642c6f37 | 49 | |
b6860f43 | 50 | define STAGE_INSTALL |
04796f5e | 51 | -mkdir -pv $(BUILDROOT)/etc/{network,ppp} |
b6860f43 MT |
52 | -mkdir -pv $(BUILDROOT)/lib/network |
53 | -mkdir -pv $(BUILDROOT)/sbin | |
54 | -mkdir -pv $(BUILDROOT)/var/log/network | |
642c6f37 | 55 | |
b6860f43 | 56 | install -m 755 -v $(DIR_APP)/network $(BUILDROOT)/sbin |
642c6f37 | 57 | |
0f554771 | 58 | cp -rfv $(DIR_APP)/{hooks,header*,functions*} $(BUILDROOT)/lib/network/ |
642c6f37 | 59 | |
b6860f43 | 60 | install -m 755 -v $(DIR_APP)/ppp/ip-updown $(BUILDROOT)/etc/ppp |
0f554771 | 61 | ln -svf ip-updown $(BUILDROOT)/etc/ppp/ip-pre-up |
b6860f43 MT |
62 | ln -svf ip-updown $(BUILDROOT)/etc/ppp/ip-up |
63 | ln -svf ip-updown $(BUILDROOT)/etc/ppp/ip-down | |
64 | endef |