# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="H+BEDV AntiVir for UNIX Workstation (for PRIVATE, NON-COMMERCIAL use ONLY)" SRC_URI="http://www.hbedv.com/files/antivir/release/avlxwks.tgz" HOMEPAGE="http://www.hbedv.com/" KEYWORDS="x86" LICENSE="H+BEDV GPL-2 BSD" SLOT="0" IUSE="" DEPEND="" RDEPEND="" PROVIDE="virtual/antivirus" RESTRICT="nostrip" FILES="avupdater configantivir" SYMLINKS="antivir configantivir" src_install() { dodir /opt/${PN} exeinto /opt/${PN} doexe bin/antivir sh/avupdater sh/configantivir for FILE in ${FILES}; do dosed "s:/usr/lib/AntiVir:/opt/${PN}:g" /opt/${PN}/${FILE} done insinto /opt/${PN} doins vdf/antivir.vdf dodir /opt/${PN}/quarantine touch ${D}/opt/${PN}/quarantine/.keep insinto /etc doins conf/antivir.conf dosed "s:/var/log/antivir.log:/var/log/${PN}.log:g" /etc/antivir.conf dodoc CHANGES LICENSE LICENSE.DE README avserver_de.pdf legal/LICENSE.apache legal/LICENSE.bsd dodir /etc/init.d exeinto /etc/init.d doexe ${FILESDIR}/avupdater dodir /usr/bin for SYMLINK in ${SYMLINKS}; do dosym /opt/${PN}/${SYMLINK} /usr/bin/${SYMLINK} done } pkg_postinst() { echo eerror "H+BEDV AntiVir for UNIX Workstation" eerror "(for PRIVATE, NON-COMMERCIAL use ONLY)" eerror eerror "After installation NOT all functions are enabled!" eerror "To enable all functions you must register on" eerror "http://www.hbedv.com/private/. Then the license" eerror "key file (hbedv.key) would be send to you via" eerror "email." eerror eerror "Put the license key into the program directory" eerror eerror "/opt/${PN}" eerror eerror "and all functions of the UNIX Workstation edition" eerror "areenabled." echo sleep 10 einfo "How to use H+BEDV AntiVir for UNIX Workstation" einfo einfo "To activate the automatically updater on system" einfo "start up, type:" einfo einfo "rc-update add avupdater default" einfo einfo "To configure H+BEDV AntiVir for UNIX Workstation," einfo "type:" einfo einfo "configantivir" einfo einfo "or edit the file /etc/antivir.conf manually." echo sleep 10 }