tux-droid-svn Mailing List for Tux Droid CE (Page 9)
Status: Beta
Brought to you by:
ks156
You can subscribe to this list here.
2007 |
Jan
|
Feb
(32) |
Mar
(108) |
Apr
(71) |
May
(38) |
Jun
(128) |
Jul
(1) |
Aug
(14) |
Sep
(77) |
Oct
(104) |
Nov
(90) |
Dec
(71) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2008 |
Jan
(81) |
Feb
(18) |
Mar
(40) |
Apr
(102) |
May
(151) |
Jun
(74) |
Jul
(151) |
Aug
(257) |
Sep
(447) |
Oct
(379) |
Nov
(404) |
Dec
(430) |
2009 |
Jan
(173) |
Feb
(236) |
Mar
(519) |
Apr
(300) |
May
(112) |
Jun
(232) |
Jul
(314) |
Aug
(58) |
Sep
(203) |
Oct
(293) |
Nov
(26) |
Dec
(109) |
2010 |
Jan
(19) |
Feb
(25) |
Mar
(33) |
Apr
(1) |
May
|
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: ks156 <c2m...@c2...> - 2009-11-24 06:34:00
|
Author: ks156 Date: 2009-11-24 07:33:43 +0100 (Tue, 24 Nov 2009) New Revision: 5907 Added: software_suite_v3/software/post-commit-test Log: * Post-commit test Added: software_suite_v3/software/post-commit-test =================================================================== |
From: /usr/share/subversion/hook-scripts/commit-email.pl:`/usr/bin/svnlook@affinitic.eu,
<in...@af...> - 2009-11-23 22:05:15
|
Author: /usr/share/subversion/hook-scripts/commit-email.pl: `/usr/bin/svnlook info /home/svn/tuxisalive/hooks -r 5906' failed with this output: Date: svnlook: Impossible d'ouvrir le fichier '/home/svn/tuxisalive/hooks/format': Aucun fichier ou répertoire de ce type New Revision: 5906 Modified: Log: /usr/share/subversion/hook-scripts/commit-email.pl: `/usr/bin/svnlook diff /home/svn/tuxisalive/hooks -r 5906' failed with this output: svnlook: Impossible d'ouvrir le fichier '/home/svn/tuxisalive/hooks/format': Aucun fichier ou répertoire de ce type |
From: remi <svn...@ky...> - 2009-11-20 12:57:49
|
Author: remi Date: 2009-11-20 13:57:28 +0100 (Fri, 20 Nov 2009) New Revision: 5906 Added: software_suite_v3/smart-core/smart-lib/c/ software_suite_v3/smart-core/smart-lib/c/hid/ software_suite_v3/smart-core/smart-lib/c/hid/branches/ software_suite_v3/smart-core/smart-lib/c/hid/tags/ software_suite_v3/smart-core/smart-lib/c/hid/trunk/ software_suite_v3/smart-core/smart-lib/c/hid/trunk/src/ software_suite_v3/smart-core/smart-lib/c/hid/trunk/src/hid_unix.c software_suite_v3/smart-core/smart-lib/c/hid/trunk/src/hid_unix.h software_suite_v3/smart-core/smart-lib/c/hid/trunk/src/hid_win32.c software_suite_v3/smart-core/smart-lib/c/hid/trunk/src/hid_win32.h software_suite_v3/smart-core/smart-lib/c/hid/trunk/src/libhid.c software_suite_v3/smart-core/smart-lib/c/hid/trunk/src/misc.h software_suite_v3/smart-core/smart-lib/c/hid/trunk/unix/ software_suite_v3/smart-core/smart-lib/c/hid/trunk/unix/Makefile software_suite_v3/smart-core/smart-lib/c/hid/trunk/win32/ software_suite_v3/smart-core/smart-lib/c/hid/trunk/win32/Makefile software_suite_v3/smart-core/smart-lib/c/hid/trunk/win32/compile.bat software_suite_v3/smart-core/smart-lib/c/hid/trunk/wrappers/ software_suite_v3/smart-core/smart-lib/c/hid/trunk/wrappers/LibHID.py Log: * Added a shared library to control hid devices Added: software_suite_v3/smart-core/smart-lib/c/hid/trunk/src/hid_unix.c =================================================================== --- software_suite_v3/smart-core/smart-lib/c/hid/trunk/src/hid_unix.c (rev 0) +++ software_suite_v3/smart-core/smart-lib/c/hid/trunk/src/hid_unix.c 2009-11-20 12:57:28 UTC (rev 5906) @@ -0,0 +1,265 @@ +/* + * Kysoh - Hid interface (only for linux) + * Copyright (C) 2009 Kysoh S.A. <in...@ky...> + * Orininaly written by Rémi Jocaille + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +/* $Id: hid_unix.c 20 2009-11-13 11:36:57Z paul $ */ + +#ifndef WIN32 + +#include <stdlib.h> +#include <stdio.h> +#include <sys/ioctl.h> +#include <sys/types.h> +#include <sys/stat.h> +#include <asm/types.h> +#include <fcntl.h> +#include <unistd.h> +#include <linux/hiddev.h> + +#include <string.h> +#include <dirent.h> + +#include "hid_unix.h" + +static int device_hdl = -1; +static char dev_path[256] = ""; +static struct hiddev_usage_ref uref_out; +static struct hiddev_report_info rinfo_out; + +/** + * \brief Search the HID dongle in a "dev" path. + * \param path Path how to search. + * \param vendor_id Dongle vendor ID. + * \param product_id Dongle product ID. + * \return true or false + */ +static bool +find_dongle_from_path(const char *path, int vendor_id, int product_id) +{ + DIR* dir; + struct dirent *dinfo; + int fd = -1; + char device_path[256] = ""; + struct hiddev_devinfo device_info; + int err; + + dir = opendir(path); + if (dir != NULL) + { + while ((dinfo = readdir(dir)) != NULL) + { + if (strncmp(dinfo->d_name, "hiddev", 6) == 0) + { + sprintf(device_path, "%s/%s", path, dinfo->d_name); + + if ((fd = open(device_path, O_RDONLY)) >= 0) + { + err = ioctl(fd, HIDIOCGDEVINFO, &device_info); + if ((device_info.vendor == vendor_id) && + ((device_info.product & 0xFFFF) == product_id)) + { + sprintf(dev_path, "%s", device_path); + device_hdl = fd; + + closedir(dir); + + return true; + } + else + { + close(fd); + } + } + } + } + + closedir(dir); + } + + return false; +} + +/** + * \brief Check if the dongle is still plugged. + * \return true or false. + */ +static bool +check_device_still_plugged(void) +{ + FILE *fp; + + if (device_hdl == -1) + { + return false; + } + else + { + fp = fopen(dev_path, "r"); + if (fp) + { + fclose(fp); + return true; + } + else + { + return false; + } + } +} + +/** + * \brief Capture the HID dongle. + * \param vendor_id Dongle vendor ID. + * \param product_id Dongle product ID. + * \return true or false. + */ +LIBLOCAL bool +device_hid_capture(int vendor_id, int product_id) +{ + /* Normal path to scan is /dev/usb */ + if (find_dongle_from_path("/dev/usb", vendor_id, product_id)) + { + return true; + } + + /* Other possible path to scan is /dev */ + if (find_dongle_from_path("/dev", vendor_id, product_id)) + { + return true; + } + + /* dongle not found */ + return false; +} + +/** + * \brief Release the access to the HID dongle. + */ +LIBLOCAL void +device_hid_release(void) +{ + if (device_hdl != -1) + { + close(device_hdl); + device_hdl = -1; + } +} + +/** + * \brief Write data to the HID dongle. + * \param size Data size. + * \param buffer Data to write. + * \return The write success. + */ +LIBLOCAL bool +device_hid_write(int size, const unsigned char *buffer) +{ + int i; + int err; + + if (!check_device_still_plugged()) + { + return false; + } + + rinfo_out.report_type = HID_REPORT_TYPE_OUTPUT; + rinfo_out.report_id = HID_REPORT_ID_FIRST; + + err = ioctl(device_hdl, HIDIOCGREPORTINFO, &rinfo_out); + if (err < 0) + { + return false; + } + + for(i = 0; i < size; i++) + { + uref_out.report_type = HID_REPORT_TYPE_OUTPUT; + uref_out.report_id = HID_REPORT_ID_FIRST; + uref_out.usage_index = i; + uref_out.value = (unsigned char)buffer[i]; + + err = ioctl(device_hdl,HIDIOCSUSAGE, &uref_out); + } + + err = ioctl(device_hdl,HIDIOCSREPORT,&rinfo_out); + + return true; +} + +/** + * \brief Read data from the HID dongle. + * \param size Data size. + * \param buffer Data buffer. + * \return The read success. + */ +LIBLOCAL bool +device_hid_read(int size, char *buffer) +{ + int i; + int err; + + if (!check_device_still_plugged()) + { + return false; + } + + rinfo_out.report_type = HID_REPORT_TYPE_INPUT; + rinfo_out.report_id = HID_REPORT_ID_FIRST; + + err = ioctl(device_hdl, HIDIOCGREPORTINFO, &rinfo_out); + if (err < 0) + { + return false; + } + + for (i = 0; i < size; i++) + { + uref_out.report_type = HID_REPORT_TYPE_INPUT; + uref_out.report_id = HID_REPORT_ID_FIRST; + uref_out.usage_index = i; + + err = ioctl(device_hdl, HIDIOCGUCODE, &uref_out); + if (err < 0) + { + return false; + } + + err = ioctl(device_hdl, HIDIOCGUSAGE, &uref_out); + if (err < 0) + { + return false; + } + + buffer[i] = uref_out.value; + } + + return true; +} + +/** + * \brief Check that the hid device is still connected. + * \return true or false. + */ +LIBLOCAL bool +device_hid_still_connected(void) +{ + return check_device_still_plugged(); +} + +#endif /* Not WIN32 */ Added: software_suite_v3/smart-core/smart-lib/c/hid/trunk/src/hid_unix.h =================================================================== --- software_suite_v3/smart-core/smart-lib/c/hid/trunk/src/hid_unix.h (rev 0) +++ software_suite_v3/smart-core/smart-lib/c/hid/trunk/src/hid_unix.h 2009-11-20 12:57:28 UTC (rev 5906) @@ -0,0 +1,50 @@ +/* + * Kysoh - Hid interface (only for linux) + * Copyright (C) 2009 Kysoh S.A. <in...@ky...> + * Orininaly written by Rémi Jocaille + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +/* $Id: hid_unix.h 17 2009-11-13 11:31:15Z paul $ */ + +/** + * \file hid_unix.h + * \brief Tux HID header. + * \author rem...@c2... + * \ingroup hid_interface + */ + +#ifndef WIN32 + +#ifndef _TUX_HID_H_ +#define _TUX_HID_H_ + +#include <stdbool.h> +#include "misc.h" + +/** \brief HID USB timout */ +#define HID_RW_TIMEOUT 1000 + +extern bool device_hid_capture(int vendor_id, int product_id); +extern void device_hid_release(void); +extern bool device_hid_write(int size, const unsigned char *buffer); +extern bool device_hid_read(int size, char *buffer); +extern bool device_hid_still_connected(void); + +#endif /* _TUX_HID_H_ */ + +#endif /* Not WIN32 */ + Added: software_suite_v3/smart-core/smart-lib/c/hid/trunk/src/hid_win32.c =================================================================== --- software_suite_v3/smart-core/smart-lib/c/hid/trunk/src/hid_win32.c (rev 0) +++ software_suite_v3/smart-core/smart-lib/c/hid/trunk/src/hid_win32.c 2009-11-20 12:57:28 UTC (rev 5906) @@ -0,0 +1,267 @@ +/* + * Kysoh - Hid interface (only for windows) + * Copyright (C) 2009 Kysoh S.A. <in...@ky...> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA + * 02111-1307, USA. + */ + +/** + * \file hid_win32.c + * \brief HID functions. + * \author rem...@c2... + * \ingroup hid_interface + */ + +#ifdef WIN32 + +#include <windows.h> +#include <hidsdi.h> +#include <setupapi.h> +#include <dbt.h> +#include <stdbool.h> +#include <stdio.h> +#include "hid_win32.h" + +static char device_symbolic_name[256] = ""; +static HANDLE tux_device_hdl = NULL; +static COMMTIMEOUTS timeout; + +/** + * \brief Capture the HID dongle. + * \param vendor_id Dongle vendor ID. + * \param product_id Dongle product ID. + * \return true or false. + */ +LIBLOCAL bool +device_hid_capture(int vendor_id, int product_id) +{ + GUID hid_guid; + HANDLE h_dev_info; + SP_DEVICE_INTERFACE_DATA dev_info_data; + PSP_DEVICE_INTERFACE_DETAIL_DATA detail_data = NULL; + int member_index = 0; + bool last_device = false; + long result; + unsigned long length = 0; + ULONG required; + HANDLE device_hdl = NULL; + HIDD_ATTRIBUTES attributes; + bool tux_found = false; + + if (tux_device_hdl != NULL) + { + return false; + } + + HidD_GetHidGuid(&hid_guid); + + h_dev_info = SetupDiGetClassDevs(&hid_guid, + NULL, NULL, DIGCF_PRESENT | DIGCF_INTERFACEDEVICE); + + dev_info_data.cbSize = sizeof(dev_info_data); + + member_index = 0; + + do + { + result = SetupDiEnumDeviceInterfaces(h_dev_info, 0, + &hid_guid, member_index, &dev_info_data); + + if (result != 0) + { + result = SetupDiGetDeviceInterfaceDetail(h_dev_info, + &dev_info_data, NULL, 0, &length, NULL); + + detail_data = (PSP_DEVICE_INTERFACE_DETAIL_DATA)malloc(length); + detail_data->cbSize = sizeof(SP_DEVICE_INTERFACE_DETAIL_DATA); + + result = SetupDiGetDeviceInterfaceDetail(h_dev_info, + &dev_info_data, detail_data, length, &required, NULL); + + device_hdl = CreateFile(detail_data->DevicePath, 0, + FILE_SHARE_READ|FILE_SHARE_WRITE, (LPSECURITY_ATTRIBUTES)NULL, + OPEN_EXISTING, 0, NULL); + + attributes.Size = sizeof(attributes); + result = HidD_GetAttributes(device_hdl, &attributes); + + if ((attributes.VendorID == vendor_id) && + (attributes.ProductID == product_id)) + { + sprintf(device_symbolic_name, "%s", detail_data->DevicePath); + + CloseHandle(device_hdl); + + tux_device_hdl = CreateFile(detail_data->DevicePath, + GENERIC_WRITE|GENERIC_READ, + FILE_SHARE_READ|FILE_SHARE_WRITE, + (LPSECURITY_ATTRIBUTES)NULL, + OPEN_EXISTING, 0, NULL); + + timeout.ReadTotalTimeoutConstant = HID_RW_TIMEOUT; + timeout.WriteTotalTimeoutConstant = HID_RW_TIMEOUT; + SetCommTimeouts(tux_device_hdl, &timeout); + + tux_found = true; + + break; + } + + CloseHandle(device_hdl); + free(detail_data); + } + else + { + last_device = true; + } + + member_index++; + + } + while (last_device == false); + + SetupDiDestroyDeviceInfoList(h_dev_info); + + if (tux_found) + { + return true; + } + else + { + return false; + } +} + +/** + * \brief Release the access to the HID dongle. + */ +LIBLOCAL void +device_hid_release(void) +{ + if (tux_device_hdl != NULL) + { + CloseHandle(tux_device_hdl); + tux_device_hdl = NULL; + } +} + +/** + * \brief Write data to the HID dongle. + * \param size Data size. + * \param buffer Data to write. + * \return The write success. + */ +LIBLOCAL bool +device_hid_write(int size, const unsigned char *buffer) +{ + long wrt_count; + char report[REPORT_SIZE_OUT + 1] = { [0 ... REPORT_SIZE_OUT] = 0 }; + long result; + + if (size > REPORT_SIZE_OUT) + { + return false; + } + + if (tux_device_hdl == NULL) + { + return false; + } + + report[0] = 0; + memcpy(&report[1], buffer, size); + + result = WriteFile(tux_device_hdl, report, REPORT_SIZE_OUT + 1, &wrt_count, + NULL); + + if (!result) + { + return false; + } + else + { + return true; + } +} + +/** + * \brief Read data from the HID dongle. + * \param size Data size. + * \param buffer Data buffer. + * \return The read success. + */ +LIBLOCAL bool +device_hid_read(int size, unsigned char *buffer) +{ + long rd_count; + char report[REPORT_SIZE_IN + 1]; + long result; + + if (size > REPORT_SIZE_IN) + { + return false; + } + + if (tux_device_hdl == NULL) + { + return false; + } + + result = ReadFile(tux_device_hdl, report, REPORT_SIZE_IN + 1, &rd_count, + NULL); + + memcpy(buffer, &report[1], size); + + if (!result) + { + return false; + } + else + { + return true; + } +} + +/** + * \brief Check that the hid device is still connected. + * \return true or false. + */ +LIBLOCAL bool +device_hid_still_connected(void) +{ + long result; + HIDD_ATTRIBUTES attributes; + + if (tux_device_hdl == NULL) + { + return false; + } + else + { + attributes.Size = sizeof(attributes); + result = HidD_GetAttributes(tux_device_hdl, &attributes); + if (result != 0) + { + return true; + } + else + { + return false; + } + } +} + +#endif /* WIN32 */ Added: software_suite_v3/smart-core/smart-lib/c/hid/trunk/src/hid_win32.h =================================================================== --- software_suite_v3/smart-core/smart-lib/c/hid/trunk/src/hid_win32.h (rev 0) +++ software_suite_v3/smart-core/smart-lib/c/hid/trunk/src/hid_win32.h 2009-11-20 12:57:28 UTC (rev 5906) @@ -0,0 +1,49 @@ +/* + * Kysoh - Hid interface (only for windows) + * Copyright (C) 2009 Kysoh S.A. <in...@ky...> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA + * 02111-1307, USA. + */ + +/** + * \file hid_win32.h + * \brief Tux HID header. + * \author rem...@c2... + * \ingroup hid_interface + */ + +#ifdef WIN32 + +#ifndef _HID_H_ +#define _HID_H_ +#include <stdbool.h> +#include "misc.h" +/** \brief HID USB timout */ +#define HID_RW_TIMEOUT 1000 +/** \brief HID input report size */ +#define REPORT_SIZE_IN 64 +/** \brief HID output report size */ +#define REPORT_SIZE_OUT 64 + +extern bool device_hid_capture(int vendor_id, int product_id); +extern void device_hid_release(void); +extern bool device_hid_write(int size, const unsigned char *buffer); +extern bool device_hid_read(int size, unsigned char *buffer); +extern bool device_hid_still_connected(void); + +#endif /* _HID_H_ */ + +#endif /* WIN32 */ Added: software_suite_v3/smart-core/smart-lib/c/hid/trunk/src/libhid.c =================================================================== --- software_suite_v3/smart-core/smart-lib/c/hid/trunk/src/libhid.c (rev 0) +++ software_suite_v3/smart-core/smart-lib/c/hid/trunk/src/libhid.c 2009-11-20 12:57:28 UTC (rev 5906) @@ -0,0 +1,85 @@ +/* + * Kysoh - Hid interface + * Copyright (C) 2009 Kysoh S.A. <in...@ky...> + * Orininaly written by Rémi Jocaille + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#include <stdlib.h> +#include <stdio.h> +#include <stdint.h> +#include <stdbool.h> +#include "misc.h" +#ifndef WIN32 +# include "hid_unix.h" +#else +# include "hid_win32.h" +#endif + +/** + * \brief Capture the HID device. + * \param vendorId Device vendor ID. + * \param productId Device product ID. + * \return true or false. + */ +LIBEXPORT bool +LIBHID_Capture(int vendorId, int productId) +{ + return device_hid_capture(vendorId, productId); +} + +/** + * \brief Release the access to the HID dongle. + */ +LIBEXPORT void +LIBHID_Release(void) +{ + device_hid_release(); +} + +/** + * \brief Write data to the HID device. + * \param size Data size. + * \param buffer Data to write. + * \return The write success. + */ +LIBEXPORT bool +LIBHID_Write(int size, const unsigned char *buffer) +{ + return device_hid_write(size, buffer); +} + +/** + * \brief Read data from the HID device. + * \param size Data size. + * \param buffer Data buffer. + * \return The read success. + */ +LIBEXPORT bool +LIBHID_Read(int size, char *buffer) +{ + return device_hid_read(size, buffer); +} + +/** + * \brief Check that the HID device is still connected. + * \return true or false. + */ +LIBEXPORT bool +LIBHID_StillConnected(void) +{ + return device_hid_still_connected(); +} Added: software_suite_v3/smart-core/smart-lib/c/hid/trunk/src/misc.h =================================================================== --- software_suite_v3/smart-core/smart-lib/c/hid/trunk/src/misc.h (rev 0) +++ software_suite_v3/smart-core/smart-lib/c/hid/trunk/src/misc.h 2009-11-20 12:57:28 UTC (rev 5906) @@ -0,0 +1,30 @@ +/* + * Kysoh - Hid interface + * Copyright (C) 2009 Kysoh S.A. <in...@ky...> + * Orininaly written by Rémi Jocaille + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#ifdef WIN32 +# include <windows.h> +# define sleep(sec) Sleep(sec * 1000) +# define usleep(usec) Sleep(usec / 1000) +# define LIBEXPORT __declspec(dllexport) +# define LIBLOCAL +#else +# define LIBEXPORT __attribute__ ((visibility ("default"))) +# define LIBLOCAL __attribute__ ((visibility ("hidden"))) +#endif Added: software_suite_v3/smart-core/smart-lib/c/hid/trunk/unix/Makefile =================================================================== --- software_suite_v3/smart-core/smart-lib/c/hid/trunk/unix/Makefile (rev 0) +++ software_suite_v3/smart-core/smart-lib/c/hid/trunk/unix/Makefile 2009-11-20 12:57:28 UTC (rev 5906) @@ -0,0 +1,33 @@ +PROJECT = libhid +CC = gcc +OBJ_DIR = ./obj +SRC_DIR = ../src +OUTPUT_DIR = ./ +TARGET = libhid.so +C_INCLUDE_DIRS = -I"/usr/local/include" +C_PREPROC = +CFLAGS = -pipe -std=gnu99 -Wall -g0 -O2 -fPIC +RC_INCLUDE_DIRS = +RC_PREPROC = +RCFLAGS = +LIB_DIRS = +LIBS = -lm +LDFLAGS = -pipe -shared + +SRC_OBJS = \ + $(OBJ_DIR)/hid_unix.o \ + $(OBJ_DIR)/libhid.o + +.PHONY: make clean + +make: + -@if [ ! -d "$(OBJ_DIR)" ]; then mkdir "$(OBJ_DIR)"; fi + -@if [ ! -d "$(OUTPUT_DIR)" ]; then mkdir "$(OUTPUT_DIR)"; fi + $(CC) -c $(CFLAGS) $(SRC_DIR)/hid_unix.c $(C_INCLUDE_DIRS) -o $(OBJ_DIR)/hid_unix.o + $(CC) -c $(CFLAGS) $(SRC_DIR)/libhid.c $(C_INCLUDE_DIRS) -o $(OBJ_DIR)/libhid.o + $(CC) -o "$(OUTPUT_DIR)$(TARGET)" $(SRC_OBJS) $(LIB_DIRS) $(LIBS) $(LDFLAGS) + -@ar rcs $(OUTPUT_DIR)/libhid.a $(SRC_OBJS) + -@rm -fR $(OBJ_DIR)/*.o + +clean: + -@rm -fR $(OBJ_DIR)/*.o $(OBJ_DIR) $(PROJECT).a $(PROJECT).so Added: software_suite_v3/smart-core/smart-lib/c/hid/trunk/win32/Makefile =================================================================== --- software_suite_v3/smart-core/smart-lib/c/hid/trunk/win32/Makefile (rev 0) +++ software_suite_v3/smart-core/smart-lib/c/hid/trunk/win32/Makefile 2009-11-20 12:57:28 UTC (rev 5906) @@ -0,0 +1,37 @@ +# +# You can use this makefile in the MSYS environement with MinGW installed. +# This soft need the windows DDK. +# Please change the "C_INCLUDE_DIRS" variable with you DDK path. +# +PROJECT = libhid +CC = gcc +OBJ_DIR = ./obj +SRC_DIR = ../src +OUTPUT_DIR = ./ +TARGET = libhid.dll +C_INCLUDE_DIRS = -I C:/MinGWStudio/MinGW/include/ddk +C_PREPROC = +CFLAGS = -pipe -Wall -g2 -O0 +RC_INCLUDE_DIRS = +RC_PREPROC = +RCFLAGS = +LIB_DIRS = +LIBS = -lwinmm -lhid -lsetupapi -lhidparse +LDFLAGS = -pipe -shared -Wl,--output-def,"$(OUTPUT_DIR)\libhid.def",--out-implib,"$(OUTPUT_DIR)\libhid.a" -s + +SRC_OBJS = \ + $(OBJ_DIR)/hid_win32.o \ + $(OBJ_DIR)/libhid.o + +.PHONY: make clean + +make: + -@if [ ! -d "$(OBJ_DIR)" ]; then mkdir "$(OBJ_DIR)"; fi + -@if [ ! -d "$(OUTPUT_DIR)" ]; then mkdir "$(OUTPUT_DIR)"; fi + $(CC) -c $(CFLAGS) $(SRC_DIR)/hid_win32.c $(C_INCLUDE_DIRS) -o $(OBJ_DIR)/hid_win32.o + $(CC) -c $(CFLAGS) $(SRC_DIR)/libhid.c $(C_INCLUDE_DIRS) -o $(OBJ_DIR)/libhid.o + $(CC) -o "$(OUTPUT_DIR)\$(TARGET)" $(SRC_OBJS) $(LIB_DIRS) $(LIBS) $(LDFLAGS) + -@rm -fR $(OBJ_DIR)/*.o + +clean: + -@rm -fR $(OBJ_DIR)/*.o Added: software_suite_v3/smart-core/smart-lib/c/hid/trunk/win32/compile.bat =================================================================== --- software_suite_v3/smart-core/smart-lib/c/hid/trunk/win32/compile.bat (rev 0) +++ software_suite_v3/smart-core/smart-lib/c/hid/trunk/win32/compile.bat 2009-11-20 12:57:28 UTC (rev 5906) @@ -0,0 +1,3 @@ +set PATH=C:\MinGWStudio\MinGW\bin;%PATH% +make.exe -f Makefile +cmd \ No newline at end of file Added: software_suite_v3/smart-core/smart-lib/c/hid/trunk/wrappers/LibHID.py =================================================================== --- software_suite_v3/smart-core/smart-lib/c/hid/trunk/wrappers/LibHID.py (rev 0) +++ software_suite_v3/smart-core/smart-lib/c/hid/trunk/wrappers/LibHID.py 2009-11-20 12:57:28 UTC (rev 5906) @@ -0,0 +1,189 @@ +#!/usr/bin/python + +# Copyright (C) 2009 Kysoh S.A. <in...@ky...> +# Distributed under the terms of the GNU General Public License +# http://www.gnu.org/copyleft/gpl.html + +import os +import sys +import time +from ctypes import * + +# ============================================================================== +# MPatern ctype object. +# ============================================================================== +class MPatern(Structure): + """MPatern ctype object. + """ + _fields_ = [("array", c_byte * 64)] + +# ============================================================================== +# LibHID Object. +# ============================================================================== +class LibHID(object): + """LibHID Object. + """ + + # -------------------------------------------------------------------------- + # Constructor. + # -------------------------------------------------------------------------- + def __init__(self, vendorId, productId): + """Constructor. + @param vendorId: Device vendor Id. + @param productId: Device product Id. + """ + self.__vendorId = vendorId + self.__productId = productId + libraryPath = "" + mPath, mFile = os.path.split(__file__) + if os.name == 'nt': + libraryPath = os.path.join(mPath, "libhid.dll") + else: + libraryPath = os.path.join(mPath, "libhid.so") + self.lib = None + if os.path.isfile(libraryPath): + try: + self.lib = CDLL(libraryPath) + except: + pass + else: + pass + + # -------------------------------------------------------------------------- + # Capture the device. + # -------------------------------------------------------------------------- + def capture(self): + """Capture the device. + """ + if self.lib == None: + return False + else: + ret = self.lib.LIBHID_Capture(c_int(self.__vendorId), c_int(self.__productId)) + if ret == 0: + return False + else: + return True + + # -------------------------------------------------------------------------- + # Release the device. + # -------------------------------------------------------------------------- + def release(self): + """Release the device. + """ + if self.lib == None: + return + else: + self.lib.LIBHID_Release() + + # -------------------------------------------------------------------------- + # Read data from the device. + # -------------------------------------------------------------------------- + def read(self, data): + """Read data from the device. + @param data: Data to read as List (max length is 64) + @return: True or False. + """ + if self.lib == None: + return False + else: + size = len(data) + if size > 64: + return False + dSize = 64 - len(data) + data = data + [0] * dSize + cData = self.__listToMPatern(data) + ret = self.lib.LIBHID_Read(c_int(size), pointer(cData)) + if ret == 0: + return False + else: + for i in range(len(data)): + data[i] = cData.array[i] + return True + + # -------------------------------------------------------------------------- + # Write data to the device. + # -------------------------------------------------------------------------- + def write(self, data): + """Write data to the device. + @param data: Data to write as List (max length is 64) + @return: True or False. + """ + if self.lib == None: + return False + else: + size = len(data) + if size > 64: + return False + dSize = 64 - len(data) + data = data + [0] * dSize + cData = self.__listToMPatern(data) + ret = self.lib.LIBHID_Write(c_int(size), pointer(cData)) + if ret == 0: + return False + else: + return True + + # -------------------------------------------------------------------------- + # Check if the device is connected. + # -------------------------------------------------------------------------- + def isConnected(self): + """Check if the device is connected. + @return: True or False. + """ + if self.lib == None: + return False + else: + ret = self.lib.LIBHID_StillConnected() + if ret == 0: + return False + else: + return True + + # -------------------------------------------------------------------------- + # Wait for device connected. + # -------------------------------------------------------------------------- + def waitForConnected(self, timeout = 10.0): + """Wait for device connected. + @param timeout: Maximal time to wait (default is 10 secondes). + @return: True or False. + """ + if self.lib == None: + return False + else: + if self.isConnected(): + return True + cycles = (int)(timeout * 4) + for i in range(cycles): + if self.capture(): + return True + time.sleep(0.25) + return False + + # -------------------------------------------------------------------------- + # Wait for device disconnected. + # -------------------------------------------------------------------------- + def waitForDisconnected(self, timeout = 10.0): + """Wait for device disconnected. + @param timeout: Maximal time to wait (default is 10 secondes). + @return: True or False. + """ + if self.lib == None: + return True + else: + cycles = (int)(timeout * 4) + for i in range(cycles): + if not self.isConnected(): + return True + time.sleep(0.25) + return False + + # -------------------------------------------------------------------------- + # Convert a list to cType char array. + # -------------------------------------------------------------------------- + def __listToMPatern(self, charList): + """Convert a list to cType char array. + """ + t_char = tuple(charList) + self.p = MPatern() + self.p.array = (c_byte * len(t_char))(*t_char) + return self.p |
From: SVN C. <svn...@ky...> - 2009-11-18 13:57:25
|
. |
From: /usr/share/subversion/hook-scripts/commit-email.pl:`/usr/bin/svnlook@affinitic.eu,
<in...@af...> - 2009-11-18 13:25:07
|
Author: /usr/share/subversion/hook-scripts/commit-email.pl: `/usr/bin/svnlook info /home/svn/tuxisalive/hooks -r 5905' failed with this output: Date: svnlook: Impossible d'ouvrir le fichier '/home/svn/tuxisalive/hooks/format': Aucun fichier ou répertoire de ce type New Revision: 5905 Modified: Log: /usr/share/subversion/hook-scripts/commit-email.pl: `/usr/bin/svnlook diff /home/svn/tuxisalive/hooks -r 5905' failed with this output: svnlook: Impossible d'ouvrir le fichier '/home/svn/tuxisalive/hooks/format': Aucun fichier ou répertoire de ce type |
From: Paul R. <pau...@ky...> - 2009-11-18 12:42:26
|
Hi all, As you maybe noticed, we'd a problem with this mailing list. The log and diffs from the revision 5815 to revision 5895 have not been sent. All should be functional now. Sorry for the inconveniences. Paul Rathgeb -- ks156 |
From: remi <c2m...@c2...> - 2009-11-18 11:40:42
|
Author: remi Date: 2009-11-18 12:40:32 +0100 (Wed, 18 Nov 2009) New Revision: 5905 Removed: software_suite_v3/smart-core/smart-server/branches/no_tux_dependencies/data/web_interface/user_01/ software_suite_v3/smart-core/smart-server/branches/no_tux_dependencies/resources/01_drivers/00_resourceTuxDriver.py software_suite_v3/smart-core/smart-server/branches/no_tux_dependencies/resources/01_drivers/01_resourceTuxOSL.py software_suite_v3/smart-core/smart-server/branches/no_tux_dependencies/resources/02_robot/00_resourceAttitune.py software_suite_v3/smart-core/smart-server/branches/no_tux_dependencies/resources/02_robot/01_resourceEyes.py software_suite_v3/smart-core/smart-server/branches/no_tux_dependencies/resources/02_robot/02_resourceFlippers.py software_suite_v3/smart-core/smart-server/branches/no_tux_dependencies/resources/02_robot/03_resourceLeds.py software_suite_v3/smart-core/smart-server/branches/no_tux_dependencies/resources/02_robot/04_resourceMacro.py software_suite_v3/smart-core/smart-server/branches/no_tux_dependencies/resources/02_robot/05_resourceMouth.py software_suite_v3/smart-core/smart-server/branches/no_tux_dependencies/resources/02_robot/06_resourceSoundFlash.py software_suite_v3/smart-core/smart-server/branches/no_tux_dependencies/resources/02_robot/07_resourceSpinning.py software_suite_v3/smart-core/smart-server/branches/no_tux_dependencies/resources/02_robot/08_resourceTTS.py software_suite_v3/smart-core/smart-server/branches/no_tux_dependencies/resources/02_robot/09_resourceWav.py software_suite_v3/smart-core/smart-server/branches/no_tux_dependencies/resources/02_robot/10_resourceRF.py software_suite_v3/smart-core/smart-server/branches/no_tux_dependencies/resources/03_content_servers/00_resourceAttituneManager.py software_suite_v3/smart-core/smart-server/branches/no_tux_dependencies/resources/04_robot_content_interactions/00_resourceRobotContentInteractions.py software_suite_v3/smart-core/smart-server/branches/no_tux_dependencies/resources/07_web_interfaces/01_resourceWIUser01.py software_suite_v3/smart-core/smart-server/branches/no_tux_dependencies/util/driver/ software_suite_v3/smart-core/smart-server/branches/no_tux_dependencies/util/osl/ Modified: software_suite_v3/smart-core/smart-server/branches/no_tux_dependencies/TDSAutoUpdater.py software_suite_v3/smart-core/smart-server/branches/no_tux_dependencies/resources/03_content_servers/01_resourcePluginsServer.py software_suite_v3/smart-core/smart-server/branches/no_tux_dependencies/resources/03_content_servers/03_resourceUgcServer.py software_suite_v3/smart-core/smart-server/branches/no_tux_dependencies/resources/05_user_configurations/00_resourceUsers.py Log: * Removed TuxDriver and TuxOsl dependencies * Removed TuxBox interface * Please uses the page "http://127.0.0.1:<port>/devel/" to configure and launch plugins/gadgets/ugcs Modified: software_suite_v3/smart-core/smart-server/branches/no_tux_dependencies/TDSAutoUpdater.py =================================================================== --- software_suite_v3/smart-core/smart-server/branches/no_tux_dependencies/TDSAutoUpdater.py 2009-11-18 10:32:56 UTC (rev 5904) +++ software_suite_v3/smart-core/smart-server/branches/no_tux_dependencies/TDSAutoUpdater.py 2009-11-18 11:40:32 UTC (rev 5905) @@ -30,32 +30,9 @@ PART_CVER_FILE = 2 PART_DEFAULT_VER = 3 -UPDATES_PARTS = { - 'smart_server' : [ - 'http://ftp.kysoh.com/ssv3/smart_core/smart_server/%s.conf' % DIST_STATE, - 'smart_server.conf', - 'smart_server.cver', - __version__, - ], - 'smart_api' : [ - 'http://ftp.kysoh.com/ssv3/smart_core/smart_api/%s.conf' % DIST_STATE, - 'smart_api.conf', - 'smart_api.cver', - '', - ], - 'smart_content' : [ - 'http://ftp.kysoh.com/ssv3/smart_core/smart_content/%s.conf' % DIST_STATE, - 'smart_content.conf', - 'smart_content.cver', - '', - ], -} +UPDATES_PARTS = {} -PART_NAMES = [ - 'smart_content', - 'smart_api', - 'smart_server', -] +PART_NAMES = [] # ------------------------------------------------------------------------------ # Tux Droid Server : Auto updater. Deleted: software_suite_v3/smart-core/smart-server/branches/no_tux_dependencies/resources/01_drivers/00_resourceTuxDriver.py =================================================================== --- software_suite_v3/smart-core/smart-server/branches/no_tux_dependencies/resources/01_drivers/00_resourceTuxDriver.py 2009-11-18 10:32:56 UTC (rev 5904) +++ software_suite_v3/smart-core/smart-server/branches/no_tux_dependencies/resources/01_drivers/00_resourceTuxDriver.py 2009-11-18 11:40:32 UTC (rev 5905) @@ -1,704 +0,0 @@ -# Copyright (C) 2009 C2ME Sa -# Remi Jocaille <rem...@c2...> -# Distributed under the terms of the GNU General Public License -# http://www.gnu.org/copyleft/gpl.html - -from util.driver import * - -# ============================================================================== -# ****************************************************************************** -# RESOURCE DECLARATION -# ****************************************************************************** -# ============================================================================== - -# ============================================================================== -# Declaration of the resource "tuxdriver". -# ============================================================================== -class TDSResourceTuxDriver(TDSResource): - """Resource tuxdriver class. - """ - - # ========================================================================== - # Inherited methods from TDSResource - # ========================================================================== - - # -------------------------------------------------------------------------- - # Configure the resource. - # -------------------------------------------------------------------------- - def configure(self): - """Configure the resource. - """ - # General configuration (inherited from ancestor) - self.name = "tuxdriver" - self.comment = "Resource to handling the TuxDriver library." - self.fileName = RESOURCE_FILENAME - # Specific - # Registering the Tuxdriver statuses - for statusName in SW_NAME_DRIVER: - eventsHandler.insert(statusName) - # Registering the statuses which must be excluded by default by the - # clients. - clientsManager.addDefaultExcludedEvent(ST_NAME_BATTERY_STATE) - clientsManager.addDefaultExcludedEvent(ST_NAME_BATTERY_LEVEL) - clientsManager.addDefaultExcludedEvent(ST_NAME_LIGHT_LEVEL) - # Registering the statuses which need an exlusive access for the - # RESTRICTED clients. - clientsManager.addRestrictedEvent(ST_NAME_HEAD_BUTTON) - clientsManager.addRestrictedEvent(ST_NAME_LEFT_BUTTON) - clientsManager.addRestrictedEvent(ST_NAME_RIGHT_BUTTON) - clientsManager.addRestrictedEvent(ST_NAME_REMOTE_BUTTON) - # Create and configure a Tux Driver object - self.__tuxDriver = TuxDrv() - self.__tuxDriver.SetLogLevel(TDS_CONF_LOG_LEVEL) - self.__tuxDriver.SetLogTarget(TDS_CONF_LOG_TARGET) - self.__tuxDriver.SetStatusCallback(self.__onStatusCallback) - self.__tuxDriver.SetEndCycleCallback(self.__onEndOfCycleCallback) - eventsHandler.getEventHandler(ST_NAME_DONGLE_PLUG).register(self.__onDonglePlugCallback) - # Others - self.__donglePlugged = False - self.__statusesStruct = [] - - # -------------------------------------------------------------------------- - # Start the resource. - # -------------------------------------------------------------------------- - def start(self): - """Start the resource. - """ - t = threading.Thread(target = self.__tuxDriver.Start) - t.start() - - # -------------------------------------------------------------------------- - # Stop the resource. - # -------------------------------------------------------------------------- - def stop(self): - """Stop the resource. - """ - self.__tuxDriver.Stop() - - # ========================================================================== - # Private methods - # ========================================================================== - - # -------------------------------------------------------------------------- - # Event on status. - # -------------------------------------------------------------------------- - def __onStatusCallback(self, status): - """Event on status. - @param status: The status. - """ - self.__statusesStruct.append(self.__tuxDriver.GetStatusStruct(status)) - - # -------------------------------------------------------------------------- - # Event on tuxdriver end of cycle ~100msec. - # -------------------------------------------------------------------------- - def __onEndOfCycleCallback(self): - """Event on tuxdriver end of cycle ~100msec. - """ - def async(): - clientsManager.pushEvents(self.__statusesStruct) - for statusStruct in self.__statusesStruct: - eventsHandler.emit(statusStruct['name'], (statusStruct['value'], - float(statusStruct['delay']))) - self.__statusesStruct = [] - t = threading.Thread(target = async) - t.start() - - # -------------------------------------------------------------------------- - # Event on dongle plug/unplug. - # -------------------------------------------------------------------------- - def __onDonglePlugCallback(self, value, delay): - """Event on dongle plug/unplug. - """ - self.__donglePlugged = value - if value: - self.__initializeStatesInEventsHandler() - - # -------------------------------------------------------------------------- - # Initialize statuses state in the events handler. - # -------------------------------------------------------------------------- - def __initializeStatesInEventsHandler(self): - """Initialize statuses state in the events handler. - """ - def async(): - states = self.__tuxDriver.GetAllStatusState() - if len(states) > 0: - states = states[:-1] - states = states.split('\n') - for state in states: - stateStruct = self.__tuxDriver.GetStatusStruct(state) - if stateStruct['name'] != "None": - eventsHandler.updateState(stateStruct['name'], ( - stateStruct['value'], float(stateStruct['delay']))) - t = threading.Thread(target = async) - t.start() - - # ========================================================================== - # Public methods - # ========================================================================== - - # Misc --------------------------------------------------------------------- - - # -------------------------------------------------------------------------- - # Get if the dongle is plugged or not. - # -------------------------------------------------------------------------- - def getDonglePlugged(self): - """Get if the dongle is plugged or not. - @return: True or False. - """ - return self.__donglePlugged - - # -------------------------------------------------------------------------- - # Reset the body positions and clear the commands stack. - # -------------------------------------------------------------------------- - def clearAll(self): - """Reset the body positions and clear the commands stack. - """ - self.__tuxDriver.ClearCommandStack() - self.__tuxDriver.ResetPositions() - self.__tuxDriver.PerformCommand(0.0,'TUX_CMD:LED:ON:LED_BOTH,1.0') - - # -------------------------------------------------------------------------- - # Execute a macro text. - # -------------------------------------------------------------------------- - def executeMacro(self, macro): - """Execute a macro text. - @param macro: Macro text. - """ - self.__tuxDriver.PerformMacroText(macro) - - # -------------------------------------------------------------------------- - # Execute a RAW command. - # -------------------------------------------------------------------------- - def executeRawCommand(self, rawCommand, delay = 0.0): - """Execute a RAW command. - @param rawCommand: RAW command. - @param delay: Delay before to execute the command. - """ - self.__tuxDriver.PerformCommand(0.0, rawCommand) - - # Sound -------------------------------------------------------------------- - - # -------------------------------------------------------------------------- - # Set the current sound channel in the dongle. - # -------------------------------------------------------------------------- - def setSoundChannel(self, channelName): - """Set the current sound channel in the dongle. - @param channelName: Name of the channel. <GENERAL|TTS> - """ - def async(): - cmd = "TUX_CMD:AUDIO:CHANNEL_%s" % channelName - self.__tuxDriver.PerformCommand(0.0, cmd) - t = threading.Thread(target = async) - t.start() - - # -------------------------------------------------------------------------- - # Play a sound flash. - # -------------------------------------------------------------------------- - def playSound(self, track, volume): - """Play a sound flash. - @param track: Number of the sound to play <1..255> - @param volume: Volume of the sound <0.0 .. 100.0> - @return: True or False. (depend of the dongle plug state) - """ - if not self.__donglePlugged: - return False - def async(): - cmd = 'TUX_CMD:SOUND_FLASH:PLAY:%d,%f' % (track, volume) - self.__tuxDriver.PerformCommand(0.0, cmd) - t = threading.Thread(target = async) - t.start() - return True - - # -------------------------------------------------------------------------- - # Reflash the sound flash memory of Tux Droid. - # -------------------------------------------------------------------------- - def reflashSoundMemory(self, tracks): - """Reflash the sound flash memory of Tux Droid. - @param tracks: Tracks list. "<wav_path_1>|<wav_path_2>|...|<wav_path_n>" - """ - self.__tuxDriver.SoundReflash(tracks) - - # Eyes --------------------------------------------------------------------- - - # -------------------------------------------------------------------------- - # Open the eyes. - # -------------------------------------------------------------------------- - def openEyes(self): - """Open the eyes. - @return: True or False. (depend of the dongle plug state) - """ - if not self.__donglePlugged: - return False - def async(): - self.__tuxDriver.PerformCommand(0.0, 'TUX_CMD:EYES:OPEN') - t = threading.Thread(target = async) - t.start() - return True - - # -------------------------------------------------------------------------- - # Close the eyes. - # -------------------------------------------------------------------------- - def closeEyes(self): - """Close the eyes. - @return: True or False. (depend of the dongle plug state) - """ - if not self.__donglePlugged: - return False - def async(): - self.__tuxDriver.PerformCommand(0.0, 'TUX_CMD:EYES:CLOSE') - t = threading.Thread(target = async) - t.start() - return True - - # -------------------------------------------------------------------------- - # Start a movement of the eyes. - # -------------------------------------------------------------------------- - def eyesOn(self, count, finalState): - """Start a movement of the eyes. - @param count: Number of movements. - @param finalState: Final state of the eyes at the end of movements. - <NDEF|OPEN|CLOSE> - @return: True or False. (depend of the dongle plug state) - """ - if not self.__donglePlugged: - return False - def async(): - cmd = 'TUX_CMD:EYES:ON:%d,%s' % (count, finalState) - self.__tuxDriver.PerformCommand(0.0, cmd) - t = threading.Thread(target = async) - t.start() - return True - - # -------------------------------------------------------------------------- - # Start a movement of the eyes. - # -------------------------------------------------------------------------- - def eyesOnDuring(self, duration, finalState): - """Start a movement of the eyes. - @param duration: Duration of the eyes movement. - @param finalState: Final state of the eyes at the end of movements. - <NDEF|OPEN|CLOSE> - @return: True or False. (depend of the dongle plug state) - """ - if not self.__donglePlugged: - return False - def async(): - cmd = 'TUX_CMD:EYES:ON_DURING:%f,%s' % (duration, finalState) - self.__tuxDriver.PerformCommand(0.0, cmd) - t = threading.Thread(target = async) - t.start() - return True - - # -------------------------------------------------------------------------- - # Stop the eyes movement. - # -------------------------------------------------------------------------- - def eyesOff(self): - """Stop the eyes movement. - @return: True or False. (depend of the dongle plug state) - """ - if not self.__donglePlugged: - return False - def async(): - self.__tuxDriver.PerformCommand(0.0, 'TUX_CMD:EYES:OFF') - t = threading.Thread(target = async) - t.start() - return True - - # Mouth -------------------------------------------------------------------- - - # -------------------------------------------------------------------------- - # Open the mouth. - # -------------------------------------------------------------------------- - def openMouth(self): - """Open the mouth. - @return: True or False. (depend of the dongle plug state) - """ - if not self.__donglePlugged: - return False - def async(): - self.__tuxDriver.PerformCommand(0.0, 'TUX_CMD:MOUTH:OPEN') - t = threading.Thread(target = async) - t.start() - return True - - # -------------------------------------------------------------------------- - # Close the mouth. - # -------------------------------------------------------------------------- - def closeMouth(self): - """Close the mouth. - @return: True or False. (depend of the dongle plug state) - """ - if not self.__donglePlugged: - return False - def async(): - self.__tuxDriver.PerformCommand(0.0, 'TUX_CMD:MOUTH:CLOSE') - t = threading.Thread(target = async) - t.start() - return True - - # -------------------------------------------------------------------------- - # Start a movement of the mouth. - # -------------------------------------------------------------------------- - def mouthOn(self, count, finalState): - """Start a movement of the mouth. - @param count: Number of movements. - @param finalState: Final state of the mouth at the end of movements. - <NDEF|OPEN|CLOSE> - @return: True or False. (depend of the dongle plug state) - """ - if not self.__donglePlugged: - return False - def async(): - cmd = 'TUX_CMD:MOUTH:ON:%d,%s' % (count, finalState) - self.__tuxDriver.PerformCommand(0.0, cmd) - t = threading.Thread(target = async) - t.start() - return True - - # -------------------------------------------------------------------------- - # Start a movement of the mouth. - # -------------------------------------------------------------------------- - def mouthOnDuring(self, duration, finalState): - """Start a movement of the mouth. - @param duration: Duration of the mouth movement. - @param finalState: Final state of the mouth at the end of movements. - <NDEF|OPEN|CLOSE> - @return: True or False. (depend of the dongle plug state) - """ - if not self.__donglePlugged: - return False - def async(): - cmd = 'TUX_CMD:MOUTH:ON_DURING:%f,%s' % (duration, finalState) - self.__tuxDriver.PerformCommand(0.0, cmd) - t = threading.Thread(target = async) - t.start() - return True - - # -------------------------------------------------------------------------- - # Stop the mouth movement. - # -------------------------------------------------------------------------- - def mouthOff(self): - """Stop the mouth movement. - @return: True or False. (depend of the dongle plug state) - """ - if not self.__donglePlugged: - return False - def async(): - self.__tuxDriver.PerformCommand(0.0, 'TUX_CMD:MOUTH:OFF') - t = threading.Thread(target = async) - t.start() - return True - - # Flippers ----------------------------------------------------------------- - - # -------------------------------------------------------------------------- - # Set the flippers position to up. - # -------------------------------------------------------------------------- - def upFlippers(self): - """Set the flippers position to up. - @return: True or False. (depend of the dongle plug state) - """ - if not self.__donglePlugged: - return False - def async(): - self.__tuxDriver.PerformCommand(0.0, 'TUX_CMD:FLIPPERS:UP') - t = threading.Thread(target = async) - t.start() - return True - - # -------------------------------------------------------------------------- - # Set the flippers position to down. - # -------------------------------------------------------------------------- - def downFlippers(self): - """Set the flippers position to down. - @return: True or False. (depend of the dongle plug state) - """ - if not self.__donglePlugged: - return False - def async(): - self.__tuxDriver.PerformCommand(0.0, 'TUX_CMD:FLIPPERS:DOWN') - t = threading.Thread(target = async) - t.start() - return True - - # -------------------------------------------------------------------------- - # Start a movement of the filppers. - # -------------------------------------------------------------------------- - def flippersOn(self, count, finalState): - """Start a movement of the filppers. - @param count: Number of movements. - @param finalState: Final state of the flippers at the end of movements. - <NDEF|UP|DOWN> - @return: True or False. (depend of the dongle plug state) - """ - if not self.__donglePlugged: - return False - def async(): - cmd = 'TUX_CMD:FLIPPERS:ON:%d,%s' % (count, finalState) - self.__tuxDriver.PerformCommand(0.0, cmd) - t = threading.Thread(target = async) - t.start() - return True - - # -------------------------------------------------------------------------- - # Start a movement of the filppers. - # -------------------------------------------------------------------------- - def flippersOnDuring(self, duration, finalState): - """Start a movement of the filppers. - @param duration: Duration of the flippers movement. - @param finalState: Final state of the flippers at the end of movements. - <NDEF|UP|DOWN> - @return: True or False. (depend of the dongle plug state) - """ - if not self.__donglePlugged: - return False - def async(): - cmd = 'TUX_CMD:FLIPPERS:ON_DURING:%f,%s' % (duration, finalState) - self.__tuxDriver.PerformCommand(0.0, cmd) - t = threading.Thread(target = async) - t.start() - return True - - # -------------------------------------------------------------------------- - # Stop the flippers movement. - # -------------------------------------------------------------------------- - def flippersOff(self): - """Stop the flippers movement. - @return: True or False. (depend of the dongle plug state) - """ - if not self.__donglePlugged: - return False - def async(): - self.__tuxDriver.PerformCommand(0.0, 'TUX_CMD:FLIPPERS:OFF') - t = threading.Thread(target = async) - t.start() - return True - - # -------------------------------------------------------------------------- - # Set the speed of the flippers movements. - # -------------------------------------------------------------------------- - def setFlippersSpeed(self, speed): - """Set the speed of the flippers movements. - @param speed: Speed. - @return: True or False. (depend of the dongle plug state) - """ - if not self.__donglePlugged: - return False - def async(): - cmd = 'TUX_CMD:FLIPPERS:SPEED:%d' % speed - self.__tuxDriver.PerformCommand(0.0, cmd) - t = threading.Thread(target = async) - t.start() - return True - - # Spinning ----------------------------------------------------------------- - - # -------------------------------------------------------------------------- - # Start a rotation to the left. - # -------------------------------------------------------------------------- - def spinLeftOn(self, count): - """Start a rotation to the left. - @param count: Number of quarter of turns. - @return: True or False. (depend of the dongle plug state) - """ - if not self.__donglePlugged: - return False - def async(): - cmd = 'TUX_CMD:SPINNING:LEFT_ON:%d' % count - self.__tuxDriver.PerformCommand(0.0, cmd) - t = threading.Thread(target = async) - t.start() - return True - - # -------------------------------------------------------------------------- - # Start a rotation to the right. - # -------------------------------------------------------------------------- - def spinRightOn(self, count): - """Start a rotation to the right. - @param count: Number of quarter of turns. - @return: True or False. (depend of the dongle plug state) - """ - if not self.__donglePlugged: - return False - def async(): - cmd = 'TUX_CMD:SPINNING:RIGHT_ON:%d' % count - self.__tuxDriver.PerformCommand(0.0, cmd) - t = threading.Thread(target = async) - t.start() - return True - - # -------------------------------------------------------------------------- - # Start a rotation to the left. - # -------------------------------------------------------------------------- - def spinLeftOnDuring(self, duration): - """Start a rotation to the left. - @param duration: Duration of the rotation in seconds. - @return: True or False. (depend of the dongle plug state) - """ - if not self.__donglePlugged: - return False - def async(): - cmd = 'TUX_CMD:SPINNING:LEFT_ON_DURING:%f' % duration - self.__tuxDriver.PerformCommand(0.0, cmd) - t = threading.Thread(target = async) - t.start() - return True - - # -------------------------------------------------------------------------- - # Start a rotation to the right. - # -------------------------------------------------------------------------- - def spinRightOnDuring(self, duration): - """Start a rotation to the right. - @param duration: Duration of the rotation in seconds. - @return: True or False. (depend of the dongle plug state) - """ - if not self.__donglePlugged: - return False - def async(): - cmd = 'TUX_CMD:SPINNING:RIGHT_ON_DURING:%f' % duration - self.__tuxDriver.PerformCommand(0.0, cmd) - t = threading.Thread(target = async) - t.start() - return True - - # -------------------------------------------------------------------------- - # Stop the rotation. - # -------------------------------------------------------------------------- - def spinningOff(self): - """Stop the rotation. - @return: True or False. (depend of the dongle plug state) - """ - if not self.__donglePlugged: - return False - def async(): - cmd = 'TUX_CMD:SPINNING:OFF' - self.__tuxDriver.PerformCommand(0.0, cmd) - t = threading.Thread(target = async) - t.start() - return True - - # -------------------------------------------------------------------------- - # Set the speed of the rotation. - # -------------------------------------------------------------------------- - def setSpinningSpeed(self, speed): - """Set the speed of the rotation. - @param speed: Speed. - @return: True or False. (depend of the dongle plug state) - """ - if not self.__donglePlugged: - return False - def async(): - cmd = 'TUX_CMD:SPINNING:SPEED:%d' % speed - self.__tuxDriver.PerformCommand(0.0, cmd) - t = threading.Thread(target = async) - t.start() - return True - - # Leds --------------------------------------------------------------------- - - # -------------------------------------------------------------------------- - # Start a blink of the leds. - # -------------------------------------------------------------------------- - def ledsBlink(self, leds, count, delay): - """Start a blink of the leds. - @param leds: Leds. <LED_BOTH|LED_RIGHT|LED_LEFT> - @param count: Number of blinks. - @param delay: Delay between 2 blinks in seconds. - @return: True or False. (depend of the dongle plug state) - """ - if not self.__donglePlugged: - return False - def async(): - cmd = 'TUX_CMD:LED:BLINK:%s,%d,%f' % (leds, count, delay) - self.__tuxDriver.PerformCommand(0.0, cmd) - t = threading.Thread(target = async) - t.start() - return True - - # -------------------------------------------------------------------------- - # Stop any leds state changes. - # -------------------------------------------------------------------------- - def ledsOff(self, leds): - """Stop any leds state changes. - @param leds: Leds. <LED_BOTH|LED_RIGHT|LED_LEFT> - @return: True or False. (depend of the dongle plug state) - """ - if not self.__donglePlugged: - return False - def async(): - cmd = 'TUX_CMD:LED:OFF:%s' % leds - self.__tuxDriver.PerformCommand(0.0, cmd) - t = threading.Thread(target = async) - t.start() - return True - - # -------------------------------------------------------------------------- - # Turn on the leds. - # -------------------------------------------------------------------------- - def ledsOn(self, leds, intensity): - """Turn on the leds. - @param leds: Leds. <LED_BOTH|LED_RIGHT|LED_LEFT> - @param intensity: Leds intensity. <0.0 .. 1.0> - @return: True or False. (depend of the dongle plug state) - """ - if not self.__donglePlugged: - return False - def async(): - cmd = 'TUX_CMD:LED:ON:%s,%f' % (leds, intensity) - self.__tuxDriver.PerformCommand(0.0, cmd) - t = threading.Thread(target = async) - t.start() - return True - - # -------------------------------------------------------------------------- - # Start a transition of the leds state. - # -------------------------------------------------------------------------- - def ledsSet(self, leds, intensity, fxType, fxSpeed, fxStep): - """Start a transition of the leds state. - @param leds: Leds. <LED_BOTH|LED_RIGHT|LED_LEFT> - @param intensity: Final leds intensity. <0.0 .. 1.0> - @param fxType: <UNAFFECTED|LAST|NONE|DEFAULT|FADE_DURATION|FADE_RATE|GRADIENT_NBR|GRADIENT_DELTA> - @param fxSpeed: Speed of the transition. - @param fxStep: Number of steps while the leds transition. - @return: True or False. (depend of the dongle plug state) - """ - if not self.__donglePlugged: - return False - def async(): - cmd = 'TUX_CMD:LED:SET:%s,%f,%s,%f,%d' % (leds, intensity, fxType, - fxSpeed, fxStep) - self.__tuxDriver.PerformCommand(0.0, cmd) - t = threading.Thread(target = async) - t.start() - return True - - # -------------------------------------------------------------------------- - # Start a pluse effect of the leds. - # -------------------------------------------------------------------------- - def ledsPulse(self, leds, minIntensity, maxIntensity, count, period, fxType, - fxSpeed, fxStep): - """Start a pluse effect of the leds. - @param leds: Leds. <LED_BOTH|LED_RIGHT|LED_LEFT> - @param minIntensity: Minimal leds intensity. <0.0 .. 1.0> - @param maxIntensity: Maximal leds intensity. <0.0 .. 1.0> - @param count: Number of pulses. - @param period: Period duration of the pulse transitions. - @param fxType: <UNAFFECTED|LAST|NONE|DEFAULT|FADE_DURATION|FADE_RATE|GRADIENT_NBR|GRADIENT_DELTA> - @param fxSpeed: Speed of the transitions. - @param fxStep: Number of steps while the leds transition. - @return: True or False. (depend of the dongle plug state) - """ - if not self.__donglePlugged: - return False - def async(): - cmd = 'TUX_CMD:LED:PULSE:%s,%f,%f,%d,%f,%s,%f,%d' % (leds, - minIntensity, maxIntensity, count, period, fxType, fxSpeed, - fxStep) - self.__tuxDriver.PerformCommand(0.0, cmd) - t = threading.Thread(target = async) - t.start() - return True - -# Create an instance of the resource -resourceTuxDriver = TDSResourceTuxDriver("resourceTuxDriver") -# Register the resource into the resources manager -resourcesManager.addResource(resourceTuxDriver) Deleted: software_suite_v3/smart-core/smart-server/branches/no_tux_dependencies/resources/01_drivers/01_resourceTuxOSL.py =================================================================== --- software_suite_v3/smart-core/smart-server/branches/no_tux_dependencies/resources/01_drivers/01_resourceTuxOSL.py 2009-11-18 10:32:56 UTC (rev 5904) +++ software_suite_v3/smart-core/smart-server/branches/no_tux_dependencies/resources/01_drivers/01_resourceTuxOSL.py 2009-11-18 11:40:32 UTC (rev 5905) @@ -1,336 +0,0 @@ -# Copyright (C) 2009 C2ME Sa -# Remi Jocaille <rem...@c2...> -# Distributed under the terms of the GNU General Public License -# http://www.gnu.org/copyleft/gpl.html - -from util.osl import * - -# ============================================================================== -# ****************************************************************************** -# RESOURCE DECLARATION -# ****************************************************************************** -# ============================================================================== - -# ============================================================================== -# Declaration of the resource "tuxosl". -# ============================================================================== -class TDSResourceTuxOSL(TDSResource): - """Resource tuxosl class. - """ - - # ========================================================================== - # Inherited methods from TDSResource - # ========================================================================== - - # -------------------------------------------------------------------------- - # Configure the resource. - # -------------------------------------------------------------------------- - def configure(self): - """Configure the resource. - """ - # General configuration (inherited from ancestor) - self.name = "tuxosl" - self.comment = "Resource to handling the TuxOSL library." - self.fileName = RESOURCE_FILENAME - # Registering the TuxOSL statuses - for statusName in SW_NAME_OSL: - eventsHandler.insert(statusName) - # Create and configure a Tux OSL object - self.__tuxOSL = TuxOSL() - self.__tuxOSL.SetLogLevel(TDS_CONF_LOG_LEVEL) - self.__tuxOSL.SetStatusCallback(self.__onStatusCallback) - # Others - self.__oslMutex = threading.Lock() - - # -------------------------------------------------------------------------- - # Start the resource. - # -------------------------------------------------------------------------- - def start(self): - """Start the resource. - """ - eventsHandler.getEventHandler(ST_NAME_DONGLE_PLUG).register(self.__onDonglePlugCallback) - eventsHandler.getEventHandler(ST_NAME_OSL_SOUND_STATE).register(self.__onSoundStateCallback) - if resourceTuxDriver.getDonglePlugged(): - self.__onDonglePlugCallback(True, 0.0) - - # -------------------------------------------------------------------------- - # Stop the resource. - # -------------------------------------------------------------------------- - def stop(self): - """Stop the resource. - """ - self.__tuxOSL.Stop() - - # ========================================================================== - # Private methods - # ========================================================================== - - # -------------------------------------------------------------------------- - # Event on status. - # -------------------------------------------------------------------------- - def __onStatusCallback(self, status): - """Event on status. - @param status: The status. - """ - # Parse the structure of the status - statusStruct = self.__tuxOSL.GetStatusStruct(status) - # Send the status/event to the events handler - def async1(): - eventsHandler.emit(statusStruct['name'], (statusStruct['value'], - float(statusStruct['delay']))) - t = threading.Thread(target = async1) - t.start() - # Send the status/events to the clients manager - def async2(): - clientsManager.pushEvents([statusStruct,]) - t = threading.Thread(target = async2) - t.start() - - # -------------------------------------------------------------------------- - # Event on dongle plug/unplug. - # -------------------------------------------------------------------------- - def __onDonglePlugCallback(self, value, delay): - """Event on dongle plug/unplug. - """ - def startTuxOsl(): - self.__tuxOSL.Start("Acapela") - time.sleep(0.5) - resourceTuxDriver.ledsBlink("LED_BOTH", 100, 0.5) - self.__initializeStatesInEventsHandler() - time.sleep(1.5) - # Load first voice - pitch = resourceUsers.getCurrentUserConfiguration()['pitch'] - firstLocutor = resourceUsers.getCurrentUserConfiguration()['locutor1'] - self.ttsSpeak(" ", firstLocutor, pitch) - time.sleep(1.5) - # Load second voice - secondLocutor = resourceUsers.getCurrentUserConfiguration()['locutor2'] - self.ttsSpeak(" ", secondLocutor, pitch) - time.sleep(1.5) - # Reference locutors list - resourcePluginsServer.getPluginsContainer().setLocutorsList(self.ttsVoicesList()) - # Play the opening attitune. - resourceTuxDriver.ledsOn("LED_BOTH", 1.0) - resourceAttituneManager.playAttitune("TuxBox Ready", 0.0) - # Start the robot/content interactions - resourceRobotContentInteractions.startMe() - if value: - t = threading.Thread(target = startTuxOsl) - t.start() - else: - t = threading.Thread(target = self.stop) - t.start() - - # -------------------------------------------------------------------------- - # Event on sound state changed. - # -------------------------------------------------------------------------- - def __onSoundStateCallback(self, value, delay): - """Event on sound state changed. - """ - if value == "ON": - resourceTuxDriver.setSoundChannel("TTS") - else: - resourceTuxDriver.setSoundChannel("GENERAL") - - # -------------------------------------------------------------------------- - # Reencode text from utf-8 to cp1252. - # -------------------------------------------------------------------------- - def __reencodeText(self, text): - """Reencode text from utf-8 to cp1252. - @param text: Original text. - @return: The reencoded text. - """ - try: - u = unicode(text, "utf-8") - text = u.encode("cp1252", "replace") - except: - pass - return text - - # -------------------------------------------------------------------------- - # Initialize statuses state in the events handler. - # -------------------------------------------------------------------------- - def __initializeStatesInEventsHandler(self): - """Initialize statuses state in the events handler. - """ - def async(): - states = self.__tuxOSL.GetAllStatusState() - if len(states) > 0: - states = states[:-1] - states = states.split('\n') - for state in states: - stateStruct = self.__tuxOSL.GetStatusStruct(state) - if stateStruct['name'] != "None": - eventsHandler.updateState(stateStruct['name'], ( - stateStruct['value'], float(stateStruct['delay']))) - t = threading.Thread(target = async) - t.start() - - # ========================================================================== - # Public methods - # ========================================================================== - - # -------------------------------------------------------------------------- - # Perform a speech. - # -------------------------------------------------------------------------- - def ttsSpeak(self, text, locutor, pitch): - """Perform a speech. - @param text: Text to speak. - @param locutor: Locutor voice. - @param pitch: Pitch of the voice. <50..250> - """ - text = self.__reencodeText(text) - if locutor.find('8k') == -1: - locutor += '8k' - def async(): - self.__oslMutex.acquire() - cmd = 'OSL_CMD:TTS:STOP' - self.__tuxOSL.PerformCommand(0.0, cmd) - cmd = 'OSL_CMD:TTS:SET_LOCUTOR:%s' % locutor - self.__tuxOSL.PerformCommand(0.0, cmd) - cmd = 'OSL_CMD:TTS:SET_PITCH:%d' % pitch - self.__tuxOSL.PerformCommand(0.0, cmd) - cmd = 'OSL_CMD:TTS:SPEAK:%s' % text - self.__tuxOSL.PerformCommand(0.0, cmd) - time.sleep(0.1) - self.__oslMutex.release() - t = threading.Thread(target = async) - t.start() - - # -------------------------------------------------------------------------- - # Set if the current speech is paused or not. - # -------------------------------------------------------------------------- - def ttsPause(self, value = 'True'): - """Set if the current speech is paused or not. - @param value: Pause value. <True|False> as string. - """ - def async(): - cmd = 'OSL_CMD:TTS:SET_PAUSE:%s' % value - self.__tuxOSL.PerformCommand(0.0, cmd) - t = threading.Thread(target = async) - t.start() - - # -------------------------------------------------------------------------- - # Stop the current performed speech. - # -------------------------------------------------------------------------- - def ttsStop(self): - """Stop the current performed speech. - """ - def async(): - cmd = 'OSL_CMD:TTS:STOP' - self.__tuxOSL.PerformCommand(0.0, cmd) - t = threading.Thread(target = async) - t.start() - - # -------------------------------------------------------------------------- - # Retrieve the locutors/voices list. - # -------------------------------------------------------------------------- - def ttsVoicesList(self): - """Retrieve the locutors/voices list. - @return: The voices list. - """ - result = eventsHandler.getEventHandler(ST_NAME_VOICE_LIST).getLastState() - voices = [] - if result != None: - tmpVoices = result[0][1:-1].split(',') - for voice in tmpVoices: - if len(voice) < 2: - continue - voices.append(voice) - return voices - - # -------------------------------------------------------------------------- - # Reencode the sentences included in a macro to "cp1252" if they are in - # "utf-8". - # -------------------------------------------------------------------------- - def reencodeTTSTextInMacro(self, macro): - """Reencode the sentences included in a macro to "cp1252" if they are - in "utf-8". - @param macro: Macro text. - @return: The reencoded macro. - """ - spText = macro.split("\n") - result = "" - for cmd in spText: - if cmd.find("OSL_CMD:TTS:SPEAK:") != -1: - try: - u = unicode(cmd, "utf-8") - text = u.encode("cp1252", "replace") - cmd = text - except: - pass - result += cmd + "\n" - return result - - # -------------------------------------------------------------------------- - # Play a wave file (8K - 8bit - Mono) - # -------------------------------------------------------------------------- - def wavPlay(self, path, begin, end): - """Play a wave file (8K - 8bit - Mono) - @param path: Path of the wave file. - @param begin: Beginning second. - @param end: Ending second. - @return: The used channel by TuxOSL or not. - - The used channel is important when you wait for the end of wav playing. - """ - if not resourceTuxDriver.getDonglePlugged(): - return None - # Check the file extension - if path.lower().rfind(".wav") == -1: - return None - # Create a cached file with the wav file - cFile = filesCacheManager.createFileCache(path) - # If the attitune can't be cached then FAIL - if cFile == None: - return None - cmd = 'OSL_CMD:WAV:PLAY:%f,%f,%s' % (begin, end, - cFile.getOutputFilePath()) - return self.__tuxOSL.PerformCommand(0.01, cmd) - - # -------------------------------------------------------------------------- - # Set if the current waves played is paused or not. - # -------------------------------------------------------------------------- - def wavPause(self, value): - """Set if the current waves played is paused or not. - @param value: Pause value. <True|False> as string. - """ - def async(): - cmd = 'OSL_CMD:WAV:SET_PAUSE:%s' % value - self.__tuxOSL.PerformCommand(0.0, cmd) - t = threading.Thread(target = async) - t.start() - - # -------------------------------------------------------------------------- - # Stop the current played wave files. - # -------------------------------------------------------------------------- - def wavStop(self): - """Stop the current played wave files. - """ - def async(): - self.__tuxOSL.PerformCommand(0.0, 'OSL_CMD:WAV:STOP') - t = threading.Thread(target = async) - t.start() - - # -------------------------------------------------------------------------- - # Clear all the current played wave files and performed speech. - # -------------------------------------------------------------------------- - def clearAll(self): - """Clear all the current played wave files and performed speech. - """ - self.__tuxOSL.ClearCommandStack() - self.__tuxOSL.PerformCommand(0.0, "OSL_CMD:TTS:STOP") - self.__tuxOSL.PerformCommand(0.0, "OSL_CMD:WAV:STOP") - - # -------------------------------------------------------------------------- - # Execute a macro text. - # -------------------------------------------------------------------------- - def executeMacro(self, macro): - """Execute a macro text. - @param macro: Macro text. - """ - self.__tuxOSL.PerformMacroText(macro) - -# Create an instance of the resource -resourceTuxOSL = TDSResourceTuxOSL("resourceTuxOSL") -# Register the resource into the resources manager -resourcesManager.addResource(resourceTuxOSL) Deleted: software_suite_v3/smart-core/smart-server/branches/no_tux_dependencies/resources/02_robot/00_resourceAttitune.py =================================================================== --- software_suite_v3/smart-core/smart-server/branches/no_tux_dependencies/resources/02_robot/00_resourceAttitune.py 2009-11-18 10:32:56 UTC (rev 5904) +++ software_suite_v3/smart-core/smart-server/branches/no_tux_dependencies/resources/02_robot/00_resourceAttitune.py 2009-11-18 11:40:32 UTC (rev 5905) @@ -1,205 +0,0 @@ -# ============================================================================== -# Attitune resource. -# ============================================================================== - -# This resource depends of the following resources : -# - resourceTuxDriver -# - resourceTuxOSL - -from util.attitunes.AttitunesFileReader import * - -# ------------------------------------------------------------------------------ -# Declaration of the resource "attitune". -# ------------------------------------------------------------------------------ -class TDSResourceAttitune(TDSResource): - - # -------------------------------------------------------------------------- - # Inherited methods from TDSResource - # -------------------------------------------------------------------------- - - def configure(self): - self.name = "attitune" - self.comment = "Resource to manage the playing of attitune files." - self.fileName = RESOURCE_FILENAME - self.__attituneMutex = threading.Lock() - self.__currentAttitune = None - - def stop(self): - if self.__currentAttitune != None: - self.__currentAttitune.destroy() - - # -------------------------------------------------------------------------- - # Public methods - # -------------------------------------------------------------------------- - - def loadAttitune(self, fileName): - """Load an attitune file. - @param fileName: File name path of the attitune. (internet URL or local) - @return: True or False. - """ - # Check the file extension - if fileName.lower().rfind(".att") == -1: - return False - self.__attituneMutex.acquire() - # Create a cached file with the attitune file - cFile = filesCacheManager.createFileCache(fileName) - # If the attitune can't be cached then FAIL - if cFile == None: - self.__attituneMutex.release() - return False - # If an attitune is currently loaded in the attitunes reader then - # destroy it. - if self.__currentAttitune != None: - self.__currentAttitune.destroy() - # Load the attitune in the attitunes reader. - self.__currentAttitune = AttitunesFileReader(cFile.getOutputFilePath()) - # If the attitune is invalid the FAIL - if not self.__currentAttitune.getValid(): - self.__currentAttitune = None - self.__attituneMutex.release() - return False - self.__attituneMutex.release() - # Success ! - return True - - def playAttitune(self, begin): - """Play the current loaded attitune file. - @param begin: Begining position. - @return: True or False. - """ - if not resourceTuxDriver.getDonglePlugged(): - return False - self.__attituneMutex.acquire() - if self.__currentAttitune != None: - resourceTuxOSL.clearAll() - resourceTuxDriver.clearAll() - macro = self.__currentAttitune.toMacro(begin) - macro = resourceTuxOSL.reencodeTTSTextInMacro(macro) - if len(macro) <= 16384: - resourceTuxDriver.executeMacro(macro) - resourceTuxOSL.executeMacro(macro) - else: - self.__attituneMutex.release() - return False - else: - self.__attituneMutex.release() - return False - self.__attituneMutex.release() - return True - - def stopAttitune(self): - """Stop the current played attitune. - """ - def async(): - self.__attituneMutex.acquire() - if self.__currentAttitune != None: - resourceTuxOSL.clearAll() - resourceTuxDriver.clearAll() - self.__attituneMutex.release() - t = threading.Thread(target = async) - t.start() - -# Create an instance of the resource -resourceAttitune = TDSResourceAttitune("resourceAttitune") -# Register the resource into the resources manager -resourcesManager.addResource(resourceAttitune) - -# ------------------------------------------------------------------------------ -# Declaration of the service "load". -# ------------------------------------------------------------------------------ -class TDSServiceAttituneLoad(TDSService): - - def configure(self): - self.parametersDict = { - 'path' : 'string', - } - self.minimalUserLevel = TDS_CLIENT_LEVEL_ANONYMOUS - self.exclusiveExecution = False - self.name = "load" - self.comment = "Load an attitune." - - def execute(self, id, parameters): - headersStruct = self.getDefaultHeadersStruct() - contentStruct = self.getDefaultContentStruct() - contentStruct['root']['result'] = getStrError(E_TDREST_SUCCESS) - if not resourceAttitune.loadAttitune(parameters['path']): - contentStruct['root']['result'] = getStrError(E_TDREST_FAILED) - return headersStruct, contentStruct - -# Register the service into the resource -resourceAttitune.addService(TDSServiceAttituneLoad) - -# ------------------------------------------------------------------------------ -# Declaration of the service "play". -# ------------------------------------------------------------------------------ -class TDSServiceAttitunePlay(TDSService): - - def configure(self): - self.parametersDict = { - 'begin' : 'float', - } - self.minimalUserLevel = TDS_CLIENT_LEVEL_ANONYMOUS - self.exclusiveExecution = False - self.name = "play" - self.comment = "Play an attitune." - - def execute(self, id, parameters): - headersStruct = self.getDefaultHeadersStruct() - contentStruct = self.getDefaultContentStruct() - contentStruct['root']['result'] = getStrError(E_TDREST_SUCCESS) - if not resourceAttitune.playAttitune(parameters['begin']): - contentStruct['root']['result'] = getStrError(E_TDREST_FAILED) - return headersStruct, contentStruct - -# Register the service into the resource -resourceAttitune.addService(TDSServiceAttitunePlay) - -# ------------------------------------------------------------------------------ -# Declaration of the service "load_and_play". -# ------------------------------------------------------------------------------ -class TDSServiceAttituneLoadPlay(TDSService): - - def configure(self): - self.parametersDict = { - 'path' : 'string', - } - self.minimalUserLevel = TDS_CLIENT_LEVEL_ANONYMOUS - self.exclusiveExecution = False - self.name = "load_and_play" - self.comment = "Load and play an attitune." - - def execute(self, id, parameters): - headersStruct = self.getDefaultHeadersStruct() - contentStruct = self.getDefaultContentStruct() - contentStruct['root']['result'] = getStrError(E_TDREST_SUCCESS) - if not resourceAttitune.loadAttitune(parameters['path']): - contentStruct['root']['result'] = getStrError(E_TDREST_FAILED) - else: - if not resourceAttitune.playAttitune(0.0): - contentStruct['root']['result'] = getStrError(E_TDREST_FAILED) - return headersStruct, contentStruct - -# Register the service into the resource -resourceAttitune.addService(TDSServiceAttituneLoadPlay) - -# ------------------------------------------------------------------------------ -# Declaration of the service "stop". -# ------------------------------------------------------------------------------ -class TDSServiceAttituneStop(TDSService): - - def configure(self): - self.parametersDict = {} - self.minimalUserLevel = TDS_CLIENT_LEVEL_ANONYMOUS - self.exclusiveExecution = False - self.name = "stop" - self.comment = "Stop the played attitune." - - def execute(self, id, parameters): - headersStruct = self.getDefaultHeadersStruct() - contentStruct = self.getDefaultContentStruct() - contentStruct['root']['result'] = getStrError(E_TDREST_SUCCESS) - resourceAttitune.stopAttitune() - return headersStruct, contentStruct - -# Register the service into the resource -resourceAttitune.addService(TDSServiceAttituneStop) Deleted: software_suite_v3/smart-core/smart-server/branches/no_tux_dependencies/resources/02_robot/01_resourceEyes.py =================================================================== --- software_suite_v3/smart-core/smart-server/branches/no_tux_dependencies/resources/02_robot/01_resourceEyes.py 2009-11-18 10:32:56 UTC (rev 5904) +++ software_suite_v3/smart-core/smart-server/branches/no_tux_dependencies/resources/02_robot/01_resourceEyes.py 2009-11-18 11:40:32 UTC (rev 5905) @@ -1,158 +0,0 @@ -# ============================================================================== -# Eyes resource. -# ============================================================================== - -# This resource depends of the following resources : -# - resourceTuxDriver - -# ------------------------------------------------------------------------------ -# Declaration of the resource "eyes". -# ------------------------------------------------------------------------------ -class TDSResourceEyes(TDSResource): - - # -------------------------------------------------------------------------- - # Inherited methods from TDSResource - # -------------------------------------------------------------------------- - - def configure(self): - self.name = "eyes" - self.comment = "Resource to control the eyes of Tux Droid." - self.fileName = RESOURCE_FILENAME - -# Create an instance of the resource -resourceEyes = TDSResourceEyes("resourceEyes") -# Register the resource into the resources manager -resourcesManager.addResource(resourceEyes) - -# --------------------------------... [truncated message content] |
From: remi <c2m...@c2...> - 2009-11-18 10:34:43
|
Author: remi Date: 2009-11-18 11:32:56 +0100 (Wed, 18 Nov 2009) New Revision: 5904 Added: software_suite_v3/smart-core/smart-server/branches/no_tux_dependencies/ Log: * Started a branches to remove Tux Droid dependencies Copied: software_suite_v3/smart-core/smart-server/branches/no_tux_dependencies (from rev 5900, software_suite_v3/smart-core/smart-server/trunk) |
From: ks156 <c2m...@c2...> - 2009-11-18 10:31:09
|
Author: ks156 Date: 2009-11-18 11:29:27 +0100 (Wed, 18 Nov 2009) New Revision: 5903 Modified: software_suite_v3/software/tool/tool-tux-controller/trunk/src/GUI/control/controlTux.java Log: * Merged the user_mode branch from rev 5372. This branch is now done and discontinued. Modified: software_suite_v3/software/tool/tool-tux-controller/trunk/src/GUI/control/controlTux.java =================================================================== --- software_suite_v3/software/tool/tool-tux-controller/trunk/src/GUI/control/controlTux.java 2009-11-18 10:27:56 UTC (rev 5902) +++ software_suite_v3/software/tool/tool-tux-controller/trunk/src/GUI/control/controlTux.java 2009-11-18 10:29:27 UTC (rev 5903) @@ -34,9 +34,27 @@ public controlTux(mainWindow winInstance) { win = winInstance; + + /* Try to connect with the port 270 */ tux = new TuxAPI("127.0.0.1", 270); tux.server.autoConnect(TuxAPIConst.CLIENT_LEVEL_RESTRICTED, "TuxController", "98765"); + + /* Wait 1 second, and check if the API is connected */ + try { + Thread.sleep(1000); + } + catch(Exception except) { + except.printStackTrace(); + } + + /* If the API is not connected, try with the port 54321 */ + if (tux.server.getConnected() != true) + { + tux = new TuxAPI("127.0.0.1", 54321); + tux.server.autoConnect(TuxAPIConst.CLIENT_LEVEL_RESTRICTED, + "TuxController", "98765"); + } tux.server.waitConnected(0.5); registerEvents(); if (tux.radio.waitConnected(0.5)) |
From: ks156 <c2m...@c2...> - 2009-11-18 10:28:08
|
Author: ks156 Date: 2009-11-18 11:27:56 +0100 (Wed, 18 Nov 2009) New Revision: 5902 Modified: software_suite_v3/software/tool/tool-attitunes-studio/trunk/src/com/tuxisalive/attitunes/visual/ATTBlockViewer.java Log: * Merged the user_mode from rev 5375. This branch is now done and discontinued. Modified: software_suite_v3/software/tool/tool-attitunes-studio/trunk/src/com/tuxisalive/attitunes/visual/ATTBlockViewer.java =================================================================== --- software_suite_v3/software/tool/tool-attitunes-studio/trunk/src/com/tuxisalive/attitunes/visual/ATTBlockViewer.java 2009-11-18 10:25:57 UTC (rev 5901) +++ software_suite_v3/software/tool/tool-attitunes-studio/trunk/src/com/tuxisalive/attitunes/visual/ATTBlockViewer.java 2009-11-18 10:27:56 UTC (rev 5902) @@ -104,7 +104,7 @@ public ATTFormatReadWrite attituneFile; - public TuxAPI tux = new TuxAPI("localhost", 270); //$NON-NLS-1$ + public TuxAPI tux; //$NON-NLS-1$ private boolean sceneHaveChanged = false; @@ -210,8 +210,25 @@ /* Set visible */ this.setVisible(true); /* Connect the tuxdroid api */ + tux = new TuxAPI("127.0.0.1", 270); tux.server.autoConnect(TuxAPIConst.CLIENT_LEVEL_RESTRICTED, "AttitunesStudio", "attscene"); //$NON-NLS-1$ //$NON-NLS-2$ - /* Refresh the viewer */ + + /* Wait 1 second, and check if the API is connected */ + try { + Thread.sleep(1000); + } + catch(Exception except) { + except.printStackTrace(); + } + + /* If the API is not connected, try with the port 54321 */ + if (tux.server.getConnected() != true) + { + tux = new TuxAPI("127.0.0.1", 54321); + tux.server.autoConnect(TuxAPIConst.CLIENT_LEVEL_RESTRICTED, "AttitunesStudio", "attscene"); //$NON-NLS-1$ //$NON-NLS-2$ + } + + /* Refresh the viewer */ this.setZoomFactor(1); } |
Author: ks156 Date: 2009-11-18 11:25:08 +0100 (Wed, 18 Nov 2009) New Revision: 5900 Added: software_suite_v3/smart-core/smart-server/trunk/util/misc/systemPaths.py Modified: software_suite_v3/smart-core/smart-server/trunk/TDSConfiguration.py software_suite_v3/smart-core/smart-server/trunk/resources/00_smart_server_base/04_resourceMenu.py software_suite_v3/smart-core/smart-server/trunk/resources/05_user_configurations/00_resourceUsers.py software_suite_v3/smart-core/smart-server/trunk/tuxhttpserver.py software_suite_v3/smart-core/smart-server/trunk/util/applicationserver/gadget/GadgetGenerator.py software_suite_v3/smart-core/smart-server/trunk/util/daemonizer/Daemonizer.py software_suite_v3/smart-core/smart-server/trunk/util/logger/SimpleLogger.py Log: * Merged the user_mode branch from rev 5345 in the trunk. This branch is now done and discontinued. Modified: software_suite_v3/smart-core/smart-server/trunk/TDSConfiguration.py =================================================================== --- software_suite_v3/smart-core/smart-server/trunk/TDSConfiguration.py 2009-11-18 10:21:55 UTC (rev 5899) +++ software_suite_v3/smart-core/smart-server/trunk/TDSConfiguration.py 2009-11-18 10:25:08 UTC (rev 5900) @@ -16,6 +16,7 @@ from util.logger import * from util.misc.tuxPaths import * +from util.misc.systemPaths import systemPaths # ============================================================================== # Class to retrieve the py file path. @@ -37,8 +38,9 @@ TDS_CONF_HOST_ADDRESS = '127.0.0.1' else: TDS_CONF_HOST_ADDRESS = '' + # HTTP server Port -TDS_HTTP_PORT = 270 +TDS_HTTP_PORT = systemPaths.getServerPort() # Use 50msec delay in request (CPU optimisation) TDS_50MSEC_OPTIMISATION = False # Use asynchronous requests treatment @@ -51,7 +53,7 @@ # TCP/IP server configuration # ------------------------------------------------------------------------------ # Raw data server port -TDS_RAW_DATA_PORT = 271 +TDS_RAW_DATA_PORT = systemPaths.getServerPort() + 1 # ------------------------------------------------------------------------------ # Loggers configuration @@ -89,19 +91,22 @@ if os.name == 'nt': TDS_RESOURCES_CONF_PATH = os.path.join(ALLUSERSBASEDIR, "configurations", "resources") else: - TDS_RESOURCES_CONF_PATH = os.path.join("/etc/tuxdroid", "resources_conf") + TDS_RESOURCES_CONF_PATH = systemPaths.getResourcesConfPath() # Path of the user configurations if os.name == 'nt': TDS_USERS_CONF_PATH = os.path.join(ALLUSERSBASEDIR, "configurations", "users_conf") else: - TDS_USERS_CONF_PATH = os.path.join("/etc/tuxdroid", "users_conf") + TDS_USERS_CONF_PATH = systemPaths.getUserConfPath() # Path of the default content of the server if os.name == 'nt': TDS_DEFAULT_CONTENT_PATH = os.path.join(ALLUSERSBASEDIR, "resources") else: TDS_DEFAULT_CONTENT_PATH = os.path.join(TUXDROID_BASE_PATH, "resources") # Path of the server updates -TDS_UPDATES_PATH = os.path.join(TDS_DEFAULT_CONTENT_PATH, "updates") +if os.name == 'nt': + TDS_UPDATES_PATH = os.path.join(TDS_DEFAULT_CONTENT_PATH, "updates") +else: + TDS_UPDATES_PATH = systemPaths.getUpdateContentPath() # ------------------------------------------------------------------------------ # Resources configuration Modified: software_suite_v3/smart-core/smart-server/trunk/resources/00_smart_server_base/04_resourceMenu.py =================================================================== --- software_suite_v3/smart-core/smart-server/trunk/resources/00_smart_server_base/04_resourceMenu.py 2009-11-18 10:21:55 UTC (rev 5899) +++ software_suite_v3/smart-core/smart-server/trunk/resources/00_smart_server_base/04_resourceMenu.py 2009-11-18 10:25:08 UTC (rev 5900) @@ -224,7 +224,9 @@ self.__logPath = os.path.join(os.environ['ALLUSERSPROFILE'], "Kysoh", "Tux Droid", "logs") else: - self.__logPath = "/var/log/tuxdroid" + from util.misc.systemPaths import systemPaths + path = systemPaths.getLogPath() + self.__logPath = path # -------------------------------------------------------------------------- # Execute the service. Modified: software_suite_v3/smart-core/smart-server/trunk/resources/05_user_configurations/00_resourceUsers.py =================================================================== --- software_suite_v3/smart-core/smart-server/trunk/resources/05_user_configurations/00_resourceUsers.py 2009-11-18 10:21:55 UTC (rev 5899) +++ software_suite_v3/smart-core/smart-server/trunk/resources/05_user_configurations/00_resourceUsers.py 2009-11-18 10:25:08 UTC (rev 5900) @@ -70,6 +70,33 @@ """ userName = self.__lastUser userConfFile = os.path.join(TDS_USERS_CONF_PATH, userName, "user.conf") + + # If the server has been started as normal user on Linux and + # if the user configuration file doesn't exists, copy the master + # configuration located in /etc/tuxdroid/users_conf/default/user.conf + if systemPaths.isUser() and os.name != 'nt': + if not os.path.isfile(userConfFile): + os.system("cp /etc/tuxdroid/users_conf/default/user.conf %s"%userConfFile) + else: + try: + f_sys = open("/etc/tuxdroid/users_conf/default/user.conf", "r") + dict = eval(f_sys.read()) + f_sys.close() + lang_sys = dict['language1'] + except: + lang_sys = None + try: + path = os.path.join(systemPaths.getUserConfPath(), "default", "user.conf") + f_user = open(path, "r") + dict = eval(f_user.read()) + f_user.close() + lang_user = dict['language1'] + except: + lang_user = None + + if lang_user != lang_sys and lang_user != None and lang_sys != None: + os.system("cp /etc/tuxdroid/users_conf/default/user.conf %s"%userConfFile) + if not os.path.isfile(userConfFile): # Create default configuration splitedLC = TUXDROID_LANGUAGE.split("_") Modified: software_suite_v3/smart-core/smart-server/trunk/tuxhttpserver.py =================================================================== --- software_suite_v3/smart-core/smart-server/trunk/tuxhttpserver.py 2009-11-18 10:21:55 UTC (rev 5899) +++ software_suite_v3/smart-core/smart-server/trunk/tuxhttpserver.py 2009-11-18 10:25:08 UTC (rev 5900) @@ -108,7 +108,8 @@ else: # Linux if __daemon: from util.daemonizer import Daemonizer - tuxDroidDaemon = Daemonizer('tuxhttpserver', '/var/log/tuxdroid', + from util.misc.systemPaths import systemPaths + tuxDroidDaemon = Daemonizer('tuxhttpserver', systemPaths.getLogPath(), runServer, True) tuxDroidDaemon.start() else: Modified: software_suite_v3/smart-core/smart-server/trunk/util/applicationserver/gadget/GadgetGenerator.py =================================================================== --- software_suite_v3/smart-core/smart-server/trunk/util/applicationserver/gadget/GadgetGenerator.py 2009-11-18 10:21:55 UTC (rev 5899) +++ software_suite_v3/smart-core/smart-server/trunk/util/applicationserver/gadget/GadgetGenerator.py 2009-11-18 10:25:08 UTC (rev 5900) @@ -442,7 +442,10 @@ tmpFile = open(os.path.join(tmpRootDir, "help.wiki"), "w") tmpFile.write(helpFileContent) tmpFile.close() - tmpGadgetFile = "gadget_%s.scg" % gadgetUuid + if os.name == 'nt': + tmpGadgetFile = "gadget_%s.scg" % gadgetUuid + else: + tmpGadgetFile = "/tmp/gadget_%s.scg" % gadgetUuid zout = zipfile.ZipFile(tmpGadgetFile, "w") zout.write(os.path.join(tmpRootDir, "gadget.xml"), "gadget.xml") zout.write(os.path.join(tmpRootDir, "gadget.png"), "gadget.png") Modified: software_suite_v3/smart-core/smart-server/trunk/util/daemonizer/Daemonizer.py =================================================================== --- software_suite_v3/smart-core/smart-server/trunk/util/daemonizer/Daemonizer.py 2009-11-18 10:21:55 UTC (rev 5899) +++ software_suite_v3/smart-core/smart-server/trunk/util/daemonizer/Daemonizer.py 2009-11-18 10:25:08 UTC (rev 5900) @@ -14,6 +14,7 @@ import os import sys import errno +from util.misc.systemPaths import systemPaths # ============================================================================== # Public class @@ -37,6 +38,11 @@ @param name: name of the daemon. @param path: path of the pid file. """ + # Search where the PID file must be placed + path = systemPaths.getPidPath() + if not os.path.isdir(path): + os.makedirs(path, mode=0755) + self.__PIDFILE = "%s/%s.pid" % (path, name) # -------------------------------------------------------------------------- Modified: software_suite_v3/smart-core/smart-server/trunk/util/logger/SimpleLogger.py =================================================================== --- software_suite_v3/smart-core/smart-server/trunk/util/logger/SimpleLogger.py 2009-11-18 10:21:55 UTC (rev 5899) +++ software_suite_v3/smart-core/smart-server/trunk/util/logger/SimpleLogger.py 2009-11-18 10:25:08 UTC (rev 5900) @@ -16,6 +16,8 @@ import threading import time +from util.misc.systemPaths import systemPaths + # Levels LOG_LEVEL_DEBUG = 0 LOG_LEVEL_INFO = 1 @@ -61,9 +63,10 @@ if not os.path.isdir(self.__logPath): os.makedirs(self.__logPath) else: - if not os.path.isdir("/var/log/tuxdroid"): - os.makedirs("/var/log/tuxdroid", mode=0755) - self.__logPath = "/var/log/tuxdroid/" + path = systemPaths.getLogPath() + if not os.path.isdir(path): + os.makedirs(path, mode=0755) + self.__logPath = path else: self.__logPath = logPath Copied: software_suite_v3/smart-core/smart-server/trunk/util/misc/systemPaths.py (from rev 5894, software_suite_v3/smart-core/smart-server/branches/user_mode/util/misc/systemPaths.py) =================================================================== --- software_suite_v3/smart-core/smart-server/trunk/util/misc/systemPaths.py (rev 0) +++ software_suite_v3/smart-core/smart-server/trunk/util/misc/systemPaths.py 2009-11-18 10:25:08 UTC (rev 5900) @@ -0,0 +1,123 @@ +# -*- coding: latin1 -*- + +# Copyright (C) 2009 Kysoh SA (http://www.kysoh.com) +# Paul Rathgeb ( paul dot rathgeb at kysoh dot com ) +# Distributed under the terms of the GNU General Public License +# http://www.gnu.org/copyleft/gpl.html + +import os + +class systemPaths(object): + + + def getServerPort(): + """Get the server port + """ + if os.name == "nt": + return 270 + else: + if os.geteuid() == 0: + return 270 + else: + return 54321 + + def getLogPath(): + """Get the logs path + """ + if os.name == "nt": + #Default Path + print "FIXME: Add the log path for Windows" + return "None" + else: + if os.geteuid() == 0: + #root + return "/var/log/tuxdroid/" + else: + # Retrieve the HOME directory + h = os.getenv("HOME") + path = os.path.join(h, ".tuxdroid", "logs") + if not os.path.isdir(path): + os.makedirs(path, mode=0755) + return path + + def getPidPath(): + """Get the PID file Path + """ + if os.name == "nt": + print "FIXME: Add the PID file path for Windows" + return "None" + else: + if os.geteuid() == 0: + return "/var/run/" + else: + # Retrieve the HOME directory + h = os.getenv("HOME") + path = os.path.join(h, ".tuxdroid", "run") + if not os.path.isdir(path): + os.makedirs(path, mode=0755) + return path + + def getResourcesConfPath(): + """Get the resource configuration path + """ + if os.name == "nt": + print "FIXME: Add the resource configuration PATH for Windows" + return "None" + else: + if os.geteuid() == 0: + return os.path.join("/etc/tuxdroid", "resources_conf") + else: + h = os.getenv("HOME") + path = os.path.join(h, ".tuxdroid", "resources_conf") + if not os.path.isdir(path): + os.makedirs(path, mode=0755) + return path + + def getUserConfPath(): + """Get the user configuration path + """ + if os.name == "nt": + print "FIXME: Add the user configuration PATH for Windows" + return "None" + else: + if os.geteuid() == 0: + return os.path.join("/etc/tuxdroid", "users_conf") + else: + h = os.getenv("HOME") + path = os.path.join(h, ".tuxdroid", "users_conf") + if not os.path.isdir(path): + os.makedirs(path, mode=0755) + return path + + def getUpdateContentPath(): + """Get the user configuration path + """ + if os.name == "nt": + print "FIXME: Add the user configuration PATH for Windows" + return "None" + else: + if os.geteuid() == 0: + return os.path.join("/usr/share/tuxdroid/resources", "updates") + else: + h = os.getenv("HOME") + path = os.path.join(h, ".tuxdroid", "updates") + if not os.path.isdir(path): + os.makedirs(path, mode=0755) + return path + + def isUser(): + if os.name == "nt": + return True + else: + if os.geteuid() == 0: + return False + else: + return True + + getServerPort = staticmethod(getServerPort) + getLogPath = staticmethod(getLogPath) + getPidPath = staticmethod(getPidPath) + getResourcesConfPath = staticmethod(getResourcesConfPath) + getUserConfPath = staticmethod(getUserConfPath) + getUpdateContentPath = staticmethod(getUpdateContentPath) + isUser = staticmethod(isUser) |
From: ks156 <c2m...@c2...> - 2009-11-18 10:26:08
|
Author: ks156 Date: 2009-11-18 11:25:57 +0100 (Wed, 18 Nov 2009) New Revision: 5901 Modified: software_suite_v3/smart-core/smart-api/python/trunk/tuxisalive/api/sh.py Log: * Merged user_mode branch from rev 5370. This branch is now done and discontinued. Modified: software_suite_v3/smart-core/smart-api/python/trunk/tuxisalive/api/sh.py =================================================================== --- software_suite_v3/smart-core/smart-api/python/trunk/tuxisalive/api/sh.py 2009-11-18 10:25:08 UTC (rev 5900) +++ software_suite_v3/smart-core/smart-api/python/trunk/tuxisalive/api/sh.py 2009-11-18 10:25:57 UTC (rev 5901) @@ -7,6 +7,7 @@ "Free" client mode. """ import os +import time if os.name == 'nt': from version import author, date, version, licence else: @@ -35,7 +36,15 @@ global tux +# Try to connect to the port 270 tux = TuxAPI("127.0.0.1", 270) +time.sleep(0.5) +# If the API is not connected to the port 270, then try the port 54321 (user +# mode) +if tux.server.connect(CLIENT_LEVEL_FREE, "TuxShell", "NoPasswd"): + tux.server.disconnect() +else: + tux = TuxAPI("127.0.0.1", 54321) verString = tux.getVersion() verH = "".join("=" * len(verString)) @@ -43,11 +52,6 @@ print verString print verH -if os.name != 'nt': - if not 'readline' in sys.modules: - print "For interctive use, run: python -i sh.py" - sys.exit(0) - tux.server.autoConnect(CLIENT_LEVEL_FREE, "TuxShell", "NoPasswd") tux.tts.isConsole() |
From: remi <c2m...@c2...> - 2009-11-18 10:23:40
|
Author: remi Date: 2009-11-18 11:21:55 +0100 (Wed, 18 Nov 2009) New Revision: 5899 Removed: software_suite_v3/smart-core/smart-server/branches/no_tux_dependencies/ Log: * removed "no_tux_dependencies" branch |
From: remi <c2m...@c2...> - 2009-11-18 10:21:19
|
Author: remi Date: 2009-11-18 11:21:07 +0100 (Wed, 18 Nov 2009) New Revision: 5898 Modified: software_suite_v3/smart-core/smart-server/trunk/installer.nsi software_suite_v3/smart-core/smart-server/trunk/version.py Log: * Updated version to 0.4.5 Modified: software_suite_v3/smart-core/smart-server/trunk/installer.nsi =================================================================== --- software_suite_v3/smart-core/smart-server/trunk/installer.nsi 2009-11-18 10:19:30 UTC (rev 5897) +++ software_suite_v3/smart-core/smart-server/trunk/installer.nsi 2009-11-18 10:21:07 UTC (rev 5898) @@ -4,7 +4,7 @@ ; HM NIS Edit Wizard helper defines !define PRODUCT_NAME "Smart Server" -!define PRODUCT_VERSION "0.4.4-b0" +!define PRODUCT_VERSION "0.4.5" ; Output names !define FINAL_INSTALLER_EXE "SmartServerInstaller_${PRODUCT_VERSION}.exe" Modified: software_suite_v3/smart-core/smart-server/trunk/version.py =================================================================== --- software_suite_v3/smart-core/smart-server/trunk/version.py 2009-11-18 10:19:30 UTC (rev 5897) +++ software_suite_v3/smart-core/smart-server/trunk/version.py 2009-11-18 10:21:07 UTC (rev 5898) @@ -7,7 +7,7 @@ # Distributed under the terms of the GNU General Public License # http://www.gnu.org/copyleft/gpl.html -version = '0.4.4-b0' +version = '0.4.5' author = "Remi Jocaille (rem...@c2...)" licence = "GPL" date = "2009" |
From: remi <c2m...@c2...> - 2009-11-18 10:21:18
|
Author: remi Date: 2009-11-18 11:19:30 +0100 (Wed, 18 Nov 2009) New Revision: 5897 Added: software_suite_v3/smart-core/smart-server/tags/0.4.4/ Log: * Tagged to 0.4.4 Copied: software_suite_v3/smart-core/smart-server/tags/0.4.4 (from rev 5893, software_suite_v3/smart-core/smart-server/trunk) |
From: remi <c2m...@c2...> - 2009-11-18 09:32:20
|
Author: remi Date: 2009-11-18 10:31:09 +0100 (Wed, 18 Nov 2009) New Revision: 5896 Added: software_suite_v3/smart-core/smart-server/branches/no_tux_dependencies/ Log: * Started a branches to remove Tux Droid dependencies Copied: software_suite_v3/smart-core/smart-server/branches/no_tux_dependencies (from rev 5895, software_suite_v3/smart-core/smart-server/trunk) |
From: ks156 <c2m...@c2...> - 2009-10-29 07:19:10
|
Author: ks156 Date: 2009-10-29 08:18:57 +0100 (Thu, 29 Oct 2009) New Revision: 5814 Removed: software_suite_v3/software/plugin/old-gadget-format-transition-to-v3/ Log: * Removed old_gadget_format_transition_to_v3. This directory is useless now. |
From: ks156 <c2m...@c2...> - 2009-10-29 07:05:03
|
Author: ks156 Date: 2009-10-29 08:04:50 +0100 (Thu, 29 Oct 2009) New Revision: 5813 Removed: software_suite_v3/software/plugin/plugin-audacious/trunk/plugin-audacious/ Log: * Removed the empty dir |
From: ks156 <c2m...@c2...> - 2009-10-29 07:04:46
|
Author: ks156 Date: 2009-10-29 08:04:35 +0100 (Thu, 29 Oct 2009) New Revision: 5812 Added: software_suite_v3/software/plugin/plugin-audacious/trunk/LICENSE software_suite_v3/software/plugin/plugin-audacious/trunk/pom.xml software_suite_v3/software/plugin/plugin-audacious/trunk/resources/ software_suite_v3/software/plugin/plugin-audacious/trunk/src/ Removed: software_suite_v3/software/plugin/plugin-audacious/trunk/plugin-audacious/LICENSE software_suite_v3/software/plugin/plugin-audacious/trunk/plugin-audacious/pom.xml software_suite_v3/software/plugin/plugin-audacious/trunk/plugin-audacious/resources/ software_suite_v3/software/plugin/plugin-audacious/trunk/plugin-audacious/src/ Log: * Removed the subdir in the project root Copied: software_suite_v3/software/plugin/plugin-audacious/trunk/LICENSE (from rev 5786, software_suite_v3/software/plugin/plugin-audacious/trunk/plugin-audacious/LICENSE) =================================================================== --- software_suite_v3/software/plugin/plugin-audacious/trunk/LICENSE (rev 0) +++ software_suite_v3/software/plugin/plugin-audacious/trunk/LICENSE 2009-10-29 07:04:35 UTC (rev 5812) @@ -0,0 +1,340 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + <signature of Ty Coon>, 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. Deleted: software_suite_v3/software/plugin/plugin-audacious/trunk/plugin-audacious/LICENSE =================================================================== --- software_suite_v3/software/plugin/plugin-audacious/trunk/plugin-audacious/LICENSE 2009-10-29 07:04:12 UTC (rev 5811) +++ software_suite_v3/software/plugin/plugin-audacious/trunk/plugin-audacious/LICENSE 2009-10-29 07:04:35 UTC (rev 5812) @@ -1,340 +0,0 @@ - GNU GENERAL PUBLIC LICENSE - Version 2, June 1991 - - Copyright (C) 1989, 1991 Free Software Foundation, Inc. - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -License is intended to guarantee your freedom to share and change free -software--to make sure the software is free for all its users. This -General Public License applies to most of the Free Software -Foundation's software and to any other program whose authors commit to -using it. (Some other Free Software Foundation software is covered by -the GNU Library General Public License instead.) You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -this service if you wish), that you receive source code or can get it -if you want it, that you can change the software or use pieces of it -in new free programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if you -distribute copies of the software, or if you modify it. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must give the recipients all the rights that -you have. You must make sure that they, too, receive or can get the -source code. And you must show them these terms so they know their -rights. - - We protect your rights with two steps: (1) copyright the software, and -(2) offer you this license which gives you legal permission to copy, -distribute and/or modify the software. - - Also, for each author's protection and ours, we want to make certain -that everyone understands that there is no warranty for this free -software. If the software is modified by someone else and passed on, we -want its recipients to know that what they have is not the original, so -that any problems introduced by others will not reflect on the original -authors' reputations. - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that redistributors of a free -program will individually obtain patent licenses, in effect making the -program proprietary. To prevent this, we have made it clear that any -patent must be licensed for everyone's free use or not licensed at all. - - The precise terms and conditions for copying, distribution and -modification follow. - - GNU GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License applies to any program or other work which contains -a notice placed by the copyright holder saying it may be distributed -under the terms of this General Public License. The "Program", below, -refers to any such program or work, and a "work based on the Program" -means either the Program or any derivative work under copyright law: -that is to say, a work containing the Program or a portion of it, -either verbatim or with modifications and/or translated into another -language. (Hereinafter, translation is included without limitation in -the term "modification".) Each licensee is addressed as "you". - -Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running the Program is not restricted, and the output from the Program -is covered only if its contents constitute a work based on the -Program (independent of having been made by running the Program). -Whether that is true depends on what the Program does. - - 1. You may copy and distribute verbatim copies of the Program's -source code as you receive it, in any medium, provided that you -conspicuously and appropriately publish on each copy an appropriate -copyright notice and disclaimer of warranty; keep intact all the -notices that refer to this License and to the absence of any warranty; -and give any other recipients of the Program a copy of this License -along with the Program. - -You may charge a fee for the physical act of transferring a copy, and -you may at your option offer warranty protection in exchange for a fee. - - 2. You may modify your copy or copies of the Program or any portion -of it, thus forming a work based on the Program, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) You must cause the modified files to carry prominent notices - stating that you changed the files and the date of any change. - - b) You must cause any work that you distribute or publish, that in - whole or in part contains or is derived from the Program or any - part thereof, to be licensed as a whole at no charge to all third - parties under the terms of this License. - - c) If the modified program normally reads commands interactively - when run, you must cause it, when started running for such - interactive use in the most ordinary way, to print or display an - announcement including an appropriate copyright notice and a - notice that there is no warranty (or else, saying that you provide - a warranty) and that users may redistribute the program under - these conditions, and telling the user how to view a copy of this - License. (Exception: if the Program itself is interactive but - does not normally print such an announcement, your work based on - the Program is not required to print an announcement.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Program, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Program, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Program. - -In addition, mere aggregation of another work not based on the Program -with the Program (or with a work based on the Program) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may copy and distribute the Program (or a work based on it, -under Section 2) in object code or executable form under the terms of -Sections 1 and 2 above provided that you also do one of the following: - - a) Accompany it with the complete corresponding machine-readable - source code, which must be distributed under the terms of Sections - 1 and 2 above on a medium customarily used for software interchange; or, - - b) Accompany it with a written offer, valid for at least three - years, to give any third party, for a charge no more than your - cost of physically performing source distribution, a complete - machine-readable copy of the corresponding source code, to be - distributed under the terms of Sections 1 and 2 above on a medium - customarily used for software interchange; or, - - c) Accompany it with the information you received as to the offer - to distribute corresponding source code. (This alternative is - allowed only for noncommercial distribution and only if you - received the program in object code or executable form with such - an offer, in accord with Subsection b above.) - -The source code for a work means the preferred form of the work for -making modifications to it. For an executable work, complete source -code means all the source code for all modules it contains, plus any -associated interface definition files, plus the scripts used to -control compilation and installation of the executable. However, as a -special exception, the source code distributed need not include -anything that is normally distributed (in either source or binary -form) with the major components (compiler, kernel, and so on) of the -operating system on which the executable runs, unless that component -itself accompanies the executable. - -If distribution of executable or object code is made by offering -access to copy from a designated place, then offering equivalent -access to copy the source code from the same place counts as -distribution of the source code, even though third parties are not -compelled to copy the source along with the object code. - - 4. You may not copy, modify, sublicense, or distribute the Program -except as expressly provided under this License. Any attempt -otherwise to copy, modify, sublicense or distribute the Program is -void, and will automatically terminate your rights under this License. -However, parties who have received copies, or rights, from you under -this License will not have their licenses terminated so long as such -parties remain in full compliance. - - 5. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Program or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Program (or any work based on the -Program), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Program or works based on it. - - 6. Each time you redistribute the Program (or any work based on the -Program), the recipient automatically receives a license from the -original licensor to copy, distribute or modify the Program subject to -these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. - - 7. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Program at all. For example, if a patent -license would not permit royalty-free redistribution of the Program by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Program. - -If any portion of this section is held invalid or unenforceable under -any particular circumstance, the balance of the section is intended to -apply and the section as a whole is intended to apply in other -circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system, which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 8. If the distribution and/or use of the Program is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Program under this License -may add an explicit geographical distribution limitation excluding -those countries, so that distribution is permitted only in or among -countries not thus excluded. In such case, this License incorporates -the limitation as if written in the body of this License. - - 9. The Free Software Foundation may publish revised and/or new versions -of the General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - -Each version is given a distinguishing version number. If the Program -specifies a version number of this License which applies to it and "any -later version", you have the option of following the terms and conditions -either of that version or of any later version published by the Free -Software Foundation. If the Program does not specify a version number of -this License, you may choose any version ever published by the Free Software -Foundation. - - 10. If you wish to incorporate parts of the Program into other free -programs whose distribution conditions are different, write to the author -to ask for permission. For software which is copyrighted by the Free -Software Foundation, write to the Free Software Foundation; we sometimes -make exceptions for this. Our decision will be guided by the two goals -of preserving the free status of all derivatives of our free software and -of promoting the sharing and reuse of software generally. - - NO WARRANTY - - 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY -FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN -OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES -PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED -OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS -TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE -PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, -REPAIR OR CORRECTION. - - 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR -REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, -INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING -OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED -TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY -YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER -PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE -POSSIBILITY OF SUCH DAMAGES. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - <one line to give the program's name and a brief idea of what it does.> - Copyright (C) <year> <name of author> - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA - - -Also add information on how to contact you by electronic and paper mail. - -If the program is interactive, make it output a short notice like this -when it starts in an interactive mode: - - Gnomovision version 69, Copyright (C) year name of author - Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, the commands you use may -be called something other than `show w' and `show c'; they could even be -mouse-clicks or menu items--whatever suits your program. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the program, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the program - `Gnomovision' (which makes passes at compilers) written by James Hacker. - - <signature of Ty Coon>, 1 April 1989 - Ty Coon, President of Vice - -This General Public License does not permit incorporating your program into -proprietary programs. If your program is a subroutine library, you may -consider it more useful to permit linking proprietary applications with the -library. If this is what you want to do, use the GNU Lesser General -Public License instead of this License. Deleted: software_suite_v3/software/plugin/plugin-audacious/trunk/plugin-audacious/pom.xml =================================================================== --- software_suite_v3/software/plugin/plugin-audacious/trunk/plugin-audacious/pom.xml 2009-10-29 07:04:12 UTC (rev 5811) +++ software_suite_v3/software/plugin/plugin-audacious/trunk/plugin-audacious/pom.xml 2009-10-29 07:04:35 UTC (rev 5812) @@ -1,113 +0,0 @@ -<project> - <!--General project informations--> - <modelVersion>4.0.0</modelVersion> - <groupId>com.kysoh</groupId> - <artifactId>plugin-audacious</artifactId> - <packaging>jar</packaging> - <version>3.0</version> - <name>Audacious player for Tux Droid</name> - <url>http://www.tuxisalive.com</url> - - <!--Dependency list--> - <dependencies> - <dependency> - <groupId>com.kysoh</groupId> - <artifactId>tuxdroid-plugin-java-kit</artifactId> - <version>0.0.3</version> - </dependency> - </dependencies> - - <!--Repository list--> - <repositories> - <repository> - <id>kysoh</id> - <name>Kysoh Repository</name> - <layout>default</layout> - <url>http://ftp.kysoh.com/maven2</url> - <snapshots> - <enabled>false</enabled> - </snapshots> - </repository> - </repositories> - - <!--Build process--> - <build> - <sourceDirectory>src</sourceDirectory> - <plugins> - - <!--This section copy the dependencies into ./libraries--> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-dependency-plugin</artifactId> - <executions> - <execution> - <id>copy-dependencies</id> - <phase>package</phase> - <goals> - <goal>copy-dependencies</goal> - </goals> - <configuration> - <outputDirectory>./libraries</outputDirectory> - </configuration> - </execution> - </executions> - </plugin> - - <!--This plugin run small ant scripts to pack and clean the plugin --> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-antrun-plugin</artifactId> - <version>1.3</version> - <executions> - - <!--This section create the .scp file during the package lifecycle--> - <execution> - <phase>package</phase> - <id>package</id> - <configuration> - <tasks> - <mkdir dir="./libraries"/> - <copy file="${project.build.directory}/${project.artifactId}-${project.version}.jar" - todir="./libraries" /> - <zip destfile="./${project.artifactId}.scp"> - <zipfileset dir="." includes="resources/*" /> - <zipfileset dir="." includes="libraries/*" > - <exclude name="libraries/tuxdroid-plugin-java-kit*" /> - </zipfileset> - <zipfileset dir="." includes="executables/*" /> - </zip> - </tasks> - </configuration> - <goals> - <goal>run</goal> - </goals> - </execution> - - <!--This section clean the ./libraries and the SCP file during the 'clean' lifecycle--> - <execution> - <phase>clean</phase> - <configuration> - <tasks> - <delete dir="./libraries"/> - <delete file="./${project.artifactId}.scp"/> - </tasks> - </configuration> - <goals> - <goal>run</goal> - </goals> - </execution> - </executions> - </plugin> - - <!--This plugin compile the project--> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-compiler-plugin</artifactId> - <configuration> - <source>1.6</source> - <target>1.6</target> - </configuration> - </plugin> - </plugins> - </build> -</project> Copied: software_suite_v3/software/plugin/plugin-audacious/trunk/pom.xml (from rev 5786, software_suite_v3/software/plugin/plugin-audacious/trunk/plugin-audacious/pom.xml) =================================================================== --- software_suite_v3/software/plugin/plugin-audacious/trunk/pom.xml (rev 0) +++ software_suite_v3/software/plugin/plugin-audacious/trunk/pom.xml 2009-10-29 07:04:35 UTC (rev 5812) @@ -0,0 +1,113 @@ +<project> + <!--General project informations--> + <modelVersion>4.0.0</modelVersion> + <groupId>com.kysoh</groupId> + <artifactId>plugin-audacious</artifactId> + <packaging>jar</packaging> + <version>3.0</version> + <name>Audacious player for Tux Droid</name> + <url>http://www.tuxisalive.com</url> + + <!--Dependency list--> + <dependencies> + <dependency> + <groupId>com.kysoh</groupId> + <artifactId>tuxdroid-plugin-java-kit</artifactId> + <version>0.0.3</version> + </dependency> + </dependencies> + + <!--Repository list--> + <repositories> + <repository> + <id>kysoh</id> + <name>Kysoh Repository</name> + <layout>default</layout> + <url>http://ftp.kysoh.com/maven2</url> + <snapshots> + <enabled>false</enabled> + </snapshots> + </repository> + </repositories> + + <!--Build process--> + <build> + <sourceDirectory>src</sourceDirectory> + <plugins> + + <!--This section copy the dependencies into ./libraries--> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-dependency-plugin</artifactId> + <executions> + <execution> + <id>copy-dependencies</id> + <phase>package</phase> + <goals> + <goal>copy-dependencies</goal> + </goals> + <configuration> + <outputDirectory>./libraries</outputDirectory> + </configuration> + </execution> + </executions> + </plugin> + + <!--This plugin run small ant scripts to pack and clean the plugin --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-antrun-plugin</artifactId> + <version>1.3</version> + <executions> + + <!--This section create the .scp file during the package lifecycle--> + <execution> + <phase>package</phase> + <id>package</id> + <configuration> + <tasks> + <mkdir dir="./libraries"/> + <copy file="${project.build.directory}/${project.artifactId}-${project.version}.jar" + todir="./libraries" /> + <zip destfile="./${project.artifactId}.scp"> + <zipfileset dir="." includes="resources/*" /> + <zipfileset dir="." includes="libraries/*" > + <exclude name="libraries/tuxdroid-plugin-java-kit*" /> + </zipfileset> + <zipfileset dir="." includes="executables/*" /> + </zip> + </tasks> + </configuration> + <goals> + <goal>run</goal> + </goals> + </execution> + + <!--This section clean the ./libraries and the SCP file during the 'clean' lifecycle--> + <execution> + <phase>clean</phase> + <configuration> + <tasks> + <delete dir="./libraries"/> + <delete file="./${project.artifactId}.scp"/> + </tasks> + </configuration> + <goals> + <goal>run</goal> + </goals> + </execution> + </executions> + </plugin> + + <!--This plugin compile the project--> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <source>1.6</source> + <target>1.6</target> + </configuration> + </plugin> + </plugins> + </build> +</project> Copied: software_suite_v3/software/plugin/plugin-audacious/trunk/resources (from rev 5786, software_suite_v3/software/plugin/plugin-audacious/trunk/plugin-audacious/resources) Copied: software_suite_v3/software/plugin/plugin-audacious/trunk/src (from rev 5786, software_suite_v3/software/plugin/plugin-audacious/trunk/plugin-audacious/src) |
From: ks156 <c2m...@c2...> - 2009-10-29 07:04:24
|
Author: ks156 Date: 2009-10-29 08:04:12 +0100 (Thu, 29 Oct 2009) New Revision: 5811 Removed: software_suite_v3/software/plugin/plugin-email/trunk/plugin-email/ Log: * Removed the empty dir |
From: ks156 <c2m...@c2...> - 2009-10-29 07:04:07
|
Author: ks156 Date: 2009-10-29 08:03:55 +0100 (Thu, 29 Oct 2009) New Revision: 5810 Added: software_suite_v3/software/plugin/plugin-email/trunk/LICENSE software_suite_v3/software/plugin/plugin-email/trunk/pom.xml software_suite_v3/software/plugin/plugin-email/trunk/resources/ software_suite_v3/software/plugin/plugin-email/trunk/src/ Removed: software_suite_v3/software/plugin/plugin-email/trunk/plugin-email/LICENSE software_suite_v3/software/plugin/plugin-email/trunk/plugin-email/pom.xml software_suite_v3/software/plugin/plugin-email/trunk/plugin-email/resources/ software_suite_v3/software/plugin/plugin-email/trunk/plugin-email/src/ Log: * Removed the subdir in the project root Copied: software_suite_v3/software/plugin/plugin-email/trunk/LICENSE (from rev 5809, software_suite_v3/software/plugin/plugin-email/trunk/plugin-email/LICENSE) =================================================================== --- software_suite_v3/software/plugin/plugin-email/trunk/LICENSE (rev 0) +++ software_suite_v3/software/plugin/plugin-email/trunk/LICENSE 2009-10-29 07:03:55 UTC (rev 5810) @@ -0,0 +1,340 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + <signature of Ty Coon>, 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. Deleted: software_suite_v3/software/plugin/plugin-email/trunk/plugin-email/LICENSE =================================================================== --- software_suite_v3/software/plugin/plugin-email/trunk/plugin-email/LICENSE 2009-10-29 07:03:10 UTC (rev 5809) +++ software_suite_v3/software/plugin/plugin-email/trunk/plugin-email/LICENSE 2009-10-29 07:03:55 UTC (rev 5810) @@ -1,340 +0,0 @@ - GNU GENERAL PUBLIC LICENSE - Version 2, June 1991 - - Copyright (C) 1989, 1991 Free Software Foundation, Inc. - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -License is intended to guarantee your freedom to share and change free -software--to make sure the software is free for all its users. This -General Public License applies to most of the Free Software -Foundation's software and to any other program whose authors commit to -using it. (Some other Free Software Foundation software is covered by -the GNU Library General Public License instead.) You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -this service if you wish), that you receive source code or can get it -if you want it, that you can change the software or use pieces of it -in new free programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if you -distribute copies of the software, or if you modify it. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must give the recipients all the rights that -you have. You must make sure that they, too, receive or can get the -source code. And you must show them these terms so they know their -rights. - - We protect your rights with two steps: (1) copyright the software, and -(2) offer you this license which gives you legal permission to copy, -distribute and/or modify the software. - - Also, for each author's protection and ours, we want to make certain -that everyone understands that there is no warranty for this free -software. If the software is modified by someone else and passed on, we -want its recipients to know that what they have is not the original, so -that any problems introduced by others will not reflect on the original -authors' reputations. - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that redistributors of a free -program will individually obtain patent licenses, in effect making the -program proprietary. To prevent this, we have made it clear that any -patent must be licensed for everyone's free use or not licensed at all. - - The precise terms and conditions for copying, distribution and -modification follow. - - GNU GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License applies to any program or other work which contains -a notice placed by the copyright holder saying it may be distributed -under the terms of this General Public License. The "Program", below, -refers to any such program or work, and a "work based on the Program" -means either the Program or any derivative work under copyright law: -that is to say, a work containing the Program or a portion of it, -either verbatim or with modifications and/or translated into another -language. (Hereinafter, translation is included without limitation in -the term "modification".) Each licensee is addressed as "you". - -Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running the Program is not restricted, and the output from the Program -is covered only if its contents constitute a work based on the -Program (independent of having been made by running the Program). -Whether that is true depends on what the Program does. - - 1. You may copy and distribute verbatim copies of the Program's -source code as you receive it, in any medium, provided that you -conspicuously and appropriately publish on each copy an appropriate -copyright notice and disclaimer of warranty; keep intact all the -notices that refer to this License and to the absence of any warranty; -and give any other recipients of the Program a copy of this License -along with the Program. - -You may charge a fee for the physical act of transferring a copy, and -you may at your option offer warranty protection in exchange for a fee. - - 2. You may modify your copy or copies of the Program or any portion -of it, thus forming a work based on the Program, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) You must cause the modified files to carry prominent notices - stating that you changed the files and the date of any change. - - b) You must cause any work that you distribute or publish, that in - whole or in part contains or is derived from the Program or any - part thereof, to be licensed as a whole at no charge to all third - parties under the terms of this License. - - c) If the modified program normally reads commands interactively - when run, you must cause it, when started running for such - interactive use in the most ordinary way, to print or display an - announcement including an appropriate copyright notice and a - notice that there is no warranty (or else, saying that you provide - a warranty) and that users may redistribute the program under - these conditions, and telling the user how to view a copy of this - License. (Exception: if the Program itself is interactive but - does not normally print such an announcement, your work based on - the Program is not required to print an announcement.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Program, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Program, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Program. - -In addition, mere aggregation of another work not based on the Program -with the Program (or with a work based on the Program) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may copy and distribute the Program (or a work based on it, -under Section 2) in object code or executable form under the terms of -Sections 1 and 2 above provided that you also do one of the following: - - a) Accompany it with the complete corresponding machine-readable - source code, which must be distributed under the terms of Sections - 1 and 2 above on a medium customarily used for software interchange; or, - - b) Accompany it with a written offer, valid for at least three - years, to give any third party, for a charge no more than your - cost of physically performing source distribution, a complete - machine-readable copy of the corresponding source code, to be - distributed under the terms of Sections 1 and 2 above on a medium - customarily used for software interchange; or, - - c) Accompany it with the information you received as to the offer - to distribute corresponding source code. (This alternative is - allowed only for noncommercial distribution and only if you - received the program in object code or executable form with such - an offer, in accord with Subsection b above.) - -The source code for a work means the preferred form of the work for -making modifications to it. For an executable work, complete source -code means all the source code for all modules it contains, plus any -associated interface definition files, plus the scripts used to -control compilation and installation of the executable. However, as a -special exception, the source code distributed need not include -anything that is normally distributed (in either source or binary -form) with the major components (compiler, kernel, and so on) of the -operating system on which the executable runs, unless that component -itself accompanies the executable. - -If distribution of executable or object code is made by offering -access to copy from a designated place, then offering equivalent -access to copy the source code from the same place counts as -distribution of the source code, even though third parties are not -compelled to copy the source along with the object code. - - 4. You may not copy, modify, sublicense, or distribute the Program -except as expressly provided under this License. Any attempt -otherwise to copy, modify, sublicense or distribute the Program is -void, and will automatically terminate your rights under this License. -However, parties who have received copies, or rights, from you under -this License will not have their licenses terminated so long as such -parties remain in full compliance. - - 5. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Program or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Program (or any work based on the -Program), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Program or works based on it. - - 6. Each time you redistribute the Program (or any work based on the -Program), the recipient automatically receives a license from the -original licensor to copy, distribute or modify the Program subject to -these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. - - 7. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Program at all. For example, if a patent -license would not permit royalty-free redistribution of the Program by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Program. - -If any portion of this section is held invalid or unenforceable under -any particular circumstance, the balance of the section is intended to -apply and the section as a whole is intended to apply in other -circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system, which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 8. If the distribution and/or use of the Program is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Program under this License -may add an explicit geographical distribution limitation excluding -those countries, so that distribution is permitted only in or among -countries not thus excluded. In such case, this License incorporates -the limitation as if written in the body of this License. - - 9. The Free Software Foundation may publish revised and/or new versions -of the General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - -Each version is given a distinguishing version number. If the Program -specifies a version number of this License which applies to it and "any -later version", you have the option of following the terms and conditions -either of that version or of any later version published by the Free -Software Foundation. If the Program does not specify a version number of -this License, you may choose any version ever published by the Free Software -Foundation. - - 10. If you wish to incorporate parts of the Program into other free -programs whose distribution conditions are different, write to the author -to ask for permission. For software which is copyrighted by the Free -Software Foundation, write to the Free Software Foundation; we sometimes -make exceptions for this. Our decision will be guided by the two goals -of preserving the free status of all derivatives of our free software and -of promoting the sharing and reuse of software generally. - - NO WARRANTY - - 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY -FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN -OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES -PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED -OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS -TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE -PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, -REPAIR OR CORRECTION. - - 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR -REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, -INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING -OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED -TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY -YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER -PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE -POSSIBILITY OF SUCH DAMAGES. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - <one line to give the program's name and a brief idea of what it does.> - Copyright (C) <year> <name of author> - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA - - -Also add information on how to contact you by electronic and paper mail. - -If the program is interactive, make it output a short notice like this -when it starts in an interactive mode: - - Gnomovision version 69, Copyright (C) year name of author - Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, the commands you use may -be called something other than `show w' and `show c'; they could even be -mouse-clicks or menu items--whatever suits your program. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the program, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the program - `Gnomovision' (which makes passes at compilers) written by James Hacker. - - <signature of Ty Coon>, 1 April 1989 - Ty Coon, President of Vice - -This General Public License does not permit incorporating your program into -proprietary programs. If your program is a subroutine library, you may -consider it more useful to permit linking proprietary applications with the -library. If this is what you want to do, use the GNU Lesser General -Public License instead of this License. Deleted: software_suite_v3/software/plugin/plugin-email/trunk/plugin-email/pom.xml =================================================================== --- software_suite_v3/software/plugin/plugin-email/trunk/plugin-email/pom.xml 2009-10-29 07:03:10 UTC (rev 5809) +++ software_suite_v3/software/plugin/plugin-email/trunk/plugin-email/pom.xml 2009-10-29 07:03:55 UTC (rev 5810) @@ -1,130 +0,0 @@ -<project> - <!--General project informations--> - <modelVersion>4.0.0</modelVersion> - <groupId>com.kysoh</groupId> - <artifactId>plugin-mail</artifactId> - <packaging>jar</packaging> - <version>4.0</version> - <name>eMail plugin for Tux Droid</name> - <url>http://www.tuxisalive.com</url> - - <!--Dependency list--> - <dependencies> - <dependency> - <groupId>com.kysoh</groupId> - <artifactId>tuxdroid-plugin-java-kit</artifactId> - <version>0.0.3</version> - </dependency> - <dependency> - <groupId>javax.mail</groupId> - <artifactId>mail</artifactId> - <version>1.4.1</version> - </dependency> - </dependencies> - - <!--Repository list--> - <repositories> - <repository> - <id>kysoh</id> - <name>Kysoh Repository</name> - <layout>default</layout> - <url>http://ftp.kysoh.com/maven2</url> - <snapshots> - <enabled>false</enabled> - </snapshots> - </repository> - <repository> - <id>karma-lab</id> - <name>KarmaLab Repository Switchboard</name> - <layout>default</layout> - <url>http://artisan.karma-lab.net/software/repository</url> - <snapshots> - <enabled>false</enabled> - </snapshots> - </repository> - </repositories> - - <!--Build process--> - <build> - <sourceDirectory>src</sourceDirectory> - <plugins> - - <!--This section copy the dependencies into ./libraries--> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-dependency-plugin</artifactId> - <executions> - <execution> - <id>copy-dependencies</id> - <phase>package</phase> - <goals> - <goal>copy-dependencies</goal> - </goals> - <configuration> - <outputDirectory>./libraries</outputDirectory> - </configuration> - </execution> - </executions> - </plugin> - - <!--This plugin run small ant scripts to pack and clean the plugin--> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-antrun-plugin</artifactId> - <version>1.3</version> - <executions> - - <!--This section create the .scp file during the package lifecycle--> - <execution> - <phase>package</phase> - <id>package</id> - <configuration> - <tasks> - <mkdir dir="./libraries"/> - <copy file="${project.build.directory}/${project.artifactId}-${project.version}.jar" - todir="./libraries" /> - <zip destfile="./${project.artifactId}.scp"> - <zipfileset dir="." includes="resources/*" /> - <zipfileset dir="." includes="resources/attitunes/*" /> - <zipfileset dir="." includes="libraries/*" > - <exclude name="libraries/tuxdroid-plugin-java-kit*" /> - <exclude name="libraries/karmalab-commons*" /> - <exclude name="libraries/tuxdroid-java-api*" /> - </zipfileset> - <zipfileset dir="." includes="executables/*" /> - </zip> - </tasks> - </configuration> - <goals> - <goal>run</goal> - </goals> - </execution> - - <!--This section clean the ./libraries and the SCP file during the 'clean' lifecycle--> - <execution> - <phase>clean</phase> - <configuration> - <tasks> - <delete dir="./libraries"/> - <delete file="./${project.artifactId}.scp"/> - </tasks> - </configuration> - <goals> - <goal>run</goal> - </goals> - </execution> - </executions> - </plugin> - - <!--This plugin compile the project--> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-compiler-plugin</artifactId> - <configuration> - <source>1.6</source> - <target>1.6</target> - </configuration> - </plugin> - </plugins> - </build> -</project> Copied: software_suite_v3/software/plugin/plugin-email/trunk/pom.xml (from rev 5809, software_suite_v3/software/plugin/plugin-email/trunk/plugin-email/pom.xml) =================================================================== --- software_suite_v3/software/plugin/plugin-email/trunk/pom.xml (rev 0) +++ software_suite_v3/software/plugin/plugin-email/trunk/pom.xml 2009-10-29 07:03:55 UTC (rev 5810) @@ -0,0 +1,130 @@ +<project> + <!--General project informations--> + <modelVersion>4.0.0</modelVersion> + <groupId>com.kysoh</groupId> + <artifactId>plugin-mail</artifactId> + <packaging>jar</packaging> + <version>4.0</version> + <name>eMail plugin for Tux Droid</name> + <url>http://www.tuxisalive.com</url> + + <!--Dependency list--> + <dependencies> + <dependency> + <groupId>com.kysoh</groupId> + <artifactId>tuxdroid-plugin-java-kit</artifactId> + <version>0.0.3</version> + </dependency> + <dependency> + <groupId>javax.mail</groupId> + <artifactId>mail</artifactId> + <version>1.4.1</version> + </dependency> + </dependencies> + + <!--Repository list--> + <repositories> + <repository> + <id>kysoh</id> + <name>Kysoh Repository</name> + <layout>default</layout> + <url>http://ftp.kysoh.com/maven2</url> + <snapshots> + <enabled>false</enabled> + </snapshots> + </repository> + <repository> + <id>karma-lab</id> + <name>KarmaLab Repository Switchboard</name> + <layout>default</layout> + <url>http://artisan.karma-lab.net/software/repository</url> + <snapshots> + <enabled>false</enabled> + </snapshots> + </repository> + </repositories> + + <!--Build process--> + <build> + <sourceDirectory>src</sourceDirectory> + <plugins> + + <!--This section copy the dependencies into ./libraries--> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-dependency-plugin</artifactId> + <executions> + <execution> + <id>copy-dependencies</id> + <phase>package</phase> + <goals> + <goal>copy-dependencies</goal> + </goals> + <configuration> + <outputDirectory>./libraries</outputDirectory> + </configuration> + </execution> + </executions> + </plugin> + + <!--This plugin run small ant scripts to pack and clean the plugin--> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-antrun-plugin</artifactId> + <version>1.3</version> + <executions> + + <!--This section create the .scp file during the package lifecycle--> + <execution> + <phase>package</phase> + <id>package</id> + <configuration> + <tasks> + <mkdir dir="./libraries"/> + <copy file="${project.build.directory}/${project.artifactId}-${project.version}.jar" + todir="./libraries" /> + <zip destfile="./${project.artifactId}.scp"> + <zipfileset dir="." includes="resources/*" /> + <zipfileset dir="." includes="resources/attitunes/*" /> + <zipfileset dir="." includes="libraries/*" > + <exclude name="libraries/tuxdroid-plugin-java-kit*" /> + <exclude name="libraries/karmalab-commons*" /> + <exclude name="libraries/tuxdroid-java-api*" /> + </zipfileset> + <zipfileset dir="." includes="executables/*" /> + </zip> + </tasks> + </configuration> + <goals> + <goal>run</goal> + </goals> + </execution> + + <!--This section clean the ./libraries and the SCP file during the 'clean' lifecycle--> + <execution> + <phase>clean</phase> + <configuration> + <tasks> + <delete dir="./libraries"/> + <delete file="./${project.artifactId}.scp"/> + </tasks> + </configuration> + <goals> + <goal>run</goal> + </goals> + </execution> + </executions> + </plugin> + + <!--This plugin compile the project--> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <source>1.6</source> + <target>1.6</target> + </configuration> + </plugin> + </plugins> + </build> +</project> Copied: software_suite_v3/software/plugin/plugin-email/trunk/resources (from rev 5809, software_suite_v3/software/plugin/plugin-email/trunk/plugin-email/resources) Copied: software_suite_v3/software/plugin/plugin-email/trunk/src (from rev 5809, software_suite_v3/software/plugin/plugin-email/trunk/plugin-email/src) |
From: ks156 <c2m...@c2...> - 2009-10-29 07:03:22
|
Author: ks156 Date: 2009-10-29 08:03:10 +0100 (Thu, 29 Oct 2009) New Revision: 5809 Removed: software_suite_v3/software/plugin/plugin-feed/trunk/plugin-feed/ Log: * Removed the empty dir |
From: ks156 <c2m...@c2...> - 2009-10-29 07:03:05
|
Author: ks156 Date: 2009-10-29 08:02:53 +0100 (Thu, 29 Oct 2009) New Revision: 5808 Added: software_suite_v3/software/plugin/plugin-feed/trunk/LICENSE software_suite_v3/software/plugin/plugin-feed/trunk/pom.xml software_suite_v3/software/plugin/plugin-feed/trunk/resources/ software_suite_v3/software/plugin/plugin-feed/trunk/src/ Removed: software_suite_v3/software/plugin/plugin-feed/trunk/plugin-feed/LICENSE software_suite_v3/software/plugin/plugin-feed/trunk/plugin-feed/pom.xml software_suite_v3/software/plugin/plugin-feed/trunk/plugin-feed/resources/ software_suite_v3/software/plugin/plugin-feed/trunk/plugin-feed/src/ Log: * Removed the subdir in the project root Copied: software_suite_v3/software/plugin/plugin-feed/trunk/LICENSE (from rev 5807, software_suite_v3/software/plugin/plugin-feed/trunk/plugin-feed/LICENSE) =================================================================== --- software_suite_v3/software/plugin/plugin-feed/trunk/LICENSE (rev 0) +++ software_suite_v3/software/plugin/plugin-feed/trunk/LICENSE 2009-10-29 07:02:53 UTC (rev 5808) @@ -0,0 +1,340 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + <signature of Ty Coon>, 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. Deleted: software_suite_v3/software/plugin/plugin-feed/trunk/plugin-feed/LICENSE =================================================================== --- software_suite_v3/software/plugin/plugin-feed/trunk/plugin-feed/LICENSE 2009-10-29 07:02:20 UTC (rev 5807) +++ software_suite_v3/software/plugin/plugin-feed/trunk/plugin-feed/LICENSE 2009-10-29 07:02:53 UTC (rev 5808) @@ -1,340 +0,0 @@ - GNU GENERAL PUBLIC LICENSE - Version 2, June 1991 - - Copyright (C) 1989, 1991 Free Software Foundation, Inc. - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -License is intended to guarantee your freedom to share and change free -software--to make sure the software is free for all its users. This -General Public License applies to most of the Free Software -Foundation's software and to any other program whose authors commit to -using it. (Some other Free Software Foundation software is covered by -the GNU Library General Public License instead.) You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -this service if you wish), that you receive source code or can get it -if you want it, that you can change the software or use pieces of it -in new free programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if you -distribute copies of the software, or if you modify it. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must give the recipients all the rights that -you have. You must make sure that they, too, receive or can get the -source code. And you must show them these terms so they know their -rights. - - We protect your rights with two steps: (1) copyright the software, and -(2) offer you this license which gives you legal permission to copy, -distribute and/or modify the software. - - Also, for each author's protection and ours, we want to make certain -that everyone understands that there is no warranty for this free -software. If the software is modified by someone else and passed on, we -want its recipients to know that what they have is not the original, so -that any problems introduced by others will not reflect on the original -authors' reputations. - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that redistributors of a free -program will individually obtain patent licenses, in effect making the -program proprietary. To prevent this, we have made it clear that any -patent must be licensed for everyone's free use or not licensed at all. - - The precise terms and conditions for copying, distribution and -modification follow. - - GNU GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License applies to any program or other work which contains -a notice placed by the copyright holder saying it may be distributed -under the terms of this General Public License. The "Program", below, -refers to any such program or work, and a "work based on the Program" -means either the Program or any derivative work under copyright law: -that is to say, a work containing the Program or a portion of it, -either verbatim or with modifications and/or translated into another -language. (Hereinafter, translation is included without limitation in -the term "modification".) Each licensee is addressed as "you". - -Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running the Program is not restricted, and the output from the Program -is covered only if its contents constitute a work based on the -Program (independent of having been made by running the Program). -Whether that is true depends on what the Program does. - - 1. You may copy and distribute verbatim copies of the Program's -source code as you receive it, in any medium, provided that you -conspicuously and appropriately publish on each copy an appropriate -copyright notice and disclaimer of warranty; keep intact all the -notices that refer to this License and to the absence of any warranty; -and give any other recipients of the Program a copy of this License -along with the Program. - -You may charge a fee for the physical act of transferring a copy, and -you may at your option offer warranty protection in exchange for a fee. - - 2. You may modify your copy or copies of the Program or any portion -of it, thus forming a work based on the Program, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) You must cause the modified files to carry prominent notices - stating that you changed the files and the date of any change. - - b) You must cause any work that you distribute or publish, that in - whole or in part contains or is derived from the Program or any - part thereof, to be licensed as a whole at no charge to all third - parties under the terms of this License. - - c) If the modified program normally reads commands interactively - when run, you must cause it, when started running for such - interactive use in the most ordinary way, to print or display an - announcement including an appropriate copyright notice and a - notice that there is no warranty (or else, saying that you provide - a warranty) and that users may redistribute the program under - these conditions, and telling the user how to view a copy of this - License. (Exception: if the Program itself is interactive but - does not normally print such an announcement, your work based on - the Program is not required to print an announcement.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Program, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Program, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Program. - -In addition, mere aggregation of another work not based on the Program -with the Program (or with a work based on the Program) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may copy and distribute the Program (or a work based on it, -under Section 2) in object code or executable form under the terms of -Sections 1 and 2 above provided that you also do one of the following: - - a) Accompany it with the complete corresponding machine-readable - source code, which must be distributed under the terms of Sections - 1 and 2 above on a medium customarily used for software interchange; or, - - b) Accompany it with a written offer, valid for at least three - years, to give any third party, for a charge no more than your - cost of physically performing source distribution, a complete - machine-readable copy of the corresponding source code, to be - distributed under the terms of Sections 1 and 2 above on a medium - customarily used for software interchange; or, - - c) Accompany it with the information you received as to the offer - to distribute corresponding source code. (This alternative is - allowed only for noncommercial distribution and only if you - received the program in object code or executable form with such - an offer, in accord with Subsection b above.) - -The source code for a work means the preferred form of the work for -making modifications to it. For an executable work, complete source -code means all the source code for all modules it contains, plus any -associated interface definition files, plus the scripts used to -control compilation and installation of the executable. However, as a -special exception, the source code distributed need not include -anything that is normally distributed (in either source or binary -form) with the major components (compiler, kernel, and so on) of the -operating system on which the executable runs, unless that component -itself accompanies the executable. - -If distribution of executable or object code is made by offering -access to copy from a designated place, then offering equivalent -access to copy the source code from the same place counts as -distribution of the source code, even though third parties are not -compelled to copy the source along with the object code. - - 4. You may not copy, modify, sublicense, or distribute the Program -except as expressly provided under this License. Any attempt -otherwise to copy, modify, sublicense or distribute the Program is -void, and will automatically terminate your rights under this License. -However, parties who have received copies, or rights, from you under -this License will not have their licenses terminated so long as such -parties remain in full compliance. - - 5. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Program or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Program (or any work based on the -Program), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Program or works based on it. - - 6. Each time you redistribute the Program (or any work based on the -Program), the recipient automatically receives a license from the -original licensor to copy, distribute or modify the Program subject to -these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. - - 7. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Program at all. For example, if a patent -license would not permit royalty-free redistribution of the Program by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Program. - -If any portion of this section is held invalid or unenforceable under -any particular circumstance, the balance of the section is intended to -apply and the section as a whole is intended to apply in other -circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system, which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 8. If the distribution and/or use of the Program is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Program under this License -may add an explicit geographical distribution limitation excluding -those countries, so that distribution is permitted only in or among -countries not thus excluded. In such case, this License incorporates -the limitation as if written in the body of this License. - - 9. The Free Software Foundation may publish revised and/or new versions -of the General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - -Each version is given a distinguishing version number. If the Program -specifies a version number of this License which applies to it and "any -later version", you have the option of following the terms and conditions -either of that version or of any later version published by the Free -Software Foundation. If the Program does not specify a version number of -this License, you may choose any version ever published by the Free Software -Foundation. - - 10. If you wish to incorporate parts of the Program into other free -programs whose distribution conditions are different, write to the author -to ask for permission. For software which is copyrighted by the Free -Software Foundation, write to the Free Software Foundation; we sometimes -make exceptions for this. Our decision will be guided by the two goals -of preserving the free status of all derivatives of our free software and -of promoting the sharing and reuse of software generally. - - NO WARRANTY - - 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY -FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN -OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES -PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED -OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS -TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE -PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, -REPAIR OR CORRECTION. - - 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR -REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, -INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING -OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED -TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY -YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER -PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE -POSSIBILITY OF SUCH DAMAGES. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - <one line to give the program's name and a brief idea of what it does.> - Copyright (C) <year> <name of author> - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA - - -Also add information on how to contact you by electronic and paper mail. - -If the program is interactive, make it output a short notice like this -when it starts in an interactive mode: - - Gnomovision version 69, Copyright (C) year name of author - Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, the commands you use may -be called something other than `show w' and `show c'; they could even be -mouse-clicks or menu items--whatever suits your program. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the program, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the program - `Gnomovision' (which makes passes at compilers) written by James Hacker. - - <signature of Ty Coon>, 1 April 1989 - Ty Coon, President of Vice - -This General Public License does not permit incorporating your program into -proprietary programs. If your program is a subroutine library, you may -consider it more useful to permit linking proprietary applications with the -library. If this is what you want to do, use the GNU Lesser General -Public License instead of this License. Deleted: software_suite_v3/software/plugin/plugin-feed/trunk/plugin-feed/pom.xml =================================================================== --- software_suite_v3/software/plugin/plugin-feed/trunk/plugin-feed/pom.xml 2009-10-29 07:02:20 UTC (rev 5807) +++ software_suite_v3/software/plugin/plugin-feed/trunk/plugin-feed/pom.xml 2009-10-29 07:02:53 UTC (rev 5808) @@ -1,121 +0,0 @@ -<project> - <!--General project informations--> - <modelVersion>4.0.0</modelVersion> - <groupId>com.kysoh</groupId> - <artifactId>plugin-feed</artifactId> - <packaging>jar</packaging> - <version>3.0</version> - <name>Feed plugin for Tux Droid</name> - <url>http://www.tuxisalive.com</url> - - <!--Dependency list--> - <dependencies> - <dependency> - <groupId>com.kysoh</groupId> - <artifactId>tuxdroid-plugin-java-kit</artifactId> - <version>0.0.3</version> - </dependency> - <dependency> - <groupId>net.karmaLab</groupId> - <artifactId>karmalab-commons</artifactId> - <version>1.2</version> - </dependency> - </dependencies> - - <!--Repository list--> - <repositories> - <repository> - <id>kysoh</id> - <name>Kysoh Repository</name> - <layout>default</layout> - <url>http://ftp.kysoh.com/maven2</url> - <snapshots> - <enabled>false</enabled> - </snapshots> - </repository> - </repositories> - - <!--Build process--> - <build> - <sourceDirectory>src</sourceDirectory> - <plugins> - - <!--This section copy the dependencies into ./libraries--> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-dependency-plugin</artifactId> - <executions> - <execution> - <id>copy-dependencies</id> - <phase>package</phase> - <goals> - <goal>copy-dependencies</goal> - </goals> - <configuration> - <outputDirectory>./libraries</outputDirectory> - </configuration> - </execution> - </executions> - </plugin> - - <!--This plugin run small ant scripts to pack and clean the plugin--> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-antrun-plugin</artifactId> - <version>1.3</version> - <executions> - - <!--This section create the .scp file during the package lifecycle--> - <execution> - <phase>package</phase> - <id>package</id> - <configuration> - <tasks> - <mkdir dir="./libraries"/> - <copy file="${project.build.directory}/${project.artifactId}-${project.version}.jar" - todir="./libraries" /> - <zip destfile="./${project.artifactId}.scp"> - <zipfileset dir="." includes="resources/*" /> - <zipfileset dir="." includes="resources/attitunes/*" /> - <zipfileset dir="." includes="libraries/*" > - <exclude name="libraries/tuxdroid-plugin-java-kit*" /> - <exclude name="libraries/karmalab-commons*" /> - <exclude name="libraries/tuxdroid-java-api*" /> - </zipfileset> - <zipfileset dir="." includes="executables/*" /> - </zip> - </tasks> - </configuration> - <goals> - <goal>run</goal> - </goals> - </execution> - - <!--This section clean the ./libraries and the SCP file during the 'clean' lifecycle--> - <execution> - <phase>clean</phase> - <configuration> - <tasks> - <delete dir="./libraries"/> - <delete file="./${project.artifactId}.scp"></delete> - </tasks> - </configuration> - <goals> - <goal>run</goal> - </goals> - </execution> - </executions> - </plugin> - - <!--This plugin compile the project--> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-compiler-plugin</artifactId> - <configuration> - <source>1.6</source> - <target>1.6</target> - </configuration> - </plugin> - </plugins> - </build> -</project> Copied: software_suite_v3/software/plugin/plugin-feed/trunk/pom.xml (from rev 5807, software_suite_v3/software/plugin/plugin-feed/trunk/plugin-feed/pom.xml) =================================================================== --- software_suite_v3/software/plugin/plugin-feed/trunk/pom.xml (rev 0) +++ software_suite_v3/software/plugin/plugin-feed/trunk/pom.xml 2009-10-29 07:02:53 UTC (rev 5808) @@ -0,0 +1,121 @@ +<project> + <!--General project informations--> + <modelVersion>4.0.0</modelVersion> + <groupId>com.kysoh</groupId> + <artifactId>plugin-feed</artifactId> + <packaging>jar</packaging> + <version>3.0</version> + <name>Feed plugin for Tux Droid</name> + <url>http://www.tuxisalive.com</url> + + <!--Dependency list--> + <dependencies> + <dependency> + <groupId>com.kysoh</groupId> + <artifactId>tuxdroid-plugin-java-kit</artifactId> + <version>0.0.3</version> + </dependency> + <dependency> + <groupId>net.karmaLab</groupId> + <artifactId>karmalab-commons</artifactId> + <version>1.2</version> + </dependency> + </dependencies> + + <!--Repository list--> + <repositories> + <repository> + <id>kysoh</id> + <name>Kysoh Repository</name> + <layout>default</layout> + <url>http://ftp.kysoh.com/maven2</url> + <snapshots> + <enabled>false</enabled> + </snapshots> + </repository> + </repositories> + + <!--Build process--> + <build> + <sourceDirectory>src</sourceDirectory> + <plugins> + + <!--This section copy the dependencies into ./libraries--> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-dependency-plugin</artifactId> + <executions> + <execution> + <id>copy-dependencies</id> + <phase>package</phase> + <goals> + <goal>copy-dependencies</goal> + </goals> + <configuration> + <outputDirectory>./libraries</outputDirectory> + </configuration> + </execution> + </executions> + </plugin> + + <!--This plugin run small ant scripts to pack and clean the plugin--> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-antrun-plugin</artifactId> + <version>1.3</version> + <executions> + + <!--This section create the .scp file during the package lifecycle--> + <execution> + <phase>package</phase> + <id>package</id> + <configuration> + <tasks> + <mkdir dir="./libraries"/> + <copy file="${project.build.directory}/${project.artifactId}-${project.version}.jar" + todir="./libraries" /> + <zip destfile="./${project.artifactId}.scp"> + <zipfileset dir="." includes="resources/*" /> + <zipfileset dir="." includes="resources/attitunes/*" /> + <zipfileset dir="." includes="libraries/*" > + <exclude name="libraries/tuxdroid-plugin-java-kit*" /> + <exclude name="libraries/karmalab-commons*" /> + <exclude name="libraries/tuxdroid-java-api*" /> + </zipfileset> + <zipfileset dir="." includes="executables/*" /> + </zip> + </tasks> + </configuration> + <goals> + <goal>run</goal> + </goals> + </execution> + + <!--This section clean the ./libraries and the SCP file during the 'clean' lifecycle--> + <execution> + <phase>clean</phase> + <configuration> + <tasks> + <delete dir="./libraries"/> + <delete file="./${project.artifactId}.scp"></delete> + </tasks> + </configuration> + <goals> + <goal>run</goal> + </goals> + </execution> + </executions> + </plugin> + + <!--This plugin compile the project--> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <source>1.6</source> + <target>1.6</target> + </configuration> + </plugin> + </plugins> + </build> +</project> Copied: software_suite_v3/software/plugin/plugin-feed/trunk/resources (from rev 5807, software_suite_v3/software/plugin/plugin-feed/trunk/plugin-feed/resources) Copied: software_suite_v3/software/plugin/plugin-feed/trunk/src (from rev 5807, software_suite_v3/software/plugin/plugin-feed/trunk/plugin-feed/src) |
From: ks156 <c2m...@c2...> - 2009-10-29 07:02:34
|
Author: ks156 Date: 2009-10-29 08:02:20 +0100 (Thu, 29 Oct 2009) New Revision: 5807 Removed: software_suite_v3/software/plugin/plugin-gmail/trunk/plugin-gmail/ Log: * Removed the empty dir |
From: ks156 <c2m...@c2...> - 2009-10-29 07:02:06
|
Author: ks156 Date: 2009-10-29 08:01:55 +0100 (Thu, 29 Oct 2009) New Revision: 5806 Added: software_suite_v3/software/plugin/plugin-gmail/trunk/LICENSE software_suite_v3/software/plugin/plugin-gmail/trunk/pom.xml software_suite_v3/software/plugin/plugin-gmail/trunk/resources/ software_suite_v3/software/plugin/plugin-gmail/trunk/src/ Removed: software_suite_v3/software/plugin/plugin-gmail/trunk/plugin-gmail/LICENSE software_suite_v3/software/plugin/plugin-gmail/trunk/plugin-gmail/pom.xml software_suite_v3/software/plugin/plugin-gmail/trunk/plugin-gmail/resources/ software_suite_v3/software/plugin/plugin-gmail/trunk/plugin-gmail/src/ Log: * Removed the subdir in the project root Copied: software_suite_v3/software/plugin/plugin-gmail/trunk/LICENSE (from rev 5805, software_suite_v3/software/plugin/plugin-gmail/trunk/plugin-gmail/LICENSE) =================================================================== --- software_suite_v3/software/plugin/plugin-gmail/trunk/LICENSE (rev 0) +++ software_suite_v3/software/plugin/plugin-gmail/trunk/LICENSE 2009-10-29 07:01:55 UTC (rev 5806) @@ -0,0 +1,340 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + <signature of Ty Coon>, 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. Deleted: software_suite_v3/software/plugin/plugin-gmail/trunk/plugin-gmail/LICENSE =================================================================== --- software_suite_v3/software/plugin/plugin-gmail/trunk/plugin-gmail/LICENSE 2009-10-29 07:00:27 UTC (rev 5805) +++ software_suite_v3/software/plugin/plugin-gmail/trunk/plugin-gmail/LICENSE 2009-10-29 07:01:55 UTC (rev 5806) @@ -1,340 +0,0 @@ - GNU GENERAL PUBLIC LICENSE - Version 2, June 1991 - - Copyright (C) 1989, 1991 Free Software Foundation, Inc. - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -License is intended to guarantee your freedom to share and change free -software--to make sure the software is free for all its users. This -General Public License applies to most of the Free Software -Foundation's software and to any other program whose authors commit to -using it. (Some other Free Software Foundation software is covered by -the GNU Library General Public License instead.) You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -this service if you wish), that you receive source code or can get it -if you want it, that you can change the software or use pieces of it -in new free programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if you -distribute copies of the software, or if you modify it. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must give the recipients all the rights that -you have. You must make sure that they, too, receive or can get the -source code. And you must show them these terms so they know their -rights. - - We protect your rights with two steps: (1) copyright the software, and -(2) offer you this license which gives you legal permission to copy, -distribute and/or modify the software. - - Also, for each author's protection and ours, we want to make certain -that everyone understands that there is no warranty for this free -software. If the software is modified by someone else and passed on, we -want its recipients to know that what they have is not the original, so -that any problems introduced by others will not reflect on the original -authors' reputations. - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that redistributors of a free -program will individually obtain patent licenses, in effect making the -program proprietary. To prevent this, we have made it clear that any -patent must be licensed for everyone's free use or not licensed at all. - - The precise terms and conditions for copying, distribution and -modification follow. - - GNU GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License applies to any program or other work which contains -a notice placed by the copyright holder saying it may be distributed -under the terms of this General Public License. The "Program", below, -refers to any such program or work, and a "work based on the Program" -means either the Program or any derivative work under copyright law: -that is to say, a work containing the Program or a portion of it, -either verbatim or with modifications and/or translated into another -language. (Hereinafter, translation is included without limitation in -the term "modification".) Each licensee is addressed as "you". - -Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running the Program is not restricted, and the output from the Program -is covered only if its contents constitute a work based on the -Program (independent of having been made by running the Program). -Whether that is true depends on what the Program does. - - 1. You may copy and distribute verbatim copies of the Program's -source code as you receive it, in any medium, provided that you -conspicuously and appropriately publish on each copy an appropriate -copyright notice and disclaimer of warranty; keep intact all the -notices that refer to this License and to the absence of any warranty; -and give any other recipients of the Program a copy of this License -along with the Program. - -You may charge a fee for the physical act of transferring a copy, and -you may at your option offer warranty protection in exchange for a fee. - - 2. You may modify your copy or copies of the Program or any portion -of it, thus forming a work based on the Program, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) You must cause the modified files to carry prominent notices - stating that you changed the files and the date of any change. - - b) You must cause any work that you distribute or publish, that in - whole or in part contains or is derived from the Program or any - part thereof, to be licensed as a whole at no charge to all third - parties under the terms of this License. - - c) If the modified program normally reads commands interactively - when run, you must cause it, when started running for such - interactive use in the most ordinary way, to print or display an - announcement including an appropriate copyright notice and a - notice that there is no warranty (or else, saying that you provide - a warranty) and that users may redistribute the program under - these conditions, and telling the user how to view a copy of this - License. (Exception: if the Program itself is interactive but - does not normally print such an announcement, your work based on - the Program is not required to print an announcement.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Program, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Program, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Program. - -In addition, mere aggregation of another work not based on the Program -with the Program (or with a work based on the Program) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may copy and distribute the Program (or a work based on it, -under Section 2) in object code or executable form under the terms of -Sections 1 and 2 above provided that you also do one of the following: - - a) Accompany it with the complete corresponding machine-readable - source code, which must be distributed under the terms of Sections - 1 and 2 above on a medium customarily used for software interchange; or, - - b) Accompany it with a written offer, valid for at least three - years, to give any third party, for a charge no more than your - cost of physically performing source distribution, a complete - machine-readable copy of the corresponding source code, to be - distributed under the terms of Sections 1 and 2 above on a medium - customarily used for software interchange; or, - - c) Accompany it with the information you received as to the offer - to distribute corresponding source code. (This alternative is - allowed only for noncommercial distribution and only if you - received the program in object code or executable form with such - an offer, in accord with Subsection b above.) - -The source code for a work means the preferred form of the work for -making modifications to it. For an executable work, complete source -code means all the source code for all modules it contains, plus any -associated interface definition files, plus the scripts used to -control compilation and installation of the executable. However, as a -special exception, the source code distributed need not include -anything that is normally distributed (in either source or binary -form) with the major components (compiler, kernel, and so on) of the -operating system on which the executable runs, unless that component -itself accompanies the executable. - -If distribution of executable or object code is made by offering -access to copy from a designated place, then offering equivalent -access to copy the source code from the same place counts as -distribution of the source code, even though third parties are not -compelled to copy the source along with the object code. - - 4. You may not copy, modify, sublicense, or distribute the Program -except as expressly provided under this License. Any attempt -otherwise to copy, modify, sublicense or distribute the Program is -void, and will automatically terminate your rights under this License. -However, parties who have received copies, or rights, from you under -this License will not have their licenses terminated so long as such -parties remain in full compliance. - - 5. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Program or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Program (or any work based on the -Program), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Program or works based on it. - - 6. Each time you redistribute the Program (or any work based on the -Program), the recipient automatically receives a license from the -original licensor to copy, distribute or modify the Program subject to -these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. - - 7. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Program at all. For example, if a patent -license would not permit royalty-free redistribution of the Program by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Program. - -If any portion of this section is held invalid or unenforceable under -any particular circumstance, the balance of the section is intended to -apply and the section as a whole is intended to apply in other -circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system, which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 8. If the distribution and/or use of the Program is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Program under this License -may add an explicit geographical distribution limitation excluding -those countries, so that distribution is permitted only in or among -countries not thus excluded. In such case, this License incorporates -the limitation as if written in the body of this License. - - 9. The Free Software Foundation may publish revised and/or new versions -of the General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - -Each version is given a distinguishing version number. If the Program -specifies a version number of this License which applies to it and "any -later version", you have the option of following the terms and conditions -either of that version or of any later version published by the Free -Software Foundation. If the Program does not specify a version number of -this License, you may choose any version ever published by the Free Software -Foundation. - - 10. If you wish to incorporate parts of the Program into other free -programs whose distribution conditions are different, write to the author -to ask for permission. For software which is copyrighted by the Free -Software Foundation, write to the Free Software Foundation; we sometimes -make exceptions for this. Our decision will be guided by the two goals -of preserving the free status of all derivatives of our free software and -of promoting the sharing and reuse of software generally. - - NO WARRANTY - - 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY -FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN -OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES -PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED -OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS -TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE -PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, -REPAIR OR CORRECTION. - - 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR -REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, -INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING -OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED -TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY -YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER -PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE -POSSIBILITY OF SUCH DAMAGES. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - <one line to give the program's name and a brief idea of what it does.> - Copyright (C) <year> <name of author> - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA - - -Also add information on how to contact you by electronic and paper mail. - -If the program is interactive, make it output a short notice like this -when it starts in an interactive mode: - - Gnomovision version 69, Copyright (C) year name of author - Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, the commands you use may -be called something other than `show w' and `show c'; they could even be -mouse-clicks or menu items--whatever suits your program. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the program, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the program - `Gnomovision' (which makes passes at compilers) written by James Hacker. - - <signature of Ty Coon>, 1 April 1989 - Ty Coon, President of Vice - -This General Public License does not permit incorporating your program into -proprietary programs. If your program is a subroutine library, you may -consider it more useful to permit linking proprietary applications with the -library. If this is what you want to do, use the GNU Lesser General -Public License instead of this License. Deleted: software_suite_v3/software/plugin/plugin-gmail/trunk/plugin-gmail/pom.xml =================================================================== --- software_suite_v3/software/plugin/plugin-gmail/trunk/plugin-gmail/pom.xml 2009-10-29 07:00:27 UTC (rev 5805) +++ software_suite_v3/software/plugin/plugin-gmail/trunk/plugin-gmail/pom.xml 2009-10-29 07:01:55 UTC (rev 5806) @@ -1,130 +0,0 @@ -<project> - <!--General project informations--> - <modelVersion>4.0.0</modelVersion> - <groupId>com.kysoh</groupId> - <artifactId>plugin-gmail</artifactId> - <packaging>jar</packaging> - <version>4.0</version> - <name>GMail plugin for Tux Droid</name> - <url>http://www.tuxisalive.com</url> - - <!--Dependency list--> - <dependencies> - <dependency> - <groupId>com.kysoh</groupId> - <artifactId>tuxdroid-plugin-java-kit</artifactId> - <version>0.0.3</version> - </dependency> - <dependency> - <groupId>javax.mail</groupId> - <artifactId>mail</artifactId> - <version>1.4.1</version> - </dependency> - </dependencies> - - <!--Repository list--> - <repositories> - <repository> - <id>kysoh</id> - <name>Kysoh Repository</name> - <layout>default</layout> - <url>http://ftp.kysoh.com/maven2</url> - <snapshots> - <enabled>false</enabled> - </snapshots> - </repository> - <repository> - <id>karma-lab</id> - <name>KarmaLab Repository Switchboard</name> - <layout>default</layout> - <url>http://artisan.karma-lab.net/software/repository</url> - <snapshots> - <enabled>false</enabled> - </snapshots> - </repository> - </repositories> - - <!--Build process--> - <build> - <sourceDirectory>src</sourceDirectory> - <plugins> - - <!--This section copy the dependencies into ./libraries--> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-dependency-plugin</artifactId> - <executions> - <execution> - <id>copy-dependencies</id> - <phase>package</phase> - <goals> - <goal>copy-dependencies</goal> - </goals> - <configuration> - <outputDirectory>./libraries</outputDirectory> - </configuration> - </execution> - </executions> - </plugin> - - <!--This plugin run small ant scripts to pack and clean the plugin--> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-antrun-plugin</artifactId> - <version>1.3</version> - <executions> - - <!--This section create the .scp file during the package lifecycle--> - <execution> - <phase>package</phase> - <id>package</id> - <configuration> - <tasks> - <mkdir dir="./libraries"/> - <copy file="${project.build.directory}/${project.artifactId}-${project.version}.jar" - todir="./libraries" /> - <zip destfile="./${project.artifactId}.scp"> - <zipfileset dir="." includes="resources/*" /> - <zipfileset dir="." includes="resources/attitunes/*" /> - <zipfileset dir="." includes="libraries/*" > - <exclude name="libraries/tuxdroid-plugin-java-kit*" /> - <exclude name="libraries/karmalab-commons*" /> - <exclude name="libraries/tuxdroid-java-api*" /> - </zipfileset> - <zipfileset dir="." includes="executables/*" /> - </zip> - </tasks> - </configuration> - <goals> - <goal>run</goal> - </goals> - </execution> - - <!--This section clean the ./libraries and the SCP file during the 'clean' lifecycle--> - <execution> - <phase>clean</phase> - <configuration> - <tasks> - <delete dir="./libraries"/> - <delete file="./${project.artifactId}.scp"/> - </tasks> - </configuration> - <goals> - <goal>run</goal> - </goals> - </execution> - </executions> - </plugin> - - <!--This plugin compile the project--> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-compiler-plugin</artifactId> - <configuration> - <source>1.6</source> - <target>1.6</target> - </configuration> - </plugin> - </plugins> - </build> -</project> Copied: software_suite_v3/software/plugin/plugin-gmail/trunk/pom.xml (from rev 5805, software_suite_v3/software/plugin/plugin-gmail/trunk/plugin-gmail/pom.xml) =================================================================== --- software_suite_v3/software/plugin/plugin-gmail/trunk/pom.xml (rev 0) +++ software_suite_v3/software/plugin/plugin-gmail/trunk/pom.xml 2009-10-29 07:01:55 UTC (rev 5806) @@ -0,0 +1,130 @@ +<project> + <!--General project informations--> + <modelVersion>4.0.0</modelVersion> + <groupId>com.kysoh</groupId> + <artifactId>plugin-gmail</artifactId> + <packaging>jar</packaging> + <version>4.0</version> + <name>GMail plugin for Tux Droid</name> + <url>http://www.tuxisalive.com</url> + + <!--Dependency list--> + <dependencies> + <dependency> + <groupId>com.kysoh</groupId> + <artifactId>tuxdroid-plugin-java-kit</artifactId> + <version>0.0.3</version> + </dependency> + <dependency> + <groupId>javax.mail</groupId> + <artifactId>mail</artifactId> + <version>1.4.1</version> + </dependency> + </dependencies> + + <!--Repository list--> + <repositories> + <repository> + <id>kysoh</id> + <name>Kysoh Repository</name> + <layout>default</layout> + <url>http://ftp.kysoh.com/maven2</url> + <snapshots> + <enabled>false</enabled> + </snapshots> + </repository> + <repository> + <id>karma-lab</id> + <name>KarmaLab Repository Switchboard</name> + <layout>default</layout> + <url>http://artisan.karma-lab.net/software/repository</url> + <snapshots> + <enabled>false</enabled> + </snapshots> + </repository> + </repositories> + + <!--Build process--> + <build> + <sourceDirectory>src</sourceDirectory> + <plugins> + + <!--This section copy the dependencies into ./libraries--> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-dependency-plugin</artifactId> + <executions> + <execution> + <id>copy-dependencies</id> + <phase>package</phase> + <goals> + <goal>copy-dependencies</goal> + </goals> + <configuration> + <outputDirectory>./libraries</outputDirectory> + </configuration> + </execution> + </executions> + </plugin> + + <!--This plugin run small ant scripts to pack and clean the plugin--> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-antrun-plugin</artifactId> + <version>1.3</version> + <executions> + + <!--This section create the .scp file during the package lifecycle--> + <execution> + <phase>package</phase> + <id>package</id> + <configuration> + <tasks> + <mkdir dir="./libraries"/> + <copy file="${project.build.directory}/${project.artifactId}-${project.version}.jar" + todir="./libraries" /> + <zip destfile="./${project.artifactId}.scp"> + <zipfileset dir="." includes="resources/*" /> + <zipfileset dir="." includes="resources/attitunes/*" /> + <zipfileset dir="." includes="libraries/*" > + <exclude name="libraries/tuxdroid-plugin-java-kit*" /> + <exclude name="libraries/karmalab-commons*" /> + <exclude name="libraries/tuxdroid-java-api*" /> + </zipfileset> + <zipfileset dir="." includes="executables/*" /> + </zip> + </tasks> + </configuration> + <goals> + <goal>run</goal> + </goals> + </execution> + + <!--This section clean the ./libraries and the SCP file during the 'clean' lifecycle--> + <execution> + <phase>clean</phase> + <configuration> + <tasks> + <delete dir="./libraries"/> + <delete file="./${project.artifactId}.scp"/> + </tasks> + </configuration> + <goals> + <goal>run</goal> + </goals> + </execution> + </executions> + </plugin> + + <!--This plugin compile the project--> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <source>1.6</source> + <target>1.6</target> + </configuration> + </plugin> + </plugins> + </build> +</project> Copied: software_suite_v3/software/plugin/plugin-gmail/trunk/resources (from rev 5805, software_suite_v3/software/plugin/plugin-gmail/trunk/plugin-gmail/resources) Copied: software_suite_v3/software/plugin/plugin-gmail/trunk/src (from rev 5805, software_suite_v3/software/plugin/plugin-gmail/trunk/plugin-gmail/src) |