From 1fb9c230b12c139a6d6c69d6e0058bf90a98f9b2 Mon Sep 17 00:00:00 2001 From: grange Date: Mon, 16 Dec 2002 14:27:34 +0000 Subject: [PATCH] libdsk is a library intended to give transparent access to floppy drives and to the disk image files used by emulators to represent floppy drives. WWW: http://www.seasip.demon.co.uk/Unix/LibDsk/ ok naddy@ --- devel/libdsk/Makefile | 34 ++++++++++++++++++++ devel/libdsk/distinfo | 3 ++ devel/libdsk/patches/patch-lib_compress_c | 11 +++++++ devel/libdsk/patches/patch-tools_dskid_c | 12 +++++++ devel/libdsk/patches/patch-tools_md3serial_c | 11 +++++++ devel/libdsk/pkg/DESCR | 5 +++ devel/libdsk/pkg/PFRAG.shared | 3 ++ devel/libdsk/pkg/PLIST | 16 +++++++++ 8 files changed, 95 insertions(+) create mode 100644 devel/libdsk/Makefile create mode 100644 devel/libdsk/distinfo create mode 100644 devel/libdsk/patches/patch-lib_compress_c create mode 100644 devel/libdsk/patches/patch-tools_dskid_c create mode 100644 devel/libdsk/patches/patch-tools_md3serial_c create mode 100644 devel/libdsk/pkg/DESCR create mode 100644 devel/libdsk/pkg/PFRAG.shared create mode 100644 devel/libdsk/pkg/PLIST diff --git a/devel/libdsk/Makefile b/devel/libdsk/Makefile new file mode 100644 index 00000000000..9edd76120ba --- /dev/null +++ b/devel/libdsk/Makefile @@ -0,0 +1,34 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2002/12/16 14:27:34 grange Exp $ + +COMMENT= "library for accessing disks and disk image files" + +DISTNAME= libdsk-0.9.9 +CATEGORIES= devel + +HOMEPAGE= http://www.seasip.demon.co.uk/Unix/LibDsk/ + +MAINTAINER= Alexander Yurchenko + +# LGPL +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +MASTER_SITES= http://www.seasip.demon.co.uk/Unix/LibDsk/ + +LIB_DEPENDS= bz2.10::archivers/bzip2 + +USE_GMAKE= Yes + +CONFIGURE_STYLE= gnu +CONFIGURE_ARGS= ${CONFIGURE_SHARED} +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" + +post-install: + ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/libdsk + ${INSTALL_DATA} ${WRKSRC}/doc/libdsk.txt ${PREFIX}/share/doc/libdsk + ${INSTALL_DATA} ${WRKSRC}/doc/libdsk.pdf ${PREFIX}/share/doc/libdsk + +.include diff --git a/devel/libdsk/distinfo b/devel/libdsk/distinfo new file mode 100644 index 00000000000..6e48b15ba7d --- /dev/null +++ b/devel/libdsk/distinfo @@ -0,0 +1,3 @@ +MD5 (libdsk-0.9.9.tar.gz) = 64f394312a158c26047eb5c7ba820659 +RMD160 (libdsk-0.9.9.tar.gz) = bc3b67eb953123f2b1099b16ae14a89db65c3fd2 +SHA1 (libdsk-0.9.9.tar.gz) = d865b0d139ea7c447deca11d0b11d038f6a98942 diff --git a/devel/libdsk/patches/patch-lib_compress_c b/devel/libdsk/patches/patch-lib_compress_c new file mode 100644 index 00000000000..805327a3ee5 --- /dev/null +++ b/devel/libdsk/patches/patch-lib_compress_c @@ -0,0 +1,11 @@ +$OpenBSD: patch-lib_compress_c,v 1.1.1.1 2002/12/16 14:27:34 grange Exp $ +--- lib/compress.c.orig Sun Dec 15 18:48:34 2002 ++++ lib/compress.c Sun Dec 15 18:49:40 2002 +@@ -24,6 +24,7 @@ + #include "compi.h" + #include "comp.h" + #include ++#include + /* LibDsk generalised compression support */ + #ifdef LINUXFLOPPY + #include diff --git a/devel/libdsk/patches/patch-tools_dskid_c b/devel/libdsk/patches/patch-tools_dskid_c new file mode 100644 index 00000000000..1168d05b752 --- /dev/null +++ b/devel/libdsk/patches/patch-tools_dskid_c @@ -0,0 +1,12 @@ +$OpenBSD: patch-tools_dskid_c,v 1.1.1.1 2002/12/16 14:27:34 grange Exp $ +--- tools/dskid.c.orig Sun Dec 15 19:18:59 2002 ++++ tools/dskid.c Thu Apr 11 01:46:42 2002 +@@ -90,7 +90,7 @@ int do_login(char *outfile, char *outtyp + "Heads: %d\n" + "Sectors: %3d\n" + "First sector: %3d\n" +- "Sector size: %4d\n" ++ "Sector size: %4ld\n" + "Data rate: %d\n" + "Record mode: %s\n" + "R/W gap: 0x%02x\n" diff --git a/devel/libdsk/patches/patch-tools_md3serial_c b/devel/libdsk/patches/patch-tools_md3serial_c new file mode 100644 index 00000000000..ab6b59248ff --- /dev/null +++ b/devel/libdsk/patches/patch-tools_md3serial_c @@ -0,0 +1,11 @@ +$OpenBSD: patch-tools_md3serial_c,v 1.1.1.1 2002/12/16 14:27:34 grange Exp $ +--- tools/md3serial.c.orig Sun Dec 15 18:50:06 2002 ++++ tools/md3serial.c Sun Dec 15 18:50:33 2002 +@@ -24,6 +24,7 @@ + * floppy disc. */ + + #include ++#include + #include "libdsk.h" + #include "utilopts.h" + diff --git a/devel/libdsk/pkg/DESCR b/devel/libdsk/pkg/DESCR new file mode 100644 index 00000000000..8ae7b5af821 --- /dev/null +++ b/devel/libdsk/pkg/DESCR @@ -0,0 +1,5 @@ +libdsk is a library intended to give transparent access to +floppy drives and to the disk image files used by emulators +to represent floppy drives. + +WWW: ${HOMEPAGE} diff --git a/devel/libdsk/pkg/PFRAG.shared b/devel/libdsk/pkg/PFRAG.shared new file mode 100644 index 00000000000..63d7bd7d2d1 --- /dev/null +++ b/devel/libdsk/pkg/PFRAG.shared @@ -0,0 +1,3 @@ +@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2002/12/16 14:27:34 grange Exp $ +lib/libdsk.so.2.1 +DYNLIBDIR(%D/lib) diff --git a/devel/libdsk/pkg/PLIST b/devel/libdsk/pkg/PLIST new file mode 100644 index 00000000000..683a6f9e9e7 --- /dev/null +++ b/devel/libdsk/pkg/PLIST @@ -0,0 +1,16 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2002/12/16 14:27:34 grange Exp $ +bin/dskform +bin/dskid +bin/dsktrans +bin/md3serial +include/libdsk.h +lib/libdsk.a +lib/libdsk.la +man/man1/dskform.1 +man/man1/dskid.1 +man/man1/dsktrans.1 +man/man1/md3serial.1 +share/doc/libdsk/libdsk.pdf +share/doc/libdsk/libdsk.txt +%%SHARED%% +@dirrm share/doc/libdsk