- Add LICENSE

- Switch to options helpers
- Regenerate patches
- Add WWW
- Remove useless patch
This commit is contained in:
Dmitry Marakasov 2016-12-04 09:00:47 +00:00
parent c48a42a9b0
commit 7401cf9aa4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=427761
5 changed files with 18 additions and 21 deletions

View File

@ -9,18 +9,24 @@ MASTER_SITES= SUNSITE/apps/database/proprietary
MAINTAINER= ports@FreeBSD.org
COMMENT= View dBase III files
LICENSE= GPLv2+
PLIST_FILES= bin/dbview man/man1/dbview.1.gz
PORTDOCS= README dBASE
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's|<malloc.h>|<stdlib.h>|; \
s|<endian.h>|<sys/endian.h>|; \
/byteswap/d' \
${WRKSRC}/db_dump.c
s|<endian.h>|<sys/endian.h>|; \
/byteswap/d' \
${WRKSRC}/db_dump.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/dbview ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/dbview.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

View File

@ -1,6 +1,6 @@
--- Makefile.orig Fri Sep 27 00:05:30 1996
+++ Makefile Tue Apr 29 02:41:08 2003
@@ -18,8 +18,6 @@
--- Makefile.orig 2006-11-19 19:37:41 UTC
+++ Makefile
@@ -19,8 +19,6 @@
MAN=man
@ -9,7 +9,7 @@
# CFLAGS= -g -fomit-frame-pointer -Wall -pipe
# Look where your install program is
@@ -32,12 +30,12 @@
@@ -33,12 +31,12 @@ mandir = $(prefix)/share/$(MAN)
obj = db_dump.o dbview.o version.o
.c.o:

View File

@ -1,6 +1,6 @@
--- db_dump.c.orig 2008-06-24 16:10:56.000000000 +0000
+++ db_dump.c 2008-06-24 16:11:14.000000000 +0000
@@ -82,6 +82,8 @@
--- db_dump.c.orig 2006-11-27 11:51:25 UTC
+++ db_dump.c
@@ -82,6 +82,8 @@ FILE *dbfile;
/*----------------------------------------------------helpers------------*/
#if BYTE_ORDER == BIG_ENDIAN

View File

@ -1,11 +0,0 @@
--- version.c.orig Fri Sep 27 00:03:57 1996
+++ version.c Tue Jul 17 03:50:48 2001
@@ -21,6 +21,6 @@
char progname[] = "dbview";
-char longname[] = "View dBase III files";
+char longname[] = "View dbf files";
-char version[] = "1.0.2";
+char version[] = "1.0.3.1";

View File

@ -5,3 +5,5 @@ also work with dBase IV files, but this is mostly untested.
dbview displays the contents of a dBase III or IV database file. This is
done by displaying both the name of the field itself and its value. At
the end of every record a newline is appended.
WWW: http://www.infodrom.org/projects/dbview/