pkgsrc/net/ez-ipupdate/Makefile
jperkin 5393242c73 *: Move SUBST_STAGE from post-patch to pre-configure
Performing substitutions during post-patch breaks tools such as mkpatches,
making it very difficult to regenerate correct patches after making changes,
and often leading to substituted string replacements being committed.
2018-07-04 13:40:07 +00:00

29 lines
897 B
Makefile

# $NetBSD: Makefile,v 1.9 2018/07/04 13:40:28 jperkin Exp $
DISTNAME= ez-ipupdate-3.0.11b7
PKGREVISION= 1
CATEGORIES= net
#MASTER_SITES= http://www.ez-ipupdate.com/dist/
MAINTAINER= pkgsrc-users@NetBSD.org
#HOMEPAGE= http://www.ez-ipupdate.com/
COMMENT= Client to update dynamic DNS entries
GNU_CONFIGURE= yes
EGDIR= ${PREFIX}/share/examples/ez-ipupdate
RCD_SCRIPTS= ez-ipupdate
SUBST_CLASSES+= path
SUBST_STAGE.path= pre-configure
SUBST_MESSAGE.path= Correcting paths in example scripts.
SUBST_FILES.path= example-*.conf example.conf
SUBST_SED.path= -e "s|/usr/local|${PREFIX}|g"
SUBST_SED.path+= -e "s|cache-file=/etc/|cache-file=${PKG_SYSCONFDIR}/|g"
post-install:
${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
${INSTALL_DATA} ${WRKSRC}/example.conf ${DESTDIR}${EGDIR}/ez-ipupdate.conf
${INSTALL_DATA} ${WRKSRC}/example-*.conf ${DESTDIR}${EGDIR}/
.include "../../mk/bsd.pkg.mk"