parent
dd5ef53c3d
commit
ca50fed74c
5 changed files with 120 additions and 0 deletions
1
srcpkgs/vscl/INSTALL.msg
Normal file
1
srcpkgs/vscl/INSTALL.msg
Normal file
|
@ -0,0 +1 @@
|
|||
Run vscl-update after installation to fetch latest signatures.
|
11
srcpkgs/vscl/files/vscl
Executable file
11
srcpkgs/vscl/files/vscl
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
config="/etc/vscl.conf"
|
||||
|
||||
confcmd=""
|
||||
|
||||
if [ -r $config ]; then
|
||||
confcmd="--config ${config}"
|
||||
fi
|
||||
|
||||
/_libdir/uvscan ${confcmd} "$@"
|
24
srcpkgs/vscl/files/vscl-update
Executable file
24
srcpkgs/vscl/files/vscl-update
Executable file
|
@ -0,0 +1,24 @@
|
|||
#!/bin/sh
|
||||
|
||||
AVDATURL="http://download.nai.com/products/commonupdater/"
|
||||
|
||||
AVDATDIR="/_datadir"
|
||||
|
||||
if [ ! -w "${AVDATDIR}" ]; then
|
||||
echo "Can't write to ${AVDATDIR}"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd ${AVDATDIR}
|
||||
|
||||
filename=$(/bin/curl -sL "${AVDATURL}/avvdat.ini" | /bin/fgrep -A2 '[AVV-ZIP]' | /bin/tail -n +3 | /bin/cut -d= -f2 | /bin/tr -d '\r')
|
||||
|
||||
echo "Fetching $filename"
|
||||
|
||||
/bin/curl -Lo "${filename}" "${AVDATURL}/$filename"
|
||||
|
||||
/bin/unzip -o -d "${AVDATDIR}" "${filename}" "*.dat"
|
||||
|
||||
/bin/rm -rf ${filename}
|
||||
|
||||
/usr/bin/vscl --version
|
1
srcpkgs/vscl/files/vscl.conf
Normal file
1
srcpkgs/vscl/files/vscl.conf
Normal file
|
@ -0,0 +1 @@
|
|||
--data-directory=/_datadir
|
83
srcpkgs/vscl/template
Normal file
83
srcpkgs/vscl/template
Normal file
|
@ -0,0 +1,83 @@
|
|||
# Template file for 'vscl'
|
||||
pkgname=vscl
|
||||
version=6.1.0
|
||||
revision=1
|
||||
build_style=fetch
|
||||
create_wrksrc=yes
|
||||
short_desc="McAfee VirusScan Command Line for Linux"
|
||||
depends="curl unzip"
|
||||
maintainer="Andrew Benson <abenson+void@gmail.com>"
|
||||
license="proprietary"
|
||||
restricted=yes
|
||||
repository=nonfree
|
||||
nodebug=yes
|
||||
nopie=yes
|
||||
nostrip=yes
|
||||
noshlibprovides=yes
|
||||
lib32disabled=yes
|
||||
homepage="https://www.mcafee.com/"
|
||||
conf_files="/etc/vscl.conf"
|
||||
|
||||
_libdir="usr/libexec/${pkgname}"
|
||||
_datadir="usr/share/${pkgname}"
|
||||
|
||||
mutable_files="
|
||||
/${_datadir}/avvclean.dat
|
||||
/${_datadir}/avvnames.dat
|
||||
/${_datadir}/avvscan.dat
|
||||
/${_libdir}/license.dat
|
||||
/${_datadir}/runtime.dat"
|
||||
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
i686)
|
||||
checksum=20a9816ec9635f52ff3c55be1f9cf79d3b61fdc9f8b356dd52d69b0391bb86aa
|
||||
_arch=32
|
||||
broken="currently depends on old version of libstdc++"
|
||||
;;
|
||||
x86_64)
|
||||
checksum=c859adc2b26fab77e2e50277dc9e71311b6c79e3c9a03a2733743635042b68f2
|
||||
_arch=64
|
||||
;;
|
||||
*)
|
||||
broken="mcafee doesn't provide for any other architectures for linux"
|
||||
;;
|
||||
esac
|
||||
|
||||
distfiles="vscl-l${_arch}-610-l.tar.gz"
|
||||
|
||||
do_extract() {
|
||||
tar -zxf "${XBPS_SRCDISTDIR}/${pkgname}-${version}/vscl-l${_arch}-610-l.tar.gz" -C ${wrksrc}
|
||||
cd ${wrksrc}
|
||||
}
|
||||
|
||||
do_install() {
|
||||
vmkdir ${_libdir}
|
||||
vmkdir ${_datadir}
|
||||
|
||||
touch ${DESTDIR}/${_datadir}/.empty
|
||||
|
||||
vbin ${FILESDIR}/vscl
|
||||
sed -i "s|_libdir|${_libdir}|g" ${DESTDIR}/usr/bin/vscl
|
||||
|
||||
vbin ${FILESDIR}/vscl-update
|
||||
sed -i "s|_datadir|${_datadir}|g" ${DESTDIR}/usr/bin/vscl-update
|
||||
|
||||
vconf ${FILESDIR}/vscl.conf
|
||||
sed -i "s|_datadir|${_datadir}|g" ${DESTDIR}/etc/vscl.conf
|
||||
|
||||
vman uvscan.1
|
||||
vman uvscan.1 vscl.1
|
||||
|
||||
vlicense signlic.txt
|
||||
vlicense license.txt
|
||||
|
||||
vdoc vscl610upg.pdf
|
||||
|
||||
for file in uvscan uvscan_secure; do
|
||||
vinstall $file 0755 ${_libdir}
|
||||
done
|
||||
|
||||
for file in config.dat signlic.txt license.dat liblnxfv.so.4; do
|
||||
vinstall $file 644 ${_libdir}
|
||||
done
|
||||
}
|
Loading…
Add table
Reference in a new issue