Skip to content

Files required for integration with a Linux distribution #1572

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 16 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file modified app/src/processing/app/Serial.java
100755 → 100644
Empty file.
Empty file modified app/src/processing/app/debug/AvrdudeUploader.java
100755 → 100644
Empty file.
Empty file modified app/src/processing/app/debug/Uploader.java
100755 → 100644
Empty file.
Empty file modified app/src/processing/app/tools/Archiver.java
100755 → 100644
Empty file.
Empty file modified build/howto.txt
100755 → 100644
Empty file.
23 changes: 23 additions & 0 deletions build/linux/arduino-add-groups
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash

uid=${PKEXEC_UID:-${SUDO_UID}}

if [[ -z $uid ]]; then
echo "Could not determine which user to add to the groups."
exit 2
fi

login=$(perl -e 'print((getpwuid shift)[0])' $uid)

for group in dialout lock; do
if ! groups $login | grep -q " : .*\b$group\b"; then
missing_groups=${missing_groups:+$missing_groups,}$group
fi
done

if [[ -n $missing_groups ]]; then
exec usermod -a -G $missing_groups $login
else
echo "No required groups are missing for this user."
exit 1
fi
13 changes: 13 additions & 0 deletions build/linux/arduino.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.TH ARDUINO 1 "30 September 2010"
.SH NAME
arduino \- An IDE for Arduino-compatible electronics prototyping platforms
.SH SYNOPSIS
arduino
.SH DESCRIPTION
The Arduino development environment consists of a text editor, example
code, and tools for compiling and uploading code to Arduino and
compatible microcontroller boards.
.SH SEE ALSO
/usr/share/arduino/reference/index.html, http://arduino.cc/
.SH AUTHOR
Peter Oliver <[email protected]>
23 changes: 23 additions & 0 deletions build/linux/arduino.appdata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<application>
<id type="desktop">arduino.desktop</id>
<licence>CC-BY-SA</licence>
<description>
<p>
Arduino is an open-source electronics prototyping platform based
on flexible, easy-to-use hardware and software. It's intended for
artists, designers, hobbyists, and anyone interested in creating
interactive objects or environments.
</p>
<p>
Included is an integrated development environment that can be used
to develop and upload code to compatible micro-controllers.
</p>
</description>
<screenshots>
<screenshot type="default" width="624" height="351">http://mavit.fedorapeople.org/appdata/arduino-screenshot.png</screenshot>
<screenshot width="704" height="396">http://mavit.fedorapeople.org/appdata/arduino-photo.jpg</screenshot>
</screenshots>
<url type="homepage">http://arduino.cc/</url>
<updatecontact>[email protected]</updatecontact>
</application>
9 changes: 9 additions & 0 deletions build/linux/arduino.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[Desktop Entry]
Type=Application
Name=Arduino
Comment=An IDE for Arduino-compatible electronics prototyping platforms
Exec=arduino
Icon=arduino
Terminal=false
Categories=Development;IDE;Electronics;
MimeType=text/x-arduino
42 changes: 42 additions & 0 deletions build/linux/arduino.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?xml version='1.0' encoding='utf-8'?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="text/x-arduino">
<comment>Arduino source code</comment>
<comment xml:lang="ara">شفرة مصدر Arduino</comment>
<comment xml:lang="be@latin">Kryničny kod Arduino</comment>
<comment xml:lang="bg">Изходен код на Arduino</comment>
<comment xml:lang="ca">codi font en Arduino</comment>
<comment xml:lang="da">Arduinokildekode</comment>
<comment xml:lang="de">Arduino-Quelltext</comment>
<comment xml:lang="el">πηγαίος κώδικας Arduino</comment>
<comment xml:lang="en_GB">Arduino source code</comment>
<comment xml:lang="eo">Arduino-fontkodo</comment>
<comment xml:lang="es">código fuente en Arduino</comment>
<comment xml:lang="eu">Arduino iturburu-kodea</comment>
<comment xml:lang="fi">Arduino-lähdekoodi</comment>
<comment xml:lang="fr">code source Arduino</comment>
<comment xml:lang="ga">cód foinseach Arduino</comment>
<comment xml:lang="hu">Arduino-forráskód</comment>
<comment xml:lang="id">Kode program Arduino</comment>
<comment xml:lang="it">Codice sorgente Arduino</comment>
<comment xml:lang="ja">Arduino ソースコード</comment>
<comment xml:lang="lt">Arduino pradinis kodas</comment>
<comment xml:lang="lv">Arduino pirmkods</comment>
<comment xml:lang="ms">Kod sumber Arduino</comment>
<comment xml:lang="nb">Arduino-kildekode</comment>
<comment xml:lang="nl">Arduino-broncode</comment>
<comment xml:lang="nn">Arduino-kjeldekode</comment>
<comment xml:lang="pl">Kod źródłowy Arduino</comment>
<comment xml:lang="pt">código fonte Arduino</comment>
<comment xml:lang="pt_BR">Código fonte Arduino</comment>
<comment xml:lang="ru">исходный код Arduino</comment>
<comment xml:lang="sq">Kod burues Arduino</comment>
<comment xml:lang="sv">Arduino-källkod</comment>
<comment xml:lang="uk">Вихідний код на мові Arduino</comment>
<comment xml:lang="vi">Mã nguồn Arduino</comment>
<comment xml:lang="zh_CN">Arduino 源代码</comment>
<comment xml:lang="zh_TW">Arduino 源代碼</comment>
<sub-class-of type="text/x-c++src"/>
<glob pattern="*.ino"/> <!-- FIXME: extension not yet decided -->
</mime-type>
</mime-info>
22 changes: 22 additions & 0 deletions build/linux/cc.arduino.add-groups.policy
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
"http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
<policyconfig>

