]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blob - pkgs/core/network/network.nm
network: New package.
[people/amarx/ipfire-3.x.git] / pkgs / core / network / network.nm
1 ###############################################################################
2 # #
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007, 2008 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 $(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
37 PKG_DEPS += dhcp iproute2 ppp sqlite vlan
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
49
50 define STAGE_INSTALL
51 -mkdir -pv $(BUILDROOT)/etc/ppp
52 -mkdir -pv $(BUILDROOT)/lib/network
53 -mkdir -pv $(BUILDROOT)/sbin
54 -mkdir -pv $(BUILDROOT)/var/log/network
55
56 install -m 755 -v $(DIR_APP)/network $(BUILDROOT)/sbin
57
58 cp -rfv $(DIR_APP)/{hooks,hook-header,functions*,zone} $(BUILDROOT)/lib/network/
59
60 install -m 755 -v $(DIR_APP)/ppp/ip-updown $(BUILDROOT)/etc/ppp
61 ln -svf ip-updown $(BUILDROOT)/etc/ppp/ip-up
62 ln -svf ip-updown $(BUILDROOT)/etc/ppp/ip-down
63 endef