References #153.
+++ /dev/null
-description "Starts the free RADIUS server"
-author "IPFire Team"
-
-start on started network
-stop on kill-all-network-services or stopping network
-
-exec /usr/sbin/radiusd -f
-respawn
-
-post-stop script
- rm -vf /var/run/radiusd/radiusd.sock
-end script
PKG_BUILD_DEPS+= gdbm-devel libpcap-devel libtool libtool-devel openssl-devel \
perl
+# Freeradius requires make to generate it's certificates
+PKG_DEPS += make
+
define PKG_DESCRIPTION
The FreeRADIUS Server Project is a high performance and highly \
configurable GPL'd free RADIUS server. \
-mkdir -pv $(BUILDROOT)/etc/logrotate.d/
cp -vf $(DIR_SOURCE)/logrotate/freeradius $(BUILDROOT)/etc/logrotate.d/
endef
+
+# Generate certificates after installation
+# Command: cd /etc/raddb/certs/ && make Makefile
--- /dev/null
+d /var/run/radiusd 0750 root root -
+
--- /dev/null
+[Unit]
+Description=Freeradius Server
+After=network.target
+
+[Service]
+ExecStart=/usr/sbin/radiusd -f -d /etc/radvd/freeradius.conf
+ExecReload=/bin/kill -HUP $MAINPID
+ExecPostStop=/bin/rm -vf /var/run/radiusd/radiusd.sock
+
+[Install]
+WantedBy=multi-user.target
+