Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 81851 Details for
Bug 125727
app-antivirus/avgfree-7.1.24 (NEW EBUILD)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
avgfree-7.1.23.ebuild
avgfree-7.1.23.ebuild (text/plain), 4.64 KB, created by
Peter Hyman
on 2006-03-10 09:44:42 UTC
(
hide
)
Description:
avgfree-7.1.23.ebuild
Filename:
MIME Type:
Creator:
Peter Hyman
Created:
2006-03-10 09:44:42 UTC
Size:
4.64 KB
patch
obsolete
># Copyright 1999-2006 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >inherit eutils python > >IUSE="doc" >G_URI="http://free.grisoft.com/softw/70free" >AVG_N="avglinux" >AVG_V="${PV/.23/-23}_free_rh_avi0676.i386" >RPM_N="${AVG_N}-${AVG_V}" >DOC_N="avg_afl_uma_en_71_3.pdf" >DAZUKO= > >DESCRIPTION="Grisoft AVG Anti Virus for Linux" >HOMEPAGE="http://free.grisoft.com" >SRC_URI="${G_URI}/setup/${RPM_N}.rpm" >if use doc; then > SRC_URI="${SRC_URI} ${G_URI}/doc/${DOC_N}" >fi > > >LICENSE="free-noncomm" >SLOT="0" >KEYWORDS="~x86" > >RDEPEND=">=dev-lang/python-2.2 > >=gnome-base/libglade-2.0 > >=dev-python/pygtk-2.0" > >pkg_setup() >{ > # see if Dazuko is installed > DAZUKO=`/sbin/lsmod | grep dazuko` > > # set group and user for directory access rights > if [ "`getent group avg | cut -d: -f1`" != "avg" ]; then > groupadd avg &>/dev/null > fi > if [ "`getent passwd avg | cut -d: -f1`" != "avg" ]; then > useradd -s /sbin/nologin -g avg avg &>/dev/null > fi >} > >src_unpack() >{ > rpm2targz ${DISTDIR}/${RPM_N}.rpm > tar -zxf ${WORKDIR}/${RPM_N}.tar.gz >} > >src_compile() >{ > # do some sed magic for correct dir access > cd ${WORKDIR}/opt/grisoft/avg7/etc > sed -i -e {s:/opt/grisoft/avg7/var/:/var/avg7/:} avg.conf >} > >src_install() >{ > # AVG wants everything in opt, but some things > # should be in /var. Selective copy > > cd ${WORKDIR} > > dodir /opt/grisoft/avg7 > dodir /opt/grisoft/avg7/doc > keepdir /opt/grisoft/avg7/var/run > keepdir /var/avg7/update/backup > keepdir /var/avg7/update/download > keepdir /var/avg7/update/log > keepdir /var/avg7/update/preinstall > dodir /usr/bin /usr/sbin > dodir /etc /etc/init.d /etc/pam.d > > dosym /opt/grisoft/avg7/bin/avgscan /usr/bin/avgscan > dosym /opt/grisoft/avg7/bin/avgupdate /usr/bin/avgupdate > dosym /opt/grisoft/avggui/bin/avggui /usr/bin/avggui > dosym /opt/grisoft/avggui/bin/pamwrap /usr/sbin/pamwrap > > # everything in opt/ taking care with var and license file > cd opt/grisoft/avg7 > exeinto /opt/grisoft/avg7/bin > doexe bin/* > insinto /opt/grisoft/avg7 > doins -r data etc > insinto /opt/grisoft/avg7/doc > doins doc/license* > > # copy /etc stuff > doinitd ${FILESDIR}/avgd > exeinto /etc/cron.daily > doexe ${FILESDIR}/avgupdate.cron > dosym /opt/grisoft/avg7/etc/avg.conf /etc/avg.conf > dosym /opt/grisoft/avg7/etc/pam.d/avggui /etc/pam.d/avggui > > # man pages > cd man > doman man1/* man5/* > > # doc > cd ../doc > dodoc * > > # avggui dir > cd ${WORKDIR}/opt/grisoft/avggui > exeinto /opt/grisoft/avggui/bin > doexe bin/* > insinto /opt/grisoft/avggui > doins -r config glade prog > > # copy manual if requested > if use doc; then > insinto /usr/share/${PN} > doins ${DISTDIR}/${DOC_N} > else > einfo "AVG Manual not installed..." > fi >} > >pkg_preinst() >{ > chown -R avg:avg ${D}/opt/grisoft/avg7 > chown -R avg:avg ${D}/var/avg7 > chown avg:avg ${D}/etc/avg.conf > # this dir must be g+w otherwise update won't run for user > chmod -R 0775 ${D}/opt/grisoft/avg7/data > chmod -R 0775 ${D}/opt/grisoft/avg7/var/run > chmod -R 0775 ${D}/var/avg7 > chmod 0775 ${D}/etc/avg.conf > # these two files need to be SetUID to work > chmod 4711 ${D}/opt/grisoft/avggui/bin/pamwrap > chmod 4711 ${D}/opt/grisoft/avg7/bin/avgupdate > > touch ${D}/opt/grisoft/avg7/data/set_vers.cfg > > # compile python modules > python_mod_optimize ${D}/opt/grisoft/avggui/prog >} > >pkg_postinst() >{ > if [ -z ${DAZUKO} ]; then > ewarn "The Dazuko kernel driver is not installed." > ewarn "AVG cannot run its daemon without it." > einfo "You may run the programs on demand though." > fi > einfo "The avgd daemon has been installed to /etc/init.d and" > einfo "can be added to the init sequence by running" > einfo "rc-update add avgd default." > einfo "You will want to do this only if you have Dazuko." > echo > einfo "In addition, a daily cron job file has been installed" > einfo "to /etc/cron.daily which will download updates every day." > einfo "to activate, simply uncomment the avgupdate line." > einfo "You may designate users to run AVG with update privileges" > einfo "by making them members of the group \`avg'." > echo > if ! use doc; then > einfo "There is an avg manual, but it was not installed" > einfo "because the doc use flag was not specified." > einfo "You may download it at http://free.grisoft.com or" > einfo "rerun this ebuild with USE=\"doc\" emerge avgfree." > fi > einfo "Registering Product" > /usr/bin/avgscan -register 70FREE-TX-IB-P1-C01-S139FC-327-9FPB >} > >pkg_postrm() >{ > # clear out stuff only if unmerge completed. If > # it's an update, forget it. > if [ ! -f /opt/grisoft/avg7/bin/avgupdate ]; then > einfo "cleaning out /etc and other files left over..." > rm -frv /opt/grisoft > rm -frv /var/avg7 > rm -fv /etc/avg.conf /etc/init.d/avgd /etc/cron.daily/avgupdate.cron \ > /etc/pam.d/avggui > fi >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 125727
:
81851
|
81852
|
81853
|
81865
|
81930
|
81933
|
81947
|
82008
|
82022
|
82527
|
82535
|
86026
|
147674