diff options
author | kwm <kwm@FreeBSD.org> | 2010-01-17 04:51:23 +0800 |
---|---|---|
committer | kwm <kwm@FreeBSD.org> | 2010-01-17 04:51:23 +0800 |
commit | fd2fe99fee03c15464eea9dd258494ea5393cb6c (patch) | |
tree | cd071d783c4e95dae2eb3046b035a3bb2c1a8ad7 /multimedia | |
parent | 144b855719879ca931eb8476c703f8598fe29b31 (diff) | |
download | freebsd-ports-gnome-fd2fe99fee03c15464eea9dd258494ea5393cb6c.tar.gz freebsd-ports-gnome-fd2fe99fee03c15464eea9dd258494ea5393cb6c.tar.zst freebsd-ports-gnome-fd2fe99fee03c15464eea9dd258494ea5393cb6c.zip |
Webcamd is a 500KiloByte daemon that enables use of hundreds of different USB
based webcam devices under the FreeBSD-8/9 operating system. The webcam daemon
is basically an application which is a port of Video4Linux USB webcam drivers
into userspace on FreeBSD. The daemon currently depends on libc, pthreads,
libusb and the VIDEO4BSD kernel module.
Submitted by: Andrew Thompson <thompsa AT FreeBSD.org>
Hans Petter Selasky <hselasky AT FreeBSD.org>
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/webcamd/Makefile | 42 | ||||
-rw-r--r-- | multimedia/webcamd/distinfo | 3 | ||||
-rw-r--r-- | multimedia/webcamd/files/webcamd.conf.in | 5 | ||||
-rw-r--r-- | multimedia/webcamd/files/webcamd.in | 25 | ||||
-rw-r--r-- | multimedia/webcamd/pkg-descr | 7 | ||||
-rw-r--r-- | multimedia/webcamd/pkg-message | 17 | ||||
-rw-r--r-- | multimedia/webcamd/pkg-plist | 3 |
7 files changed, 102 insertions, 0 deletions
diff --git a/multimedia/webcamd/Makefile b/multimedia/webcamd/Makefile new file mode 100644 index 000000000000..6040dc7978c6 --- /dev/null +++ b/multimedia/webcamd/Makefile @@ -0,0 +1,42 @@ +# Ports collection makefile for: webcamd +# Date created: 13 January 2010 +# Whom: Andrew Thompson <thompsa@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= webcamd +PORTVERSION= 0.1.0 +CATEGORIES= multimedia +MASTER_SITES= http://www.selasky.org/hans_petter/video4bsd/releases/ + +MAINTAINER= hselasky@FreeBSD.org +COMMENT= A port of Video4Linux USB webcam drivers into userspace + +BUILD_DEPENDS= ${LOCALBASE}/include/linux/videodev2.h:${PORTSDIR}/multimedia/v4l_compat \ + ${LOCALBASE}/include/video4bsd.h:${PORTSDIR}/multimedia/video4bsd-kmod +LIB_DEPENDS= v4l1.0:${PORTSDIR}/multimedia/libv4l + +USE_RC_SUBR= webcamd +CFLAGS+= -I${LOCALBASE}/include +USE_BZIP2= yes +USE_LDCONFIG= yes + +.include <bsd.port.pre.mk> + +.if ${OSVERSION} < 800000 +IGNORE= requires FreeBSD 8.0-RELEASE or later +.endif + +post-patch: + cd ${WRKSRC}/patches; ${SH} ./do_patch.sh + @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/Makefile + +post-install: + @${MKDIR} ${PREFIX}/etc/devd + @${SED} -e "s|%%PREFIX%%|${PREFIX}|g" \ + < ${FILESDIR}/webcamd.conf.in > ${WRKDIR}/webcamd.conf + ${INSTALL_DATA} "${WRKDIR}/webcamd.conf" ${PREFIX}/etc/devd + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.post.mk> diff --git a/multimedia/webcamd/distinfo b/multimedia/webcamd/distinfo new file mode 100644 index 000000000000..f1e34825e795 --- /dev/null +++ b/multimedia/webcamd/distinfo @@ -0,0 +1,3 @@ +MD5 (webcamd-0.1.0.tar.bz2) = a149b4178a2f8b87bcff0977bdebcd47 +SHA256 (webcamd-0.1.0.tar.bz2) = 3d48c35014352895c27e03842eb6498db3b1cc11c50975b7558a934961c8bd63 +SIZE (webcamd-0.1.0.tar.bz2) = 3417425 diff --git a/multimedia/webcamd/files/webcamd.conf.in b/multimedia/webcamd/files/webcamd.conf.in new file mode 100644 index 000000000000..fa26490af9ca --- /dev/null +++ b/multimedia/webcamd/files/webcamd.conf.in @@ -0,0 +1,5 @@ +attach 100 { + device-name "ugen[0-9]+"; + match "intclass" "(0x0e|0xff)"; + action "%%PREFIX%%/etc/rc.d/webcamd start $device-name"; +}; diff --git a/multimedia/webcamd/files/webcamd.in b/multimedia/webcamd/files/webcamd.in new file mode 100644 index 000000000000..965f75a46d3e --- /dev/null +++ b/multimedia/webcamd/files/webcamd.in @@ -0,0 +1,25 @@ +#!/bin/sh +# $FreeBSD$ +# +# PROVIDE: webcamd +# REQUIRE: DAEMON +# +# Add the following line to /etc/rc.conf[.local] to enable webcamd: +# +# webcamd_enable="YES" +# + +webcamd_enable=${webcamd_enable-"NO"} + +. %%RC_SUBR%% + +name=webcamd +rcvar=`set_rcvar` +command=%%PREFIX%%/sbin/webcamd +command_args="-B" + +load_rc_config $name +if [ $# -gt 1 ]; then + command_args="$command_args -d $2 -i 0" +fi +run_rc_command $1 diff --git a/multimedia/webcamd/pkg-descr b/multimedia/webcamd/pkg-descr new file mode 100644 index 000000000000..eeb475c9dab9 --- /dev/null +++ b/multimedia/webcamd/pkg-descr @@ -0,0 +1,7 @@ +Webcamd is a 500KiloByte daemon that enables use of hundreds of different USB +based webcam devices under the FreeBSD-8/9 operating system. The webcam daemon +is basically an application which is a port of Video4Linux USB webcam drivers +into userspace on FreeBSD. The daemon currently depends on libc, pthreads, +libusb and the VIDEO4BSD kernel module. + +WWW: http://www.selasky.org/hans_petter/video4bsd/ diff --git a/multimedia/webcamd/pkg-message b/multimedia/webcamd/pkg-message new file mode 100644 index 000000000000..d8561c68e1d7 --- /dev/null +++ b/multimedia/webcamd/pkg-message @@ -0,0 +1,17 @@ +********************************************************************* +1) webcamd requires the video4bsd kernel module, please load this +by doing + + # kldload video4bsd + +or adding + + video4bsd_load="YES" + +to your /boot/loader.conf. + +2) Please restart devd as the configuration changed + + # /etc/rc.d/devd restart + +********************************************************************* diff --git a/multimedia/webcamd/pkg-plist b/multimedia/webcamd/pkg-plist new file mode 100644 index 000000000000..2466382f8654 --- /dev/null +++ b/multimedia/webcamd/pkg-plist @@ -0,0 +1,3 @@ +etc/devd/webcamd.conf +sbin/webcamd +@dirrmtry etc/devd |