Merge pull request #1442 from pullmoll/clamav

New package: clamav-0.98.7
This commit is contained in:
Juan RP 2015-04-29 14:40:39 +02:00
commit db173f0e64
6 changed files with 75 additions and 0 deletions

View File

@ -2003,3 +2003,6 @@ libsfml-system.so.2.2.0 SFML-2.2_1
libsfml-window.so.2.2.0 SFML-2.2_1
libsfml-audio.so.2.2.0 SFML-2.2_1
libsfml-graphics.so.2.2.0 SFML-2.2_1
libclamav.so.6 clamav-0.98.6_1
libclamunrar.so.6 clamav-0.98.6_1
libclamunrar_iface.so.6 clamav-0.98.6_1

1
srcpkgs/clamav-devel Symbolic link
View File

@ -0,0 +1 @@
clamav

15
srcpkgs/clamav/INSTALL Normal file
View File

@ -0,0 +1,15 @@
# INSTALL
case "$ACTION" in
post)
# Only if not updating
if [ "$UPDATE" != "yes" ]; then
# Create the database directory
mkdir -p /var/lib/clamav
# The clamav user owns it
chown -R clamav:clamav /var/lib/clamav
# Let group members write to it
chmod g+w /var/lib/clamav
fi
;;
esac

View File

@ -0,0 +1,2 @@
You may want to add your account to the group 'clamav'.
$ sudo usermod -a -G clamav <yourname>

11
srcpkgs/clamav/REMOVE Normal file
View File

@ -0,0 +1,11 @@
# REMOVE
case "$ACTION" in
pre)
# Only if not updating
if [ "$UPDATE" != "yes" ]; then
# Remove the clamav database directory and contents
rm -rf /var/lib/clamav
fi
;;
esac

43
srcpkgs/clamav/template Normal file
View File

@ -0,0 +1,43 @@
# Template file for 'clamav'
pkgname=clamav
version=0.98.7
revision=1
build_style=gnu-configure
conf_files="/etc/clamd.conf /etc/freshclam.conf"
CPPFLAGS="-Wno-unused-local-typedefs"
system_accounts="clamav"
clamav_homedir="/var/lib/${pkgname}"
clamav_descr="ClamAV user"
hostmakedepends="pkg-config zip"
makedepends="libressl-devel libxml2-devel libcurl-devel ncurses-devel pcre-devel tcl-devel bzip2-devel zlib-devel"
short_desc="Clam Anti-Virus scanner"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="GPL-2"
homepage="http://www.clamav.net/"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}/${version}/${pkgname}-${version}.tar.gz"
checksum=282417b707740de13cd8f18d4cbca9ddd181cf96b444db2cad98913a5153e272
post_install() {
# Enable and patch clamd configuration
mv -v ${PKGDESTDIR}/etc/clamd.conf.sample ${PKGDESTDIR}/etc/clamd.conf
vsconf etc/clamd.conf.sample
sed -i ${PKGDESTDIR}/etc/clamd.conf \
-e "s;^Example$;# Example;" \
-e "s;#DatabaseDirectory.*;DatabaseDirectory /var/lib/${pkgname};"
# Enable and patch freshclam configuration
mv -v ${PKGDESTDIR}/etc/freshclam.conf.sample ${PKGDESTDIR}/etc/freshclam.conf
vsconf etc/freshclam.conf.sample
sed -i ${PKGDESTDIR}/etc/freshclam.conf \
-e "s;^Example$;# Example;" \
-e "s;#DatabaseDirectory.*;DatabaseDirectory /var/lib/${pkgname};"
}
clamav-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/lib/pkgconfig
vmove usr/include
vmove "usr/lib/*.so"
}
}