Thanks that worked like a charm guess i should have read dev section i
am reading it now.
Danil V. Gerun wrote:
Hello, RYAN.
I use FreeBSD 4.9 and 4.10 and have the same problem =)
On January 18 I wrote the following to the DBMail-dev:
D> And regarding startup scripts: I suspect, that they work properly
D> only with FreeBSD 5.x, because they use ". %%RC_SUBR%%".
D> The point is that I'm using FreeBSD 4, and these scripts do not work.
D> (I have to change '. %%RC_SUBR%%' to '. /usr/local/etc/rc.subr')
D> It's not a real problem for me, but I think it might be more correct
D> to make the scripts work in both - FreeBSD 4.x and 5.x.
So, just make it
. /usr/local/etc/rc.subr
(be sure that this file exists: install rc_subr)
instead of
.
I guess, it's the maintainer who can fix the problem, since Makefile
in the port has the following
SED_SCRIPT+= -e 's|%%RC_SUBR%%|${RC_SUBR}|g' \
-e 's|%%PREFIX%%|${PREFIX}|g' \
-e 's|%%RC_DIR%%|${RC_DIR}|g' \
-e 's|%%RC_SUFX%%|${RC_SUFX}|g'
AFAIK in FreeBSD 5 variables ${RC_SUBR}, etc are defined in
/etc/rc.conf (or somewhere in defaults) and, so to say, are 'a part of
the system', while in FreeBSD 4.x they aren't.
(as you can see, you can either define them while making the port, or
just change the startup-scripts as I've mentioned)
So your (and my :) ) system just replaces %%RC_SUBR%% with null
values.
--
With best regards, Danil.
_______________________________________________
Dbmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail