diff options
author | Philip M. Gollucci <pgollucci@FreeBSD.org> | 2009-01-26 17:47:34 +0000 |
---|---|---|
committer | Philip M. Gollucci <pgollucci@FreeBSD.org> | 2009-01-26 17:47:34 +0000 |
commit | 977a209ab77765e491f26392f440512b4355f24d (patch) | |
tree | 9774fe8ea0ce9df0beed0190391cda5ea7035af5 /x11-drivers | |
parent | 2e7652d189b9de53949fd736bd6d3692bd2e7e65 (diff) | |
download | ports-977a209ab77765e491f26392f440512b4355f24d.tar.gz ports-977a209ab77765e491f26392f440512b4355f24d.zip |
Notes
Diffstat (limited to 'x11-drivers')
-rw-r--r-- | x11-drivers/input-wacom/Makefile | 8 | ||||
-rw-r--r-- | x11-drivers/input-wacom/distinfo | 12 | ||||
-rw-r--r-- | x11-drivers/input-wacom/files/patch-linuxwacom-run_configure | 19 | ||||
-rw-r--r-- | x11-drivers/input-wacom/files/wacom.in | 29 |
4 files changed, 47 insertions, 21 deletions
diff --git a/x11-drivers/input-wacom/Makefile b/x11-drivers/input-wacom/Makefile index e935874af872..ef94e3fc6a2d 100644 --- a/x11-drivers/input-wacom/Makefile +++ b/x11-drivers/input-wacom/Makefile @@ -6,10 +6,10 @@ # PORTNAME= input-wacom -PORTVERSION= ${WACOM_VERSION:C/-/./g}.${KLD_VERSION} +PORTVERSION= ${KLD_VERSION}.${WACOM_VERSION:C/-/./g} CATEGORIES= x11-drivers kld MASTER_SITES= http://www.chillt.de/bsdwacom/ \ - ${MASTER_SITE_SOURCEFORGE} + SF MASTER_SITE_SUBDIR= linuxwacom DISTFILES= ${BSDWACOM}.tbz \ ${LINUXWACOM}.tar.bz2 @@ -41,8 +41,8 @@ USE_XORG= xi LINUXWACOM= linuxwacom-${WACOM_VERSION} BSDWACOM= bsdwacom-${KLD_VERSION} -WACOM_VERSION= 0.8.1-3 -KLD_VERSION= 38 +WACOM_VERSION= 0.8.2-2 +KLD_VERSION= 40 OPTIONS= UWACOMKLD "Install USB kernel module" On diff --git a/x11-drivers/input-wacom/distinfo b/x11-drivers/input-wacom/distinfo index 895e30b1301e..fb26328fce3d 100644 --- a/x11-drivers/input-wacom/distinfo +++ b/x11-drivers/input-wacom/distinfo @@ -1,6 +1,6 @@ -MD5 (xorg/driver/bsdwacom-38.tbz) = fae10723e12b5bfc5daea411639f0ed4 -SHA256 (xorg/driver/bsdwacom-38.tbz) = 0d9027b5d781cd520ebe41287b388973465e8d62109c5d3f52d68f12ede03507 -SIZE (xorg/driver/bsdwacom-38.tbz) = 19993 -MD5 (xorg/driver/linuxwacom-0.8.1-3.tar.bz2) = d09b212946e321cc503adf84e243ca99 -SHA256 (xorg/driver/linuxwacom-0.8.1-3.tar.bz2) = cf1ac159d87666d16e2e3bfad81ede93e088b3bf64bb6d2d469adceb2a4c9dee -SIZE (xorg/driver/linuxwacom-0.8.1-3.tar.bz2) = 1209228 +MD5 (xorg/driver/bsdwacom-40.tbz) = 022a5225cca8bbf3af1014d32d5c12de +SHA256 (xorg/driver/bsdwacom-40.tbz) = 42c37d321768ff29fef10eb088a87a83c94753a1b4ae5f92fd453781039a5df9 +SIZE (xorg/driver/bsdwacom-40.tbz) = 19305 +MD5 (xorg/driver/linuxwacom-0.8.2-2.tar.bz2) = bdfaf6da49b446e251ac1f98754a89a2 +SHA256 (xorg/driver/linuxwacom-0.8.2-2.tar.bz2) = 1d3b8dc397510309b14239291781135af0c4fab99907d8e0b8aad95465390733 +SIZE (xorg/driver/linuxwacom-0.8.2-2.tar.bz2) = 1098067 diff --git a/x11-drivers/input-wacom/files/patch-linuxwacom-run_configure b/x11-drivers/input-wacom/files/patch-linuxwacom-run_configure index 412e7dfde564..acd35311c258 100644 --- a/x11-drivers/input-wacom/files/patch-linuxwacom-run_configure +++ b/x11-drivers/input-wacom/files/patch-linuxwacom-run_configure @@ -1,8 +1,11 @@ ---- linuxwacom/run_configure.orig 2008-11-18 22:53:45.000000000 +0100 -+++ linuxwacom/run_configure 2008-11-18 22:56:25.000000000 +0100 -@@ -13,4 +13,4 @@ - cp files/input.h linuxwacom-0.8.1-3/src/xdrv/linux - cd linuxwacom-0.8.1-3 - patch < ../files/patch_configure --./configure --with-linux=yes --with-tcl=/usr/local/include/tcl8.4 --with-tk=/usr/local/include/tk8.4 CFLAGS="-I/usr/local/include" -+./configure --with-linux=yes --with-tcl=/usr/local/include/tcl8.4 --with-tk=/usr/local/include/tk8.4 CFLAGS="-I/usr/local/include" --prefix=${PREFIX} --enable-dlloader +--- linuxwacom/run_configure.orig 2009-01-21 11:26:52.000000000 +0100 ++++ linuxwacom/run_configure 2009-01-21 11:27:00.000000000 +0100 +@@ -1,7 +1,7 @@ + #!/bin/sh + # $Id: run_configure 40 2008-12-26 01:08:35Z undo $ + +-LINUXWACOM=0.8.2 ++LINUXWACOM=0.8.2-2 + + rm -rf linuxwacom-${LINUXWACOM} + tar xf linuxwacom-${LINUXWACOM}.tar.bz2 diff --git a/x11-drivers/input-wacom/files/wacom.in b/x11-drivers/input-wacom/files/wacom.in index aa320ca85089..fc1eb4d1f64a 100644 --- a/x11-drivers/input-wacom/files/wacom.in +++ b/x11-drivers/input-wacom/files/wacom.in @@ -6,13 +6,18 @@ # Add the following lines to /etc/rc.conf.local or /etc/rc.conf # to enable this service: # -# wacom_enable (bool): Set to NO by default. -# Set it to YES to enable wacom. +# wacom_enable (bool): Set to NO by default. +# Set it to YES to enable wacom. +# wacom_types (list): Set to "stylus eraser cursor pad touch" by +# default. A list of wacom profiles to set up. +# wacom_porttype (enum): Set to "%%PORTTYPE%%" by default. +# Set this to usb or serial. # # This script additionally offers setup and cleanup to configure Xorg # for use of the driver or remove the configuration settings. # The input devices are only added to the first ServerLayout section # and also only removed once. +# In USB mode the file /boot/loader.conf is also adjusted. # . %%RC_SUBR%% @@ -286,6 +291,14 @@ do_setup() { section_insert_line "$config" "ServerLayout" " InputDevice \"$ident\" \"SendCoreEvents\"" } + if [ "$(eval "echo \${${name}_porttype}")" = "usb" ]; then + if ! /usr/bin/grep -qx 'uwacom_load="YES"' \ + /boot/loader.conf; then + echo "Setting up /boot/loader.conf" + /bin/cp /boot/loader.conf /boot/loader.conf.orig + echo 'uwacom_load="YES"' >> /boot/loader.conf + fi + fi } # @@ -381,11 +394,21 @@ do_cleanup() { /bin/rm "$config.$$" done } + + if [ "$(eval "echo \${${name}_porttype}")" = "usb" ]; then + if /usr/bin/grep -qx 'uwacom_load="YES"' \ + /boot/loader.conf; then + echo "Cleaning up /boot/loader.conf" + /bin/cp /boot/loader.conf /boot/loader.conf.orig + /usr/bin/grep -xv 'uwacom_load="YES"' \ + /boot/loader.conf.orig > /boot/loader.conf + fi + fi + } do_start() { if /sbin/kldstat | /usr/bin/grep -q uwacom; then - echo "${name} is already running." return 0 fi echo "Starting ${name}." |