blob: b2a5db3e6d9cd0437d1e2c845d6677c267d83931 (
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
|
--- Makefile.orig 2012-12-02 09:55:11.000000000 +0200
+++ Makefile 2012-12-10 13:05:11.000000000 +0200
@@ -16,9 +16,9 @@
DOCS = LICENSE README INSTALL TODO ChangeLog README.Gophermap gophertag
INSTALL = PATH=$$PATH:/usr/sbin ./install-sh -o 0 -g 0
-DESTDIR = /usr
-SBINDIR = $(DESTDIR)/sbin
-DOCDIR = $(DESTDIR)/share/doc/$(PACKAGE)
+DESTDIR =
+SBINDIR = $(DESTDIR)/usr/sbin
+DOCDIR = $(DESTDIR)/usr/doc/$(PACKAGE)-$(VERSION)
ROOT = /var/gopher
OSXROOT = /Library/GopherServer
@@ -144,11 +144,9 @@
@echo
install-root:
- if [ ! -d "$(ROOT)" ]; then \
- mkdir -p $(ROOT); \
- $(INSTALL) -m 644 $(MAP) $(ROOT); \
- ln -s $(DOCDIR) $(ROOT)/docs; \
- fi
+ mkdir -p $(DESTDIR)/$(ROOT)
+ $(INSTALL) -m 644 $(MAP) $(DESTDIR)/$(ROOT)
+ ln -s /usr/doc/$(PACKAGE)-$(VERSION) $(DESTDIR)/$(ROOT)/docs
@echo
install-inetd:
@@ -166,10 +164,8 @@
@echo
install-xinetd:
- if [ -d "$(XINETD)" -a ! -f "$(XINETD)/$(NAME)" ]; then \
- sed -e "s/@HOSTNAME@/`hostname`/g" $(NAME).xinetd > $(XINETD)/$(NAME); \
- [ -x /sbin/service ] && /sbin/service xinetd reload; \
- fi
+ mkdir -p $(DESTDIR)/$(XINETD)
+ sed -e "s/@HOSTNAME@/`hostname`/g" $(NAME).xinetd > $(DESTDIR)/$(XINETD)/$(NAME).new
@echo
install-osx:
|