php4 updated to 4.4.1 - critical security update, all 4.[34] users
[pkgsrcv2.git] / news / nn / patches / patch-ai
1 $NetBSD: patch-ai,v 1.6 2004/05/03 12:56:10 kim Exp $
2
3 --- config.h-dist.orig  Thu Feb  6 18:06:02 2003
4 +++ config.h-dist       Fri Apr  8 22:20:37 2005
5 @@ -11,6 +11,9 @@
6   *     (c) Copyright 1990, Kim F. Storm.  All rights reserved.
7   */
8  
9 +#define PREFIX         "@PREFIX@"
10 +#define PKG_SYSCONFDIR "@PKG_SYSCONFDIR@"
11 +
12  #include <stdio.h>
13  #include <ctype.h>
14  
15 @@ -66,7 +69,7 @@
16   *     ascii files.  (Thank you Geoff!)
17   */
18  
19 -/* #define NETWORK_DATABASE    */
20 +#define NETWORK_DATABASE
21  
22  
23  /********************************** NNTP *********************************
24 @@ -100,7 +103,7 @@
25   *     LIB_DIRECTORY defined below.
26   */
27  
28 -#define NNTP_SERVER    "/usr/local/lib/nntp_server"
29 +#define NNTP_SERVER    PKG_SYSCONFDIR "/server"
30  
31  /*
32   *     Define NNTP_PATH_HOSTNAME to force a specific hostname into the
33 @@ -138,7 +141,7 @@
34   *     conf/s-template.h as a starting point for writing you own.
35   */
36  
37 -#include "s-sunos5.h"
38 +#include "@SFILE@"
39  
40  
41  /********************** MACHINE DEPENDENT DEFINITIONS **********************
42 @@ -149,7 +152,7 @@
43   *     conf/m-template.h as a starting point for writing you own.
44   */
45  
46 -#include "m-sparc.h"
47 +#include "@MFILE@"
48  
49  
50  /**************************** LOCALIZATION ****************************
51 @@ -182,8 +185,12 @@
52   *                        (= LIB_DIRECTORY/Log if undefined).
53   */
54  
55 -#define BIN_DIRECTORY  "/usr/local/bin"
56 -#define LIB_DIRECTORY  "/usr/local/lib/nn"
57 +#define BIN_DIRECTORY  PREFIX "/bin"
58 +#define LIB_DIRECTORY  PREFIX "/share/nn"
59 +#ifndef _PATH_VARTMP
60 +# define _PATH_VARTMP  "/var/tmp"
61 +#endif
62 +#define TMP_DIRECTORY   _PATH_VARTMP
63  
64  
65  /*************************** NEWS TRANSPORT **************************
66 @@ -258,7 +265,10 @@
67   */
68  
69  /* #define REC_MAIL    "/usr/lib/news/recmail" */      /* non-sendmail */
70 -#define REC_MAIL       "/usr/lib/sendmail -t"          /* sendmail */
71 +#ifndef _PATH_SENDMAIL
72 +# define _PATH_SENDMAIL        "/usr/lib/sendmail"
73 +#endif
74 +#define REC_MAIL        _PATH_SENDMAIL " -t"           /* sendmail */
75  
76  
77  /*
78 @@ -307,13 +317,13 @@
79   *     DAEMON_MAN      - nnmaster
80   */
81  
82 -#define USER_MAN_DIR   "/usr/local/man/man1"
83 +#define USER_MAN_DIR   PREFIX "/man/man1"
84  #define USER_MAN_SECTION       "1"
85  
86 -#define SYS_MAN_DIR    "/usr/local/man/man1"
87 -#define SYS_MAN_SECTION                "1m"
88 +#define SYS_MAN_DIR    PREFIX "/man/man1"
89 +#define SYS_MAN_SECTION                "1"
90  
91 -#define DAEMON_MAN_DIR "/usr/local/man/man8"
92 +#define DAEMON_MAN_DIR PREFIX "/man/man8"
93  #define DAEMON_MAN_SECTION     "8"
94  
95  
96 @@ -383,8 +393,8 @@
97   *     Common choices are:  (news, news)  and   (your uid, your gid)
98   */
99  
100 -#define        OWNER   "news"
101 -#define        GROUP   "news"
102 +#define        OWNER   "@BINOWN@"
103 +#define        GROUP   "@BINGRP@"
104  
105  /*
106   *     Default folder directory