]>
Commit | Line | Data |
---|---|---|
642c6f37 | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
642c6f37 MT |
4 | ############################################################################### |
5 | ||
802ea3af MT |
6 | name = network |
7 | epoch = 1 | |
e8744052 | 8 | version = 005 |
a04cd360 | 9 | release = 2 |
802ea3af | 10 | arch = noarch |
b6860f43 | 11 | |
802ea3af MT |
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. | |
b6860f43 | 17 | |
802ea3af | 18 | description |
66ee7725 MT |
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. | |
802ea3af MT |
23 | end |
24 | ||
0b7fb4e2 | 25 | source_dl = http://source.ipfire.org/releases/network/ |
802ea3af MT |
26 | |
27 | build | |
e0ec214f MT |
28 | install_cmds |
29 | # Create some dummy configuration files. | |
30 | mkdir -pv %{BUILDROOT}%{sysconfdir}/{firewall,network} | |
a04cd360 | 31 | touch %{BUILDROOT}%{sysconfdir}/network/{config,dns-servers,routes} |
e0ec214f | 32 | end |
802ea3af MT |
33 | end |
34 | ||
35 | packages | |
36 | package %{name} | |
37 | requires | |
38 | aiccu | |
e0ec214f | 39 | bash >= 4.0 |
954a213a | 40 | dhclient >= 4.2.4-2 |
e40e9212 | 41 | dhcp >= 4.2.4-1 |
802ea3af MT |
42 | ebtables |
43 | hostapd | |
405f7967 | 44 | initscripts >= 1:2.99-18 |
802ea3af | 45 | iproute2 |
e0ec214f MT |
46 | iw |
47 | man | |
48 | miredo-client | |
49 | ppp >= 2.4.5-4 | |
802ea3af | 50 | radvd |
e0ec214f MT |
51 | rp-pppoe |
52 | mstpd | |
802ea3af MT |
53 | sqlite |
54 | systemd-units | |
55 | tunctl | |
e40e9212 | 56 | wpa_supplicant >= 1.0-2 |
405f7967 | 57 | /usr/bin/ipcalc |
802ea3af MT |
58 | /usr/bin/logger |
59 | end | |
73db16dd | 60 | |
e0ec214f MT |
61 | configfiles |
62 | /etc/firewall | |
63 | /etc/network | |
64 | end | |
73db16dd MT |
65 | |
66 | # Enable network service, so it starts at the first boot. | |
67 | script postin | |
e0ec214f MT |
68 | systemctl daemon-reload >/dev/null 2>&1 || : |
69 | systemctl --no-reload enable network.service >/dev/null 2>&1 || : | |
73db16dd MT |
70 | end |
71 | ||
72 | script preun | |
e0ec214f MT |
73 | systemctl --no-reload disable network.service >/dev/null 2>&1 || : |
74 | systemctl stop network.service >/dev/null 2>&1 || : | |
73db16dd MT |
75 | end |
76 | ||
77 | script postup | |
e0ec214f | 78 | systemctl daemon-reload >/dev/null 2>&1 || : |
73db16dd | 79 | end |
802ea3af MT |
80 | end |
81 | end |