<vendor>Arduino</vendor>
<vendor_url>http://arduino.cc/</vendor_url>

<action id="cc.arduino.add-groups.policy">
<description>Add the user to groups required to access USB and serial ports.</description>
<message>Authentication is required to add the current user to the required groups.</message>
<icon_name>arduino</icon_name>
<defaults>
<allow_any>no</allow_any>
<allow_inactive>no</allow_inactive>
<allow_active>auth_admin</allow_active>
</defaults>
<annotate key="org.freedesktop.policykit.exec.path">/usr/libexec/arduino-add-groups</annotate>
</action>

</policyconfig>
13 changes: 13 additions & 0 deletions build/linux/dist/arduino
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
#!/bin/sh

if [[ `id -u` -ne 0 ]]; then
for group in dialout lock; do
if ! groups $USER | grep -q " : .*\b$group\b"; then
missing_groups="$missing_groups\n$group"
fi
done

if [[ -n $missing_groups ]] && zenity --title=Arduino --window-icon=/usr/share/icons/hicolor/16x16/apps/arduino.png --question --text "You need to be a member of the following groups to upload code to an Arduino microcontroller over the USB or serial ports:\n$missing_groups" --ok-label='Add' --cancel-label='Ignore'; then
pkexec /usr/libexec/arduino-add-groups \
&& zenity --title=Arduino --window-icon=/usr/share/icons/hicolor/16x16/apps/arduino.png --info --text "You must log out and log in again before any changes will take effect."
fi
fi

APPDIR="$(dirname -- "$(readlink -f -- "${0}")" )"

