Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 443728 - app-laptop/prey-0.5.4-r1: /etc/init.d/prey-trigger is installed as invalid symlink, first run attempts to locate an rc3.d directory, system module error
Summary: app-laptop/prey-0.5.4-r1: /etc/init.d/prey-trigger is installed as invalid sy...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at if you want to take care of it
Whiteboard: Pending removal: 2016-02-05
Depends on:
Blocks: 451882
  Show dependency tree
Reported: 2012-11-18 05:26 UTC by Justin M Griggs
Modified: 2016-02-20 17:48 UTC (History)
2 users (show)

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

Patched functions file (functions,4.46 KB, text/plain)
2012-11-18 06:02 UTC, Justin M Griggs
Patched Services File with gentoo openrc configuration added (services,2.29 KB, text/plain)
2012-11-18 06:02 UTC, Justin M Griggs
Services needed a few more tweaks. (services,2.33 KB, text/plain)
2012-11-18 06:22 UTC, Justin M Griggs
Functions patched again to locate files in init.d directory (functions,4.52 KB, text/plain)
2012-11-18 06:41 UTC, Justin M Griggs
Patch file for functions (functions.gentoo.patch,1.97 KB, patch)
2012-11-18 18:51 UTC, Justin M Griggs
Details | Diff
Patch file for Services (services.gentoo.patch,1.30 KB, patch)
2012-11-18 18:52 UTC, Justin M Griggs
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Justin M Griggs 2012-11-18 05:26:25 UTC
I'm new to prey, so bear with me a bit :)

When running the first time initialization for prey, I get the following output:

yuki etc # prey
/usr/bin/prey: line 18: /usr/share/prey/lang/en: No such file or directory

 ## Linux yuki 3.6.6-gentoo-yuki-v2.2 #3 SMP Sat Nov 17 19:54:26 EST 2012 x86_64 Intel(R) Core(TM) i5-2467M CPU @ 1.60GHz GenuineIntel GNU/Linux
 ## Sun Nov 18 00:17:30 EST 2012

 -- Looking for connection...
 -- Got network connection!

 == Verifying status...

 -- Got status code 200!

 == Reading configuration...

 -- Setting delay to regular interval.

 == Reading module configuration...

 -- Got instructions for system module.
 !! Module system not found!
 -- Trying to fetch system module from repository...
 -- Couldn't grab module package. The repository may be temporarily down.
 !! Couldn't install system module from repository.

 -- Cleaning up!

