ports/143989: new port: multimedia/sms1xxx-kmod

Ganael Laplanche ganael.laplanche at martymac.com
Tue Feb 16 09:20:07 UTC 2010


>Number:         143989
>Category:       ports
>Synopsis:       new port: multimedia/sms1xxx-kmod
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 16 09:20:05 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Ganael Laplanche
>Release:        9.0-CURRENT
>Organization:
http://contribs.martymac.org
>Environment:
FreeBSD laptop.martymac.com 9.0-CURRENT FreeBSD 9.0-CURRENT #6: Thu Jan 21 14:46:32 UTC 2010     martymac at laptop.martymac.com:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
This is a port for the sms1xxx driver, a driver for Siano-based USB DVB devices.

The following devices have been successfully tested :

- Terratec Cinergy Piranha DVB-T USB Dongle
- Hauppauge WinTV MiniStick (HD)

See http://contribs.martymac.org/FreeBSD-siano/README for more details.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	sms1xxx-kmod
#	sms1xxx-kmod/pkg-descr
#	sms1xxx-kmod/Makefile
#	sms1xxx-kmod/files
#	sms1xxx-kmod/files/pkg-message.in
#	sms1xxx-kmod/files/patch-firmwares-Makefile
#	sms1xxx-kmod/pkg-plist
#	sms1xxx-kmod/distinfo
#
echo c - sms1xxx-kmod
mkdir -p sms1xxx-kmod > /dev/null 2>&1
echo x - sms1xxx-kmod/pkg-descr
sed 's/^X//' >sms1xxx-kmod/pkg-descr << '7968ea146c3da7f0269e27458212b518'
XFreeBSD driver for Siano-based USB DVB devices.
X
XThis driver have been tested with the following devices :
X
X  * Terratec Cinergy Piranha
X  * Hauppauge WinTV MiniStick (HD)
X
XHowever, other Siano-based USB devices should work, just give a try
X(you may want to add new VIDs/PIDs to make your device detected) !
X
XWWW: http://contribs.martymac.org
7968ea146c3da7f0269e27458212b518
echo x - sms1xxx-kmod/Makefile
sed 's/^X//' >sms1xxx-kmod/Makefile << 'e20e28ac524340e1d4e755900ec1b918'
X# New ports collection makefile for:	sms1xxx-kmod
X# Date created:				10 February 2010
X# Whom:					Ganael Laplanche <ganael.laplanche at martymac.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	sms1xxx
XPORTVERSION=	20100203
XCATEGORIES=	multimedia kld
XMASTER_SITES=	http://contribs.martymac.org/FreeBSD-siano/
XPKGNAMESUFFIX=	-kmod
XDISTNAME=	siano-${PORTVERSION}
XEXTRACT_SUFX=	.tgz
XDIST_SUBDIR=	${PORTNAME}
X
XMAINTAINER=	ganael.laplanche at martymac.com
XCOMMENT=	FreeBSD driver for Siano-based USB DVB devices
X
XWRKSRC=	${WRKDIR}/siano-${PORTVERSION}
X
XNO_PACKAGE=	should be recompiled for a particular FreeBSD kernel
X
XOPTIONS=	STELLAR "Build Stellar firmware" off \
X			NOVA "Build Nova firmware" off \
X			DEBUG "Build with debug symbols" off
X
XONLY_FOR_ARCHS=	i386 amd64
X
XSUB_FILES=	pkg-message
XKMODDIR?=	/boot/modules
XPLIST_SUB+=	KMODDIR=${KMODDIR}
XMAKE_ENV+=	KMODDIR=${KMODDIR}
X
XPORTDOCS=	CHANGELOG README COPYING
X
X# Supported firmwares / firmwares to build
XSTELLAR_FW=	stellar_dvbt
XNOVA_FW=	novab0_dvbbda
XBUILD_FWS=
X
X.include <bsd.port.pre.mk>
X
X.if !exists(/usr/src/sys/Makefile)
XIGNORE=		requires kernel source files
X.elif ${OSVERSION} <= 800063
XIGNORE=		requires FreeBSD 8.0 or superior
X.endif
X
X.if defined(WITH_DEBUG)
XALL_TARGET=	debug
X.endif
X
X.if defined(WITH_STELLAR)
XBUILD_FWS+=	${STELLAR_FW}
XPLIST_SUB+=	PL_STELLAR=""
X.if !exists(${DISTDIR}/${DIST_SUBDIR}/${STELLAR_FW}.fw)
X.if !defined(DISTFILE_INSTRUCTIONS)
XDISTFILE_INSTRUCTIONS=\n\
X	Due to licensing restrictions, firmware files must be fetched manually.\n
X.endif
XDISTFILE_INSTRUCTIONS+=	\
X	\n- Please, get the appropriate firmware for your Stellar device\n\
X	and copy the file to '${DISTDIR}/${DIST_SUBDIR}/${STELLAR_FW}.fw'\n\
X	e.g. :\n\
X	wget 'ftp://ftp.terratec.net/Receiver/Cinergy_Piranha/Update/Cinergy_Piranha_Drv_Vista_XP_3.09.02.00.exe'\n\
X	unzip -j 'Cinergy_Piranha_Drv_Vista_XP_3.09.02.00.exe' \\\\\n\
X	\t'Cinergy Piranha/BDA Driver 3.09.02.00/Windos XP (32Bit)/SMS100x_Dvbt.inp'\n\
X	mv 'SMS100x_Dvbt.inp' '${DISTDIR}/${DIST_SUBDIR}/${STELLAR_FW}.fw'\n
X.endif
X.else
XPLIST_SUB+=	PL_STELLAR="@comment "
X.endif
X
X.if defined(WITH_NOVA)
XBUILD_FWS+=	${NOVA_FW}
XPLIST_SUB+=	PL_NOVA=""
X.if !exists(${DISTDIR}/${DIST_SUBDIR}/${NOVA_FW}.fw)
X.if !defined(DISTFILE_INSTRUCTIONS)
XDISTFILE_INSTRUCTIONS=\n\
X	Due to licensing restrictions, firmware files must be fetched manually.\n
X.endif
XDISTFILE_INSTRUCTIONS+=	\
X	\n- Please, get the appropriate firmware for your Nova device\n\
X	and copy the file to '${DISTDIR}/${DIST_SUBDIR}/${NOVA_FW}.fw'\n\
X	e.g. :\n\
X	wget 'http://www.wintvcd.co.uk/drivers/WinTV-MiniStick_4_2_10_27180_WHQL.zip'\n\
X	unzip -j 'WinTV-MiniStick_4_2_10_27180_WHQL.zip' \\\\\n\
X	\t'driver17/hcw17dvb.1b0'\n\
X	mv 'hcw17dvb.1b0' '${DISTDIR}/${DIST_SUBDIR}/${NOVA_FW}.fw'\n
X.endif
X.else
XPLIST_SUB+=	PL_NOVA="@comment "
X.endif
X
Xpre-fetch:
X.if defined(DISTFILE_INSTRUCTIONS)
X	@${MKDIR} ${DISTDIR}/${DIST_SUBDIR}
X	@${PRINTF} "${DISTFILE_INSTRUCTIONS}"
X	@exit 1
X.endif
X
Xpost-patch:
X	@${REINPLACE_CMD} -e 's|SUBDIR=|SUBDIR= ${BUILD_FWS}|' \
X		${WRKSRC}/firmwares/Makefile
X
Xpre-build:
X.if defined(WITH_STELLAR)
X	@${CP} ${DISTDIR}/${DIST_SUBDIR}/${STELLAR_FW}.fw ${WRKSRC}/firmwares/${STELLAR_FW}/
X.endif
X.if defined(WITH_NOVA)
X	@${CP} ${DISTDIR}/${DIST_SUBDIR}/${NOVA_FW}.fw ${WRKSRC}/firmwares/${NOVA_FW}/
X.endif
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X.for doc in ${PORTDOCS}
X	${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
X.endfor
X.endif
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.post.mk>
e20e28ac524340e1d4e755900ec1b918
echo c - sms1xxx-kmod/files
mkdir -p sms1xxx-kmod/files > /dev/null 2>&1
echo x - sms1xxx-kmod/files/pkg-message.in
sed 's/^X//' >sms1xxx-kmod/files/pkg-message.in << '8044be57c45f894a2c62aba9fdfc53f1'
X
X===============================================================================
X
XThis port has installed the sms1xxx kernel module.
X
X1) To load the kernel module at boot time, add the following line
X   to /boot/loader.conf :
X
Xsms1xxx_load="YES"
X
X2) If you have built additional firmware modules, also add them
X   to /boot/loader.conf, e.g. for nova firmware :
X
Xnovab0_dvbbda_load="YES"
X
X3) See %%DOCSDIR%%/README for more details
X
X4) Plug your device in, use your favourite DVB application and enjoy !
X
X===============================================================================
X
8044be57c45f894a2c62aba9fdfc53f1
echo x - sms1xxx-kmod/files/patch-firmwares-Makefile
sed 's/^X//' >sms1xxx-kmod/files/patch-firmwares-Makefile << 'd6497fcdfc12886d8a4511301cfb0c87'
X--- firmwares/Makefile.orig	2010-02-12 07:09:22.519462110 +0000
X+++ firmwares/Makefile	2010-02-12 07:17:10.216239773 +0000
X@@ -1,8 +1,3 @@
X-SUBDIR=	stellar_dabtdmb \
X-		stellar_dvbh \
X-		stellar_dvbt \
X-		novab0_dvbbda \
X-		novab0_isdbtbda
X-#		novab0_tdmb
X+SUBDIR=
X 
X .include <bsd.subdir.mk>
d6497fcdfc12886d8a4511301cfb0c87
echo x - sms1xxx-kmod/pkg-plist
sed 's/^X//' >sms1xxx-kmod/pkg-plist << 'b730129771da81cb99dee6ee7af3ec60'
X at cwd %%KMODDIR%%
X%%PL_NOVA%%novab0_dvbbda.ko
X%%PL_STELLAR%%stellar_dvbt.ko
Xsms1xxx.ko
X at exec kldxref %D
X at unexec kldxref %D
b730129771da81cb99dee6ee7af3ec60
echo x - sms1xxx-kmod/distinfo
sed 's/^X//' >sms1xxx-kmod/distinfo << 'f3043b82554098007fe98f5888bbd2e3'
XMD5 (sms1xxx/siano-20100203.tgz) = 986c678cdecc6f1c3d03657685770584
XSHA256 (sms1xxx/siano-20100203.tgz) = 100afe029e0ec9f8de00bd7e6e26c32480d16bd184f3d70ef4bc7b83bc31fbfb
XSIZE (sms1xxx/siano-20100203.tgz) = 479855
f3043b82554098007fe98f5888bbd2e3
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list