Just filling this bug so I don't forget. But I need to see about getting that packaged, and possibly updated from upstream. ASSP uses that in it's communication and processing of spam via clamd. Seems it's not in tree, so this does not really effect ASSP. More like a feature request or etc. If others come across this bug and want to package it. Excellent, otherwise I will do so when time permits.
This and other perl modules do not specifically need an ebuild in the portage tree. (The only time perl modules are specifically in the portage tree is when other ebuilds depend on them.) All you need is g-cpan. If you emerge g-cpan, you can install everything on the CPAN without an ebuild as if it were an ebuild. In fact, g-cpan builds an ebuild on the fly for your use. # g-cpan --install File::Scan::ClamAV This creates an ebuild in your overlay automatically. It seems that sometimes g-cpan doesn't seem to automatically install the ebuild it creates, so I had to do: # emerge File-Scan-ClamAV ...after it created the ebuild to get it installed.
(In reply to comment #1) > This and other perl modules do not specifically need an ebuild in the portage > tree. (The only time perl modules are specifically in the portage tree is when > other ebuilds depend on them.) This would be a dependency of assp which is in tree :) > All you need is g-cpan. If you emerge g-cpan, you can install everything on > the CPAN without an ebuild as if it were an ebuild. In fact, g-cpan builds an > ebuild on the fly for your use. > > # g-cpan --install File::Scan::ClamAV > > This creates an ebuild in your overlay automatically. It seems that sometimes > g-cpan doesn't seem to automatically install the ebuild it creates, so I had to > do: > > # emerge File-Scan-ClamAV hmm, maybe I will use that to generate an ebuild and stick it in tree so I can use it with assp :) Thanks for the info. I mainly do Java so was not aware of that perl capability for Gentoo. Pretty nifty. > > ...after it created the ebuild to get it installed. >
Created attachment 150307 [details] File-Scan-ClamAV-1.8.ebuild I'm not sure about the test phase. If SRC_TEST="do" is added to the ebuild it fails because the file t/mkconf.pl --- which creates a temporary clamav.conf that's used by the test files --- needs an environment variable called CLAMD_PATH.
@wltjr: I have an account at the sunrise overlay. If you want I can commit it, and let it stay there for a while so that other possibly interested users could check its stability.
Thanks, up to you if you want to put it in Sunrise. I will see about adding to tree ASAP. So adding to Sunrise is likely not necessary. Thanks for making the ebuild. Just never had the time, and itch was very minor :)
+*File-Scan-ClamAV-1.91 (17 May 2009) + + 17 May 2009; Tobias Scherbaum <dertobi123@gentoo.org> +metadata.xml, + +File-Scan-ClamAV-1.91.ebuild: + Initial import, #172805