summaryrefslogtreecommitdiff
path: root/sysutils/9base/patches/patch-ao
blob: 22663ecd95dbf6d3a48bb6f57e74ffc33cc6eff0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$NetBSD: patch-ao,v 1.1.1.1 2005/10/29 16:04:38 minskim Exp $

--- touch/Makefile.orig	2005-10-17 12:08:07.000000000 +0000
+++ touch/Makefile
@@ -12,12 +12,10 @@ MANFILES  = touch.1
 all: ${TARG}
 
 install: ${TARG}
-	@mkdir -p ${DESTDIR}${PREFIX}/bin
-	@cp -f ${TARG} ${DESTDIR}${PREFIX}/bin/
-	@chmod 755 ${DESTDIR}${PREFIX}/bin/${TARG}
-	@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_MAN_DIR} ${DESTDIR}${MANPREFIX}/man1
+	@${BSD_INSTALL_MAN} ${MANFILES} ${DESTDIR}${MANPREFIX}/man1
 
 uninstall:
 	@rm -f ${DESTDIR}${PREFIX}/bin/${TARG}