aboutsummaryrefslogtreecommitdiff
path: root/news/nntpbtr/files/patch-conf.h
blob: 0b6769708bee469b0e813afc18964919b840be24 (plain) (blame)
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
--- conf.h.orig	1995-06-11 09:16:14 UTC
+++ conf.h
@@ -4,16 +4,16 @@
  */
 
 /* It is defined for direct pipe to INND without disk batches */
-/* #define	RNEWS	"/usr/bin/rnews"   */
+#define	RNEWS	"/usr/local/bin/rnews"
 
 /*	if undef DBZ and NDBM, then history check will not use	*/
 /*	please use the definition from your CNEWS/INN distributive */
-#define	HISTORY_FILE	"/usr/lib/news/history"
+#define	HISTORY_FILE	"/usr/local/news/lib/history"
 #define	DBZ
 #undef	NDBM
 
 /*	the position of host data file - control info for nntpbtr	*/
-#define	HOSTDIR		"/usr/spool/news/nntpbtr-"
+#define	HOSTDIR		"/var/spool/news/nntpbtr-"
 
 #ifndef		RNEWS
 /*	This is the batch file definitions - where, size and cmd to input news 
@@ -24,22 +24,24 @@
 #define	BATCHINPUTCMD	"/usr/lib/newsbin/input/newsrun", "newsrun", 0
 #endif
 #define	BATCHSIZE	300000
-#define	BATCHTMP	"/usr/spool/news/in.coming/nntp.XXXXXX"
-#define BATCHDIR	"/usr/spool/news/in.coming/"
+#define	BATCHTMP	"/var/spool/news/in.coming/nntp.XXXXXX"
+#define BATCHDIR	"/var/spool/news/in.coming/"
 #endif
 
 /*	This is defined the only for the purpose of disk free check.
 	min free space is in the BLOCKS (1KB or 512 - depend from system).
 	dont't forget here about free space for expire process in CNEWS -
 	- it is need the second "history" file space */
-#define	NEWSSPOOL	"/usr/spool/news"
+#define	NEWSSPOOL	"/var/spool/news"
 #define	MINFREE		30000
 #define	MINFILES 2048 /* one 300KB batch = 150 files, 10 batches enough ? */
+
 #ifndef	RNEWS
-#define	NEWSINCOMING	"/usr/spool/news/in.coming"
+#define	NEWSINCOMING	"/var/spool/news/in.coming"
 	/*  max inputed files in BATCHDIR (-I) 	*/
-#define	MAXINFILES	0    /* max # files in BATCHDIR; 0 -> no check */
 #endif
+#define	MAXINFILES	0    /* max # files in BATCHDIR; 0 -> no check */
+
 	/*  wait time slot to re-check disk space (-m) or batch process (-I)
 	    if not define, when exit(2) without wait */
 /* #define	MINFTIME	60*10	/* time to sleep between new check */
@@ -70,7 +72,7 @@
 #include	<string.h>
 #include	<ctype.h>
 #include	<time.h>
-#include	<sys/dir.h>
+#include	<sys/dirent.h>
 
 #define DFREE_OK		0
 #define DFREE_INODES	1