From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Sep 22 02:20:00 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id C1184F70 for ; Sun, 22 Sep 2013 02:20:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A1B6E2474 for ; Sun, 22 Sep 2013 02:20:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r8M2K0i5010122 for ; Sun, 22 Sep 2013 02:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r8M2K0N1010121; Sun, 22 Sep 2013 02:20:00 GMT (envelope-from gnats) Resent-Date: Sun, 22 Sep 2013 02:20:00 GMT Resent-Message-Id: <201309220220.r8M2K0N1010121@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jason Bacon Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id F2C7AF48 for ; Sun, 22 Sep 2013 02:16:44 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D02E82460 for ; Sun, 22 Sep 2013 02:16:44 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r8M2Gfxh078245 for ; Sun, 22 Sep 2013 02:16:41 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r8M2GeRe078244; Sun, 22 Sep 2013 02:16:40 GMT (envelope-from nobody) Message-Id: <201309220216.r8M2GeRe078244@oldred.freebsd.org> Date: Sun, 22 Sep 2013 02:16:40 GMT From: Jason Bacon To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/182288: New port: devel/lnphost X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Sep 2013 02:20:00 -0000 >Number: 182288 >Category: ports >Synopsis: New port: devel/lnphost >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Sep 22 02:20:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Jason Bacon >Release: 9.1-RELEASE >Organization: Acadix Consulting, LLC >Environment: FreeBSD oyster.jbacon.dyndns.org 9.1-RELEASE-p6 FreeBSD 9.1-RELEASE-p6 #0: Wed Aug 21 20:30:17 UTC 2013 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386 >Description: A library supporting IR communication over the Lego Mindstorms IR tower. It can be used from C programs on Posix compliant platforms, supports multiple protocols and is designed to be a replacement for lnpd. >How-To-Repeat: >Fix: Patch attached with submission follows: # 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: # # lnphost # lnphost/files # lnphost/files/patch-Makefile # lnphost/files/patch-Include-lnphost.h # lnphost/distinfo # lnphost/pkg-descr # lnphost/Makefile # echo c - lnphost mkdir -p lnphost > /dev/null 2>&1 echo c - lnphost/files mkdir -p lnphost/files > /dev/null 2>&1 echo x - lnphost/files/patch-Makefile sed 's/^X//' >lnphost/files/patch-Makefile << '9288736519522fc2df49ac9477101129' X--- Makefile.orig Fri Mar 18 10:20:31 2005 X+++ Makefile Thu Sep 13 21:14:41 2007 X@@ -8,16 +8,20 @@ X endif X X PROGRAMS=$(patsubst %.c,%$(EXT),$(wildcard *.c)) X-BINDIR=/usr/local/bin X-MANDIR=/usr/share/man/man1 X+LIBS=lnphost.a X X-all: $(PROGRAMS) X+BINDIR=${PREFIX}/bin X+MANDIR=${PREFIX}/man/man1 X+LIBDIR=${PREFIX}/lib X+INCDIR=${PREFIX}/include X+ X+all: $(PROGRAMS) $(LIBS) X X clean: X- make -C Docs clean X- rm -f *~ */*~ X- rm -f $(patsubst %.c,%.o,$(wildcard Modules/*.c)) X- rm -f $(patsubst %.c,%$(EXT),$(wildcard *.c)) X+ ${MAKE} -C Docs clean X+ ${RM} -f *~ */*~ X+ ${RM} -f $(patsubst %.c,%.o,$(wildcard Modules/*.c)) X+ ${RM} -f $(patsubst %.c,%$(EXT),$(wildcard *.c)) X X needroot: X @if [ ! $$UID -eq 0 ]; then \ X@@ -26,21 +30,27 @@ X fi X X install: all needroot X- make -C Docs all X- install -g root -o root -m 644 Docs/lnpdump.1.gz $(MANDIR) X- install -g root -o root -m 755 lnpdump$(EXT) $(BINDIR) X+ ${MAKE} -C Docs all X+ install -g 0 -o 0 -m 644 Docs/lnpdump.1 $(MANDIR) X+ install -g 0 -o 0 -m 755 lnpdump$(EXT) $(BINDIR) X+ install -g 0 -o 0 -m 0644 lnphost.a $(LIBDIR) X+ install -g 0 -o 0 -m 0644 Include/lnphost.h $(INCDIR) X X remove: needroot X- rm -f $(MANDIR)/lnpdump.1.gz X- rm -f $(BINDIR)/lnpdump$(EXT) X+ ${RM} -f $(MANDIR)/lnpdump.1.gz X+ ${RM} -f $(BINDIR)/lnpdump$(EXT) X+ ${RM} -f $(LIBDIR)/lnphost.a X+ ${RM} -f $(INCDIR)/lnphost.h X X-lnpdump$(EXT): lnpdump.c Modules/getopt.o Modules/lnphost.o X+lnpdump$(EXT): lnpdump.c Modules/lnphost.o X $(CC) $(CFLAGS) -Wall -IInclude -o $@ $+ -lpthread X X Modules/%.o: Modules/%.c Include/%.h X $(CC) $(CFLAGS) -Wall -IInclude -c -o $@ $< X X X-posrecv$(EXT): posrecv.c Modules/getopt.o Modules/lnphost.o X+posrecv$(EXT): posrecv.c Modules/lnphost.o X $(CC) $(CFLAGS) -Wall -IInclude -o $@ $+ -lpthread X X+lnphost.a: Modules/lnphost.o X+ $(AR) r lnphost.a Modules/lnphost.o 9288736519522fc2df49ac9477101129 echo x - lnphost/files/patch-Include-lnphost.h sed 's/^X//' >lnphost/files/patch-Include-lnphost.h << 'bafc936405c10e840069c8381db560e1' X--- Include/lnphost.h.orig Sat Nov 20 14:22:00 2004 X+++ Include/lnphost.h Thu Sep 13 22:22:20 2007 X@@ -21,6 +21,8 @@ X X #if defined(LINUX) || defined(linux) X #define LNP_DEFAULTDEVICE "/dev/ttyS0" X+#elif defined (__FreeBSD__) X+#define LNP_DEFAULTDEVICE "/dev/cuad0" X #elif defined (__CYGWIN__) || (_WIN32) X #define LNP_DEFAULTDEVICE "com1" X #else bafc936405c10e840069c8381db560e1 echo x - lnphost/distinfo sed 's/^X//' >lnphost/distinfo << 'e7ee3822d821a8e1b567c60d0cfe4523' XSHA256 (lnphost-1.0a.zip) = 194aa84b926b6b2a742184d45ad88ef3e8c6976ad28fdfb8cea1ed69cc236641 XSIZE (lnphost-1.0a.zip) = 30007 e7ee3822d821a8e1b567c60d0cfe4523 echo x - lnphost/pkg-descr sed 's/^X//' >lnphost/pkg-descr << '2f7149813820f116da0916781095db52' XA library supporting IR communication over the Lego Mindstorms IR tower. It Xcan be used from C programs on Posix compliant platforms, supports multiple Xprotocols and is designed to be a replacement for lnpd. X XWWW: http://sourceforge.net/projects/lnphost/?source=directory 2f7149813820f116da0916781095db52 echo x - lnphost/Makefile sed 's/^X//' >lnphost/Makefile << 'b7c154e6919b02cdc220117c10b5cebf' X# Created by: Jason Bacon X# $FreeBSD$ X XPORTNAME= lnphost XPORTVERSION= 1.0a XCATEGORIES= devel XMASTER_SITES= SF X XMAINTAINER= jwbacon@tds.net XCOMMENT= Lego RCX iinfrared communication API X XLICENSE= GPLv2 X XUSE_ZIP= yes XUSE_GMAKE= yes XWRKSRC= ${WRKDIR}/lnphost XCFLAGS+= -DHAVE_STRING_H X XPLIST_FILES= bin/lnpdump \ X lib/lnphost.a \ X include/lnphost.h X XMAN1= lnpdump.1 X X# Use system getopt Xpost-patch: X ${RM} ${WRKSRC}/Include/getopt.h ${WRKSRC}/Modules/getopt.c X X.include b7c154e6919b02cdc220117c10b5cebf exit >Release-Note: >Audit-Trail: >Unformatted: