blob: 4fea76c232239c04c0461347c25fc82158138c19 (
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
|
$NetBSD: patch-aa,v 1.3 2002/04/14 10:57:11 rh Exp $
--- Makefile.in.orig Sun Oct 21 14:49:39 2001
+++ Makefile.in Tue Apr 9 22:11:27 2002
@@ -26,6 +26,7 @@
BINDIR=@bindir@
CGIDIR=@sbindir@
HTMLDIR=@datadir@
+SAMPDIR=@prefix@/share/examples/netsaint
INSTALL=@INSTALL@
INSTALL_OPTS=@INSTALL_OPTS@
COMMAND_OPTS=@COMMAND_OPTS@
@@ -95,28 +96,21 @@
cd $(SRC_BASE); $(MAKE) $@ ; cd ..
cd $(SRC_CGI); $(MAKE) $@ ; cd ..
cd $(SRC_HTM); $(MAKE) $@ ; cd ..
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(LOGDIR)
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(LOGDIR)/archives
- if [ $(INSTALLPERLSTUFF) = yes ]; then \
- $(INSTALL) -m 664 $(INSTALL_OPTS) p1.pl $(DESTDIR)$(BINDIR); \
- fi;
install-config:
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(CFGDIR)
- $(INSTALL) -m 664 $(INSTALL_OPTS) netsaint.cfg $(DESTDIR)$(CFGDIR)
- $(INSTALL) -m 664 $(INSTALL_OPTS) hosts.cfg $(DESTDIR)$(CFGDIR)
- $(INSTALL) -m 664 $(INSTALL_OPTS) commands.cfg $(DESTDIR)$(CFGDIR)
- $(INSTALL) -m 664 $(INSTALL_OPTS) nscgi.cfg $(DESTDIR)$(CFGDIR)
- $(INSTALL) -m 660 $(INSTALL_OPTS) resource.cfg $(DESTDIR)$(CFGDIR)
+ [ -d $(DESTDIR)$(SAMPDIR) ] || ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(SAMPDIR)
+ ${BSD_INSTALL_DATA} netsaint.cfg $(DESTDIR)$(SAMPDIR)
+ ${BSD_INSTALL_DATA} hosts.cfg $(DESTDIR)$(SAMPDIR)
+ ${BSD_INSTALL_DATA} commands.cfg $(DESTDIR)$(SAMPDIR)
+ ${BSD_INSTALL_DATA} nscgi.cfg $(DESTDIR)$(SAMPDIR)
+ ${BSD_INSTALL_DATA} resource.cfg $(DESTDIR)$(SAMPDIR)
install-init: install-daemoninit
install-daemoninit:
- $(INSTALL) -m 774 $(INIT_OPTS) daemon-init $(DESTDIR)$(INIT_DIR)/netsaint
+ ${BSD_INSTALL_SCRIPT} daemon-init $(DESTDIR)$(INIT_DIR)/netsaint
install-commandmode:
- $(INSTALL) -m 775 $(COMMAND_OPTS) -d $(DESTDIR)$(LOGDIR)/rw
- chmod g+s $(DESTDIR)$(LOGDIR)/rw
fullinstall: install install-init install-commandmode
|