Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 320869 - New ebuild: scannedonly daemon
Summary: New ebuild: scannedonly daemon
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement with 1 vote (vote)
Assignee: Default Assignee for New Packages
URL: http://olivier.sessink.nl/scannedonly/
Whiteboard: sunrise-suggested
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-21 12:49 UTC by ultimA
Modified: 2012-02-07 18:00 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
The ebuild file. (scannedonly-0.20-r1.ebuild,850 bytes, text/plain)
2010-08-11 11:04 UTC, daniel.deptula
Details
Patch (will not be needed in next version of package) (scannedonly-0.20-r1.patch,1.35 KB, text/plain)
2010-08-11 11:06 UTC, daniel.deptula
Details
/etc/conf.d/scannedonly template (scannedonly-0.20-r1.confd,21 bytes, text/plain)
2010-08-11 11:07 UTC, daniel.deptula
Details
/etc/init.d/scannedonly tamplate (scannedonly-0.20-r1.initd,637 bytes, text/plain)
2010-08-11 11:08 UTC, daniel.deptula
Details
scannedonly-9999.ebuild (actual/fixed) (scannedonly-9999.ebuild,1.03 KB, text/plain)
2012-01-13 15:17 UTC, Denis Kaganovich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ultimA 2010-05-21 12:49:39 UTC
To use scannedonly with samba, two parts are needed. The vfs module for samba is already included in packages for >=samba-3.5.0. The daemon for scannedonly, however, cannot yet be found in portage.

Please include scannedonlyd_clamav in portage. Maybe even include a new use flag (like eg. "scannedonly_clamav") for >=samba-3.5.0 and make it depend on the new package. (http://olivier.sessink.nl/scannedonly/)

Reproducible: Always

Steps to Reproduce:
Comment 1 Markos Chandras (RETIRED) gentoo-dev 2010-05-21 23:39:11 UTC
Hello, The Gentoo Team would like to firstly thank you for your ebuild 
submission. We also apologize for not being able to accommodate you in a timely
manner. There are simply too many new packages.

Allow me to use this opportunity to introduce you to Gentoo Sunrise. The 
sunrise overlay[1] is a overlay for Gentoo which we allow trusted users to 
commit to and all users can have ebuilds reviewed by Gentoo devs for entry 
into the overlay. So, the sunrise team is suggesting that you look into this 
and submit your ebuild to the overlay where even *you* can commit to. =)

Thanks,
On behalf of the Gentoo Sunrise Team,
Markos.

[1]: http://www.gentoo.org/proj/en/sunrise/
[2]: http://overlays.gentoo.org/proj/sunrise/wiki/SunriseFaq
Comment 2 daniel.deptula 2010-08-11 11:04:47 UTC
Created attachment 242387 [details]
The ebuild file.
Comment 3 daniel.deptula 2010-08-11 11:06:38 UTC
Created attachment 242389 [details]
Patch (will not be needed in next version of package)
Comment 4 daniel.deptula 2010-08-11 11:07:32 UTC
Created attachment 242391 [details]
/etc/conf.d/scannedonly template
Comment 5 daniel.deptula 2010-08-11 11:08:15 UTC
Created attachment 242393 [details]
/etc/init.d/scannedonly tamplate
Comment 6 daniel.deptula 2010-08-11 11:17:04 UTC
Attached you will find four files that are needed to be put in the portage tree:, the ebuild, a patch (ebuild didn't compile on my system without it, but it's going to be included in new official version) and files to create conf.d and init.d scripts.
File scannedonly-0.20-r1.ebuild should be put propably in the app-antivirus/scannedonly branch of portage tree, and three additional files should be put in files subdirectory.

I tested this backage on x86 and amd64 systems with samba-3.5.4 and seems to work fine but it's still a quite young application so still needs testing. Moreover it's my first ebuild submitted here so someone more experienced should have a look at it.
Comment 7 Denis Kaganovich 2012-01-13 15:17:37 UTC
Created attachment 298843 [details]
scannedonly-9999.ebuild (actual/fixed)

Good. But problems:
1) as-needed problem (possible todo: find source and open bug for clamav);
2) sometimes (now, for example) homepage is down, going to SF;
3) strange ebuild structure.

So, scannedonly-9999.ebuild attached (must work with release, but I cannot get tarball now - homepage is down). Patch not required.
Comment 8 Denis Kaganovich 2012-02-06 14:05:47 UTC
More fixed ebuild and startup script here:
http://mahatma.bspu.unibel.by/download/transit/scannedonly-ebuild.tar.bz2
Optionally autostart prescan too. clamd startup dependence removed (clamd not used here, just freshclam daemon or cron-ed freshclam is good).

To Gentoo-ish maniax: you can hardcode socket to /var/run/scannedonly.sock, but I just "keepdir /var/lib/scannedonly" for default.
Comment 9 Denis Kaganovich 2012-02-07 18:00:58 UTC
... but looks like unuseful package ;) - few hours (with debugging) and simple perl daemon ready... http://mahatma.bspu.unibel.by/download/scannedonly_clamd.pl - this use clamd (original package use clamav library).