summaryrefslogtreecommitdiff
path: root/net/ez-ipupdate/Makefile
blob: 2ac016295e71a72b57b3c29e628788e4bd5593e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# $NetBSD: Makefile,v 1.1.1.1 2005/12/28 15:50:35 ghen Exp $

DISTNAME=		ez-ipupdate-3.0.11b7
CATEGORIES=		net
MASTER_SITES=		http://www.ez-ipupdate.com/dist/

MAINTAINER=		ghen@NetBSD.org
HOMEPAGE=		http://www.ez-ipupdate.com/
COMMENT=		Client to update dynamic DNS entries

GNU_CONFIGURE=		yes
USE_PKGINSTALL=		yes

EGDIR=			${PREFIX}/share/examples/ez-ipupdate
RCD_SCRIPTS=		ez-ipupdate

SUBST_CLASSES+=		path
SUBST_STAGE.path=	post-patch
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} ${EGDIR}
	${INSTALL_DATA} ${WRKSRC}/example.conf ${EGDIR}/ez-ipupdate.conf
	${INSTALL_DATA} ${WRKSRC}/example-*.conf ${EGDIR}/

.include "../../mk/bsd.pkg.mk"