Skip site navigation (1)Skip section navigation (2)
Date:      Sun,  6 Feb 2000 12:42:50 -0500 (EST)
From:      Will Andrews <andrews@technologist.com>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   ports/16526: new port: devel/newt
Message-ID:  <20000206174250.314DC1A0E@argon.blackdawn.com>

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

>Number:         16526
>Category:       ports
>Synopsis:       new port: devel/newt
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb  6 09:50:09 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Will Andrews
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
none
>Environment:

FreeBSD argon.blackdawn.com 4.0-CURRENT FreeBSD 4.0-CURRENT #0: Fri Jan 28 16:46:16 EST 2000     root@argon.blackdawn.com:/usr/src/sys/compile/KRYPTON  i386

>Description:

Newt is a Redhat library that does some pretty
basic console I/O.

This port requires the patch for devel/libslang
to be committed beforehand, so that libc doesn't
keep net/dhcpconf from blowing up at runtime. See
PR for devel/libslang fix.

>How-To-Repeat:

Use the shar below to add the port to tree.

>Fix:

# 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:
#
#	newt
#	newt/pkg
#	newt/pkg/COMMENT
#	newt/pkg/DESCR
#	newt/pkg/PLIST
#	newt/patches
#	newt/patches/patch-aa
#	newt/patches/patch-ab
#	newt/patches/patch-ac
#	newt/files
#	newt/files/md5
#	newt/Makefile
#
echo c - newt
mkdir -p newt > /dev/null 2>&1
echo c - newt/pkg
mkdir -p newt/pkg > /dev/null 2>&1
echo x - newt/pkg/COMMENT
sed 's/^X//' >newt/pkg/COMMENT << 'END-of-newt/pkg/COMMENT'
XConsole I/O handling library from the Redhat people
END-of-newt/pkg/COMMENT
echo x - newt/pkg/DESCR
sed 's/^X//' >newt/pkg/DESCR << 'END-of-newt/pkg/DESCR'
XThis is the Redhat newt library, a library that is
Xsimilar to (and based on) ncurses in that it does
Xspecial things with console I/O.
X
XUnfortunately, there do not seem to be any documentation
Xavailable on Redhat's website about newt.
X
X--Will <andrews@technologist.com>
END-of-newt/pkg/DESCR
echo x - newt/pkg/PLIST
sed 's/^X//' >newt/pkg/PLIST << 'END-of-newt/pkg/PLIST'
Xbin/whiptail
Xlib/python1.5/lib-dynload/_snackmodule.so
Xlib/python1.5/snack.py
Xlib/whiptcl.so
Xlib/libnewt.a
Xlib/libnewt.so
Xlib/libnewt.so.%%VERSION%%
X@exec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -m %B
X@unexec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -R
Xinclude/newt.h
END-of-newt/pkg/PLIST
echo c - newt/patches
mkdir -p newt/patches > /dev/null 2>&1
echo x - newt/patches/patch-aa
sed 's/^X//' >newt/patches/patch-aa << 'END-of-newt/patches/patch-aa'
X--- grid.c	Mon Feb  8 11:41:47 1999
X+++ grid.c.new	Sun Jan  9 01:15:24 2000
X@@ -1,4 +1,3 @@
X-#include <alloca.h>
X #include <stdlib.h>
X #include <string.h>
X 
END-of-newt/patches/patch-aa
echo x - newt/patches/patch-ab
sed 's/^X//' >newt/patches/patch-ab << 'END-of-newt/patches/patch-ab'
X--- Makefile.in	Wed Feb  2 22:18:26 2000
X+++ Makefile.in.new	Wed Feb  2 22:19:01 2000
X@@ -1,16 +1,11 @@
X-LIBS = -lslang -lm #-lefence
X-SHLIBS = -lslang -lm -lc
X+CC ?= cc
X+LIBS = -L$(PREFIX)/lib -lslang -ltcl82 -lpopt -lncurses -lm
X+SHLIBS = $(LIBS)
X 
X-GPM_SUPPORT=@gpm_support@
X+CFLAGS = $(PCFLAGS) -Wall -I$(prefix)/include -I$(prefix)/include/tcl8.2
X 
X-CFLAGS = $(RPM_OPT_FLAGS) -Wall -I/usr/include/slang
X-ifeq ($(RPM_OPT_FLAGS),)
X-CFLAGS += -g # -O2 -I/usr/include/slang
X-endif
X-
X-VERSION = @VERSION@
X-CVSTAG = r$(subst .,-,$(VERSION))
X-SONAME = @VERSION@
X+VERSION ?= 0
X+SONAME = $(VERSION)
X 
X PROGS = test whiptail whiptcl.so testgrid testtree
X TESTOBJS = test.o
X@@ -25,7 +20,7 @@
X 
X SHCFLAGS = -fPIC
X 
X-prefix = /usr
X+prefix ?= /usr/local
X includedir = $(prefix)/include
X libdir = $(prefix)/lib
X bindir = $(prefix)/bin
X@@ -49,25 +44,25 @@
X all:	$(TARGET) _snackmodule.so
X 
X test:	$(TESTOBJS) $(LIBNEWT)
X-	gcc -g -o test $(TESTOBJS) $(LIBNEWT) $(LIBS) -static
X+	$(CC) -o test $(TESTOBJS) $(LIBNEWT) $(LIBS) -static
X 
X testgrid:	testgrid.o $(LIBNEWT)
X-	gcc -g -o testgrid testgrid.o $(LIBNEWT) $(LIBS)
X+	$(CC) -o testgrid testgrid.o $(LIBNEWT) $(LIBS)
X 
X testtree:	testtree.o $(LIBNEWT)
X-	gcc -g -o testtree testtree.o $(LIBNEWT) $(LIBS)
X+	$(CC) -o testtree testtree.o $(LIBNEWT) $(LIBS)
X 
X _snackmodule.so:   snackmodule.o $(LIBNEWTSH)
X-	gcc --shared -o _snackmodule.so snackmodule.o -L . $(LIBNEWTSH)
X+	$(CC) --shared -o _snackmodule.so snackmodule.o -L . $(LIBNEWTSH)
X 
X snackmodule.o:   snackmodule.c
X-	gcc -I/usr/include/python1.5 -fPIC $(CFLAGS) -c snackmodule.c
X+	$(CC) -I$(prefix)/include/python1.5 -fPIC $(CFLAGS) -c snackmodule.c
X 
X whiptail: $(NDIALOGOBJS) $(LIBNEWTSH)
X-	gcc -g -o whiptail $(NDIALOGOBJS) -L . $(LIBNEWTSH) $(LIBS) -lpopt
X+	$(CC) -o whiptail $(NDIALOGOBJS) -L . $(LIBNEWTSH) $(LIBS)
X 
X whiptcl.so: $(WHIPTCLOBJS) $(LIBNEWTSH)
X-	gcc -shared -o whiptcl.so $(WHIPTCLOBJS) -L . $(LIBNEWTSH) -ltcl -lslang -lpopt -lm
X+	$(CC) -shared -o whiptcl.so $(WHIPTCLOBJS) -L . $(LIBNEWTSH) $(LIBS)
X 
X $(LIBNEWT): $(LIBNEWT)($(LIBOBJS))
X 
X@@ -90,7 +85,7 @@
X sharedlib: $(LIBNEWTSH)
X 
X $(LIBNEWTSH): $(SHAREDDIR) $(SHAREDOBJS)
X-	gcc -shared -o $(LIBNEWTSH) -Wl,-soname,$(LIBNEWTSONAME) $(SHAREDOBJS) $(SHLIBS)
X+	$(CC) -shared -o $(LIBNEWTSH) -Wl,-soname,$(LIBNEWTSONAME) $(SHAREDOBJS) $(SHLIBS)
X 
X $(SHAREDDIR)/%.o : %.c
X 	$(CC) $(SHCFLAGS) -c $(CFLAGS) -o $@ $<
X@@ -100,21 +95,21 @@
X 
X 
X install: $(LIBNEWT) install-sh whiptail
X-	[ -d $(instroot)/$(bindir) ] || install -m 755 -d $(instroot)/$(bindir)
X-	[ -d $(instroot)/$(libdir) ] || install -m 755 -d $(instroot)/$(libdir)
X-	[ -d $(instroot)/$(includedir) ] || install -m 755 -d $(instroot)/$(includedir)
X-	install -m 644 newt.h $(instroot)/$(includedir)
X-	install -m 644 $(LIBNEWT) $(instroot)/$(libdir)
X-	install -s -m 755 whiptail $(instroot)/$(bindir)
X+	[ -d $(bindir) ] || install -m 755 -d $(bindir)
X+	[ -d $(libdir) ] || install -m 755 -d $(libdir)
X+	[ -d $(includedir) ] || install -m 755 -d $(includedir)
X+	install -c -m 644 newt.h $(includedir)
X+	install -c -m 644 $(LIBNEWT) $(libdir)
X+	install -c -s -m 755 whiptail $(bindir)
X 
X install-sh: sharedlib whiptcl.so _snackmodule.so
X-	[ -d $(instroot)/$(libdir) ] || install -m 755 -d $(instroot)/$(libdir)
X-	install -m 755 $(LIBNEWTSH) $(instroot)/$(libdir)
X-	ln -sf $(LIBNEWTSH) $(instroot)/$(libdir)/libnewt.so
X-	install -m 755 whiptcl.so $(instroot)/$(libdir)
X-	[ -d $(instroot)/$(pythonbindir) ] || install -m 755 -d $(instroot)/$(pythonbindir)
X-	install -m 755 _snackmodule.so $(instroot)/$(pythonbindir)
X-	install -m 755 snack.py $(instroot)/$(pythondir)
X+	[ -d $(libdir) ] || install -m 755 -d $(libdir)
X+	install -c -m 755 $(LIBNEWTSH) $(libdir)
X+	ln -sf $(LIBNEWTSH) $(libdir)/libnewt.so
X+	install -c -m 755 whiptcl.so $(libdir)
X+	[ -d $(pythonbindir) ] || install -m 755 -d $(pythonbindir)
X+	install -c -m 755 _snackmodule.so $(pythonbindir)
X+	install -c -m 755 snack.py $(pythondir)
X 
X archive:
X 	@cvs tag -F $(CVSTAG)
END-of-newt/patches/patch-ab
echo x - newt/patches/patch-ac
sed 's/^X//' >newt/patches/patch-ac << 'END-of-newt/patches/patch-ac'
X--- form.c	Fri Mar  5 18:27:57 1999
X+++ form.c.new	Wed Jan 26 20:33:25 2000
X@@ -3,9 +3,7 @@
X #include <slang.h>
X #include <stdarg.h>
X #include <stdlib.h>
X-#include <sys/select.h>
X-
X-#ifdef USE_GPM
X+#include <string.h>
X #include <ctype.h>
X #include <sys/time.h>      /* timeval */
X #include <sys/types.h>     /* socket() */
X@@ -15,11 +13,8 @@
X #include <sys/stat.h>      /* stat() */
X #include <termios.h>       /* winsize */
X #include <unistd.h>
X-#include <sys/kd.h>        /* KDGETMODE */
X #include <signal.h>
X #include <stdio.h>
X-#endif
X-
X #include "newt.h"
X #include "newt_pr.h"
X 
END-of-newt/patches/patch-ac
echo c - newt/files
mkdir -p newt/files > /dev/null 2>&1
echo x - newt/files/md5
sed 's/^X//' >newt/files/md5 << 'END-of-newt/files/md5'
XMD5 (newt-0.50-13.src.rpm) = 20558ad28c9091272000192b53c435de
END-of-newt/files/md5
echo x - newt/Makefile
sed 's/^X//' >newt/Makefile << 'END-of-newt/Makefile'
X# New ports collection makefile for:	newt
X# Version required:	0.50-13
X# Date created:		08 Jan 2000
X# Whom:			Will Andrews <andrews@technologist.com>
X#
X# $FreeBSD$
X#
X
XDISTNAME=	newt-0.50-13
XPKGNAME=	newt-0.50.13
XCATEGORIES=	devel
XMASTER_SITES=	ftp://ftp.redhat.com/pub/redhat/code/newt/
XEXTRACT_SUFX=	.src.rpm
X
XMAINTAINER=	andrews@technologist.com
X
XLIB_DEPENDS=	slang.1:${PORTSDIR}/devel/libslang
XBUILD_DEPENDS=	${LOCALBASE}/bin/rpm2cpio:${PORTSDIR}/misc/rpm \
X		${LOCALBASE}/include/popt.h:${PORTSDIR}/devel/popt
X
XUSE_GMAKE=	yes
XGNU_CONFIGURE=	yes
XWRKSRC=		${WRKDIR}/newt-0.50
XVERSION=	0
XMAKE_ENV+=	prefix=${PREFIX} VERSION=${VERSION} CC=${CC} PCFLAGS="${CFLAGS}"
XPLIST_SUB+=	VERSION="${VERSION}"
XCPIO?=		/usr/bin/cpio
X
Xdo-extract:
X	@${RM} -rf ${WRKDIR}
X	@${MKDIR} ${WRKDIR}
X	@${LOCALBASE}/bin/rpm2cpio ${_DISTDIR}${DISTFILES} | (cd ${WRKDIR};${CPIO} -i)
X	@${TAR} xfz ${WRKSRC}.tar.gz -C ${WRKDIR}
X
X.include <bsd.port.mk>
END-of-newt/Makefile
exit


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


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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