pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/tits DESTDIR support. Fix build with netbsd-5+
details: https://anonhg.NetBSD.org/pkgsrc/rev/6de45b5b9bfb
branches: trunk
changeset: 551608:6de45b5b9bfb
user: joerg <joerg%pkgsrc.org@localhost>
date: Thu Dec 18 14:48:01 2008 +0000
description:
DESTDIR support. Fix build with netbsd-5+
diffstat:
sysutils/tits/Makefile | 20 +++++++++-----------
1 files changed, 9 insertions(+), 11 deletions(-)
diffs (43 lines):
diff -r 612ec39a578a -r 6de45b5b9bfb sysutils/tits/Makefile
--- a/sysutils/tits/Makefile Thu Dec 18 14:44:31 2008 +0000
+++ b/sysutils/tits/Makefile Thu Dec 18 14:48:01 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2008/01/05 14:12:40 rillig Exp $
+# $NetBSD: Makefile,v 1.21 2008/12/18 14:48:01 joerg Exp $
#
DISTNAME= tits-1.2.2
@@ -9,18 +9,16 @@
MAINTAINER= scw%NetBSD.org@localhost
COMMENT= Server which provides telnet(1) access to one or more tty ports
-BINDIR= ${PREFIX}/sbin
-MANDIR= ${PREFIX}/man
-MAKE_ENV+= BINDIR=${BINDIR:Q} MANDIR=${MANDIR:Q}
-MAKE_ENV+= BINOWN=${BINOWN} BINGRP=${BINGRP}
-MAKE_ENV+= MANOWN=${MANOWN} MANGRP=${MANGRP}
+PKG_DESTDIR_SUPPORT= user-destdir
+
+USE_BSD_MAKEFILE= yes
+
RCD_SCRIPTS= tits
-MANCOMPRESSED_IF_MANZ= yes
-AUTO_MKDIRS= yes
+INSTALLATION_DIRS= ${PKGMANDIR}/man8 ${PKGMANDIR}/cat8 sbin \
+ share/examples/rc.d
-pre-install:
- ${INSTALL_MAN_DIR} ${MANDIR}/cat8
+INSTALL_MAKE_FLAGS+= BINDIR=${PREFIX}/sbin
post-patch:
${MV} ${WRKSRC}/tits.8 ${WRKSRC}/tits.8.in
@@ -29,6 +27,6 @@
${WRKSRC}/tits.8.in > ${WRKSRC}/tits.8
post-install:
- ${INSTALL_DATA} ${WRKSRC}/tits.conf ${PREFIX}/share/examples/
+ ${INSTALL_DATA} ${WRKSRC}/tits.conf ${DESTDIR}${PREFIX}/share/examples/
.include "../../mk/bsd.pkg.mk"
Home |
Main Index |
Thread Index |
Old Index