|
Lines 1-6
Link Here
|
| 1 |
--- newsstar.in.orig Tue Aug 17 22:33:53 2004 |
1 |
--- newsstar.in.orig 2008-09-09 01:30:52.000000000 +0200 |
| 2 |
+++ newsstar.in Thu Aug 19 19:18:38 2004 |
2 |
+++ newsstar.in 2009-07-12 17:53:37.000000000 +0200 |
| 3 |
@@ -30,7 +30,6 @@ |
3 |
@@ -29,7 +29,6 @@ |
| 4 |
$NEWS_PATH = '@NEWS_PATH@'; |
4 |
$NEWS_PATH = '@NEWS_PATH@'; |
| 5 |
$prefix = "@prefix@"; |
5 |
$prefix = "@prefix@"; |
| 6 |
$exec_prefix = "@exec_prefix@"; |
6 |
$exec_prefix = "@exec_prefix@"; |
|
Lines 8-18
Link Here
|
| 8 |
$NEWSSTAR_BIN = "@NEWSSTAR_BIN@"; |
8 |
$NEWSSTAR_BIN = "@NEWSSTAR_BIN@"; |
| 9 |
$MAINCF = $CONF_DIR . "/main.cf"; |
9 |
$MAINCF = $CONF_DIR . "/main.cf"; |
| 10 |
$INCOMING_DIR = "@INCOMING_DIR@"; |
10 |
$INCOMING_DIR = "@INCOMING_DIR@"; |
| 11 |
@@ -261,7 +260,17 @@ |
11 |
@@ -266,7 +265,17 @@ |
|
|
12 |
} |
| 12 |
} |
13 |
} |
| 13 |
} |
14 |
$OUTGOING_NEWSSTAR_DIR = $OUTGOING_DIR . "/newsstar"; |
| 14 |
$OUTGOING_NEWSSTAR_DIR = $OUTGOING_DIR . "/newsstar"; |
15 |
- $ACTIVE_FILE = "/var/lib/news/active" if ($ACTIVE_FILE eq ""); |
| 15 |
- $ACTIVE_FILE = "/var/lib/news/active" if ($ACTIVE_FILE eq ""); |
|
|
| 16 |
+ if ($ACTIVE_FILE eq "") |
16 |
+ if ($ACTIVE_FILE eq "") |
| 17 |
+ { |
17 |
+ { |
| 18 |
+ if ($USE_SNEWS) |
18 |
+ if ($USE_SNEWS) |
|
Lines 24-77
Link Here
|
| 24 |
+ $ACTIVE_FILE = "${prefix}/news/db/active"; |
24 |
+ $ACTIVE_FILE = "${prefix}/news/db/active"; |
| 25 |
+ } |
25 |
+ } |
| 26 |
+ } |
26 |
+ } |
| 27 |
if ($ARTICLES_DIR eq "") |
27 |
if ($ARTICLES_DIR eq "") |
| 28 |
{ |
28 |
{ |
| 29 |
if ($USE_SNEWS) |
29 |
if ($USE_SNEWS) |
| 30 |
@@ -292,21 +301,9 @@ |
30 |
@@ -297,21 +306,9 @@ |
| 31 |
{ |
31 |
{ |
| 32 |
if ($SNSTORE eq "") |
32 |
if ($SNSTORE eq "") |
| 33 |
{ |
|
|
| 34 |
- if (-x "/usr/sbin/snstore") |
| 35 |
- { |
| 36 |
- $SNSTORE = "/usr/sbin/snstore" |
| 37 |
- } |
| 38 |
- elsif (-x "/usr/local/sbin/snstore") |
| 39 |
+ if (-x "${prefix}/sbin/snstore") |
| 40 |
{ |
33 |
{ |
| 41 |
- $SNSTORE = "/usr/local/sbin/snstore" |
34 |
- if (-x "/usr/sbin/snstore") |
| 42 |
- } |
35 |
- { |
| 43 |
- elsif (-x "/usr/bin/snstore") |
36 |
- $SNSTORE = "/usr/sbin/snstore" |
| 44 |
- { |
37 |
- } |
| 45 |
- $SNSTORE = "/usr/bin/snstore" |
38 |
- elsif (-x "/usr/local/sbin/snstore") |
| 46 |
- } |
39 |
- { |
| 47 |
- elsif (-x "/usr/local/bin/snstore") |
40 |
- $SNSTORE = "/usr/local/sbin/snstore" |
| 48 |
- { |
41 |
- } |
| 49 |
- $SNSTORE = "/usr/local/bin/snstore" |
42 |
- elsif (-x "/usr/bin/snstore") |
|
|
43 |
- { |
| 44 |
- $SNSTORE = "/usr/bin/snstore" |
| 45 |
- } |
| 46 |
- elsif (-x "/usr/local/bin/snstore") |
| 47 |
+ if (-x "${prefix}/sbin/snstore") |
| 48 |
{ |
| 49 |
- $SNSTORE = "/usr/local/bin/snstore" |
| 50 |
+ $SNSTORE = "${prefix}/sbin/snstore" |
50 |
+ $SNSTORE = "${prefix}/sbin/snstore" |
| 51 |
} |
51 |
} |
| 52 |
else |
52 |
else |
| 53 |
{ |
53 |
{ |
| 54 |
@@ -323,21 +320,9 @@ |
54 |
@@ -328,21 +325,9 @@ |
| 55 |
{ |
55 |
{ |
| 56 |
if ($OVERVIEW eq "") |
56 |
if ($OVERVIEW eq "") |
| 57 |
{ |
|
|
| 58 |
- if (-x "/usr/sbin/overview") |
| 59 |
- { |
| 60 |
- $OVERVIEW = "/usr/sbin/overview" |
| 61 |
- } |
| 62 |
- elsif (-x "/usr/local/sbin/overview") |
| 63 |
- { |
| 64 |
- $OVERVIEW = "/usr/local/sbin/overview" |
| 65 |
- } |
| 66 |
- elsif (-x "/usr/bin/overview") |
| 67 |
- { |
| 68 |
- $OVERVIEW = "/usr/bin/overview" |
| 69 |
- } |
| 70 |
- elsif (-x "/usr/local/bin/overview") |
| 71 |
+ if (-x "${prefix}/sbin/overview") |
| 72 |
{ |
57 |
{ |
| 73 |
- $OVERVIEW = "/usr/local/bin/overview" |
58 |
- if (-x "/usr/sbin/overview") |
|
|
59 |
- { |
| 60 |
- $OVERVIEW = "/usr/sbin/overview" |
| 61 |
- } |
| 62 |
- elsif (-x "/usr/local/sbin/overview") |
| 63 |
- { |
| 64 |
- $OVERVIEW = "/usr/local/sbin/overview" |
| 65 |
- } |
| 66 |
- elsif (-x "/usr/bin/overview") |
| 67 |
- { |
| 68 |
- $OVERVIEW = "/usr/bin/overview" |
| 69 |
- } |
| 70 |
- elsif (-x "/usr/local/bin/overview") |
| 71 |
+ if (-x "${prefix}/sbin/overview") |
| 72 |
{ |
| 73 |
- $OVERVIEW = "/usr/local/bin/overview" |
| 74 |
+ $OVERVIEW = "${prefix}/sbin/overview" |
74 |
+ $OVERVIEW = "${prefix}/sbin/overview" |
| 75 |
} |
75 |
} |
| 76 |
else |
76 |
else |
| 77 |
{ |
77 |
{ |