summaryrefslogtreecommitdiff
path: root/news/nn/patches/patch-ai
blob: 1f38c648f61b9aa4af337b8a4e9343af2557bf2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
$NetBSD: patch-ai,v 1.4 1999/09/20 21:43:34 kim Exp $

--- config.h-dist.orig	Sun Jun  6 18:22:28 1999
+++ config.h-dist	Mon Sep 20 17:18:32 1999
@@ -13,6 +13,8 @@
 
 #define	RELEASE 	"6.5"
 
+#define PREFIX		"@PREFIX@"
+
 #include <stdio.h>
 #include <ctype.h>
 
@@ -71,7 +73,7 @@
  *	ascii files.  (Thank you Geoff!)
  */
 
-/* #define NETWORK_DATABASE	*/
+#define NETWORK_DATABASE
 
 
 /********************************** NNTP *********************************
@@ -107,7 +109,7 @@
  *	NOTE: If you plan to use the included inews, it MUST be a full pathname
  */
 
-#define NNTP_SERVER	"/usr/local/lib/nntp_server"
+#define NNTP_SERVER	PREFIX "/etc/nntp/server"
 
 /*
  *	Define NNTP_POST if you want nn to reject attempts to post via
@@ -149,7 +151,7 @@
  *	conf/s-template.h as a starting point for writing you own.
  */
 
-#include "s-hpux9-0.h"
+#include "@SFILE@"
 
 /*
  *	Define DEFAULT_PAGER as the initial value of the 'pager' variable.
@@ -210,7 +212,7 @@
  *	conf/m-template.h as a starting point for writing you own.
  */
 
-#include "m-hp9000.h"
+#include "@MFILE@"
 
 
 /***************************** OWNERSHIP ***************************
@@ -227,8 +229,8 @@
  *	Common choices are:  (news, news)  and   (your uid, your gid)
  */
 
-#define	OWNER	"news"
-#define	GROUP	"news"
+#define	OWNER	"@BINOWN@"
+#define	GROUP	"@BINGRP@"
 
 
 /**************************** LOCALIZATION ****************************
@@ -261,9 +263,12 @@
  *			   (= LIB_DIRECTORY/Log if undefined).
  */
 
-#define BIN_DIRECTORY	"/usr/local/bin"
-#define LIB_DIRECTORY	"/usr/local/lib/nn"
-
+#define BIN_DIRECTORY	PREFIX "/bin"
+#define LIB_DIRECTORY	PREFIX "/lib/nn"
+#ifndef _PATH_VARTMP
+# define _PATH_VARTMP	"/var/tmp"
+#endif
+#define TMP_DIRECTORY   _PATH_VARTMP
 
 /**************************** DATABASE LOCATION **************************
  *
@@ -318,7 +323,7 @@
 
 /* #define NEWS_DIRECTORY	"/usr/spool/news"	*/
 /* #define NEWS_LIB_DIRECTORY	"/usr/lib/news"		*/
-/* #define INEWS_PATH		"/usr/lib/news/inews"	*/
+#define INEWS_PATH		BIN_DIRECTORY "/inews"
 
 
 /*
@@ -341,7 +346,10 @@
  */
 
 /* #define REC_MAIL	"/usr/lib/news/recmail"	*/	/* non-sendmail */
-#define REC_MAIL	"/usr/lib/sendmail -t"		/* sendmail */
+#ifndef _PATH_SENDMAIL
+# define _PATH_SENDMAIL	"/usr/lib/sendmail"
+#endif
+#define REC_MAIL        _PATH_SENDMAIL " -t"		/* sendmail */
 
 
 /*
@@ -403,13 +411,13 @@
  *	DAEMON_MAN	- nnmaster
  */
 
-#define USER_MAN_DIR	"/usr/local/man/man1"
+#define USER_MAN_DIR	PREFIX "/man/man1"
 #define USER_MAN_SECTION	"1"
 
-#define SYS_MAN_DIR	"/usr/local/man/man1"
-#define SYS_MAN_SECTION		"1m"
+#define SYS_MAN_DIR	PREFIX "/man/man1"
+#define SYS_MAN_SECTION		"1"
 
-#define DAEMON_MAN_DIR	"/usr/local/man/man8"
+#define DAEMON_MAN_DIR	PREFIX "/man/man8"
 #define DAEMON_MAN_SECTION	"8"