Since, at least, the last two versions of Wordpress, when upgrading, the package doesn't config protect .htaccess replacing it when you upgrade reinstall. Reproducible: Always Steps to Reproduce: 1.Install an older version of www-apps/wordpress 2.If you used the vhosts flag,install that wordpress version into any of your hosts. 3.Create the .htaccess file with whatever you need 4. Install a newer version of www-apps/wordpres 5.If you used the vhosts flag, update that wordpress version into any of your hosts. 6. See the .htaccess, the modificiation you made have disapeared. Actual Results: the .htaccess file wasn't config protected so it was restored to defaults. Expected Results: Config protect the .htaccess and leave it unchanged. Haven't tried without the vhosts flag, so maybe with it the bug couldn't happen. But with the vhosts flag and doing "webapp-config -U -h klondike -o klondike -d klog wordpress 2.0.9" the .htaccess is changed.
Never had this problem without the vhosts flag. Anyway, with or without that flags you should configprotect in makeconf the directory where wordpress is installed.
I'm not sure its possible in the ebuild, since .htaccess is generated from wordpress install, and not part of the ebuild. @net-www, any ideas?
(In reply to comment #2) > I'm not sure its possible in the ebuild, since .htaccess is generated from > wordpress install, and not part of the ebuild. > > @net-www, any ideas? In that case, no... Plus this thing is package.masked.
And won't a line looking like this:"webapp_configfile "${MY_HTDOCSDIR}"/.htaccess" solve the problem? http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/drupal/drupal-5.1.ebuild?r1=1.1&r2=1.2