From 2862ad2978f987fea83c7da3a19ac2ee1d438b9c Mon Sep 17 00:00:00 2001 From: joerg Date: Wed, 27 Jan 2010 14:53:31 +0000 Subject: DESTDIR support --- shells/nologinmsg/Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'shells/nologinmsg') diff --git a/shells/nologinmsg/Makefile b/shells/nologinmsg/Makefile index 5e8ca831c5a..5bd08a9f741 100644 --- a/shells/nologinmsg/Makefile +++ b/shells/nologinmsg/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.12 2007/09/08 21:57:13 jlam Exp $ +# $NetBSD: Makefile,v 1.13 2010/01/27 14:54:06 joerg Exp $ DISTNAME= nologinmsg-1.0 PKGREVISION= 2 @@ -9,6 +9,8 @@ MAINTAINER= cjep@NetBSD.org #HOMEPAGE= COMMENT= More functional native binary replacement for /sbin/nologin +PKG_DESTDIR_SUPPORT= user-destdir + USE_FEATURES= getprogname SUBST_CLASSES+= nlm @@ -23,8 +25,8 @@ do-build: -o nologinmsg nologinmsg.c ${LIBS} do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/nologinmsg ${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/nologinmsg.8 ${PREFIX}/${PKGMANDIR}/man8 + ${INSTALL_PROGRAM} ${WRKSRC}/nologinmsg ${DESTDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/nologinmsg.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8 .include "../../devel/sysexits/buildlink3.mk" .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3