freebsd-ports/www/nspluginwrapper/files/patch-src__npw-config.c
Johannes Jost Meixner 05317facbe Update CentOS base to 6.5, add userland ports
The Fedora 10 infrastructure ports have been in use since June 2009 and, while
having served a great deed, have become unsupported upstream and hence affected
by unfixed security vulnerabilities. In addition to that, many recent Linux
binaries need newer libc / stdlibc++ versions.

This commit adds the linux-c6- userland as drop-in replacement for the -f10
infrastructure, as well as upgrading the linux_base-c6 port to CentOS 6.5.

If you want to switch to linux-c6 ports, please define at /etc/make.conf:

    OVERRIDE_LINUX_BASE_PORT=c6
    OVERRIDE_LINUX_NONBASE_PORTS=c6

Additionally, please add the following line to /etc/sysctl.conf:

    compat.linux.osrelease=2.6.18

Upgrading procedures are shown in /usr/ports/UPDATING.

This work has been inspired by Artyom Mirgorodskiy's post to emulation@ in
November 2013, using and extending mav@'s work. It has been tested extensively
and most reported issues were already fixed. Please report any additional bug
or "features" to the emulation mailing list.

Many thanks to: mav@, rene@, allanjude@, netchild@, antoine@, everyone who's
filed Issues and Pull requests on GitHub,

PR:		186820
Differential Revision:	https://reviews.freebsd.org/D793
Reviewed by:	allanjude, antoine, bapt, rene
Approved by:	portmgr (antoine, bapt)
Approved by:	koobs (mentor)
Sponsored by:	Perceivon Hosting Inc.
2014-09-22 10:40:00 +00:00

34 lines
1.3 KiB
C

--- ./src/npw-config.c.orig 2011-07-01 06:18:57.000000000 +0300
+++ ./src/npw-config.c 2014-03-28 07:33:35.829791175 +0200
@@ -133,8 +133,9 @@
#if defined(__FreeBSD__)
{
static const char *freebsd_dirs[] = {
- "/usr/X11R6/" LIB "/browser_plugins",
- "/usr/X11R6/" LIB "/firefox/plugins",
+ "%%LOCALBASE%%/" LIB "/browser_plugins",
+ "%%LOCALBASE%%/" LIB "/firefox/plugins",
+ "%%LOCALBASE%%/" LIB "/seamonkey/plugins",
};
dirs = freebsd_dirs;
}
@@ -232,11 +233,14 @@
"/usr/lib32/nsbrowser/plugins", // XXX how unfortunate
"/usr/lib64/nsbrowser/plugins",
#if defined(__FreeBSD__)
- "/usr/X11R6/lib/browser_plugins",
- "/usr/X11R6/lib/firefox/plugins",
- "/usr/X11R6/lib/linux-mozilla/plugins",
- "/usr/local/lib/npapi/linux-flashplugin",
- "/usr/X11R6/Adobe/Acrobat7.0/ENU/Browser/intellinux",
+ "%%LOCALBASE%%/lib/browser_plugins",
+ "%%LOCALBASE%%/lib/firefox/plugins",
+ "%%LOCALBASE%%/lib/seamonkey/plugins",
+ "%%LOCALBASE%%/lib/browser_plugins/linux-f10-flashplugin",
+ "%%LOCALBASE%%/lib/browser_plugins/linux-c6-flashplugin",
+ "%%LOCALBASE%%/lib/browser_plugins/symlinks/linux-firefox",
+ "%%LOCALBASE%%/Adobe/Reader8/ENU/Adobe/Reader8/Browser/intellinux",
+ "%%LOCALBASE%%/Adobe/Reader9/ENU/Adobe/Reader9/Browser/intellinux",
#endif
#if defined(__DragonFly__)
"/usr/pkg/lib/netscape/plugins",