pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/skill user-destdir support



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2eb0be1fc3fe
branches:  trunk
changeset: 561134:2eb0be1fc3fe
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Tue Jul 07 19:58:19 2009 +0000

description:
user-destdir support

diffstat:

 sysutils/skill/Makefile |  16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)

diffs (37 lines):

diff -r 57be04576f92 -r 2eb0be1fc3fe sysutils/skill/Makefile
--- a/sysutils/skill/Makefile   Tue Jul 07 19:56:53 2009 +0000
+++ b/sysutils/skill/Makefile   Tue Jul 07 19:58:19 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.24 2007/10/28 02:18:08 obache Exp $
+# $NetBSD: Makefile,v 1.25 2009/07/07 19:58:19 joerg Exp $
 #
 
 DISTNAME=      skill-4.1.4
@@ -10,6 +10,8 @@
 HOMEPAGE=      http://mysite.verizon.net/jforys/jeffware.html
 COMMENT=       Signal processes given user names, ttys, commands, or pids
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 NOT_FOR_PLATFORM+= Interix-*-* # currently no machdep support
 
 .include "../../mk/bsd.prefs.mk"
@@ -39,11 +41,13 @@
 MAKE_ENV+=     OSTYPE=hpux-10
 .endif
 
+INSTALLATION_DIRS=     bin ${PKGMANDIR}/man1
+
 pre-install:
-       ${INSTALL_PROGRAM} ${WRKSRC}/skill ${PREFIX}/bin
-       ${INSTALL_MAN} ${WRKSRC}/skill.1 ${PREFIX}/${PKGMANDIR}/man1
-       ${RM} -f ${PREFIX}/bin/snice ${PREFIX}/${PKGMANDIR}/man1/snice.1
-       ${LN} -s skill ${PREFIX}/bin/snice
-       ${LN} -s skill.1 ${PREFIX}/${PKGMANDIR}/man1/snice.1
+       ${INSTALL_PROGRAM} ${WRKSRC}/skill ${DESTDIR}${PREFIX}/bin
+       ${INSTALL_MAN} ${WRKSRC}/skill.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+       ${RM} -f ${DESTDIR}${PREFIX}/bin/snice ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/snice.1
+       ${LN} -s skill ${DESTDIR}${PREFIX}/bin/snice
+       ${LN} -s skill.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/snice.1
 
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index