DragonFlyBSD / DPorts

The dedicated application build system for DragonFly BSD
Other
91 stars 43 forks source link

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

Closed pavalos closed 11 years ago

pavalos commented 11 years ago

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 commented 11 years ago

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 commented 11 years ago

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 commented 11 years ago

How I patched a port file: https://github.com/jrmarino/DeltaPorts/commit/54af07b0a92fafb4e2790380c29f121a825a0d34

The resulting port: https://github.com/jrmarino/DPorts/commit/425e5eaeb9cfee43d53fa24fec17025e982f5ec8

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