/alcasar.sh |
---|
1379,7 → 1379,6 |
$SED "s?^# SERVERNUMBER.*?SERVERNUMBER 10?g" /etc/havp/havp.config # 10 daemons are started simultaneously |
$SED "s?^# SCANIMAGES.*?SCANIMAGES false?g" /etc/havp/havp.config # doesn't scan image files |
$SED "s?^# SKIPMIME.*?SKIPMIME image\/\* video\/\* audio\/\*?g" /etc/havp/havp.config # doesn't scan some multimedia files |
$SED "s?^# SCANTEMPFILE.*?SCANTEMPFILE /var/tmp/havp/havp-XXXXXX?g" /etc/havp/havp.config # Use our special tmp FS (memfs) |
# skip checking of youtube flow (too heavy load / risk too low) |
[ -e /etc/havp/whitelist.default ] || cp /etc/havp/whitelist /etc/havp/whitelist.default |
echo "# Whitelist youtube flow" >> /etc/havp/whitelist |
1387,8 → 1386,10 |
# adapt init script and systemd unit |
[ -e /etc/init.d/havp.default ] || cp /etc/init.d/havp /etc/init.d/havp.default |
cp -f $DIR_CONF/havp-init /etc/init.d/havp |
cp -f $DIR_CONF/havp.service /lib/systemd/system/ |
# replace of the intercept page (template) |
[ -e /lib/systemd/system/havp.service.default ] || cp /lib/systemd/system/havp.service /lib/systemd/system/havp.service.default |
$SED "/^PIDFile/i ExecStartPre=/bin/mkdir -p /var/run/havp" /lib/systemd/system/havp.service |
$SED "/^PIDFile/i ExecStartPre=/bin/chown -R havp:havp /var/run/havp /var/log/havp" /lib/systemd/system/havp.service |
# replace of the intercept page (template) |
cp -f $DIR_CONF/virus-fr.html /etc/havp/templates/fr/virus.html |
cp -f $DIR_CONF/virus-en.html /etc/havp/templates/en/virus.html |
# update virus database every 4 hours (24h/6) |
/rpms/havp-0.93-1.0.spec |
---|
File deleted |
/rpms/ipt-netflow-master-11-2019.tar.gz |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/rpms/x86_64/havp-0.93-1.mga7.x86_64.rpm |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
Property changes: |
Deleted: svn:mime-type |
-application/octet-stream |
\ No newline at end of property |
/rpms/x86_64/lib64gammu8-1.41.0-1.mga7.x86_64.rpm |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
Property changes: |
Deleted: svn:mime-type |
-application/octet-stream |
\ No newline at end of property |
/rpms/x86_64/gammu-1.41.0-1.mga7.x86_64.rpm |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
Property changes: |
Deleted: svn:mime-type |
-application/octet-stream |
\ No newline at end of property |
/rpms/x86_64/havp-0.92a-1.mga5.x86_64.rpm |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/rpms/coova-chilli-1.4.tar.gz |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/rpms/havp-init.diff |
---|
8,7 → 8,7 |
+# description: starts HAVP the High Availability Antivirus Proxy |
+# |
-HAVP_BIN=/usr/local/sbin/havp |
-HAVP_BIN=/usr/local/bin/havp |
-HAVP_CONFIG=/usr/local/etc/havp/havp.config |
+HAVP_BIN=/usr/sbin/havp |
+HAVP_CONFIG=/etc/havp/havp.config |
/conf/havp.service |
---|
File deleted |
/scripts/alcasar-uninstall.sh |
---|
124,7 → 124,7 |
[ -e /etc/havp/havp.config.default ] && mv /etc/havp/havp.config.default /etc/havp/havp.config && echo -n "1, " |
userdel -r havp 2>/dev/null && echo -n "2, " |
[ -e /etc/init.d/havp.default ] && mv /etc/init.d/havp.default /etc/init.d/havp && echo -n "3, " |
[ -e /lib/systemd/system/havp.service ] && rm /lib/systemd/system/havp.service && echo -n "4, " |
[ -e /lib/systemd/system/havp.service.default ] && mv /lib/systemd/system/havp.service.default /lib/systemd/system/havp.service && echo -n "4, " |
[ -e /etc/freshclam.conf.default ] && mv /etc/freshclam.conf.default /etc/freshclam.conf && echo -n "5" |
else echo -n "already uninstalled" |
fi |
/scripts/alcasar-urpmi.sh |
---|
223,16 → 223,13 |
# Save chilli launch script (erase with new rpm one) |
[ -e /etc/chilli.conf ] && cp /etc/chilli.conf /tmp/ |
# Install home made RPMs |
for pkg in `ls rpms/$ARCH/*.rpm` |
do |
urpmi --no-verify --auto $pkg |
done |
urpmi --no-verify --auto rpms/$ARCH/*.rpm |
# restore chilli launch script |
[ -e /tmp/chilli.conf ] && mv /tmp/chilli.conf /etc/ |
# Clean the RPM cache |
urpmi --clean |
# the ipt-netflow RPM add the kernel module ipt_NETFLOW (the modules dependance tree need to be updated). "2>/dev/null" in order not to display a error (the running kernel is not the ALCASAR one during the installation process) |
/sbin/depmod -a 2>/dev/null |
# the ipt-netflow RPM add the kernel module ipt_NETFLOW (the modules dependance tree need to be updated) |
/sbin/depmod -a |
# test if all needed rpms are correctly installed |
count_pkg=0; nb_pkg=0; |
for pkg in $PACKAGES |
249,18 → 246,19 |
exit 1 |
fi |
# test if all custom rpms are correctly installed |
count_pkg=0; nb_pkg=0; |
for pkg in `ls rpms/$ARCH/|sed 's/.x86_64.rpm//'` |
do |
nb_pkg=`expr $nb_pkg + 1` |
if rpm -q --quiet $pkg ; then |
count_pkg=`expr $count_pkg + 1` |
else |
echo "error installing $pkg" |
fi |
done |
if [ $count_pkg -ne $nb_pkg ] |
then |
exit 1 |
fi |
#count_pkg=0; nb_pkg=0; |
#for pkg in `ls rpms/$ARCH/|tr -d .rpm` |
#do |
# nb_pkg=`expr $nb_pkg + 1` |
# if rpm -q --quiet $pkg ; then |
# count_pkg=`expr $count_pkg + 1` |
# else |
# echo "error installing $pkg" |
# fi |
#done |
#if [ $count_pkg -ne $nb_pkg ] |
#then |
# exit 1 |
#fi |
exit 0 |