###############################################################################
# #
# IPFire.org - A linux based firewall #
-# Copyright (C) 2007 Michael Tremer & Christian Schmidt #
+# Copyright (C) 2007-2018 IPFire Team <info@ipfire.org> #
# #
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
include Config
-VER = 2.0
+VER = 2.0.2
THISAPP = guardian-$(VER)
DL_FILE = $(THISAPP).tar.gz
TARGET = $(DIR_INFO)/$(THISAPP)
PROG = guardian
-PAK_VER = 10
+PAK_VER = 16
DEPS = "perl-inotify2 perl-Net-IP"
-
###############################################################################
# Top-level Rules
###############################################################################
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
-$(DL_FILE)_MD5 = 15be3b14a70e21502368deca74903f5c
+$(DL_FILE)_MD5 = f83a7ca312cd3cb3ddf79fb33826027d
install : $(TARGET)
-mkdir -pv /var/log/guardian
touch /var/log/guardian/guardian.log
+ #install initscripts
+ $(call INSTALL_INITSCRIPT,guardian)
+
# Create symlinks for runlevel interaction.
ln -svf /etc/rc.d/init.d/guardian /etc/rc.d/rc3.d/S45guardian
ln -svf /etc/rc.d/init.d/guardian /etc/rc.d/rc0.d/K76guardian
install -v -m 644 $(DIR_SRC)/config/guardian/guardian.logrotate \
/etc/logrotate.d/guardian
+ # Install addon-specific language-files.
+ install -v -m 004 $(DIR_SRC)/config/guardian/guardian.*.pl \
+ /var/ipfire/addon-lang/
+
@rm -rf $(DIR_APP)
@$(POSTBUILD)