]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blame - pkgs/core/network/network.nm
network: New package.
[people/amarx/ipfire-3.x.git] / pkgs / core / network / network.nm
CommitLineData
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
25include $(PKGROOT)/Include
26
27PKG_NAME = network
28PKG_VER =
29PKG_REL = 0
30
31PKG_MAINTAINER = Michael Tremer <michael.tremer@ipfire.org>
32PKG_GROUP = Networking/Tools
33PKG_URL = http://www.ipfire.org/
34PKG_LICENSE = GPLv3+
35PKG_SUMMARY = The IPFire Networking Scripts.
36
37PKG_DEPS += dhcp iproute2 ppp sqlite vlan
38
39define PKG_DESCRIPTION
40 This script installs the IPFire Networking Scripts.
41endef
42
43DIR_APP = $(DIR_SOURCE)/src
44
45PKG_TARBALL =
46
47STAGE_PREPARE = # Do nothing
48STAGE_BUILD = # Do nothing
642c6f37 49
b6860f43
MT
50define 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
642c6f37 55
b6860f43 56 install -m 755 -v $(DIR_APP)/network $(BUILDROOT)/sbin
642c6f37 57
b6860f43 58 cp -rfv $(DIR_APP)/{hooks,hook-header,functions*,zone} $(BUILDROOT)/lib/network/
642c6f37 59
b6860f43
MT
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
63endef