summaryrefslogtreecommitdiff
path: root/news/leafnode+/files/patch-aa
blob: e045b3d61f94f8cd771405155dbe9c445b4779bc (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
--- Makefile.orig	Sun Aug  1 06:23:40 1999
+++ Makefile	Sun Sep 26 18:18:55 1999
@@ -1,12 +1,8 @@
 # -*- makefile -*-
 # $Orig-Id: Makefile,v 1.16 1997/07/20 00:28:31 agulbra Exp $
-CC = gcc
 DEBUG = -g -Wall -Wformat -Wstrict-prototypes -Wmissing-prototypes 
-CFLAGS = $(DEBUG)
 LIBS =
-PREFIX = /usr/local
 BINDIR = $(PREFIX)/sbin
-MANDIR = $(PREFIX)/man
 VERSION = 2.12
 #
 # if you want to use Socks, use following.
@@ -29,11 +25,11 @@
 #RANLIB = ranlib
 #
 # this is the directory where the news is stored.
-SPOOLDIR = /var/spool/news
+SPOOLDIR = @SPOOLDIR@
 #
 # this is the directory where the configuration and group information is
 # kept.  It should preferably not be on the same partition as spooldir
-LIBDIR = /usr/lib/leafnode
+LIBDIR = @LIBDIR@
 #
 # local library
 LIBUTIL = libutil.a
@@ -93,7 +89,7 @@
 	@if [ -f $(BINDIR)/fetch ]; then echo don"'"t forget to change the name of a command in scripts and crontab from fetch into fetchnews.; fi
 	@if [ -f $(BINDIR)/newsfetch ]; then echo don"'"t forget to change the name of a command in scripts and crontab from newsfetch into fetchnews.; fi
 
-installall: install
+installall:
 	-mkdir -p $(SPOOLDIR) $(LIBDIR)
 	-mkdir -p $(SPOOLDIR)/message.id
 	-mkdir -p $(SPOOLDIR)/interesting.groups
@@ -105,7 +101,6 @@
 				$${a}$${b}6 $${a}$${b}7 $${a}$${b}8 \
 				$${a}$${b}9 ; \
 			done ; done
-	cp config.example $(LIBDIR)
 	chown -R news.news $(LIBDIR)/. $(SPOOLDIR)/.
 	chmod 2750 $(SPOOLDIR)
 	@echo edit /etc/inetd.conf to start $(BINDIR)/leafnode