find: `/etc/rc3.d/': No such file or directory
 -- Setting up network detection trigger init script...
 !! Couldn't copy init script into /etc/init.d!

The System module I believe may be related to prey itself, not so much prey itself. The rc3.d may be as well, however when I probed into init.d, I noticed the following:

yuki init.d # ls -lh prey-trigger
lrwxrwxrwx 1 root root 59 Nov 18 00:10 prey-trigger -> /usr/share/prey//usr/share/prey/platform/linux/prey-trigger

Which is improperly calling the trigger script.

As an aside, I'm converting the openrc script over to a systemd unit file, I can post the results here if desired.

Let me know if anything else is needed :)

Reproducible: Always
Comment 1 Justin M Griggs 2012-11-18 05:33:13 UTC
The rc3.d is from prey itself:


Line 92: find /etc/rc3.d/ | grep 'prey-trigger' > /dev/null && echo 1
Comment 2 Justin M Griggs 2012-11-18 06:01:28 UTC
After much fiddling, I think this is mostly upstream, and I'm going to submit the changes I've made to the project as well, but I'm attaching the modified files here as well. Never quite figured out how to do diffing to make patch files :(
Comment 3 Justin M Griggs 2012-11-18 06:02:15 UTC
Created attachment 329784 [details]
Patched functions file
Comment 4 Justin M Griggs 2012-11-18 06:02:42 UTC
Created attachment 329786 [details]
Patched Services File with gentoo openrc configuration added
Comment 5 Justin M Griggs 2012-11-18 06:22:03 UTC
Created attachment 329788 [details]
Services needed a few more tweaks.
Comment 6 Justin M Griggs 2012-11-18 06:41:05 UTC
Created attachment 329790 [details]
Functions patched again to locate files in init.d directory

Had to patch the find commands, not the best patch either, otherwise it keeps attempting to load the init script
Comment 7 Justin M Griggs 2012-11-18 07:06:39 UTC
/etc/cron.d/prey.cron calls /usr/bin/, should be altered over to /usr/bin/prey

Additionally, the ebuild may want to flag imagemagick as a dependency with the webcam useflag, otherwise the image is uploaded in ppm, not jpg, and will not render in the control panel.
Comment 8 Markos Chandras (RETIRED) gentoo-dev 2012-11-18 11:01:09 UTC
This package is more broken than I expected.
Comment 9 Justin M Griggs 2012-11-18 17:35:04 UTC
(In reply to comment #8)
> This package is more broken than I expected.

I've submitted the relevant code to upstream. The problem right now is that with the functions/services patches, it won't allow registration of the device in the control panel because there isn't a "Gentoo" distribution (For Shame!)

Apparently they're planning to rewrite the entire client in node.js, but hopefully at least this will get taken care of. I just got up so in a bit i'm going to open up the files and do a rather nasty hack to get the services file to run properly.

I'm also getting syntax errors all over the place in the various python scripts. This may want to be remarked as unstable for a bit. It runs, but it's not happy about it, and all the problems are upstream.
Comment 10 Justin M Griggs 2012-11-18 18:51:17 UTC
Created attachment 329876 [details, diff]
Patch file for functions

Hijack Arch's script to work for gentoo until upstream adds a gentoo distribution, confirmed to work when both functions/services is patched.
Comment 11 Justin M Griggs 2012-11-18 18:52:02 UTC
Created attachment 329878 [details, diff]
Patch file for Services

Hijack arch's service setup for gentoo.
Comment 12 Justin M Griggs 2012-11-18 19:32:39 UTC
Apparently some merges to upstream should have removed the dependency on sudo, but this particular version requires it for lock/alert/alarm, etc. So sudo may want to be pulled in.

I'm new to ebuild patching, but it seems like scrot should be dropped in favor of imagemagick (as screenshot/webcam both depend on it) and sudo needs to be pulled in.

Additionally the python syntax errors are due to eselect python being set to 3.2, prey wants 2.7

If I manage to figure out what I'm doing with the ebuilds I'll dump everything here, haha.
Comment 13 Markos Chandras (RETIRED) gentoo-dev 2012-11-18 20:35:09 UTC
please stop changing the fields of this bug
Comment 14 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-07-18 13:22:45 UTC
(In reply to Markos Chandras from bug #451882 comment #2)
> sorry i have no interest in this package anymore so someone else should step
> up and maintain it. Also bug #443728 is pending as well

Ping @ Travis: Can you look at this package? Are you still interested?
Comment 15 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-08-14 15:52:06 UTC
+  14 Aug 2013; Tom Wijsman <> metadata.xml:
+  Dropped herds and maintainers, assigned to maintainer-needed; as per
+  confirmation from all maintainers, see bug #451882.

This package has no maintainer so this bug may go unnoticed for a long time.
Gentoo has a dedicated team[1] for assisting users in maintaining orphaned
packages. If you are interested in maintaining this package, please contact 

Comment 16 Pacho Ramos gentoo-dev 2015-11-06 14:39:27 UTC
CCing treecleaners
Comment 17 jorgicio 2016-01-05 14:36:07 UTC
Hi! I maintain the most recent versions of prey on my overlay. Please, at masking, specify the version you want to unmask. Meanwhile, I unmasked mine.

Comment 18 Pacho Ramos gentoo-dev 2016-02-20 17:48:22 UTC