From owner-svn-ports-all@freebsd.org Sun Jan 31 12:18:32 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D708DA73D0A; Sun, 31 Jan 2016 12:18:32 +0000 (UTC) (envelope-from marino@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 97FF5CF1; Sun, 31 Jan 2016 12:18:32 +0000 (UTC) (envelope-from marino@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u0VCIVq8040221; Sun, 31 Jan 2016 12:18:31 GMT (envelope-from marino@FreeBSD.org) Received: (from marino@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u0VCIVZ2040218; Sun, 31 Jan 2016 12:18:31 GMT (envelope-from marino@FreeBSD.org) Message-Id: <201601311218.u0VCIVZ2040218@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: marino set sender to marino@FreeBSD.org using -f From: John Marino Date: Sun, 31 Jan 2016 12:18:31 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r407618 - in head/editors/uzap: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Jan 2016 12:18:33 -0000 Author: marino Date: Sun Jan 31 12:18:31 2016 New Revision: 407618 URL: https://svnweb.freebsd.org/changeset/ports/407618 Log: editors/uzap: document ncurses reqmt (USES+=ncurses), respect LDFLAGS while here, regenerate remaining patch and rename both of them. approved by: infrastructure blanket Added: head/editors/uzap/files/patch-Makefile (contents, props changed) head/editors/uzap/files/patch-search.c (contents, props changed) Deleted: head/editors/uzap/files/patch-a head/editors/uzap/files/patch-b Modified: head/editors/uzap/Makefile Modified: head/editors/uzap/Makefile ============================================================================== --- head/editors/uzap/Makefile Sun Jan 31 12:11:03 2016 (r407617) +++ head/editors/uzap/Makefile Sun Jan 31 12:18:31 2016 (r407618) @@ -10,6 +10,8 @@ DISTNAME= ${PORTNAME} MAINTAINER= joerg@FreeBSD.org COMMENT= Visual binary file editor +USES= ncurses + # Has been posted to alt.sources in 1989 # http://www.megalextoria.com/usenet-archive/news097f1/b120/alt/sources/00000521.html NO_CDROM= This software may not be used to make a profit in any way. Added: head/editors/uzap/files/patch-Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/editors/uzap/files/patch-Makefile Sun Jan 31 12:18:31 2016 (r407618) @@ -0,0 +1,42 @@ +--- Makefile.orig 1989-03-30 18:04:11 UTC ++++ Makefile +@@ -1,26 +1,28 @@ + # Makefile for Uzap. +-BINDIR = /usr/local +-MANDIR = /usr/man/manl +-MSECT = l ++BINDIR = ${PREFIX}/bin/ ++MANDIR = ${PREFIX}/man/man1 ++MSECT = 1 ++ ++all: uzap + + uzap: uzap.o edit.o search.o screen.o +- cc -O uzap.o edit.o search.o screen.o -lcurses -ltermcap -o uzap ++ $(CC) $(CFLAGS) uzap.o edit.o search.o screen.o $(LDFLAGS) -lncurses -o uzap + + uzap.o: uzap.c +- cc -c -O uzap.c ++ $(CC) -c $(CFLAGS) uzap.c + + edit.o: edit.c +- cc -c -O edit.c ++ $(CC) -c $(CFLAGS) edit.c + + search.o: search.c +- cc -c -O search.c ++ $(CC) -c $(CFLAGS) search.c + + screen.o: screen.c +- cc -c -O screen.c ++ $(CC) -c $(CFLAGS) screen.c + + install: uzap +- install -s -m 771 uzap $(BINDIR) +- install -c -m 664 uzap.man $(MANDIR)/uzap.$(MSECT) ++ $(BSD_INSTALL_PROGRAM) uzap $(DESTDIR)$(BINDIR) ++ $(BSD_INSTALL_MAN) uzap.man $(DESTDIR)$(MANDIR)/uzap.$(MSECT) + + clean: +- rm -f *.o core uzap ++ rm -f *.o core *.core uzap Added: head/editors/uzap/files/patch-search.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/editors/uzap/files/patch-search.c Sun Jan 31 12:18:31 2016 (r407618) @@ -0,0 +1,11 @@ +--- search.c.orig 1989-03-30 18:04:12 UTC ++++ search.c +@@ -217,7 +217,7 @@ unsigned char hdigit[16], temp[128]; + } + } + for(x= 0; x < len - 1; x+= 2){ +- strcpy(hdigit, hex + (len - x - 2), 2); ++ strncpy(hdigit, hex + (len - x - 2), 2); + hdigit[2]= '\0'; + + if(hdigit[0] < 96) hdigit[0]= hdigit[0] - 48;