From 02bd90b7741bca54ed53e85af61c05d420ecb310 Mon Sep 17 00:00:00 2001 From: ziggi Date: Tue, 21 Jan 2020 13:13:28 +0000 Subject: [PATCH] add base64 base91 --- text/base64/Makefile | 15 ++++++++++++++ text/base64/distinfo | 2 ++ text/base64/files/patch-base64.c | 17 ++++++++++++++++ text/base64/pkg-descr | 6 ++++++ text/base64/pkg-plist | 2 ++ text/base91/Makefile | 15 ++++++++++++++ text/base91/distinfo | 3 +++ text/base91/files/patch-Makefile | 35 ++++++++++++++++++++++++++++++++ text/base91/pkg-descr | 11 ++++++++++ text/base91/pkg-plist | 6 ++++++ 10 files changed, 112 insertions(+) create mode 100644 text/base64/Makefile create mode 100644 text/base64/distinfo create mode 100644 text/base64/files/patch-base64.c create mode 100644 text/base64/pkg-descr create mode 100644 text/base64/pkg-plist create mode 100644 text/base91/Makefile create mode 100644 text/base91/distinfo create mode 100644 text/base91/files/patch-Makefile create mode 100644 text/base91/pkg-descr create mode 100644 text/base91/pkg-plist diff --git a/text/base64/Makefile b/text/base64/Makefile new file mode 100644 index 00000000..f702d1df --- /dev/null +++ b/text/base64/Makefile @@ -0,0 +1,15 @@ +# Created by: will +# $FreeBSD: head/converters/base64/Makefile 469722 2018-05-12 10:10:02Z krion $ + +PORTNAME= base64 +PORTVERSION= 1.5 +CATEGORIES= converters +MASTER_SITES= http://www.fourmilab.ch/webtools/base64/ + +MAINTAINER= nikola.lecic@anthesphoria.net +COMMENT= Utility to encode and decode base64 files + +GNU_CONFIGURE= yes +ALL_TARGET= prog + +.include diff --git a/text/base64/distinfo b/text/base64/distinfo new file mode 100644 index 00000000..3a091b3e --- /dev/null +++ b/text/base64/distinfo @@ -0,0 +1,2 @@ +SHA256 (base64-1.5.tar.gz) = 2416578ba7a7197bddd1ee578a6d8872707c831d2419bdc2c1b4317a7e3c8a2a +SIZE (base64-1.5.tar.gz) = 223946 diff --git a/text/base64/files/patch-base64.c b/text/base64/files/patch-base64.c new file mode 100644 index 00000000..bf9df06e --- /dev/null +++ b/text/base64/files/patch-base64.c @@ -0,0 +1,17 @@ +--- base64.c.orig Sun Nov 11 21:52:10 2007 ++++ base64.c Sun Nov 11 21:52:19 2007 +@@ -63,13 +63,7 @@ + static int ateof= FALSE; + static byte dtable[256]; + static int linelength= 0; +-static char eol[]= +-#ifdef FORCE_BINARY_IO +-"\n" +-#else +-"\r\n" +-#endif +-; ++static char eol[]="\n"; + static int errcheck= TRUE; + + /*:5*/ diff --git a/text/base64/pkg-descr b/text/base64/pkg-descr new file mode 100644 index 00000000..d9015763 --- /dev/null +++ b/text/base64/pkg-descr @@ -0,0 +1,6 @@ +Base64 is a command line utility which encodes/decodes arbitrary +binary information in the base64 format used by MIME-encoded +documents, such as electronic mail messages with embedded files +(RFC 1341 and successors). + +WWW: http://www.fourmilab.ch/webtools/base64/ diff --git a/text/base64/pkg-plist b/text/base64/pkg-plist new file mode 100644 index 00000000..b7d4103e --- /dev/null +++ b/text/base64/pkg-plist @@ -0,0 +1,2 @@ +bin/base64 +man/man1/base64.1.gz diff --git a/text/base91/Makefile b/text/base91/Makefile new file mode 100644 index 00000000..d8bf49f3 --- /dev/null +++ b/text/base91/Makefile @@ -0,0 +1,15 @@ +# $FreeBSD: head/converters/base91/Makefile 505884 2019-07-05 06:25:12Z kai $ + +PORTNAME= base91 +PORTVERSION= 0.6.0 +CATEGORIES= converters +MASTER_SITES= SF/${PORTNAME}/basE91/${PORTVERSION}/ + +MAINTAINER= takefu@airport.fm +COMMENT= Utility to encode and decode base91 files + +# INSTALL_DATA is only used to install documentation related files +MAKE_ENV+= INSTALL_DATA="${INSTALL_MAN}" +MAKE_ENV+= INSTALL_PROGRAM="${INSTALL_PROGRAM}" + +.include diff --git a/text/base91/distinfo b/text/base91/distinfo new file mode 100644 index 00000000..d1cc0d3a --- /dev/null +++ b/text/base91/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1559031250 +SHA256 (base91-0.6.0.tar.gz) = 02cfae7322c1f865ca6ce8f2e0bb8d38c8513e76aed67bf1c94eab1343c6c651 +SIZE (base91-0.6.0.tar.gz) = 15009 diff --git a/text/base91/files/patch-Makefile b/text/base91/files/patch-Makefile new file mode 100644 index 00000000..98920516 --- /dev/null +++ b/text/base91/files/patch-Makefile @@ -0,0 +1,35 @@ +--- Makefile.orig 2006-09-03 18:00:00 UTC ++++ Makefile +@@ -1,15 +1,15 @@ +-CFLAGS = -Wall -W -O2 +-LDFLAGS = -s ++CFLAGS ?= -Wall -W -O2 ++LDFLAGS ?= -s + +-CC = gcc +-INSTALL = install +-INSTALL_DATA = $(INSTALL) -m 444 +-INSTALL_PROGRAM = $(INSTALL) -m 555 ++CC ?= gcc ++INSTALL ?= install ++INSTALL_DATA ?= $(INSTALL) -m 444 ++INSTALL_PROGRAM ?= $(INSTALL) -m 555 + +-prefix = /usr/local ++prefix = ${PREFIX} + exec_prefix = $(prefix) + bindir = $(exec_prefix)/bin +-mandir = $(prefix)/share/man ++mandir = $(prefix)/man + man1dir = $(mandir)/man1 + manext = .1 + +@@ -23,7 +23,7 @@ all: $(BIN) + $(CC) $(CFLAGS) -c $< + + base91: cli.o base91.o +- $(CC) $(LDFLAGS) -o $@ $^ ++ $(CC) $(LDFLAGS) -o $@ cli.o base91.o + + install: all + mkdir -p $(DESTDIR)$(bindir) diff --git a/text/base91/pkg-descr b/text/base91/pkg-descr new file mode 100644 index 00000000..096635d3 --- /dev/null +++ b/text/base91/pkg-descr @@ -0,0 +1,11 @@ +basE91 is an advanced method for encoding binary data as ASCII characters. +It is similar to UUencode or base64, but is more efficient. + +The overhead produced by basE91 depends on the input data. It amounts at most +to 23% (versus 33% for base64) and can range down to 14%, which typically +occurs on 0-byte blocks. + +This makes basE91 very useful for transferring larger files over binary unsafe +connections like e-mail or terminal lines. + +WWW: http://base91.sourceforge.net/ diff --git a/text/base91/pkg-plist b/text/base91/pkg-plist new file mode 100644 index 00000000..056170e4 --- /dev/null +++ b/text/base91/pkg-plist @@ -0,0 +1,6 @@ +bin/b91dec +bin/b91enc +bin/base91 +man/man1/b91dec.1.gz +man/man1/b91enc.1.gz +man/man1/base91.1.gz