1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/dns/inadyn-mt/Makefile
William Grzybowski 6495991912 dns/inadyn-mt: fix wrong install path
- Fix wrong install path

PR:		ports/183014
2013-10-16 12:16:14 +00:00

54 lines
1.3 KiB
Makefile

# Created by: William Grzybowski <william88@gmail.com>
# $FreeBSD$
PORTNAME= inadyn-mt
PORTVERSION= 02.24.38
CATEGORIES= dns
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}.v.${PORTVERSION}/
DISTNAME= ${PORTNAME}.v.${PORTVERSION}
MAINTAINER= wg@FreeBSD.org
COMMENT= Simple dynamic dns client
LICENSE= GPLv3
USE_AUTOTOOLS= autoconf
USE_RC_SUBR= inadyn-mt
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-sound
MAKE_ARGS+= 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 \
man/man5/inadyn-mt.conf.5.gz \
man/man8/inadyn-mt.8.gz
OPTIONS_DEFINE= DOCS EXAMPLES
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g" \
${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} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/inadyn-mt.conf ${STAGEDIR}${EXAMPLESDIR}
.endif
.include <bsd.port.mk>