sysconfdir=/etc
localstatedir=/var
systemdunitdir=$(prefix)/lib/systemd/system
+tmpfilesdir=$(prefix)/lib/tmpfiles.d
# File to store the version number in.
VERSION_FILE = $(DESTDIR)$(libdir)/network/version
-mkdir -pv $(DESTDIR)$(localstatedir)/log/network
-mkdir -pv $(DESTDIR)$(sbindir)
-mkdir -pv $(DESTDIR)$(systemdunitdir)
+ -mkdir -pv $(DESTDIR)$(tmpfilesdir)
install -m 755 -v network $(DESTDIR)$(sbindir)
cp -rfv udev/* $(DESTDIR)$(libdir)/udev
cp -rfv network-* $(DESTDIR)$(libdir)/network/
cp -vf systemd/*.service $(DESTDIR)$(systemdunitdir)
+ cp -vf network.tmpfiles $(DESTDIR)$(tmpfilesdir)/network.conf
# Install bridge-stp.
install -m 755 bridge-stp $(DESTDIR)$(sbindir)/
# #
###############################################################################
-function aiccu_init() {
- log INFO "Initializing aiccu."
- mkdir -p $(aiccu_config_dir)
-}
-
-init_register aiccu_init
-
function aiccu_config_dir() {
local device=${1}
# #
###############################################################################
-function ppp_init() {
- mkdir -p /var/run/ppp 2>/dev/null
-}
-
-init_register ppp_init
-
function ppp_common_ip_pre_up() {
local zone=${1}
shift
iw dev ${device} set channel ${channel} $@
}
-function hostapd_init() {
- mkdir -p $(hostapd_config_dir)
-}
-
-init_register hostapd_init
-
function hostapd_config_dir() {
local device=${1}
--- /dev/null
+# Create the runtime directory for network.
+# This will hold temporary configuration files,
+# PID files and much more.
+d /run/network 0755 root root -
+d /run/network/aiccu 0755 root root -
+d /run/network/hostapd 0755 root root -
+
+# Point-to-point protocol daemon
+d /run/ppp 0755 root root -