]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blobdiff - network/network.nm
network: Update to version 007
[people/amarx/ipfire-3.x.git] / network / network.nm
index 717dbe2fae71e9ede77ea935346943f957162a08..be3c641f88c5e870b24e26e139b4be6822cc01b7 100644 (file)
@@ -5,9 +5,8 @@
 
 name       = network
 epoch      = 1
-version    = 003
+version    = 007
 release    = 1
-arch       = noarch
 
 maintainer = Michael Tremer <michael.tremer@ipfire.org>
 groups     = Base Networking/Tools
@@ -15,9 +14,6 @@ url        = http://www.ipfire.org/
 license    = GPLv3+
 summary    = The IPFire Networking Scripts.
 
-# XXX maybe we can split this package into smaller ones like -wireless,
-# -dialup etc.
-
 description
        The scripts that are contained in this package are the heart of the
        IPFire networking. They control the configuration of the network
@@ -28,49 +24,62 @@ end
 source_dl  = http://source.ipfire.org/releases/network/
 
 build
-       build = # Do nothing
+       requires
+               docbook-xsl
+               libxslt
+       end
+
+       install_cmds
+               # Create some dummy configuration files.
+               mkdir -pv %{BUILDROOT}%{sysconfdir}/network
+               touch %{BUILDROOT}%{sysconfdir}/network/{settings,dns-servers,routes}
+       end
 end
 
 packages
        package %{name}
                requires
                        aiccu
-                       bash>=4.0
-                       bridge-utils
-                       dhcp
+                       bash >= 4.0
+                       batctl
+                       curl
+                       dhclient >= 4.2.4-2
+                       dhcp >= 4.2.4-1
                        ebtables
                        hostapd
+                       initscripts >= 1:2.99-18
                        iproute2
-                       ppp
+                       iw
+                       man
+                       ppp >= 2.4.5-4
                        radvd
-                       rstp
+                       rp-pppoe
+                       mstpd
                        sqlite
                        systemd-units
                        tunctl
-                       vlan
-                       wpa_supplicant
-                       /bin/ipcalc
+                       wpa_supplicant >= 1.0-2
                        /usr/bin/logger
                end
 
-               prerequires = systemd-units
+               configfiles
+                       /etc/firewall
+                       /etc/network
+               end
 
                # Enable network service, so it starts at the first boot.
                script postin
-                       /bin/systemctl daemon-reload >/dev/null 2>&1 || :
-                       /bin/systemctl --no-reload enable network.service >/dev/null 2>&1 || :
+                       systemctl daemon-reload >/dev/null 2>&1 || :
+                       systemctl --no-reload enable network.service >/dev/null 2>&1 || :
                end
 
                script preun
-                       /bin/systemctl --no-reload disable network.service >/dev/null 2>&1 || :
-                       /bin/systemctl stop network.service >/dev/null 2>&1 || :
+                       systemctl --no-reload disable network.service >/dev/null 2>&1 || :
+                       systemctl stop network.service >/dev/null 2>&1 || :
                end
 
                script postup
-                       /bin/systemctl daemon-reload >/dev/null 2>&1 || :
-
-                       # Maybe it is not a good idea to restart network.
-                       #/bin/systemctl try-reload-or-restart network.service >/dev/null 2>&1 || :
+                       systemctl daemon-reload >/dev/null 2>&1 || :
                end
        end
 end