cd "$APPDIR"
Expand Down
Binary file added build/linux/icons/128x128/arduino.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/linux/icons/16x16/arduino.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/linux/icons/24x24/arduino.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/linux/icons/256x256/arduino.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/linux/icons/32x32/arduino.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/linux/icons/48x48/arduino.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified build/shared/lib/preferences.txt
100755 → 100644
Empty file.
Empty file modified build/windows/launcher/launch4j/LICENSE.txt
100755 → 100644
Empty file.
Empty file modified build/windows/launcher/launch4j/demo/ConsoleApp/lib/readme.txt
100755 → 100644
Empty file.
Empty file modified build/windows/launcher/launch4j/demo/ConsoleApp/readme.txt
100755 → 100644
Empty file.
Empty file.
Empty file modified build/windows/launcher/launch4j/demo/LICENSE.txt
100755 → 100644
Empty file.
Empty file modified build/windows/launcher/launch4j/demo/SimpleApp/lib/readme.txt
100755 → 100644
Empty file.
Empty file modified build/windows/launcher/launch4j/demo/SimpleApp/readme.txt
100755 → 100644
Empty file.
Empty file.
Empty file modified build/windows/launcher/launch4j/demo/readme.txt
100755 → 100644
Empty file.
Empty file modified build/windows/launcher/launch4j/head/LICENSE.txt
100755 → 100644
Empty file.
Empty file modified build/windows/launcher/launch4j/head_src/LICENSE.txt
100755 → 100644
Empty file.
Empty file.
Empty file modified build/windows/launcher/launch4j/head_src/guihead/guihead.c
100755 → 100644
Empty file.
Empty file modified build/windows/launcher/launch4j/head_src/guihead/guihead.h
100755 → 100644
Empty file.
Empty file modified build/windows/launcher/launch4j/head_src/head.c
100755 → 100644
Empty file.
Empty file modified build/windows/launcher/launch4j/head_src/head.h
100755 → 100644
Empty file.
Empty file modified build/windows/launcher/launch4j/head_src/resource.h
100755 → 100644
Empty file.
Empty file modified build/windows/launcher/launch4j/lib/JGoodies.Forms.LICENSE.txt
100755 → 100644
Empty file.
Empty file modified build/windows/launcher/launch4j/lib/JGoodies.Looks.LICENSE.txt
100755 → 100644
Empty file.
Empty file.
Empty file modified build/windows/launcher/launch4j/lib/XStream.LICENSE.txt
100755 → 100644
Empty file.
Empty file modified build/windows/launcher/launch4j/lib/commons.LICENSE.txt
100755 → 100644
Empty file.
Empty file modified build/windows/launcher/launch4j/lib/foxtrot.LICENSE.txt
100755 → 100644
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified build/windows/launcher/launch4j/src/net/sf/launch4j/Log.java
100755 → 100644
Empty file.
Empty file modified build/windows/launcher/launch4j/src/net/sf/launch4j/Main.java
100755 → 100644
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified build/windows/launcher/launch4j/src/net/sf/launch4j/Util.java
100755 → 100644
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified build/windows/launcher/launch4j/w32api/MinGW.LICENSE.txt
100755 → 100644
Empty file.
Empty file modified hardware/arduino/bootloaders/atmega/ATmegaBOOT_168.c
100755 → 100644
Empty file.
Empty file modified hardware/arduino/bootloaders/atmega/Makefile
100755 → 100644
Empty file.
Empty file modified hardware/arduino/bootloaders/atmega8/ATmegaBOOT.c
100755 → 100644
Empty file.
Empty file modified hardware/arduino/bootloaders/bt/Makefile
100755 → 100644
Empty file.
Empty file modified hardware/arduino/cores/arduino/Print.cpp
100755 → 100644
Empty file.
Empty file modified hardware/arduino/cores/arduino/Print.h
100755 → 100644
Empty file.
Empty file modified hardware/arduino/cores/arduino/Tone.cpp
100755 → 100644
Empty file.
Empty file modified hardware/arduino/cores/arduino/wiring_private.h
100755 → 100644
Empty file.
Empty file modified hardware/arduino/cores/arduino/wiring_pulse.c
100755 → 100644
Empty file.
Empty file modified hardware/arduino/cores/arduino/wiring_shift.c
100755 → 100644
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified hardware/arduino/firmwares/atmegaxxu2/arduino-usbdfu/makefile
100755 → 100644
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified libraries/EEPROM/EEPROM.cpp
100755 → 100644
Empty file.
Empty file modified libraries/EEPROM/EEPROM.h
100755 → 100644
Empty file.
Empty file modified libraries/Ethernet/utility/socket.h
100755 → 100644
Empty file.
Empty file modified libraries/Ethernet/utility/w5100.h
100755 → 100644
Empty file.
Empty file modified libraries/LiquidCrystal/LiquidCrystal.h
100755 → 100644
Empty file.
Empty file modified libraries/LiquidCrystal/keywords.txt
100755 → 100644
Empty file.
Empty file modified libraries/Servo/Servo.cpp
100755 → 100644
Empty file.
Empty file modified libraries/Servo/Servo.h
100755 → 100644
Empty file.
Empty file modified libraries/Servo/keywords.txt
100755 → 100644
Empty file.
Empty file modified libraries/SoftwareSerial/SoftwareSerial.cpp
100755 → 100644
Empty file.
Empty file modified libraries/SoftwareSerial/SoftwareSerial.h
100755 → 100644
Empty file.
Empty file modified libraries/Wire/Wire.cpp
100755 → 100644
Empty file.
Empty file modified libraries/Wire/Wire.h
100755 → 100644
Empty file.
Empty file modified libraries/Wire/examples/SFRRanger_reader/SFRRanger_reader.ino
100755 → 100644
Empty file.
Empty file modified libraries/Wire/utility/twi.h
100755 → 100644
Empty file.