pkgsrc/sysutils/osname/patches/patch-aa
obache 3f346d7a40 * Use *__MAKE_FLAGS instead of *_TARGET for pass variables.
* Honor PKGMANDIR.
* Add DESTDIR support.

Bump PKGREVISION.
2007-12-27 11:55:51 +00:00

15 lines
434 B
Text

$NetBSD: patch-aa,v 1.2 2007/12/27 11:55:51 obache Exp $
--- Makefile.orig 1999-07-05 04:55:02.000000000 +0000
+++ Makefile
@@ -7,8 +7,8 @@ CMD=osname
all: $(CMD)
install: $(CMD)
- install -c $(CMD) ${PREFIX}/bin/$(CMD)
- install -m 664 $(CMD).1 ${PREFIX}/man/man1
+ ${BSD_INSTALL_SCRIPT} $(CMD) ${DESTDIR}${PREFIX}/bin/$(CMD)
+ ${BSD_INSTALL_MAN} $(CMD).1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/$(CMD).1
clean:
rm -f $(CMD)