dcoppa 6b389be089 - fix permissions on the sampled config file to avoid the warning:
WARNING: file /etc/ddclient/ddclient.conf must be accessible only by its owner (fixed).

- add a runtime dep on security/p5-Digest-SHA1 to avoid the error:

FATAL: Error loading the Perl module Digest::SHA1 needed for freedns update.
FATAL: On Debian, the package libdigest-sha1-perl must be installed.

OK jung@
2013-09-18 11:38:47 +00:00

42 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.18 2013/09/18 11:38:47 dcoppa Exp $
COMMENT= Dynamic DNS service update client
DISTNAME= ddclient-3.8.1
CATEGORIES= net
REVISION = 1
HOMEPAGE= http://ddclient.sourceforge.net/
# GPL
PERMIT_PACKAGE_CDROM= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ddclient/}
RUN_DEPENDS= security/p5-Digest-SHA1 \
security/p5-IO-Socket-SSL
NO_BUILD= Yes
NO_TEST= Yes
PKG_ARCH= *
SAMPLES= sample-etc_cron.d_ddclient sample-etc_ddclient.conf \
sample-etc_dhclient-exit-hooks sample-etc_dhcpc_dhcpcd-eth0.exe \
sample-etc_ppp_ip-up.local sample-ddclient-wrapper.sh
post-extract:
@perl -pi -e "s,/var/cache/ddclient/,/var/db/ddclient/,g;" \
-e "s,/etc/ddclient/,${SYSCONFDIR}/ddclient/,g" \
${WRKSRC}/ddclient
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/ddclient ${PREFIX}/sbin/
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ddclient
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ddclient
${INSTALL_DATA} ${WRKSRC}/README* ${PREFIX}/share/doc/ddclient
.for i in ${SAMPLES}
${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/share/examples/ddclient
.endfor
.include <bsd.port.mk>