Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 May 2002 09:28:23 -0700 (PDT)
From:      Martin Perry <martin@raq.cx>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/37861: Update port: converters/btoa: Invalid distfiles & others
Message-ID:  <200205081628.g48GSNwk099143@nwww.freebsd.org>

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

>Number:         37861
>Category:       ports
>Synopsis:       Update port: converters/btoa: Invalid distfiles & others
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 08 09:30:14 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Martin Perry
>Release:        FreeBSD 4.5-RELEASE-p4
>Organization:
>Environment:
FreeBSD dream.raq.cx 4.5-RELEASE-p4 FreeBSD 4.5-RELEASE-p4 #4:   Mon Apr 22 23:45:56 BST 2002     martin@dream.raq.cx:/usr/obj/usr/src/sys/GENERIC  i386
 
>Description:
      Fix invalid distfiles
      Fix a warning during compiliation
      Spring clean
      Take maintainership
>How-To-Repeat:
      
>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:
#
#	btoa
#	btoa/pkg-plist
#	btoa/pkg-descr
#	btoa/pkg-comment
#	btoa/distinfo
#	btoa/Makefile
#	btoa/files
#	btoa/files/patch-aa
#	btoa/files/patch-ab
#
echo c - btoa
mkdir -p btoa > /dev/null 2>&1
echo x - btoa/pkg-plist
sed 's/^X//' >btoa/pkg-plist << 'END-of-btoa/pkg-plist'
Xbin/btoa
Xbin/atob
END-of-btoa/pkg-plist
echo x - btoa/pkg-descr
sed 's/^X//' >btoa/pkg-descr << 'END-of-btoa/pkg-descr'
XThis is a port of btoa version 5.2, written by Paul Rutter, Joe
XOrost & Stefan Parmark.  btoa converts 4 binary characters to 5
Xascii ones, causing a 25% expansion.  (btoa is thus more efficient
Xthan uuencode, which causes a 33% expansion.)  Spaces will not be
Xused, which should make it safe to send files over e-mail or Usenet
Xwithout risking that blanks become tabs.  Each resulting row of
Xtext has a single-byte checksum for error detection.  A diagnosis
Xfile provides a list of errors found this way, which could then be
Xused to retransmit only the failing lines.
X
XPatch 1 is an unofficial, non-platform-specific patch to version
X5.2 of btoa.  It allows for automatic decoding of btoa files if
Xthe program is invoked as "atob" (no -a argument necessary).  It
Xalso outfits the Makefile to do clean and install.
X
XBrent J. Nordquist (nordquist@platinum.com)
XFri Apr  5 23:50:09  1996
X
END-of-btoa/pkg-descr
echo x - btoa/pkg-comment
sed 's/^X//' >btoa/pkg-comment << 'END-of-btoa/pkg-comment'
XEncode/decode binary to printable ASCII
END-of-btoa/pkg-comment
echo x - btoa/distinfo
sed 's/^X//' >btoa/distinfo << 'END-of-btoa/distinfo'
XMD5 (btoa-5.2.tar.gz) = c8fe1ee1e0f7ea0da0c49f44c5fe8f64
END-of-btoa/distinfo
echo x - btoa/Makefile
sed 's/^X//' >btoa/Makefile << 'END-of-btoa/Makefile'
X# New ports collection makefile for: btoa
X# Date created:                      4 Apr 1996
X# Whom:                              Brent J. Nordquist <bjn@visi.com>
X#
X# $FreeBSD: ports/converters/btoa/Makefile,v 1.11 2001/04/21 16:14:37 fenner Exp $
X#
X
XPORTNAME=	btoa
XPORTVERSION=	5.2
XPORTREVISION=	1
XCATEGORIES=	converters
XMASTER_SITES=	${MASTER_SITE_LOCAL}
XMASTER_SITE_SUBDIR=	asami/LOCAL_PORTS
X
XMAINTAINER=	martin@raq.cx
X
XMAKE_FLAGS=	DESTDIR=${PREFIX} -f
XMAKEFILE=	Makefile.sun
XMAN1=		btoa.1
X
X.include <bsd.port.mk>
END-of-btoa/Makefile
echo c - btoa/files
mkdir -p btoa/files > /dev/null 2>&1
echo x - btoa/files/patch-aa
sed 's/^X//' >btoa/files/patch-aa << 'END-of-btoa/files/patch-aa'
X--- Makefile.sun.orig	Fri Oct  8 13:00:00 1993
X+++ Makefile.sun	Wed May  8 17:05:41 2002
X@@ -1,5 +1,9 @@
X OBJS     = btoa.o atob.o repair.o
X 
X+DESTDIR  ?= /usr/local
X+
X+all:	btoa
X+
X btoa:	$(OBJS)
X 	cc -O $(OBJS) -o btoa
X 
X@@ -11,3 +15,15 @@
X 
X repair.o: repair.c btoa.h
X 	cc -c -O repair.c
X+
X+install: btoa btoa.1
X+	-@mkdir -p $(DESTDIR)/bin
X+	install -c -s -m 755 btoa $(DESTDIR)/bin/btoa
X+	rm -f $(DESTDIR)/bin/atob
X+	ln $(DESTDIR)/bin/btoa $(DESTDIR)/bin/atob
X+	-@mkdir -p $(DESTDIR)/man/man1
X+	install -c -m 644 btoa.1 $(DESTDIR)/man/man1/btoa.1
X+	strip $(DESTDIR)/bin/btoa
X+
X+clean:
X+	rm -f btoa $(OBJS)
END-of-btoa/files/patch-aa
echo x - btoa/files/patch-ab
sed 's/^X//' >btoa/files/patch-ab << 'END-of-btoa/files/patch-ab'
X--- btoa.c.orig	Fri Oct  8 13:00:00 1993
X+++ btoa.c	Wed May  8 14:54:17 2002
X@@ -20,7 +20,7 @@
X FILE *outfile;
X 
X 
X-void main(argc, argv)
X+int main(argc, argv)
X int argc;
X BYTE **argv;
X {
X@@ -39,6 +39,11 @@
X   error = openinput = openoutput = a_to_b = diagnosis = repair = FALSE;
X   new_version = TRUE;
X   infilename = NULL;
X+
X+  /* Assume a_to_b = TRUE if we're called 'atob' */
X+  if (!strncmp(argv[0] + strlen(argv[0]) - 4, "atob", 4)) {
X+    a_to_b = TRUE;
X+  }
X 
X   /* Scan for '-' options. The rest must be file names. */
X   while (!error && argc > 1 && *argv[1] == '-')
END-of-btoa/files/patch-ab
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?200205081628.g48GSNwk099143>