| @@ -1,49 +1,50 @@ | | | @@ -1,49 +1,50 @@ |
1 | $NetBSD: patch-aa,v 1.5 2008/12/18 19:59:31 jmcneill Exp $ | | 1 | $NetBSD: patch-aa,v 1.6 2009/09/16 10:16:58 abs Exp $ |
2 | | | 2 | |
3 | --- src/npw-config.c.orig 2008-10-12 15:02:08.000000000 -0400 | | 3 | --- src/npw-config.c.orig 2009-09-16 11:05:23.000000000 +0100 |
4 | +++ src/npw-config.c | | 4 | +++ src/npw-config.c |
5 | @@ -128,16 +128,18 @@ static const char *get_system_mozilla_pl | | 5 | @@ -125,22 +125,15 @@ static const char *get_system_mozilla_pl |
6 | #elif defined(__DragonFly__) | | 6 | }; |
| | | 7 | dirs = freebsd_dirs; |
| | | 8 | } |
| | | 9 | -#elif defined(__DragonFly__) |
| | | 10 | +#elif defined(__NetBSD__) || defined(__DragonFly__) |
7 | { | | 11 | { |
8 | static const char *dragonfly_dirs[] = { | | 12 | static const char *dragonfly_dirs[] = { |
9 | - "/usr/pkg/" LIB "/mozilla/plugins", | | 13 | - "/usr/pkg/" LIB "/mozilla/plugins", |
10 | - "/usr/pkg/" LIB "/firefox/plugins", | | 14 | - "/usr/pkg/" LIB "/firefox/plugins", |
11 | + LIBDIR "/firefox3/plugins", | | 15 | + LIBDIR "/netscape/plugins", |
12 | + LIBDIR "/firefox/plugins", | | 16 | + LIBDIR "/firefox/plugins", |
13 | + LIBDIR "/seamonkey/plugins", | | 17 | + LIBDIR "/seamonkey/plugins", |
14 | }; | | 18 | }; |
15 | dirs = dragonfly_dirs; | | 19 | dirs = dragonfly_dirs; |
16 | } | | 20 | } |
17 | #elif defined(__NetBSD__) | | 21 | -#elif defined(__NetBSD__) |
18 | { | | 22 | - { |
19 | static const char *netbsd_dirs[] = { | | 23 | - static const char *netbsd_dirs[] = { |
20 | - "/usr/pkg/" LIB "/mozilla/plugins", | | 24 | - "/usr/pkg/" LIB "/mozilla/plugins", |
21 | - "/usr/pkg/" LIB "/firefox/plugins", | | 25 | - "/usr/pkg/" LIB "/firefox/plugins", |
22 | + LIBDIR "/firefox3/plugins", | | 26 | - }; |
23 | + LIBDIR "/firefox/plugins", | | 27 | - dirs = netbsd_dirs; |
24 | + LIBDIR "/seamonkey/plugins", | | 28 | - } |
25 | }; | | 29 | #elif defined(__sun__) |
26 | dirs = netbsd_dirs; | | 30 | { |
27 | } | | 31 | static const char *solaris_dirs[] = { |
28 | @@ -224,15 +226,19 @@ static const char **get_mozilla_plugin_d | | 32 | @@ -223,16 +216,11 @@ static const char **get_mozilla_plugin_d |
| | | 33 | "/usr/local/lib/npapi/linux-flashplugin", |
29 | "/usr/X11R6/Adobe/Acrobat7.0/ENU/Browser/intellinux", | | 34 | "/usr/X11R6/Adobe/Acrobat7.0/ENU/Browser/intellinux", |
30 | #endif | | 35 | #endif |
31 | #if defined(__DragonFly__) | | 36 | -#if defined(__DragonFly__) |
32 | - "/usr/pkg/lib/netscape/plugins", | | 37 | +#if defined(__NetBSD__) || defined(__DragonFly__) |
33 | + "/usr/pkg/lib/firefox3/plugins", | | 38 | "/usr/pkg/lib/netscape/plugins", |
34 | "/usr/pkg/lib/firefox/plugins", | | | |
35 | + "/usr/pkg/lib/netscape/plugins", | | | |
36 | + "/usr/pkg/lib/seamonkey/plugins", | | | |
37 | "/usr/pkg/lib/RealPlayer/mozilla", | | | |
38 | "/usr/pkg/Acrobat5/Browsers/intellinux", | | | |
39 | "/usr/pkg/Acrobat7/Browser/intellinux", | | | |
40 | #endif | | | |
41 | #if defined(__NetBSD__) | | | |
42 | - "/usr/pkg/lib/netscape/plugins", | | | |
43 | + "/usr/pkg/lib/firefox3/plugins", | | | |
44 | "/usr/pkg/lib/firefox/plugins", | | 39 | "/usr/pkg/lib/firefox/plugins", |
45 | + "/usr/pkg/lib/netscape/plugins", | | 40 | - "/usr/pkg/lib/RealPlayer/mozilla", |
| | | 41 | - "/usr/pkg/Acrobat5/Browsers/intellinux", |
| | | 42 | - "/usr/pkg/Acrobat7/Browser/intellinux", |
| | | 43 | -#endif |
| | | 44 | -#if defined(__NetBSD__) |
| | | 45 | "/usr/pkg/lib/netscape/plugins", |
| | | 46 | - "/usr/pkg/lib/firefox/plugins", |
46 | + "/usr/pkg/lib/seamonkey/plugins", | | 47 | + "/usr/pkg/lib/seamonkey/plugins", |
47 | "/usr/pkg/lib/RealPlayer/mozilla", | | 48 | "/usr/pkg/lib/RealPlayer/mozilla", |
48 | "/usr/pkg/Acrobat5/Browsers/intellinux", | | 49 | "/usr/pkg/Acrobat5/Browsers/intellinux", |
49 | "/usr/pkg/Acrobat7/Browser/intellinux", | | 50 | "/usr/pkg/Acrobat7/Browser/intellinux", |