summaryrefslogtreecommitdiff
path: root/news/nn/patches/patch-ai
blob: a618964fd4b5bc471289411710e1aa9de53d7342 (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
$NetBSD: patch-ai,v 1.5 2002/07/08 02:21:19 kim Exp $

--- config.h-dist.orig	Thu Feb  7 22:39:03 2002
+++ config.h-dist	Sun Jul  7 21:44:08 2002
@@ -11,6 +11,8 @@
  *	(c) Copyright 1990, Kim F. Storm.  All rights reserved.
  */
 
+#define PREFIX		"@PREFIX@"
+
 #include <stdio.h>
 #include <ctype.h>
 
@@ -66,7 +68,7 @@
  *	ascii files.  (Thank you Geoff!)
  */
 
-/* #define NETWORK_DATABASE	*/
+#define NETWORK_DATABASE
 
 
 /********************************** NNTP *********************************
@@ -100,7 +102,7 @@
  *	LIB_DIRECTORY defined below.
  */
 
-#define NNTP_SERVER	"/usr/local/lib/nntp_server"
+#define NNTP_SERVER	PREFIX "/etc/nntp/server"
 
 /*
  *	Define NNTP_PATH_HOSTNAME to force a specific hostname into the
@@ -138,7 +140,7 @@
  *	conf/s-template.h as a starting point for writing you own.
  */
 
-#include "s-sunos5.h"
+#include "@SFILE@"
 
 
 /********************** MACHINE DEPENDENT DEFINITIONS **********************
@@ -149,7 +151,7 @@
  *	conf/m-template.h as a starting point for writing you own.
  */
 
-#include "m-sparc.h"
+#include "@MFILE@"
 
 
 /**************************** LOCALIZATION ****************************
@@ -182,8 +184,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 "/share/nn"
+#ifndef _PATH_VARTMP
+# define _PATH_VARTMP	"/var/tmp"
+#endif
+#define TMP_DIRECTORY   _PATH_VARTMP
 
 
 /*************************** NEWS TRANSPORT **************************
@@ -258,7 +264,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 */
 
 
 /*
@@ -307,13 +316,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"
 
 
@@ -383,8 +392,8 @@
  *	Common choices are:  (news, news)  and   (your uid, your gid)
  */
 
-#define	OWNER	"news"
-#define	GROUP	"news"
+#define	OWNER	"@BINOWN@"
+#define	GROUP	"@BINGRP@"
 
 /*
  *	Default folder directory