summaryrefslogtreecommitdiff
path: root/archivers/pdbar
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2004-12-30 13:04:56 +0000
committerminskim <minskim@pkgsrc.org>2004-12-30 13:04:56 +0000
commit57ead8f121c469ae17e681f67495162c71c87fa4 (patch)
treee97543d04b9eda6e57307b8f98b4e685873b5f39 /archivers/pdbar
parent20a657811d906a71d85fb5456fb23aa6ec71289e (diff)
downloadpkgsrc-57ead8f121c469ae17e681f67495162c71c87fa4.tar.gz
Import pdbar-0.5.1.
The Palm database archiver (pdbar) creates and manipulates PalmOS database (.pdb) and resource (.prc) files. Pdbar is designed to be a Swiss army knife for managing these files. It's a command line tool, and not for the faint of heart, but it's very handy and replaces a bunch of little utilities that you might otherwise use.
Diffstat (limited to 'archivers/pdbar')
-rw-r--r--archivers/pdbar/DESCR5
-rw-r--r--archivers/pdbar/Makefile18
-rw-r--r--archivers/pdbar/PLIST5
-rw-r--r--archivers/pdbar/distinfo6
-rw-r--r--archivers/pdbar/patches/patch-aa54
-rw-r--r--archivers/pdbar/patches/patch-ab159
6 files changed, 247 insertions, 0 deletions
diff --git a/archivers/pdbar/DESCR b/archivers/pdbar/DESCR
new file mode 100644
index 00000000000..9e26644e93f
--- /dev/null
+++ b/archivers/pdbar/DESCR
@@ -0,0 +1,5 @@
+The Palm database archiver (pdbar) creates and manipulates PalmOS
+database (.pdb) and resource (.prc) files. Pdbar is designed to be a
+Swiss army knife for managing these files. It's a command line tool,
+and not for the faint of heart, but it's very handy and replaces a
+bunch of little utilities that you might otherwise use.
diff --git a/archivers/pdbar/Makefile b/archivers/pdbar/Makefile
new file mode 100644
index 00000000000..3e6402abd48
--- /dev/null
+++ b/archivers/pdbar/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/12/30 13:04:56 minskim Exp $
+
+DISTNAME= prc
+PKGNAME= pdbar-0.5.1
+CATEGORIES= archivers
+MASTER_SITES= http://www.djw.org/product/palm/par/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= minskim@NetBSD.org
+HOMEPAGE= http://www.djw.org/product/palm/par/
+COMMENT= Palm database archiver
+
+PKG_INSTALLATION_TYPES= overwrite pkgviews
+
+NO_CONFIGURE= yes
+USE_BUILDLINK3= yes
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/archivers/pdbar/PLIST b/archivers/pdbar/PLIST
new file mode 100644
index 00000000000..2aabc2b9bf2
--- /dev/null
+++ b/archivers/pdbar/PLIST
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/12/30 13:04:56 minskim Exp $
+bin/pdbar
+include/prc.h
+lib/libprc.a
+man/man1/pdbar.1
diff --git a/archivers/pdbar/distinfo b/archivers/pdbar/distinfo
new file mode 100644
index 00000000000..3c391249bcf
--- /dev/null
+++ b/archivers/pdbar/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/12/30 13:04:56 minskim Exp $
+
+SHA1 (prc.tgz) = 9fa21fdb6d5dc94cad187012e70043e3f5080d7d
+Size (prc.tgz) = 62143 bytes
+SHA1 (patch-aa) = d2b5c320c39d5cee0169c3be01f72b7fca499939
+SHA1 (patch-ab) = 9acd9a21cd5d584c5e04df366945884ab3afa382
diff --git a/archivers/pdbar/patches/patch-aa b/archivers/pdbar/patches/patch-aa
new file mode 100644
index 00000000000..3f1e2cee688
--- /dev/null
+++ b/archivers/pdbar/patches/patch-aa
@@ -0,0 +1,54 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/12/30 13:04:56 minskim Exp $
+
+--- Makefile.orig 2001-08-17 14:11:42.000000000 -0500
++++ Makefile
+@@ -21,16 +21,11 @@
+ #
+ # created: djw@djw.org, January 2, 1999.
+ #
+-INSTALL_INCDIR = /usr/local/pilot/include
+-INSTALL_LIBDIR = /usr/local/pilot/lib
+-INSTALL_BINDIR = /usr/local/bin
+-INSTALL_MANDIR = /usr/local/man/man1
+-CC = gcc
+-CFLAGS = -g -I. -Wall
+-LD = gcc
+-LDFLAGS = -g
+-AR = ar
+-RANLIB = ranlib
++INSTALL_INCDIR = ${PREFIX}/include
++INSTALL_LIBDIR = ${PREFIX}/lib
++INSTALL_BINDIR = ${PREFIX}/bin
++INSTALL_MANDIR = ${PREFIX}/man/man1
++LD = ${CC}
+
+ CFILES = \
+ create.c \
+@@ -140,19 +135,14 @@ parwin32.zip: $(WINFILES)
+ rm -rf par
+
+ install: libprc.a prc.h par par.man
+- @test `whoami` = root || (echo "Must be root to install"; false)
+- mkdir -p $(INSTALL_INCDIR)
+- mkdir -p $(INSTALL_LIBDIR)
+- mkdir -p $(INSTALL_BINDIR)
+- mkdir -p $(INSTALL_MANDIR)
+- cp prc.h $(INSTALL_INCDIR)/prc.h
+- chmod 644 $(INSTALL_INCDIR)/prc.h
+- cp libprc.a $(INSTALL_LIBDIR)/libprc.a
+- chmod 644 $(INSTALL_LIBDIR)/libprc.a
+- cp par $(INSTALL_BINDIR)/par
+- chmod 755 $(INSTALL_BINDIR)/par
+- cp par.man $(INSTALL_MANDIR)/par.1
+- chmod 644 $(INSTALL_MANDIR)/par.1
++ ${BSD_INSTALL_DATA_DIR} $(INSTALL_INCDIR)
++ ${BSD_INSTALL_LIB_DIR} $(INSTALL_LIBDIR)
++ ${BSD_INSTALL_PROGRAM_DIR} $(INSTALL_BINDIR)
++ ${BSD_INSTALL_MAN_DIR} $(INSTALL_MANDIR)
++ ${BSD_INSTALL_DATA} prc.h $(INSTALL_INCDIR)/prc.h
++ ${BSD_INSTALL_LIB} libprc.a $(INSTALL_LIBDIR)/libprc.a
++ ${BSD_INSTALL_PROGRAM} par $(INSTALL_BINDIR)/pdbar
++ ${BSD_INSTALL_MAN} par.man $(INSTALL_MANDIR)/pdbar.1
+
+ TAGS: $(PAR_CFILES) $(CFILES) $(HFILES)
+ etags -r '/^prc[^(]*(/' $(PAR_CFILES) $(CFILES) $(HFILES)
diff --git a/archivers/pdbar/patches/patch-ab b/archivers/pdbar/patches/patch-ab
new file mode 100644
index 00000000000..9f3d792d2ed
--- /dev/null
+++ b/archivers/pdbar/patches/patch-ab
@@ -0,0 +1,159 @@
+$NetBSD: patch-ab,v 1.1.1.1 2004/12/30 13:04:56 minskim Exp $
+
+--- par.man.orig 2001-08-17 14:11:42.000000000 -0500
++++ par.man
+@@ -1,46 +1,46 @@
+ .TH PAR 1 "November 1999" "Version 0.5 (beta)" "Palm hacking commands"
+ .SH NAME
+-par \- Palm database archiver, version 0.5.
++pdbar \- Palm database archiver, version 0.5.
+ .SH SYNOPSIS
+-.B par t
++.B pdbar t
+ .I dbfile
+ .PP
+-.B par h
++.B pdbar h
+ .I dbfile
+ .PP
+-.B par x
++.B pdbar x
+ .I dbfile
+ .BI [ ioptions ]
+ .BI [ records.. ]
+ .PP
+-.B par\ c
++.B pdbar\ c
+ .BI [ hoptions ]
+ .I dbfile\ name\ type\ cid
+ .BI [ ioptions ]
+ .BI [ files.. ]
+ .PP
+-.B par u
++.B pdbar u
+ .BI [ hoptions ]
+ .I dbfile
+ .BI [ ioptions ]
+ .BI [ updates.. ]
+ .PP
+-.B par a
++.B pdbar a
+ .BI [ hoptions ]
+ .I dbfile
+ .BI [ ioptions ]
+ .BI [ files.. ]
+ .PP
+-.B par d
++.B pdbar d
+ .BI [ hoptions ]
+ .I dbfile
+ .BI [ doptions ]
+ .BI [ records.. ]
+ .PP
+-.B par V
++.B pdbar V
+ .SH DESCRIPTION
+ The
+-.B par
++.B pdbar
+ utility creates and manipulates PalmOS database
+ .B (.pdb)
+ and resource
+@@ -161,7 +161,7 @@ fashion described for the
+ .B x
+ mode.
+ In addition to individual records and resources,
+-.B par
++.B pdbar
+ can append whole databases, in effect merging the records or resources
+ from one database into another. Databases may be specified as append
+ items explicitly using the
+@@ -330,23 +330,23 @@ database.
+ .SH EXAMPLES
+ The following example prints the header information for the database 'foo.pdb'.
+ .PP
+-.B par h foo.pdb
++.B pdbar h foo.pdb
+ .PP
+ The following extracts all records from 'foo.pdb'.
+ .PP
+-.B par x foo.pdb
++.B pdbar x foo.pdb
+ .PP
+ The following extracts the application icon resource from 'app.prc' and saves
+ it in the file 'icon.Tbmp'. Note the use of decimal specification for the
+ resource id. The id may be specified in hex using by using the '0x' prefix.
+ .PP
+-.B par x app.prc -f icon.Tbmp tAIB 1000
++.B pdbar x app.prc -f icon.Tbmp tAIB 1000
+ .PP
+ The following creates a new application resource database from all the
+ the files with a '.bin' extension in the current directory. The database
+ will have creator id of 'djwP' and will have the backup bit set.
+ .PP
+-.B par c -a \&"resource|backup\&" app.prc myapp appl djwP *.bin
++.B pdbar c -a \&"resource|backup\&" app.prc myapp appl djwP *.bin
+ .PP
+ If you use the author's technique for creating multi-segment library
+ prcs with CodeWarrior, the following example will be useful. This
+@@ -355,7 +355,7 @@ to change the attribute type of the prim
+ type = 'code', id = '1' (as used in an application) to type = 'libr',
+ id = '0' (as used in a library).
+ .PP
+-.B par u -T libr mylib.prc -T libr 0 code 1
++.B pdbar u -T libr mylib.prc -T libr 0 code 1
+ .PP
+ The following example merges the resources from two different
+ resource databases,
+@@ -368,10 +368,10 @@ This technique is useful for managing co
+ of an application, using the individual resource databases as
+ libraries.
+ .PP
+-.B par r myapp.prc myapp appl djwP code.prc resource.prc
++.B pdbar r myapp.prc myapp appl djwP code.prc resource.prc
+ .PP
+ By default,
+-.B par
++.B pdbar
+ saves extracted resources using the form
+ .IR <type><id>.bin ,
+ where
+@@ -380,31 +380,31 @@ is the 4 character type of the resource,
+ <id>
+ is the resource id in 4 digit hexadecimal. When appending resources
+ to a new or existing resource database,
+-.B par
++.B pdbar
+ will attempt to decode the resource and id of the resource being appended
+ from the resource filename using this same naming scheme, or you can
+ explicitly specify the resource and id using the
+ .I -T
+ syntax. Here are two invocations of
+-.B par
++.B pdbar
+ that do exactly the same thing: create a new resource database with one
+ resource which has type = NFNT and id = 256 (0x0100 hexadecimal):
+ .PP
+-.B par c -a \&"resource\&" font.prc Font FONT djwF NFNT0100.bin
++.B pdbar c -a \&"resource\&" font.prc Font FONT djwF NFNT0100.bin
+ .P
+-.B par r font.prc Font FONT djwF -T NFNT 256 myfont
++.B pdbar r font.prc Font FONT djwF -T NFNT 256 myfont
+ .PP
+ The following example creates a stream database that can be accessed using
+ the PalmOS FileStream API. The stream will contain the contents of the
+ file 'WarAndPeace.txt':
+ .PP
+-.B par c -a \&"stream\&" book.pdb Book DATA djwS WarAndPeace.txt
++.B pdbar c -a \&"stream\&" book.pdb Book DATA djwS WarAndPeace.txt
+ .PP
+ In the following example, 'book.pdb' is a stream database. This
+ example extracts the stream from that database and stores the result
+ in the output file 'Book.txt':
+ .PP
+-.B par x book.pdb Book.txt
++.B pdbar x book.pdb Book.txt
+ .SH AUTHOR
+-.B par
++.B pdbar
+ was written by David Williams, djw@djw.org