vscl: remove package
Not adding it to `removed-packages` since there's no reason to remove-remove it.
This commit is contained in:
parent
656a120f83
commit
eb389aa5ad
@ -1 +0,0 @@
|
||||
Run vscl-update after installation to fetch latest signatures.
|
@ -1,11 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
config="/etc/vscl.conf"
|
||||
|
||||
confcmd=""
|
||||
|
||||
if [ -r $config ]; then
|
||||
confcmd="--config ${config}"
|
||||
fi
|
||||
|
||||
/_libdir/uvscan ${confcmd} "$@"
|
@ -1,24 +0,0 @@
|
||||
#!/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 +0,0 @@
|
||||
--data-directory=/_datadir
|
@ -1,82 +0,0 @@
|
||||
# Template file for 'vscl'
|
||||
pkgname=vscl
|
||||
version=6.1.0
|
||||
revision=2
|
||||
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"
|
||||
make_dirs="/usr/share/vscl 0755 root root"
|
||||
|
||||
_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}
|
||||
|
||||
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
|
||||
vdoc "${FILESDIR}/README.voidlinux"
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user