]> git.ipfire.org Git - ipfire-3.x.git/blob - network/network.nm
network: Add missing file for routes.
[ipfire-3.x.git] / network / network.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = network
7 epoch = 1
8 version = 005
9 release = 2
10 arch = noarch
11
12 maintainer = Michael Tremer <michael.tremer@ipfire.org>
13 groups = Base Networking/Tools
14 url = http://www.ipfire.org/
15 license = GPLv3+
16 summary = The IPFire Networking Scripts.
17
18 description
19 The scripts that are contained in this package are the heart of the
20 IPFire networking. They control the configuration of the network
21 zones, physical and virtual devices, handle hotplug events and
22 everything.
23 end
24
25 source_dl = http://source.ipfire.org/releases/network/
26
27 build
28 install_cmds
29 # Create some dummy configuration files.
30 mkdir -pv %{BUILDROOT}%{sysconfdir}/{firewall,network}
31 touch %{BUILDROOT}%{sysconfdir}/network/{config,dns-servers,routes}
32 end
33 end
34
35 packages
36 package %{name}
37 requires
38 aiccu
39 bash >= 4.0
40 dhclient >= 4.2.4-2
41 dhcp >= 4.2.4-1
42 ebtables
43 hostapd
44 initscripts >= 1:2.99-18
45 iproute2
46 iw
47 man
48 miredo-client
49 ppp >= 2.4.5-4
50 radvd
51 rp-pppoe
52 mstpd
53 sqlite
54 systemd-units
55 tunctl
56 wpa_supplicant >= 1.0-2
57 /usr/bin/ipcalc
58 /usr/bin/logger
59 end
60
61 configfiles
62 /etc/firewall
63 /etc/network
64 end
65
66 # Enable network service, so it starts at the first boot.
67 script postin
68 systemctl daemon-reload >/dev/null 2>&1 || :
69 systemctl --no-reload enable network.service >/dev/null 2>&1 || :
70 end
71
72 script preun
73 systemctl --no-reload disable network.service >/dev/null 2>&1 || :
74 systemctl stop network.service >/dev/null 2>&1 || :
75 end
76
77 script postup
78 systemctl daemon-reload >/dev/null 2>&1 || :
79 end
80 end
81 end