ports/184589: [PATCH] net/linknx: update to 0.0.1.30
Mathieu Arnold
mat at FreeBSD.org
Sun Dec 8 13:10:00 UTC 2013
>Number: 184589
>Category: ports
>Synopsis: [PATCH] net/linknx: update to 0.0.1.30
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Sun Dec 08 13:10:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Mathieu Arnold
>Release: FreeBSD 9.2-RELEASE i386
>Organization:
Absolight
>Environment:
System: FreeBSD aragorn.in.absolight.net 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255898: Fri Sep 27 03:52:52 UTC
>Description:
- Update to 0.0.1.30
- Add LUA and MySQL support
- Convert to new options framework
- Support staging
- Add LICENSE
- New LIB_DEPENDS format
If you don't have time to maintain the port further, I'll gladly take it on.
Generated with FreeBSD Port Tools 0.99_11 (mode: update, diff: SVN)
>How-To-Repeat:
>Fix:
--- linknx-0.0.1.30.patch begins here ---
Index: Makefile
===================================================================
--- Makefile (revision 335881)
+++ Makefile (working copy)
@@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= linknx
-PORTVERSION= 0.0.1.25
-PORTREVISION= 4
+PORTVERSION= 0.0.1.30
CATEGORIES= net
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
@@ -10,36 +9,43 @@
MAINTAINER= bkoenig at alpha-tierchen.de
COMMENT= Rule-based event handling in a KNX installation
-LIB_DEPENDS= pthsem.20:${PORTSDIR}/devel/pthsem
+LICENSE= GPLv2
+
+LIB_DEPENDS= libpthsem.so:${PORTSDIR}/devel/pthsem
BUILD_DEPENDS= ${LOCALBASE}/lib/libargp.a:${PORTSDIR}/devel/argp-standalone
+USES= gmake
GNU_CONFIGURE= yes
-USE_GMAKE= yes
+USE_AUTOTOOLS= autoconf
CONFIGURE_ARGS+=CFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-I${LOCALBASE}/include -L/${LOCALBASE}/lib"
-OPTIONS_DEFINE= LIBESMTP LIBCURL
+OPTIONS_DEFINE= LIBESMTP LIBCURL LIBLUA MYSQL
OPTIONS_DEFAULT= LIBESMTP
+OPTIONS_SUB=
LIBESMTP_DESC= Install libesmtp for SMTP support
LIBCURL_DESC= Install libcurl for Clickatell SMS support
+LIBLUA_DESC= Install lilua for scripting
+MYSQL_DESC= Install libmysql for logging & persist
-NO_STAGE= yes
-.include <bsd.port.pre.mk>
+LIBESMTP_CONFIGURE_ENABLE= smtp
+LIBESMTP_LIB_DEPENDS= libesmtp.so:${PORTSDIR}/mail/libesmtp
+LIBCURL_CONFIGURE_WITH= libcurl
+LIBCURL_LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl
+LIBLUA_CONFIGURE_WITH= lua
+LIBLUA_USE= lua=yes
+LIBLUA_CFLAGS= -I${LUA_INCDIR}
+LIBLUA_LDFLAGS= -L${LUA_LIBDIR}
+MYSQL_CONFIGURE_WITH= mysql=${LOCALBASE}/bin/mysql_config
+MYSQL_USE= mysql=yes
-.if ${PORT_OPTIONS:MLIBESMTP}
-CONFIGURE_ARGS+= --enable-smtp
-LIB_DEPENDS+= esmtp.7:${PORTSDIR}/mail/libesmtp
-.else
-CONFIGURE_ARGS+= --disable-smtp
-.endif
+PORTDOCS= *
-.if ${PORT_OPTIONS:MLIBCURL}
-LIB_DEPENDS+= curl:${PORTSDIR}/ftp/curl
-CONFIGURE_ARGS+= --with-libcurl=${LOCALBASE}
-.else
-CONFIGURE_ARGS+= --without-libcurl
-.endif
+PLIST_FILES= bin/linknx
USE_RC_SUBR= ${PORTNAME}
-.include <bsd.port.post.mk>
+post-patch:
+ ${REINPLACE_CMD} "s/LUAPC=lua/LUAPC=lua-${LUA_VER}/" ${WRKSRC}/configure.ac
+
+.include <bsd.port.mk>
Index: distinfo
===================================================================
--- distinfo (revision 335881)
+++ distinfo (working copy)
@@ -1,2 +1,2 @@
-SHA256 (linknx-0.0.1.25.tar.gz) = 2ad2db638d0f1542f34c0dce80ce8c5519c70cea80286d70ad7b91d923c5ff28
-SIZE (linknx-0.0.1.25.tar.gz) = 290886
+SHA256 (linknx-0.0.1.30.tar.gz) = 46e60620ad29d69bf3a1a3e9529322443c0d585e7e676ca7d441042b5fcad25e
+SIZE (linknx-0.0.1.30.tar.gz) = 327809
Index: pkg-plist
===================================================================
--- pkg-plist (revision 335881)
+++ pkg-plist (working copy)
@@ -1,4 +0,0 @@
-bin/linknx
-%%DOCSDIR%%/linknx.xml
-%%DOCSDIR%%/linknx_doc.tgz
- at dirrm %%DOCSDIR%%
--- linknx-0.0.1.30.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list