#!/bin/bash
-#
-#################################################################
-# #
-# This file belongs to IPFire Firewall - GPLv2 - www.ipfire.org #
-# #
-#################################################################
-#
-# Extract the files
-tar xfz files.tgz -C /
-cp -f ROOTFILES /opt/pakfire/installed/ROOTFILES.$2
+. /opt/pakfire/lib/functions.sh
+
+extract_files
+
+chown clamav:clamav /usr/share/clamav
+
+/usr/local/bin/clamavctrl enable