FreeBSD Port: teamspeak_server-2.0.20.1_1

2006-09-05 Thread Albert Poon
Hi,

A bug in start-up script /usr/local/etc/rc.d/teamspeak-server is discovered, 
causing teamspeak-server to load earlier than linux support. It happens on my 
FreeBSD 6.1 box but not in my FreeBSD 5.5 box.

Problem code:

(line 6)
# REQUIRE: NETWORKING

I think since FreeBSD 6 it will inpsect the start-up scripts and arrange them 
to be loaded accordingly. Since NETWORKING is loaded earlier than linux 
support, teamspeak-server will fail to start.

Workaround:

Either change the problem code to

# REQUIRE: DAEMON

Or any other daemon's name that load after linux support, e.g.

# REQUIRE: ntpd

Or remove the line completely.

I wonder if there is something like # REQUIRE: LINUX (obviously it doesn't 
work), but I too lazy to spend more time in digging the code.

Best Regards,
Albert Poon
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: FreeBSD Port: teamspeak_server-2.0.20.1_1

2006-09-06 Thread Albert Poon
On Wed, 6 Sep 2006 09:17:57 -0500, Brooks Davis wrote
> > Or any other daemon's name that load after linux support, e.g.
> > 
> > # REQUIRE: ntpd
> 
> This would be 100% wrong.

Oh really? But I tried ntpd and pptpd, and it worked, TS started right after 
them respectively. Well I know its not appropriate though.

> 
> > Or remove the line completely.
> > 
> > I wonder if there is something like # REQUIRE: LINUX (obviously it 
doesn't 
> > work), but I too lazy to spend more time in digging the code.
> 
> That would be abi, but it's part of the environment that's expected 
> to be up before any servers run so DAEMON is appropriate.
> 
> -- Brooks

# REQUIRE: abi works too, thanks for pointing it out.

Will there be a patch correcting this issue?

Best Regards,

Albert Poon

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


FreeBSD Port: p5-Mail-SpamAssassin-3.1.4

2006-09-06 Thread Albert Poon
Hi,

I set the following in my local.cf

bayes_file_mode 0777
auto_whitelist_file_mode0777

but however it turns out

-rwxr-xr-x   1 root  mailnull  65536 Sep  7 00:55 auto_whitelist
-rw-rw-rw-   1 root  mailnull  65536 Sep  7 00:54 bayes_seen
-rw-rw-rw-   1 root  mailnull  65536 Sep  7 00:54 bayes_toks

I have to change them to 0777 manually. Could this possible a bug in the 
ported version? I cannot find this issue in spamassassin mailinglist or 
anywhere.

Best Regards,

Albert Poon

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: FreeBSD Port: teamspeak_server-2.0.20.1_1

2006-09-06 Thread Albert Poon
On Wed, 06 Sep 2006 10:04:25 -0700, Doug Barton wrote

> Just because things work in an isolated case, doesn't mean it's the right
> way to do things. :) The rc.d system has a lot of assumptions built 
> in, and apps that don't play nice according to those assumptions can 
> cause problems for themselves, or worse, problems for otherwise well-
> behaving apps.

Yeah I know its not appropriate, thanks for pointing out.
 
> Please test the suggestion Brooks gave you of "REQUIRE: DAEMON" and 
> let us know if it works. If it does, I'll commit the fix.

"REQUIRE: DAEMON" works, which is what I originally submitted.
"REQUIRE: abi" also works, as Brooks also suggested.

Thank you very much!

Best Regards,

Albert Poon

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: FreeBSD Port: p5-Mail-SpamAssassin-3.1.4

2006-09-06 Thread Albert Poon
On Wed, 6 Sep 2006 11:08:45 -0700, Jeremy Chadwick wrote
> You didn't try Google.
> 
> http://www.nabble.com/File-mode-set-incorrectly-t2194216.html

Man, that thread starter is me!

Best Regards,

Albert Poon

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


FreeBSD Port: php4-4.4.4 (how to install php4-4.4.4 with --enable-experimental-zts using ports?)

2006-09-27 Thread Albert Poon
How to install php4-4.4.4 with --enable-experimental-zts using ports?
Currently I have to modify the Makefile to do this, but I think there should 
have a better method to do so.

Also, as I am using Apache 2.2.3 with worker MPM, should I set enable_dl = 
Off in php.ini?


Best Regards,

Albert Poon

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: FreeBSD Port: php4-4.4.4 (how to install php4-4.4.4 with --enable-experimental-zts using ports?)

2006-09-27 Thread Albert Poon
On Thu, 28 Sep 2006 08:01:52 +0200, Alex Dupre wrote
> Albert Poon ha scritto:
> > How to install php4-4.4.4 with --enable-experimental-zts using ports?
> 
> Why you should?

Because I encountered problem (stalled childs) currently and some suggested --
enable-experimental-zts when using Apache worker MPM. I modified the Makefile 
and rebuild the PHP and extensions, and it seems fine, no more stalled child.

> 
> > Also, as I am using Apache 2.2.3 with worker MPM, should I set enable_dl 
= 
> > Off in php.ini?
> 
> Why?

Well the description in php.ini said the dl() function does NOT work
properly in multithreaded servers, that's why I wonder.

> The php ports auto-detect threaded apache and build accordingly.
> Said so, php developers discourage the use of a threaded php.

Well, I won't care how it works if everything run smooth. Too bad the box 
does not have huge amount of RAM, worker MPM is preferred atm, and I have to 
fix the problem.

> 
> --
> Alex Dupre

Albert Poon

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"