1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00

Improved the handling of the UDev rules installation. Uses

dh_installudev now instead of just manually copying files.  Should
survive any changes to where UDev puts rules better if there is a
channge in their scheme of locations.

Suggested change by Stac after finding the dh_installudev tool.  Good
find!
This commit is contained in:
naiiawah 2011-12-24 14:30:02 -07:00
parent 15061dccab
commit e7a5c14fe2
3 changed files with 14 additions and 2 deletions

View File

@ -1,4 +1,3 @@
etc/udev/rules.d
etc/xdg/menus/applications-merged
usr/share/applications
usr/share/pixmaps

View File

@ -0,0 +1,13 @@
# OpenPilot openpilot flight control board
SUBSYSTEM=="usb", ATTRS{idVendor}=="20a0", ATTRS{idProduct}=="4117", MODE="0664", GROUP="plugdev"
SUBSYSTEM=="usb", ATTRS{idVendor}=="20a0", ATTRS{idProduct}=="415a", MODE="0664", GROUP="plugdev"
# OpenPilot coptercontrol flight control board
SUBSYSTEM=="usb", ATTRS{idVendor}=="20a0", ATTRS{idProduct}=="415b", MODE="0664", GROUP="plugdev"
# OpenPilot Pipx radio modem board
SUBSYSTEM=="usb", ATTRS{idVendor}=="20a0", ATTRS{idProduct}=="415c", MODE="0664", GROUP="plugdev"
# unprogrammed openpilot flight control board
SUBSYSTEM=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="5750", MODE="0664", GROUP="plugdev"
# FTDI FT2232C Dual USB-UART/FIFO IC
SUBSYSTEM=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6010", MODE="0664", GROUP="plugdev"
# Olimex Ltd. OpenOCD JTAG TINY
SUBSYSTEM=="usb", ATTRS{idVendor}=="15ba", ATTRS{idProduct}=="0004", MODE="0664", GROUP="plugdev"

View File

@ -31,6 +31,7 @@ install:
dh_testroot
dh_prep
dh_installdirs
dh_installudev --priority=45
# Add here commands to install the package into debian/<packagename>
cp -arp build/ground/openpilotgcs/bin debian/openpilot/usr/local/OpenPilot
cp -arp build/ground/openpilotgcs/lib debian/openpilot/usr/local/OpenPilot
@ -42,7 +43,6 @@ install:
cp -arp package/linux/rc_applications.png debian/openpilot/usr/share/pixmaps
cp -arp package/linux/rc_applications.menu debian/openpilot/etc/xdg/menus/applications-merged
cp -arp package/linux/rc_applications.directory debian/openpilot/usr/share/desktop-directories
cp -arp package/linux/45-openpilot-permissions.rules debian/openpilot/etc/udev/rules.d
ifdef $(PACKAGE_DIR)
cp -ar $(PACKAGE_DIR)/* debian/openpilot/usr/local/OpenPilot/firmware/
endif