diff options
-rw-r--r-- | comms/Makefile | 1 | ||||
-rw-r--r-- | comms/uhso-kmod/Makefile | 77 | ||||
-rw-r--r-- | comms/uhso-kmod/distinfo | 6 | ||||
-rw-r--r-- | comms/uhso-kmod/files/UHSO-DEBUG-patch-Makefile | 11 | ||||
-rw-r--r-- | comms/uhso-kmod/files/UHSOCTL-DEBUG-patch-Makefile | 11 | ||||
-rw-r--r-- | comms/uhso-kmod/files/UHSOCTL-NODEBUG-patch-Makefile | 10 | ||||
-rw-r--r-- | comms/uhso-kmod/files/pkg-message.in | 17 | ||||
-rw-r--r-- | comms/uhso-kmod/pkg-descr | 16 | ||||
-rw-r--r-- | comms/uhso-kmod/pkg-plist | 5 |
9 files changed, 154 insertions, 0 deletions
diff --git a/comms/Makefile b/comms/Makefile index 02a7d559c703..0809a21492bd 100644 --- a/comms/Makefile +++ b/comms/Makefile @@ -143,6 +143,7 @@ SUBDIR += tlf SUBDIR += trustedqsl SUBDIR += twpsk + SUBDIR += uhso-kmod SUBDIR += uird SUBDIR += unixcw SUBDIR += uticom diff --git a/comms/uhso-kmod/Makefile b/comms/uhso-kmod/Makefile new file mode 100644 index 000000000000..b003d50608a9 --- /dev/null +++ b/comms/uhso-kmod/Makefile @@ -0,0 +1,77 @@ +# New ports collection makefile for: uhso-kmod +# Date created: 28 December 2009 +# Whom: Ganael Laplanche <ganael.laplanche@martymac.com> +# +# $FreeBSD$ +# + +PORTNAME= uhso +PORTVERSION= 20091122 +CATEGORIES= comms kld +MASTER_SITES= http://www.shapeshifter.se/pub/hso/ +PKGNAMESUFFIX= -kmod +DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} + +MAINTAINER= ganael.laplanche@martymac.com +COMMENT= Driver for Option HSDPA modem (USB2 version) + +CONFLICTS= hso-kmod-[0-9]* + +NO_PACKAGE= should be recompiled for a particular FreeBSD kernel + +OPTIONS= UHSOCTL "Build uhsoctl tool" on \ + DEBUG "Build with debug symbols" off + +SUB_FILES= pkg-message +KMODDIR?= /boot/modules +PLIST_SUB+= KMODDIR=${KMODDIR} +MAKE_ENV+= KMODDIR=${KMODDIR} + +MAN4= uhso.4 + +.include <bsd.port.pre.mk> + +.if !exists(/usr/src/sys/Makefile) +IGNORE= requires kernel source files +.elif ${OSVERSION} <= 800063 +IGNORE= requires FreeBSD 8.0 (with USB2) or superior +.endif + +.if !defined(WITHOUT_UHSOCTL) +UHSOCTL_VERSION= 20090820 +DISTFILES+= uhsoctl-beta-${UHSOCTL_VERSION}${EXTRACT_SUFX} +WRKSRC_UHSOCTL= ${WRKDIR}/uhsoctl-beta-${UHSOCTL_VERSION} +PLIST_SUB+= PL_UHSOCTL="" +MAN1= uhsoctl.1 +.else +PLIST_SUB+= PL_UHSOCTL="@comment " +.endif + +.if defined(WITH_DEBUG) +EXTRA_PATCHES+= ${PATCHDIR}/UHSO-DEBUG-patch-Makefile +.endif + +post-patch: +.if !defined(WITHOUT_UHSOCTL) +.if defined(WITH_DEBUG) + @${PATCH} -d ${WRKSRC_UHSOCTL} < ${PATCHDIR}/UHSOCTL-DEBUG-patch-Makefile +.else + @${PATCH} -d ${WRKSRC_UHSOCTL} < ${PATCHDIR}/UHSOCTL-NODEBUG-patch-Makefile +.endif +.endif + +post-build: +.if !defined(WITHOUT_UHSOCTL) + @cd ${WRKSRC_UHSOCTL} && ${SETENV} NO_MANCOMPRESS= ${MAKE} all +.endif + +post-install: + ${INSTALL_MAN} ${MAN4:S|^|${WRKSRC}/|} ${PREFIX}/man/man4 +.if !defined(WITHOUT_UHSOCTL) + @cd ${WRKSRC_UHSOCTL} && \ + ${SETENV} DESTDIR=${PREFIX}/ BINDIR=bin MANDIR=man/man NO_MANCOMPRESS= \ + ${MAKE} install +.endif + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.post.mk> diff --git a/comms/uhso-kmod/distinfo b/comms/uhso-kmod/distinfo new file mode 100644 index 000000000000..9094607f7180 --- /dev/null +++ b/comms/uhso-kmod/distinfo @@ -0,0 +1,6 @@ +MD5 (uhso-20091122.tar.gz) = 68e96e3d6fab93ba9eab148c1ef79ca7 +SHA256 (uhso-20091122.tar.gz) = a861411fecbc1d1f1fb8910026eeafb6331a1a87ec6562f2b46797e92f1db043 +SIZE (uhso-20091122.tar.gz) = 14430 +MD5 (uhsoctl-beta-20090820.tar.gz) = cb430d12217511554a3d7f13385432db +SHA256 (uhsoctl-beta-20090820.tar.gz) = c512b821c632cd3a5295bae764d30654e2538f42357bca365a7cc9a9edae57b8 +SIZE (uhsoctl-beta-20090820.tar.gz) = 10626 diff --git a/comms/uhso-kmod/files/UHSO-DEBUG-patch-Makefile b/comms/uhso-kmod/files/UHSO-DEBUG-patch-Makefile new file mode 100644 index 000000000000..ea138866128c --- /dev/null +++ b/comms/uhso-kmod/files/UHSO-DEBUG-patch-Makefile @@ -0,0 +1,11 @@ +--- Makefile.orig 2009-12-28 18:29:47.732668607 +0000 ++++ Makefile 2009-12-28 18:29:56.747883459 +0000 +@@ -2,7 +2,7 @@ + S= ${.CURDIR}/../.. + .PATH: $S/dev/usb + +-#CFLAGS+= -DUSB_DEBUG=1 -DUHSO_DEBUG=2 -DUHSO_DEBUG_HEXDUMP=1 -g ++CFLAGS+= -DUSB_DEBUG=1 -DUHSO_DEBUG=2 -DUHSO_DEBUG_HEXDUMP=1 -g + KMOD= uhso + SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usbdevs.h uhso.c + diff --git a/comms/uhso-kmod/files/UHSOCTL-DEBUG-patch-Makefile b/comms/uhso-kmod/files/UHSOCTL-DEBUG-patch-Makefile new file mode 100644 index 000000000000..35396dbf377b --- /dev/null +++ b/comms/uhso-kmod/files/UHSOCTL-DEBUG-patch-Makefile @@ -0,0 +1,11 @@ +--- Makefile.orig 2009-08-19 14:41:30.923433005 +0000 ++++ Makefile 2009-08-19 14:42:03.472847525 +0000 +@@ -1,7 +1,7 @@ + SRCS= uhsoctl.c + PROG= uhsoctl + CFLAGS+= -g +-#CFLAGS+= -DDEBUG=1 ++CFLAGS+= -DDEBUG=1 + LDFLAGS+= -lutil + DESTDIR?= /usr/local + diff --git a/comms/uhso-kmod/files/UHSOCTL-NODEBUG-patch-Makefile b/comms/uhso-kmod/files/UHSOCTL-NODEBUG-patch-Makefile new file mode 100644 index 000000000000..38a01a5e7006 --- /dev/null +++ b/comms/uhso-kmod/files/UHSOCTL-NODEBUG-patch-Makefile @@ -0,0 +1,10 @@ +--- Makefile.orig 2009-08-19 14:41:30.923433005 +0000 ++++ Makefile 2009-08-19 14:42:32.492341064 +0000 +@@ -1,6 +1,6 @@ + SRCS= uhsoctl.c + PROG= uhsoctl +-CFLAGS+= -g ++#CFLAGS+= -g + #CFLAGS+= -DDEBUG=1 + LDFLAGS+= -lutil + DESTDIR?= /usr/local diff --git a/comms/uhso-kmod/files/pkg-message.in b/comms/uhso-kmod/files/pkg-message.in new file mode 100644 index 000000000000..3efb6c60e641 --- /dev/null +++ b/comms/uhso-kmod/files/pkg-message.in @@ -0,0 +1,17 @@ + +=============================================================================== + +This port has installed the uhso kernel module. + +1) To load the kernel module at boot time, +add the following line to /boot/loader.conf: + +uhso_load="YES" + +2) If you have built the uhsoctl utility, use it to connect : +e.g. : uhsoctl -a bredband.tre.se -p 1234 uhso0 + +3) Enjoy ! + +=============================================================================== + diff --git a/comms/uhso-kmod/pkg-descr b/comms/uhso-kmod/pkg-descr new file mode 100644 index 000000000000..965e0560da5c --- /dev/null +++ b/comms/uhso-kmod/pkg-descr @@ -0,0 +1,16 @@ +FreeBSD driver for newer Option HSDPA USB dongles. + +The driver have been tested with the following devices + + * Option GlobeSurfer iCON 7.2 (2.4.6Hd firmware) + * Option GlobeSurfer iCON 225 + * Option iCON 505 + +Older cards should work just fine with ubsa(4) or any similar +USB-over-serial driver. + +Note that this driver should be considered beta and will +work with FreeBSD 8.0 (with USB2) or superior only. +Please use comms/hso-kmod for previous versions of FreeBSD. + +WWW: http://www.shapeshifter.se/code/hso/ diff --git a/comms/uhso-kmod/pkg-plist b/comms/uhso-kmod/pkg-plist new file mode 100644 index 000000000000..bbd6078ac0f0 --- /dev/null +++ b/comms/uhso-kmod/pkg-plist @@ -0,0 +1,5 @@ +%%PL_UHSOCTL%%bin/uhsoctl +@cwd /boot/modules +uhso.ko +@exec kldxref %D +@unexec kldxref %D |