2001-08-26 16:07:09 +00:00
|
|
|
# New ports collection makefile for: ddclient
|
|
|
|
# Date created: Sun Aug 26 14:45:12 CEST 2001
|
|
|
|
# Whom: Dirk Froemberg <dirk@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= ddclient
|
2004-11-27 05:52:15 +00:00
|
|
|
PORTVERSION= 3.6.5
|
2003-09-05 04:54:37 +00:00
|
|
|
CATEGORIES= dns
|
2004-10-28 00:04:57 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
2004-11-27 05:52:15 +00:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
2001-08-26 16:07:09 +00:00
|
|
|
|
2004-10-28 00:04:57 +00:00
|
|
|
MAINTAINER= radek@raadradd.com
|
2003-03-07 06:14:21 +00:00
|
|
|
COMMENT= Update dynamic DNS entries
|
2001-08-26 16:07:09 +00:00
|
|
|
|
|
|
|
USE_PERL5= yes
|
|
|
|
NO_BUILD= yes
|
2004-10-28 00:04:57 +00:00
|
|
|
USE_RC_SUBR= yes
|
|
|
|
|
2004-11-27 05:52:15 +00:00
|
|
|
PLIST_FILES= etc/ddclient.conf.sample \
|
|
|
|
etc/rc.d/ddclient.sh \
|
|
|
|
sbin/ddclient
|
|
|
|
|
|
|
|
PORTDOCS= COPYING COPYRIGHT Changelog README README.cisco \
|
|
|
|
sample-etc_cron.d_ddclient sample-etc_dhclient-exit-hooks \
|
|
|
|
sample-etc_dhcpc_dhcpcd-eth0.exe sample-etc_ppp_ip-up.local
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${PERL} -pi -e 's|/etc/ddclient/|${PREFIX}/etc/ddclient/|g' ${WRKSRC}/README
|
|
|
|
|
2001-08-26 16:07:09 +00:00
|
|
|
do-install:
|
2003-11-07 01:07:05 +00:00
|
|
|
@${PERL} -pi -e 's|%%PREFIX%%|${PREFIX}|g; s|%%PERL%%|${PERL}|g' ${WRKSRC}/ddclient
|
2004-10-28 00:04:57 +00:00
|
|
|
@${PERL} -pe 's|%%PREFIX%%|${PREFIX}|g; s|%%RC_SUBR%%|${RC_SUBR}|g' \
|
|
|
|
< ${FILESDIR}/ddclient.sh > ${WRKDIR}/ddclient.sh
|
2004-11-27 05:52:15 +00:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/sample-etc_ddclient.conf ${PREFIX}/etc/ddclient.conf.sample
|
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/ddclient ${PREFIX}/sbin
|
2004-10-28 00:04:57 +00:00
|
|
|
@${INSTALL_SCRIPT} ${WRKDIR}/ddclient.sh ${PREFIX}/etc/rc.d/
|
2001-08-26 16:07:09 +00:00
|
|
|
|
2004-11-27 05:52:15 +00:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
.for i in ${PORTDOCS}
|
|
|
|
@${PERL} -pe 's|%%PREFIX%%|${PREFIX}|g' < ${WRKSRC}/$i > ${WRKDIR}/$i
|
|
|
|
@${INSTALL_DATA} ${WRKDIR}/${i} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
.endif
|
2003-11-07 01:07:05 +00:00
|
|
|
@${PERL} -pe 's|/usr/local|${PREFIX}|g' < ${PKGMESSAGE}
|
2001-08-26 16:07:09 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|