Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Oct 2008 21:16:24 +0200 (CEST)
From:      Björn König <bkoenig@alpha-tierchen.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/128320: New port: net/linknx
Message-ID:  <20081023191624.E07E2289D6@home.alpha-tierchen.de>
Resent-Message-ID: <200810231920.m9NJK2Fn081059@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         128320
>Category:       ports
>Synopsis:       New port: net/linknx
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 23 19:20:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Björn König
>Release:        
>Organization:
>Environment:
>Description:
	From pkg-descr:

	LinKNX is a backend for controlling a KNX/EIB home and building automation
	system. It connects to eibd which is part of the BCU SDK and keeps state of
	KNX devices such as lamps, window blinds, heating and so on.
	Furthermore it provides a powerful, rule-based event after treatment, e.g.
	for switching other KNX devices, sending e-mail or SMS or executing a shell
	command. You can configure and control the LinKNX daemon using an XML-style
	protocol via TCP network socket or Unix domain socket.

	WWW: http://linknx.sourceforge.net/

>How-To-Repeat:
>Fix:

--- ports-net-linknx.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	ports/net/linknx
#	ports/net/linknx/Makefile
#	ports/net/linknx/distinfo
#	ports/net/linknx/files
#	ports/net/linknx/files/linknx.in
#	ports/net/linknx/files/patch-src_eibclient.c
#	ports/net/linknx/pkg-descr
#	ports/net/linknx/pkg-plist
#
echo c - ports/net/linknx
mkdir -p ports/net/linknx > /dev/null 2>&1
echo x - ports/net/linknx/Makefile
sed 's/^X//' >ports/net/linknx/Makefile << 'cb3d2223c52cb34b8b3817a3ed159ea7'
X# New ports collection makefile for:	linknx
X# Date Created:				23 October 2008
X# Whom:					Björn König <bkoenig@alpha-tierchen.de>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	linknx
XPORTVERSION=	0.0.1.25
XCATEGORIES=	net
XMASTER_SITES=	SF
X
XMAINTAINER=	bkoenig@alpha-tierchen.de
XCOMMENT=	Rule-based event handling in a KNX installation
X
XLIB_DEPENDS=	pthsem.20:${PORTSDIR}/devel/pthsem
XBUILD_DEPENDS=	${LOCALBASE}/lib/libargp.a:${PORTSDIR}/devel/argp-standalone
X
XGNU_CONFIGURE=	yes
XUSE_GMAKE=	yes
XCONFIGURE_ARGS+=CFLAGS="-I${LOCALBASE}/include" \
X		LDFLAGS="-I${LOCALBASE}/include -L/${LOCALBASE}/lib"
X
XOPTIONS=	LIBESMTP "Install libesmtp for SMTP support" on \
X		LIBCURL "Install libcurl for Clickatell SMS support" off
X
X.include <bsd.port.pre.mk>
X
X.if (defined(WITH_LIBESMTP) || exists(${LOCALBASE}/include/libesmtp.h))
XCONFIGURE+=	--enable-smtp
XLIB_DEPENDS+=	esmtp.6:${PORTSDIR}/mail/libesmtp
X.endif
X
X.if (defined(WITH_LIBCURL) || exists(${LOCALBASE}/lib/libcurl.so))
XLIB_DEPENDS+=	curl.4:${PORTSDIR}/ftp/curl
X.endif
X
XUSE_RC_SUBR=	${PORTNAME}
X
X.include <bsd.port.post.mk>
cb3d2223c52cb34b8b3817a3ed159ea7
echo x - ports/net/linknx/distinfo
sed 's/^X//' >ports/net/linknx/distinfo << 'ca428fe728c029da9459a6e2c8f331c9'
XSHA256 (linknx-0.0.1.25.tar.gz) = 2ad2db638d0f1542f34c0dce80ce8c5519c70cea80286d70ad7b91d923c5ff28
XMD5 (linknx-0.0.1.25.tar.gz) = 2e85192b5d482e301da35afb8e67c68a
XSIZE (linknx-0.0.1.25.tar.gz) = 290886
ca428fe728c029da9459a6e2c8f331c9
echo c - ports/net/linknx/files
mkdir -p ports/net/linknx/files > /dev/null 2>&1
echo x - ports/net/linknx/files/linknx.in
sed 's/^X//' >ports/net/linknx/files/linknx.in << '5e77ac0b72697f7410b6fd3fdf8cff85'
X#!/bin/sh
X#
X# $FreeBSD$
X#
X
X# PROVIDE: linknx
X# REQUIRE: DAEMON
X
X#
X# linknx_enable (bool):		Set to "NO" by default.	Set it
X#				to "YES" to enable linknx.
X#
X# linknx_console (str):		The output of the daemon goes to this
X#				file. It is set to "/var/log/linknx.log"
X#				by default. Set it to "" to disable it.
X#				Recommended for production use.
X#
X# linknx_config (str):		The default configuration file. By default
X#				there is no configuration file set.
X#
X
X
X. "%%RC_SUBR%%"
X
Xname="linknx"
Xrcvar=`set_rcvar`
X
Xstart_precmd="linknx_precmd"
X
X: ${linknx_enable:="NO"}
X: ${linknx_console:="/var/log/linknx.log"}
X: ${linknx_config:=""}
X: ${linknx_pidfile:="/var/run/linknx.pid"}
X: ${linknx_flags:="--pid-file=${linknx_pidfile}"}
X
Xcommand="/usr/local/bin/$name"
Xpidfile=${linknx_pidfile}
X
Xload_rc_config "$name"
X
Xlinknx_precmd()
X{
X	if [ -f "${linknx_console}" ]; then
X		echo "----------------" `date` "----------------" >> ${linknx_console}
X	fi
X}
X
Xif [ "x${linknx_console}" != "x" ]; then
X	linknx_flags="${linknx_flags} --daemon=${linknx_console}"
Xelse
X	linknx_flags="${linknx_flags} --daemon"
Xfi
X
Xif [ "x${linknx_config}" != "x" ]; then
X	linknx_flags="${linknx_flags} --config=${linknx_config}"
Xfi
X
Xrun_rc_command "$1"
5e77ac0b72697f7410b6fd3fdf8cff85
echo x - ports/net/linknx/files/patch-src_eibclient.c
sed 's/^X//' >ports/net/linknx/files/patch-src_eibclient.c << 'f2fc583b470208323e4a7b7b56bd649b'
X--- src/eibclient.c.orig	2007-12-29 22:23:06.000000000 +0100
X+++ src/eibclient.c	2008-10-23 20:15:56.000000000 +0200
X@@ -32,6 +32,7 @@
X #include <netinet/in.h>
X #include <netdb.h>
X #include <errno.h>
X+#include <string.h>
X 
X #include "config.h"
X 
f2fc583b470208323e4a7b7b56bd649b
echo x - ports/net/linknx/pkg-descr
sed 's/^X//' >ports/net/linknx/pkg-descr << 'e6ffb8228bf9d69f9a91762ba897a069'
XLinKNX is a backend for controlling a KNX/EIB home and building automation
Xsystem. It connects to eibd which is part of the BCU SDK and keeps state of
XKNX devices such as lamps, window blinds, heating and so on.
XFurthermore it provides a powerful, rule-based event after treatment, e.g.
Xfor switching other KNX devices, sending e-mail or SMS or executing a shell
Xcommand. You can configure and control the LinKNX daemon using an XML-style
Xprotocol via TCP network socket or Unix domain socket.
X
XWWW: http://linknx.sourceforge.net/
e6ffb8228bf9d69f9a91762ba897a069
echo x - ports/net/linknx/pkg-plist
sed 's/^X//' >ports/net/linknx/pkg-plist << '1999972d256fb28e02ccaa858807b023'
Xbin/linknx
X%%DOCSDIR%%/linknx.xml
X%%DOCSDIR%%/linknx_doc.tgz
X@dirrm %%DOCSDIR%%
1999972d256fb28e02ccaa858807b023
exit
--- ports-net-linknx.shar ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081023191624.E07E2289D6>