Added package files inspired from ../mail (aka the mail daemon)

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9237 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2004-10-07 13:59:12 +00:00
parent ab3a9652a0
commit 6336159bbb
4 changed files with 115 additions and 0 deletions

View File

@ -72,3 +72,6 @@ SEARCH on [ FGristFiles AddOnMonitor.cpp
Package haiku-inputkit-cvs :
input_server :
boot beos system servers ;
Packages haiku-inputkit-cvs :
README LICENSE install.sh ;

12
src/servers/input/LICENSE Normal file
View File

@ -0,0 +1,12 @@
Copyright (c) 2001-2004, Haiku, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
•Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
•Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
•Neither the name of the project nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

60
src/servers/input/README Normal file
View File

@ -0,0 +1,60 @@
Haiku Input Kit Replacement v1.0.0
ABOUT:
This is a drop-in replacement for the BeOS Input server that comes with
BeOS. Its purpose is to be 100% compatible with the original input_server
and to improve it by adding features. The package contains the following
files:
README
The file you are reading.
LICENSE
Conditions for using/distributing this package.
input_server
This is the new replacement Input Server. It will be installed in
/boot/beos/system/servers, overwriting the original input_server file.
Addons
Addons are typically needed to control input devices, and will be installed in
/boot/home/config/add-ons/input_server
Drivers
Drivers are the kernel components which know your special devices, and will be
installed in /boot/home/config/add-ons/kernel/drivers/bin
INSTALLATION:
Installation is through a zip file. Just unzip the
file somewhere and double click the install.sh icon.
ADDON INSTALLATION:
Add-ons should be installed in /boot/home/config/add-ons/
input_server/ in the subdirectory specified in the add on documentation.
This directory will be automatically created by the installation process.
The distribution contains the keyboard and mouse device addons.
FILTERS:
This release contains no filter addons. To enable them, use E-mail Filters
IMPLEMENTATION:
The latest version has the following (interesting) features:
- Add-on based architeture.
- Fully multithreaded.
TODO:
This is a partial list of what we intend to implement. Suggestions are welcome:
- More...
OTHER STUFF
Thanks to Dr. Zoidberg Enterprises for their README file :)

40
src/servers/input/install.sh Executable file
View File

@ -0,0 +1,40 @@
#!/bin/sh
base=`dirname "$0"`
cd "$base"
RETURN=`alert "There can only be ONE version of input_server on the system at one time (see the enclosed README file for why).
Choose 'Backup' if you wish to keep your old input_server, Keymap preferences app, Keyboard preferences app, Mouse preferences app, keymap app and this is the first time you're installing the InputKit Replacement. Otherwise, you should choose 'Purge' to clear the other versions from your system." "Purge" "Backup" "Abort - Don't do anything!"`
if [[ $RETURN = Purge ]]
then
# note: we don't remove libmail.so, because it doesn't matter here, and there may be symlinks and things
query -a 'BEOS:APP_SIG == "application/x-vnd.Be-input_server"' | grep /boot/beos | xargs rm -f
elif [[ $RETURN = Backup ]]
then
query -a 'BEOS:APP_SIG == "application/x-vnd.Be-input_server"' | grep /boot/beos | xargs zip -ym /boot/home/inputkit.zip
else
alert "No backup will be done. That means it's up to YOU to purge all of your old input_server and ensure that the new version is the only version."
exit -1
fi
if [ -n "$TTY" ]
then
unzip -d / install.zip
else
response=`alert "Would you like to automatically overwrite existing files, or receive a prompt?" "Overwrite" "Prompt"`
if [ $response == "Overwrite" ]
then
unzip -od / install.zip
alert "Finished installing" "Thanks"
else
if [ -e /boot/beos/apps/Terminal ]
then
terminal=/boot/beos/apps/Terminal
else
terminal=`query Terminal | head -1`
fi
$terminal -t "installer" /bin/sh "$0"
fi
fi