void-packages/srcpkgs/vscl/template

84 lines
1.8 KiB
Bash

# 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
}