Skip to content

Commit

Permalink
ZCS-13605:Updated clamav-db for ClamAV-1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
umagmrit committed Jul 27, 2023
1 parent 6f43fd7 commit c503d25
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 6 deletions.
7 changes: 4 additions & 3 deletions thirdparty/clamav-db/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ PKG_ROOT := $(shell pwd)
include $(PKG_ROOT)/../../package.def

pname_lc := clamav-db
pvers := $(CLAMAV_VERSION)
zname := zimbra-$(pname_lc)
zspec := $(pname_lc).spec
bcvd := bytecode.cvd
Expand All @@ -11,9 +12,9 @@ mcvd := main.cvd
bcvd_file := $(SRC_DIR)/$(bcvd)
dcvd_file := $(SRC_DIR)/$(dcvd)
mcvd_file := $(SRC_DIR)/$(mcvd)
burl := http://database.clamav.net/$(bcvd)
durl := http://database.clamav.net/$(dcvd)
murl := http://database.clamav.net/$(mcvd)
burl := https://files.zimbra.com/downloads/clamav-database/$(pvers)/$(bcvd)
durl := https://files.zimbra.com/downloads/clamav-database/$(pvers)/$(dcvd)
murl := https://files.zimbra.com/downloads/clamav-database/$(pvers)/$(mcvd)

.PHONY: all getsrc clean build setup

Expand Down
6 changes: 6 additions & 0 deletions thirdparty/clamav-db/zimbra-clamav-db/debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
zimbra-clamav-db (1.0.0-1zimbra8.7b2ZAPPEND) unstable; urgency=low

* ZCS-13605, Updated clamav-db for ClamAV-1.0.1

-- Zimbra Packaging Services <[email protected]> Fri, 23 Jun 2023 16:05:22 +0000

zimbra-clamav-db (1.0.0-ITERATIONZAPPEND) unstable; urgency=low

* Initial Release.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
#!/bin/bash
if [ "$1" = configure ]; then
/bin/chown -R zimbra:zimbra /opt/zimbra/data/clamav
/bin/chmod 644 /opt/zimbra/data/clamav/init/*.init
/bin/chown -R zimbra:zimbra /opt/zimbra/data/clamav
/bin/chmod 644 /opt/zimbra/data/clamav/init/*.init
if [ -f /opt/zimbra/data/clamav/db/daily.cvd ]; then
rm -rf /opt/zimbra/data/clamav/db/daily.cvd
fi
if [ -f /opt/zimbra/data/clamav/db/main.cvd ]; then
rm -rf /opt/zimbra/data/clamav/db/main.cvd
fi
if [ -f /opt/zimbra/data/clamav/db/bytecode.cvd ]; then
rm -rf /opt/zimbra/data/clamav/db/bytecode.cvd
fi
fi
exit 0
15 changes: 14 additions & 1 deletion thirdparty/clamav-db/zimbra-clamav-db/rpm/SPECS/clamav-db.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Summary: Initial ClamAV Databases for ClamAV
Name: zimbra-clamav-db
Version: 1.0.0
Release: ITERATIONZAPPEND
Release: 1zimbra8.7b2ZAPPEND
License: GPL-2
Requires: zimbra-base
Packager: Zimbra Packaging Services <[email protected]>
Expand All @@ -14,6 +14,8 @@ AutoReqProv: no
Initial ClamAV Databases for ClamAV

%changelog
* Fri Jun 23 2023 Zimbra Packaging Services <[email protected]> - VERSION-1zimbra8.7b2ZAPPEND
- ZCS-13605, Updated clamav-db for ClamAV-1.0.1
* Wed Mar 09 2016 Zimbra Packaging Services <[email protected]> - 1.0.0-ITERATIONZAPPEND
- Initial version

Expand All @@ -27,3 +29,14 @@ cp ../../../src/main.cvd ${RPM_BUILD_ROOT}/opt/zimbra/data/clamav/init/main.cvd.
%attr(644,zimbra,zimbra) /opt/zimbra/data/clamav/init/bytecode.cvd.init
%attr(644,zimbra,zimbra) /opt/zimbra/data/clamav/init/daily.cvd.init
%attr(644,zimbra,zimbra) /opt/zimbra/data/clamav/init/main.cvd.init

%post -p /bin/bash
if [ -f /opt/zimbra/data/clamav/db/daily.cvd ]; then
rm -rf /opt/zimbra/data/clamav/db/daily.cvd
fi
if [ -f /opt/zimbra/data/clamav/db/main.cvd ]; then
rm -rf /opt/zimbra/data/clamav/db/main.cvd
fi
if [ -f /opt/zimbra/data/clamav/db/bytecode.cvd ]; then
rm -rf /opt/zimbra/data/clamav/db/bytecode.cvd
fi

0 comments on commit c503d25

Please sign in to comment.