Summary: | Request for ebuild: preyproject | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Denilson Sá Maia <denilsonsa> |
Component: | New packages | Assignee: | Markos Chandras (RETIRED) <hwoarang> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | CC: | caibbor, sean-gentoo, travisghansen, upszot |
Priority: | High | Keywords: | EBUILD, REVIEWED |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://preyproject.com/ | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
prey-0.3.73.ebuild
files/prey.cron prey-0.3.73-functions.diff |
Description
Denilson Sá Maia
2010-02-19 01:32:04 UTC
Created attachment 238835 [details]
prey-0.3.73.ebuild
I've had a shot at writing an ebuild for this - I make no guarantees but this seems to be working for me (some $FILESDIR content to follow in a second). Hopefully someone finds this useful or will improve on it.
* The option to not install individual modules is provided (perhaps unnecessarily, but I feel the option to disable webcam at least is necessary).
* I have used /etc/cron.d for scheduling instead of root's user crontab, with corresponding change in the re-scheduling code (should work with frequency change via control.preyproject.com control panel).
* Config is in /etc/prey rather than mixed with core/modules in /usr/share/prey, set fairly restrictive permissions on these.
* LINGUAS removes unwanted core/module language files.
* Main prey.sh launcher script in /usr/bin (perhaps should be sbin?)
One outstanding issue for me is the mentioned 'streamer' binary gets stuck in an infinite loop after opening the webcam:
ioctl: VIDIOC_DQBUF(index=0;type=VIDEO_CAPTURE;bytesused=0;flags=0x0 [];field=ANY;;timecode.type=0;timecode.flags=0;timecode.frames=0;timecode.seconds=0;timecode.minutes=0;timecode.hours=0;timecode.userbits="";sequence=0;memory=unknown): Invalid argument
I can only assume this is to do with my kernel V4L settings, perhaps others will have better luck (or we can patch it to use an alternative application). In either case USE=-webcam will ensure it can't get into trouble.
Created attachment 238837 [details]
files/prey.cron
Cron.d script
Created attachment 238839 [details, diff]
prey-0.3.73-functions.diff
Replacement functions to adjust timing in /etc/cron.d/prey.cron rather than root's crontab
I see .05 is out. I'd like to help make this pretty as well :) needs version bump to 0.5.1 zip package: http://preyproject.com/releases/0.5.1/prey-0.5.1-linux.zip I will take it If someone (user or dev) is willing to co-maintain this ebuild with me please say so Markos I have some newer stuff you can use here(although still not current)... http://anon-git.one-gear.com/?p=chaos.git;a=tree;f=sys-apps/prey;h=bda208d4708d0389705b7244464baf92a0940a8c;hb=HEAD They don't release very often so I don't think the maintenance will be much. I'd be willing to help when possible. I'm not sure about the latest release, but 5.1 has deps on hal which hopefully has been ripped out in the latest releases. (In reply to comment #8) Hi Travis, I committed an ebuild based on the original one posted here by Thomas and on the one from your git repository. I added you as co-maintainer. Please test the ebuild in portage and let me know if that works for you. It will remain masked for now. contact me by email or open bugs if you need to talk to me about the prey ebuild. Thank you all |