pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/tinydyndns Fix packaging on NetBSD: use gmake and ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/895a97c765d2
branches: trunk
changeset: 440439:895a97c765d2
user: schmonz <schmonz%pkgsrc.org@localhost>
date: Thu Oct 08 20:20:26 2020 +0000
description:
Fix packaging on NetBSD: use gmake and more of the upstream Makefile.
diffstat:
net/tinydyndns/Makefile | 19 +++++++++++++------
1 files changed, 13 insertions(+), 6 deletions(-)
diffs (44 lines):
diff -r 2aded603bd49 -r 895a97c765d2 net/tinydyndns/Makefile
--- a/net/tinydyndns/Makefile Thu Oct 08 20:12:24 2020 +0000
+++ b/net/tinydyndns/Makefile Thu Oct 08 20:20:26 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2020/10/08 17:38:38 schmonz Exp $
+# $NetBSD: Makefile,v 1.2 2020/10/08 20:20:26 schmonz Exp $
DISTNAME= tinydyndns-0.4.2
DJBDNS_DISTNAME= djbdns-1.05
@@ -17,22 +17,29 @@
DEPENDS+= daemontools-[0-9]*:../../sysutils/daemontools
WRKSRC= ${WRKDIR}/${DJBDNS_DISTNAME}
-MAKE_FILE= Makefile.tinydyndns
-BUILD_TARGET= tinydyndns
+
+USE_TOOLS+= gmake
+MAKE_FILE= Makefile.${PKGBASE}
+BUILD_TARGET= ${PKGBASE}
+INSTALL_TARGET= install-${PKGBASE}
DJB_RESTRICTED= no
SUBST_CLASSES+= djberrno
+SUBST_CLASSES+= paths
+SUBST_STAGE.paths= pre-configure
+SUBST_FILES.paths= ${MAKE_FILE}
+SUBST_SED.paths= -e 's|/usr/local/bin/|${DESTDIR}${PREFIX}/bin/|g'
+
INSTALLATION_DIRS= bin ${PKGMANDIR}/man8
post-extract:
cd ${WRKDIR} && mv ${PKGNAME_NOREV}/* ${DJBDNS_DISTNAME}
-do-install:
+post-install:
cd ${WRKSRC} && for i in conf data update; do \
- ${INSTALL_PROGRAM} tinydyndns-$$i ${DESTDIR}${PREFIX}/bin; \
- ${INSTALL_MAN} tinydyndns-$$i.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8; \
+ ${INSTALL_MAN} ${PKGBASE}-$$i.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8; \
done
.include "../../mk/djbware.mk"
Home |
Main Index |
Thread Index |
Old Index