Western Digital and SMC ethernet card configuration program; checked by lebel@

This commit is contained in:
millert 2001-05-09 17:53:43 +00:00
parent 1f57540ad1
commit 94c1b9145a
5 changed files with 70 additions and 0 deletions

28
sysutils/wdsetup/Makefile Normal file
View File

@ -0,0 +1,28 @@
# $OpenBSD: Makefile,v 1.1 2001/05/09 17:53:43 millert Exp $
COMMENT= "Western Digital and SMC ethernet card configuration program"
DISTNAME= wdsetup-0.6b
PKGNAME= wdsetup-0.6b
CATEGORIES= sysutils
NEED_VERSION= 1.402
MAINTAINER= Todd Miller <millert@openbsd.org>
ONLY_FOR_ARCHS= i386
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ftp://sunsite.unc.edu/pub/Linux/system/network/drivers/
do-build:
${CC} ${CFLAGS} -o ${WRKSRC}/wdsetup ${WRKSRC}/wdsetup.c -li386
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/wdsetup ${PREFIX}/sbin
${INSTALL_MAN} ${WRKSRC}/wdsetup.8 ${PREFIX}/man/cat8/wdsetup.0
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
MD5 (wdsetup-0.6b.tar.gz) = c48555c2b95efe1f0cd5e93c3988dea9
RMD160 (wdsetup-0.6b.tar.gz) = 5e586313d0f227987ba318879cc64cf994f2d28d
SHA1 (wdsetup-0.6b.tar.gz) = dacb9372cbfbb7aeb67bb4620669e517c1377950

View File

@ -0,0 +1,30 @@
$OpenBSD: patch-wdsetup_c,v 1.1 2001/05/09 17:53:44 millert Exp $
--- wdsetup.c.orig Wed Jan 20 11:35:09 1999
+++ wdsetup.c Wed May 9 11:28:32 2001
@@ -17,12 +17,17 @@
#include <unistd.h>
#include <stdio.h>
#include <string.h>
+#ifdef __OpenBSD__
+#include <sys/types.h>
+#include <machine/sysarch.h>
+#else
#ifdef __alpha__
#define __KERNEL__
#include <sys/types.h>
#include <asm/types.h>
#include <sys/io.h>
#endif
+#endif
#define wdsetup_version "0.6b"
#define PERM_OFF 0
@@ -2012,7 +2017,7 @@ note: if any of the following options ar
}
}
- if (iopl(3)) {
+ if (i386_iopl(3)) {
perror("io-perm2");
exit (-1);
}

View File

@ -0,0 +1,6 @@
wdsetup - Western Digital and SMC ethernet card configuration program
Wdsetup is used to configure the i/o address, interrupt line, ram
size, ram base address, wait states, network connection, rom size,
and rom base address of the Western Digital (now SMC) WD8013, WD8003,
WD8115, and WD8216 series ISA ethernet cards.

View File

@ -0,0 +1,3 @@
@comment $OpenBSD: PLIST,v 1.1 2001/05/09 17:53:44 millert Exp $
sbin/wdsetup
man/cat8/wdsetup.0