summaryrefslogtreecommitdiff
path: root/comms/binkd/patches/patch-aa
blob: ac8d2f4bfaf4911edccccdeafd1d1bb0f2e82d65 (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
$NetBSD: patch-aa,v 1.3 2002/12/24 18:10:53 jmmv Exp $

--- Makefile.in.orig	Tue Dec 24 19:03:56 2002
+++ Makefile.in
@@ -13,7 +13,7 @@ OBJS=${SRCS:.c=.o} 
 AUTODEFS=@DEFS@
 AUTOLIBS=@LIBS@
 DEFINES=$(AUTODEFS) -DHTTPS -DHAVE_FORK -DUNIX -DOS="\"UNIX\""
-CFLAGS=$(DEFINES) -Wall
+CFLAGS=@CFLAGS@ $(DEFINES) -Wall
 LIBS=$(AUTOLIBS)
 
 all: compile banner
@@ -33,9 +33,8 @@ banner:
 	@echo "        do not something criminal during the installation;   "
 	@echo "     2. \`su' to root;                                       "
 	@echo "     3. Run \`make install' to install Binkd.                "
-	@echo "     4. Edit $(PREFIX)/etc/$(APPL).conf-dist and RENAME it or"
-	@echo "        MOVE it somewhere (so another \`make install' will   "
-	@echo "        not overwrite it during your next Binkd upgrade)     "
+	@echo "     4. Create @sysconfdir@/$(APPL).conf, using the files in "
+	@echo "        $(PREFIX)/share/examples/$(APPL)."
 	@echo
 	@echo " If you want to put the files into some other directory just "
 	@echo " run \`configure --prefix=/another/path' and go to step 1.   "
@@ -52,8 +51,8 @@ install: compile .version
 	ln -s $(PREFIX)/sbin/$(APPL)-`cat .version` $(PREFIX)/sbin/$(APPL)
 	./mkinstalldirs $(PREFIX)/man/man8
 	$(INSTALL) -m 644 $(APPL).8 $(PREFIX)/man/man8/$(APPL).8
-	./mkinstalldirs $(PREFIX)/etc
-	$(INSTALL) -m 644 $(APPL).cfg $(PREFIX)/etc/$(APPL).conf-dist
+	./mkinstalldirs $(PREFIX)/share/examples/$(APPL)
+	$(INSTALL) -m 644 $(APPL).cfg $(PREFIX)/share/examples/$(APPL)/$(APPL).conf
 
 clean:
 	rm -f *.[bo] unix/*.[bo] *.BAK *.core *.obj *.err