Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/usr/local/etc/rc.d/sa-spamd will not stop/restart spamd #20

Closed
pavalos opened this issue Feb 28, 2013 · 3 comments
Closed

/usr/local/etc/rc.d/sa-spamd will not stop/restart spamd #20

pavalos opened this issue Feb 28, 2013 · 3 comments

Comments

@pavalos
Copy link

pavalos commented Feb 28, 2013

Since spamd is actually a perl script, command_interpreter needs to be set in sa-spamd. If you set this to perl it works fine. The question I guess is why our rc.subr needs that and presumably FreeBSD's works ok.

@jrmarino
Copy link
Contributor

jrmarino commented Mar 8, 2013

The suggestion action is:

  1. patch sa-spamd
  2. open a PR at FreeBSD to incorporate the patch
    ?

IIRC, FreeBSD is supposed to need command_interpreter too, so even if it can handle it being missing, it's wrong to be missing and needs to be corrected.

@pavalos
Copy link
Author

pavalos commented Mar 9, 2013

sa-spamd is a generated file, and I'm not familiar enough with the magic of ports to make it select the installed version of PERL (I tried to use %%PERL%% in sa-spamd.in but it didn't work). What I did was just add a line in /usr/local/etc/rc.d/sa-spamd:
command_interpreter=/usr/local/bin/perl

Not sure about the right way to patch that, and could use some help.

@jrmarino
Copy link
Contributor

How I patched a port file:
DragonFlyBSD/DeltaPorts@54af07b

The resulting port:
jrmarino@425e5ea

When the file is installed, it will replace %%PREFIX%% with /usr/local.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants