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@
This commit is contained in:
grange 2002-12-16 14:27:34 +00:00
parent 2fca1dd849
commit 1fb9c230b1
8 changed files with 95 additions and 0 deletions

34
devel/libdsk/Makefile Normal file
View File

@ -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 <grange@openbsd.org>
# 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 <bsd.port.mk>

3
devel/libdsk/distinfo Normal file
View File

@ -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

View File

@ -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 <limits.h>
+#include <unistd.h>
/* LibDsk generalised compression support */
#ifdef LINUXFLOPPY
#include <sys/stat.h>

View File

@ -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"

View File

@ -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 <stdio.h>
+#include <string.h>
#include "libdsk.h"
#include "utilopts.h"

5
devel/libdsk/pkg/DESCR Normal file
View File

@ -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}

View File

@ -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)

16
devel/libdsk/pkg/PLIST Normal file
View File

@ -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