Re: FreeBSD Security Survey



Clemens Renner wrote:
In a different corner is portupgrade which basically constitutes a highly usable tool but has minor annoyances that really complicate things. For example, when upgrading MySQL -- even with mysql_enable=YES in rc.conf, portupgrade will stop the sever but not restart it. Is there any plausible reason for this behaviour? I can't think of any. In fact, I resort to
# portupgrade mysql-server && /usr/local/etc/rc.d/mysql restart
which is really annyoing if a lot of services will be upgraded that aren't automatically restarted. This would be a good thing to take care of.

If you are using portupgrade, you can use /usr/local/etc/pkgtools.conf

MAKE_ARGS = {
'databases/mysql41-*' => [
'WITH_CHARSET=latin2',
'WITH_XCHARSET=all',
'WITH_OPENSSL=yes',
'OVERWRITE_DB=no',
],
}

AFTERINSTALL = {
'databases/mysql41-server' => proc { |origin|
cmd_enable_rc(origin) + ';' + cmd_restart_rc(origin)
},
}

You must set it one time, you can enjoy it every upgrade.

Miroslav Lachman
_______________________________________________
freebsd-security@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-security
To unsubscribe, send any mail to "freebsd-security-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Updating ports
    ... Actually I was wrong because portupgrade doesn't do what I want at all to ... any kind of database / dependency inconsistencies as a matter of expected ... (I do realize upgrading is difficult in several fundamental ways; ... or indirectly because packages are tested on ...
    (freebsd-questions)
  • Problems using portupgrade to recompile all ports
    ... So I'm upgrading my 5.1R desktop to 5.2R. ... LAST time I did a portupgrade -Raf I had a much smaller ... and what I did was work out the dependency tree for ... I'll be rebuilding XFree86 50 times. ...
    (freebsd-questions)
  • portupgrade strangeness
    ... since upgrading ruby to 1.8 and portupgrade i've got ports that won't ... but portversion says it's out of date, yet portupgrade says it's current? ... package 'ruby-bdb1-0.2.1' is required by these other packages ...
    (comp.unix.bsd.freebsd.misc)
  • Re: Ports after upgrade
    ... You should try to use portsnap instead of cvsup which is in the base since 6.2. ... Your problem looks like a portupgrade mistake. ... After upgrading portupgrade you should rebuild apache with something like that: ...
    (freebsd-questions)
  • Re: upgrading all ports
    ... > Erik Nørgaard wrote: ... >> portupgrade isn't suitable for upgrading the entire machine, ... reinstall. ... then there are the general warnings about upgrading Gnome (not ...
    (freebsd-questions)