]> git.ipfire.org Git - ipfire-3.x.git/blob - network/network.nm
23f01cf3aee6830c095fde86842835a1e3f88c36
[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 = 1.1
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}
32 end
33 end
34
35 packages
36 package %{name}
37 requires
38 aiccu
39 bash >= 4.0
40 #dhcp >= 4.2.4-1
41 ebtables
42 hostapd
43 initscripts >= 1:2.99-18
44 iproute2
45 iw
46 man
47 miredo-client
48 ppp >= 2.4.5-4
49 radvd
50 rp-pppoe
51 mstpd
52 sqlite
53 systemd-units
54 tunctl
55 #wpa_supplicant >= 1.0-2
56 /usr/bin/ipcalc
57 /usr/bin/logger
58 end
59
60 configfiles
61 /etc/firewall
62 /etc/network
63 end
64
65 # Enable network service, so it starts at the first boot.
66 script postin
67 systemctl daemon-reload >/dev/null 2>&1 || :
68 systemctl --no-reload enable network.service >/dev/null 2>&1 || :
69 end
70
71 script preun
72 systemctl --no-reload disable network.service >/dev/null 2>&1 || :
73 systemctl stop network.service >/dev/null 2>&1 || :
74 end
75
76 script postup
77 systemctl daemon-reload >/dev/null 2>&1 || :
78 end
79 end
80 end