diff options
author | miwi <miwi@FreeBSD.org> | 2006-11-15 21:23:52 +0000 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2006-11-15 21:23:52 +0000 |
commit | f4ee770bcf2243024fa8181dcb1f7094323854ec (patch) | |
tree | 0a8fbd9376ebef878650ff441508db37dfe9f4b3 /dns/opendd/Makefile | |
parent | a4737ceccb7b14499bdb2efeefe6c6aec95d9e39 (diff) | |
download | FreeBSD-ports-f4ee770bcf2243024fa8181dcb1f7094323854ec.zip FreeBSD-ports-f4ee770bcf2243024fa8181dcb1f7094323854ec.tar.gz |
OpenDD is a DynDNS client, written in C, and especially designed
for small gateway machines, like a Soekris box. Its main feature
is that it does not require any Perl or Python interpreter.
It supports HTTPS, can send a mail report, and can run as daemon.
It is also very easy to deploy.
WWW: http://www.bsdmon.com/wakka/OpenDD
PR: ports/105434
Submitted by: Alexander Logvinov <ports at logvinov.com>
Diffstat (limited to 'dns/opendd/Makefile')
-rw-r--r-- | dns/opendd/Makefile | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/dns/opendd/Makefile b/dns/opendd/Makefile new file mode 100644 index 0000000..a971c82 --- /dev/null +++ b/dns/opendd/Makefile @@ -0,0 +1,74 @@ +# New ports collection makefile for: opendd +# Date created: 11 November 2006 +# Whom: Alexander Logvinov <ports@logvinov.com> +# +# $FreeBSD$ + +PORTNAME= opendd +PORTVERSION= 0.7.7 +CATEGORIES= dns +MASTER_SITES= http://www.bsdmon.com/download/ +DISTNAME= ${PORTNAME}.${PORTVERSION} + +MAINTAINER= ports@logvinov.com +COMMENT= A small DynDNS client + +OPTIONS= OPENDD_SSL "Build with SSL support" off \ + RC_NG "Install RC_NG script" on + +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} +PORTDOCS= COPYING COPYRIGHT README +PLIST_FILES= sbin/${PORTNAME} \ + "@unexec if cmp -s %D/etc/${PORTNAME}/${PORTNAME}.conf %D/etc/${PORTNAME}/${PORTNAME}.conf.default; then ${RM} -f %D/etc/${PORTNAME}/${PORTNAME}.conf; fi " \ + "etc/${PORTNAME}/${PORTNAME}.conf.default" \ + "etc/${PORTNAME}/${PORTNAME}.pem" \ + "@dirrmtry etc/${PORTNAME}" + +.include <bsd.port.pre.mk> + +.if defined(WITH_RC_NG) +USE_RC_SUBR= opendd +.endif + +.if defined(WITH_OPENDD_SSL) && !defined(WITHOUT_SSL) +.include "${PORTSDIR}/Mk/bsd.openssl.mk" +CFLAGS+= -I${OPENSSLINC} +LDFLAGS+= -L${OPENSSLLIB} +MAKE_ENV+= "USE_SOCKET_SSL=yes" +.endif + +pre-patch: + @${MV} ${WRKDIR}/${PORTNAME} ${WRKDIR}/${PORTNAME}-${PORTVERSION} + +post-patch: +.if defined(WITH_OPENDD_SSL) && !defined(WITHOUT_SSL) + @${REINPLACE_CMD} 's|use_ssl = 0|use_ssl = 1|' ${WRKSRC}/${PORTNAME}.conf + @${REINPLACE_CMD} -e "s|^FLAGS =|FLAGS = ${CFLAGS}|" ${WRKSRC}/Makefile +.endif +.for i in ${PORTNAME}.conf globals.h + @${REINPLACE_CMD} 's|/etc/${PORTNAME}.pem|${PREFIX}/etc/${PORTNAME}/${PORTNAME}.pem|' \ + ${WRKSRC}/${i} +.endfor + @${REINPLACE_CMD} 's|/etc/${PORTNAME}.conf|${PREFIX}/etc/${PORTNAME}/${PORTNAME}.conf|' \ + ${WRKSRC}/globals.h +.if defined(WITH_RC_NG) + @${REINPLACE_CMD} 's|runasdaemon = 0|runasdaemon = 1|' ${WRKSRC}/${PORTNAME}.conf +.endif + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/sbin + @${MKDIR} ${PREFIX}/etc/${PORTNAME} + ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf ${PREFIX}/etc/${PORTNAME}/${PORTNAME}.conf.default + ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.pem ${PREFIX}/etc/${PORTNAME}/ +.if !exists(${PREFIX}/etc/${PORTNAME}/${PORTNAME}.conf) + ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf ${PREFIX}/etc/${PORTNAME}/ +.endif + @${CHMOD} 600 ${PREFIX}/etc/${PORTNAME}/*.conf +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} +.for i in ${PORTDOCS} + ${INSTALL_DATA} -p ${WRKSRC}/${i} ${DOCSDIR} +.endfor +.endif + +.include <bsd.port.post.mk> |