aboutsummaryrefslogtreecommitdiffstats
path: root/dns
diff options
context:
space:
mode:
authorwg <wg@FreeBSD.org>2013-09-25 00:45:28 +0800
committerwg <wg@FreeBSD.org>2013-09-25 00:45:28 +0800
commit27a472aceb9675d61d89eaaa201da1a387dad826 (patch)
treea68d0e101fd14fb19bd3adb7494fa61ba78d8613 /dns
parent3f0bc97f256403cf0d944ec9de285c2cd1c8194b (diff)
downloadfreebsd-ports-gnome-27a472aceb9675d61d89eaaa201da1a387dad826.tar.gz
freebsd-ports-gnome-27a472aceb9675d61d89eaaa201da1a387dad826.tar.zst
freebsd-ports-gnome-27a472aceb9675d61d89eaaa201da1a387dad826.zip
dns/inadyn-mt: allow staging
- Allow stating
Diffstat (limited to 'dns')
-rw-r--r--dns/inadyn-mt/Makefile21
1 files changed, 12 insertions, 9 deletions
diff --git a/dns/inadyn-mt/Makefile b/dns/inadyn-mt/Makefile
index b63e8c215b87..886b2fcf9d0d 100644
--- a/dns/inadyn-mt/Makefile
+++ b/dns/inadyn-mt/Makefile
@@ -12,24 +12,24 @@ COMMENT= Simple dynamic dns client
LICENSE= GPLv3
+USE_AUTOTOOLS= autoconf
USE_RC_SUBR= inadyn-mt
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-sound
-
-MAN8= inadyn-mt.8
-MAN5= inadyn-mt.conf.5
+CONFIGURE_ENV+= INSTALL_PREFIX="${STAGEDIR}${PREFIX}/etc"
PORTDOCS= readme.html AUTHORS README
PORTEXAMPLES= *
PLIST_DIRS= etc/inadyn-mt/lang
PLIST_DIRSTRY= etc/inadyn-mt
-PLIST_FILES= bin/inadyn-mt etc/inadyn-mt/lang/en.lng
+PLIST_FILES= bin/inadyn-mt etc/inadyn-mt/lang/en.lng \
+ man/man5/inadyn-mt.conf.5.gz \
+ man/man8/inadyn-mt.8.gz
OPTIONS_DEFINE= DOCS EXAMPLES
-NO_STAGE= yes
.include <bsd.port.options.mk>
post-patch:
@@ -37,14 +37,17 @@ post-patch:
${WRKSRC}/man/inadyn-mt.8 ${WRKSRC}/readme.html \
${WRKSRC}/src/dyndns.h
+pre-configure:
+ @${REINPLACE_CMD} -e "s,INSTALL_PREFIX=.*,,g" ${WRKSRC}/configure.ac
+
post-install:
.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
- @${MKDIR} ${EXAMPLESDIR}
- ${INSTALL_DATA} ${WRKSRC}/inadyn-mt.conf ${EXAMPLESDIR}
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/inadyn-mt.conf ${STAGEDIR}${EXAMPLESDIR}
.endif
.include <bsd.port.mk>