summaryrefslogtreecommitdiff
path: root/chat/ircII/patches/patch-ac
blob: 12652f100f7d519c26b1cbc40f129337500f9226 (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
$NetBSD: patch-ac,v 1.3 2006/07/22 09:13:11 mrg Exp $

--- Makefile.in.orig	2005-09-21 13:02:59.000000000 -0700
+++ Makefile.in	2006-07-22 00:13:12.000000000 -0700
@@ -137,8 +137,8 @@
 CP = cp
 MV = mv
 SED = sed
-INSTALL = $(topdir)/bsdinstall -c -m 755
-INSTALL_DATA = $(topdir)/bsdinstall -c -m 644
+INSTALL = $(BSD_INSTALL_PROGRAM)
+INSTALL_DATA = $(BSD_INSTALL_DATA)
 
 VERSION = @VERSION@
 
@@ -159,11 +159,9 @@
 
 installirc: irc installdirs
 	$(INSTALL) irc $(INSTALL_IRC)-$(VERSION)
-	$(INSTALL) ircbug $(bindir)/ircbug
-	@if test -f $(INSTALL_IRC).old; then $(RM) $(INSTALL_IRC).old; fi
-	@if test -f $(INSTALL_IRC); then $(MV) $(INSTALL_IRC) $(INSTALL_IRC).old; fi
+	$(BSD_INSTALL_SCRIPT) ircbug $(bindir)/ircbug
 	$(RM) $(INSTALL_IRC)
-	$(LN) $(INSTALL_IRC_NAME)-$(VERSION) $(INSTALL_IRC)
+	cd ${bindir}; $(LN) irc-$(VERSION) irc
 
 installscript: installdirs
 	(								\
@@ -203,7 +201,7 @@
 #	$(INSTALL_DATA) $(topdir)/doc/query-pr.1 $(mandir)
 
 installdirs:
-	umask 022; $(topdir)/mkinstalldirs $(IRCLIB) $(bindir) $(mandir) \
+	$(topdir)/mkinstalldirs $(IRCLIB) $(bindir) $(mandir) \
 		$(INSTALL_SCRIPT) $(HELP_DIR)
 
 clena clean: