aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLev A. Serebryakov <lev@FreeBSD.org>2010-12-10 16:40:22 +0000
committerLev A. Serebryakov <lev@FreeBSD.org>2010-12-10 16:40:22 +0000
commit8cdede862c65be7eecfc7e07af21b4a0df393f8c (patch)
tree3157249b1c3027b22b62e17010e421c8994b9e3d
parent7bae5fb92a88f8127cfaaf97f035010cbed340f7 (diff)
downloadports-8cdede862c65be7eecfc7e07af21b4a0df393f8c.tar.gz
ports-8cdede862c65be7eecfc7e07af21b4a0df393f8c.zip
New port: driver for MosChip MCS7820/MCS7840 USB to COM adapters.
Notes
Notes: svn path=/head/; revision=265989
-rw-r--r--comms/Makefile1
-rw-r--r--comms/umcs7840/Makefile43
-rw-r--r--comms/umcs7840/distinfo2
-rw-r--r--comms/umcs7840/pkg-descr12
-rw-r--r--comms/umcs7840/pkg-plist4
5 files changed, 62 insertions, 0 deletions
diff --git a/comms/Makefile b/comms/Makefile
index a432e854842e..439d1d224b83 100644
--- a/comms/Makefile
+++ b/comms/Makefile
@@ -145,6 +145,7 @@
SUBDIR += twpsk
SUBDIR += uhso-kmod
SUBDIR += uird
+ SUBDIR += umcs7840
SUBDIR += unixcw
SUBDIR += uticom
SUBDIR += viewfax
diff --git a/comms/umcs7840/Makefile b/comms/umcs7840/Makefile
new file mode 100644
index 000000000000..b6624f1f31c3
--- /dev/null
+++ b/comms/umcs7840/Makefile
@@ -0,0 +1,43 @@
+# New ports collection makefile for: umcs7840
+# Date created: 09 Nov 2010
+# Whom: Lev Serebryakov <lev@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= umcs7840
+PORTVERSION= ${MAINVERSION}.${VERSIONDATE}
+CATEGORIES= comms kld
+MASTER_SITES= http://lev.serebryakov.spb.ru/download/umcs7840/
+PKGNAMESUFFIX= -kmod
+
+MAINTAINER= lev@FreeBSD.org
+COMMENT= MosChip MCS7820 and MCS7840 USB to RS-232/485 gates driver
+
+USE_BZIP2= yes
+
+NO_PACKAGE= should be recompiled for a particular FreeBSD kernel
+
+MAINVERSION=1.0
+VERSIONDATE=20101210.56
+
+KMODDIR?= /boot/modules
+PLIST_SUB+= KMODDIR=${KMODDIR}
+MAKE_ENV+= KMODDIR=${KMODDIR}
+
+MANCOMPRESSED= yes
+MAN4= ${PORTNAME}.4
+
+.if !exists(/usr/src/sys/Makefile)
+IGNORE= requires kernel source files
+.eliif ${OSVERSION} <= 800063
+IGNORE= requires FreeBSD 8.0 or later, please try driver from vendor site
+.endif
+
+post-install:
+ kldxref ${KMODDIR}
+
+post-deinstall:
+ kldxref ${KMODDIR}
+
+.include <bsd.port.mk>
diff --git a/comms/umcs7840/distinfo b/comms/umcs7840/distinfo
new file mode 100644
index 000000000000..9ad3803b6d2a
--- /dev/null
+++ b/comms/umcs7840/distinfo
@@ -0,0 +1,2 @@
+SHA256 (umcs7840-1.0.20101210.56.tar.bz2) = a5a2deed19d9976c8fc0eb99c0c04cf4e3d9d6a20cd89b070241db20c25c1642
+SIZE (umcs7840-1.0.20101210.56.tar.bz2) = 14605
diff --git a/comms/umcs7840/pkg-descr b/comms/umcs7840/pkg-descr
new file mode 100644
index 000000000000..c6414790e919
--- /dev/null
+++ b/comms/umcs7840/pkg-descr
@@ -0,0 +1,12 @@
+ FreeBSD driver for MosChip 7820/7840-based 2- and 4-ports USB serial ports
+adapters.
+
+ This driver supports all basic operations and all baud speeds for 2- or
+4-port devices.
+
+ Support for advanced features, such as IrDA or RS-485 modes and fine-tuning
+will be added later.
+
+Note that this driver will work with FreeBSD 8.0 (with USB2) or superior only.
+
+WWW: http://lev.serebryakov.spb.ru/download/umcs7840/
diff --git a/comms/umcs7840/pkg-plist b/comms/umcs7840/pkg-plist
new file mode 100644
index 000000000000..ea6b91423e57
--- /dev/null
+++ b/comms/umcs7840/pkg-plist
@@ -0,0 +1,4 @@
+@cwd /
+%%KMODDIR%%/umcs7840.ko
+@exec kldxref %%KMODDIR%%
+@unexec kldxref %%KMODDIR%%