summaryrefslogtreecommitdiff
path: root/shells/9rc/patches/patch-ac
blob: 4fe526610046ac8629687e9b8b20ab241b6182c1 (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
$NetBSD: patch-ac,v 1.1.1.1 2005/10/23 20:25:50 minskim Exp $

--- rc/Makefile.orig	2005-10-17 12:08:07.000000000 +0000
+++ rc/Makefile
@@ -30,15 +30,12 @@ depend:
 	@${YACC} -d ${YFILES}
 
 install: ${TARG}
-	@mkdir -p ${DESTDIR}${PREFIX}/bin
-	@cp -f ${TARG} ${DESTDIR}${PREFIX}/bin/
-	@chmod 755 ${DESTDIR}${PREFIX}/bin/${TARG}
-	@mkdir -p ${DESTDIR}${PREFIX}/lib
-	@cp -f ${RCMAIN} ${DESTDIR}${PREFIX}/lib
-	@chmod 755 ${DESTDIR}${PREFIX}/lib/${RCMAIN}
-	@mkdir -p ${DESTDIR}${MANPREFIX}/man1
-	@cp -f ${MANFILES} ${DESTDIR}${MANPREFIX}/man1
-	@chmod 444 ${DESTDIR}${MANPREFIX}/man1/${MANFILES}
+	@${BSD_INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/bin
+	@${BSD_INSTALL_PROGRAM} ${TARG} ${DESTDIR}${PREFIX}/bin/
+	@${BSD_INSTALL_LIB_DIR} ${DESTDIR}${PREFIX}/lib
+	@${BSD_INSTALL_LIB} ${RCMAIN} ${DESTDIR}${PREFIX}/lib
+	@${BSD_INSTALL_MAN_DIR} ${DESTDIR}${MANPREFIX}/man1
+	@${BSD_INSTALL_MAN} ${MANFILES} ${DESTDIR}${MANPREFIX}/man1
 
 uninstall:
 	@rm -f ${DESTDIR}${PREFIX}/bin/${TARG}