2001-08-26 18:07:09 +02: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
|
2011-07-28 23:59:28 +02:00
|
|
|
PORTVERSION= 3.8.1
|
2003-09-05 06:54:37 +02:00
|
|
|
CATEGORIES= dns
|
2009-08-22 02:18:43 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
|
2001-08-26 18:07:09 +02:00
|
|
|
|
2011-03-10 02:20:38 +01:00
|
|
|
MAINTAINER= rfarmer@predatorlabs.net
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= Update dynamic DNS entries
|
2001-08-26 18:07:09 +02:00
|
|
|
|
2006-06-16 15:14:30 +02:00
|
|
|
.ifndef WITHOUT_SSL
|
|
|
|
RUN_DEPENDS= ${SITE_PERL}/IO/Socket/SSL.pm:${PORTSDIR}/security/p5-IO-Socket-SSL
|
|
|
|
.endif
|
|
|
|
|
2010-08-17 21:22:56 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2005-04-05 19:03:40 +02:00
|
|
|
USE_BZIP2= yes
|
2006-05-07 02:03:25 +02:00
|
|
|
USE_PERL5_RUN= yes
|
2001-08-26 18:07:09 +02:00
|
|
|
NO_BUILD= yes
|
2006-05-07 02:03:25 +02:00
|
|
|
USE_RC_SUBR= ${PORTNAME}
|
2004-10-28 02:04:57 +02:00
|
|
|
|
2010-08-17 21:22:56 +02:00
|
|
|
SUB_FILES= pkg-message ddclient_force
|
2006-05-07 02:03:25 +02:00
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
2004-11-27 06:52:15 +01:00
|
|
|
|
2006-06-16 15:14:30 +02:00
|
|
|
PORTDOCS= COPYING COPYRIGHT Changelog README README.cisco README.ssl \
|
2004-11-27 06:52:15 +01:00
|
|
|
sample-etc_cron.d_ddclient sample-etc_dhclient-exit-hooks \
|
|
|
|
sample-etc_dhcpc_dhcpcd-eth0.exe sample-etc_ppp_ip-up.local
|
|
|
|
|
|
|
|
post-patch:
|
2006-05-07 02:03:25 +02:00
|
|
|
@${GREP} -lr '/usr' ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e 's|/usr|${PREFIX}|g'
|
2007-02-18 00:05:24 +01:00
|
|
|
@${REINPLACE_CMD} \
|
|
|
|
-e 's|/tmp|/var/tmp|' \
|
2007-02-19 01:34:02 +01:00
|
|
|
-e 's|/var/cache/ddclient|/var/tmp|' \
|
2007-02-18 00:05:24 +01:00
|
|
|
-e '/PATH/s|/etc:/usr/local/lib:||' \
|
2011-03-13 15:53:21 +01:00
|
|
|
-e 's|/usr.*perl|${PERL}|g' \
|
|
|
|
-e 's|/usr/local|${LOCALBASE}|g' \
|
|
|
|
-e 's|/etc/ddclient|${PREFIX}/etc|' \
|
|
|
|
${WRKSRC}/ddclient
|
2004-11-27 06:52:15 +01:00
|
|
|
|
2001-08-26 18:07:09 +02:00
|
|
|
do-install:
|
2004-11-27 06:52:15 +01:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/sample-etc_ddclient.conf ${PREFIX}/etc/ddclient.conf.sample
|
2006-05-07 02:03:25 +02:00
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/ddclient ${PREFIX}/sbin/
|
2004-11-27 06:52:15 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2006-05-07 02:03:25 +02:00
|
|
|
@${INSTALL} -d ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
|
2004-11-27 06:52:15 +01:00
|
|
|
.endif
|
2010-08-17 21:22:56 +02:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
${MKDIR} ${PREFIX}/etc/periodic/daily
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/ddclient_force ${PREFIX}/etc/periodic/daily/ddclient_force
|
2006-05-07 02:03:25 +02:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2001-08-26 18:07:09 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|