diff --git a/build/ebusd-1.0_armhf.deb b/build/ebusd-1.0_armhf.deb new file mode 100644 index 00000000..a9c8d568 Binary files /dev/null and b/build/ebusd-1.0_armhf.deb differ diff --git a/build/ebusd-1.0_x86.deb b/build/ebusd-1.0_x86.deb new file mode 100644 index 00000000..9bcf374e Binary files /dev/null and b/build/ebusd-1.0_x86.deb differ diff --git a/build/make_ebusd_deb.sh b/build/make_ebusd_deb.sh new file mode 100644 index 00000000..5e3dd1b8 --- /dev/null +++ b/build/make_ebusd_deb.sh @@ -0,0 +1,64 @@ +#!/bin/sh +# +# +# This file is part of ebusd. +# +# ebusd 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 3 of the License, or +# (at your option) any later version. +# +# ebusd 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 ebusd. If not, see http://www.gnu.org/licenses/. +# + +BUILD_DIR=/tmp +VERSION='1.0' + +cd $BUILD_DIR +printf ">>> Build directory $BUILD_DIR create $BUILD_DIR/ebusd_build\n" +mkdir ebusd-build +cd ebusd-build + +printf ">>> Checkout sources\n" +svn checkout https://svn.code.sf.net/p/openautomation/code/tools/ebusd +cd ebusd + +printf ">>> Build binarys from source\n" +./autogen.sh + +printf ">>> Create Debian package related files\n" +mkdir trunk +mkdir trunk/DEBIAN +mkdir trunk/etc +mkdir trunk/etc/init.d +mkdir trunk/usr +mkdir trunk/usr/sbin + +cp contrib/debian/init.d trunk/etc/init.d/ebusd +cp -R contrib/etc/* trunk/etc +cp src/ebusd trunk/usr/sbin +cp -R contrib/csv/* /etc/ebusd/ + +cp ChangeLog trunk/DEBIAN/changelog +ARCH=`dpkg --print-architecture` +echo "Package: ebusd\nVersion: $VERSION\nSection: net\nPriority: required\nArchitecture: $ARCH\nMaintainer: Roland Jax \nDepends:\nDescription: ebus Daemon (ebusd)\n" > trunk/DEBIAN/control +echo "/etc/ebusd\n/usr/sbin/\n/etc/init.d\n/etc/logrotate.d\n/etc/udev\n/etc/udev/rules\n" > trunk/DEBIAN/dirs + +mkdir ebusd-$VERSION +cp -R trunk/* ebusd-$VERSION +dpkg -b ebusd-$VERSION + +printf ">>> Move Package to $BUILD_DIR\n" +mv ebusd-$VERSION.deb $BUILD_DIR/ebusd-${VERSION}_${ARCH}.deb + +printf ">>> Remove Files\n" +cd $BUILD_DIR +rm -R ebusd-build + +printf ">>> Debian Package created at $BUILD_DIR/ebusd-${VERSION}_${ARCH}.deb\n" diff --git a/contrib/etc/udev/rules.d/ebus.rules b/contrib/etc/udev/rules.d/ebus.rules new file mode 100644 index 00000000..d8c898b2 --- /dev/null +++ b/contrib/etc/udev/rules.d/ebus.rules @@ -0,0 +1,19 @@ +# There are a number of modifiers that are allowed to be used in some +# of the different fields. They provide the following subsitutions: +# +# %n the "kernel number" of the device. +# For example, 'sda3' has a "kernel number" of '3' +# %k the kernel name for the device +# %M the kernel major number for the device +# %m the kernel minor number for the device +# %b the bus id for the device +# %c the string returned by the PROGRAM +# %s{filename} the content of a sysfs attribute +# %% the '%' char itself +# udevadm info --attribute-walk --path=/sys/bus/usb-serial/devices/ttyUSB0 + +### eBus-Coupler / E-Service-Online ### + +SUBSYSTEMS=="usb", KERNEL=="ttyUSB*", \ + ATTRS{product}=="eBus Coupler", ATTRS{manufacturer}=="E-Service Online" \ + SYMLINK+="ebus-usb"