blob: 5c99c5c45579dd9219c3691ebab27843d26a9d7a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
$NetBSD: patch-aa,v 1.9 2015/02/18 10:34:57 wiz Exp $
Use BSD_INSTALL_* instead of directly invoking install(1), add DESTDIR
support and install all the files in the proper locations.
--- Makefile.orig 2015-02-15 21:12:10.000000000 +0000
+++ Makefile
@@ -19,7 +19,8 @@ estd: estd.c
all: estd
install: all
- install -d -o root -g wheel -m 0755 /usr/local/sbin
- install -s -o root -g wheel -m 0755 estd /usr/local/sbin/estd
- install -d -o root -g wheel -m 0755 /usr/local/man/man1
- install -o root -g wheel -m 0644 estd.1 /usr/local/man/man1/estd.1
+ ${BSD_INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/sbin
+ ${BSD_INSTALL_PROGRAM} estd ${DESTDIR}${PREFIX}/sbin/estd
+ ${BSD_INSTALL_MAN_DIR} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+ ${BSD_INSTALL_MAN} estd.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/estd.1
+ ${BSD_INSTALL_SCRIPT} estd.sh ${DESTDIR}${PREFIX}/share/examples/rc.d/estd
|