--- leds-alix-0.0.1.orig/debian/control +++ leds-alix-0.0.1/debian/control @@ -0,0 +1,17 @@ +Source: leds-alix +Section: utils +Priority: optional +Maintainer: Adam Cécile (Le_Vert) +Build-Depends: debhelper (>= 5), bzip2 +Standards-Version: 3.7.3 +Homepage: https://dev.openwrt.org/ + +Package: leds-alix-source +Architecture: all +Depends: module-assistant, debhelper (>= 5), make, bzip2 +Description: Source for the LEDs driver of PCEngines ALIX 2/3 boards + This package provides the source code for the leds-alix kernel module. + . + PCEngines ALIX boards (version 2/3) have three LEDs on front. + . + This driver allow you to power them on/off. --- leds-alix-0.0.1.orig/debian/control.modules.in +++ leds-alix-0.0.1/debian/control.modules.in @@ -0,0 +1,23 @@ +Source: leds-alix +Section: utils +Priority: optional +Maintainer: Adam Cécile (Le_Vert) +Build-Depends: debhelper (>= 5) +Standards-Version: 3.7.3 +Homepage: https://dev.openwrt.org/ + +Package: leds-alix-modules-_KVERS_ +Architecture: any +Provides: leds-alix-modules +Description: LEDs of ALIX 2/3 boards modules for Linux (kernel _KVERS_). + This package contains the set of loadable kernel modules for the LEDs + of PCEngines ALIX 2/3 boards. + . + This driver allow you to power on/off the three front LEDs from + PCEngines ALIX 2/3 boards and contains the compiled kernel modules + for _KVERS_ + . + If you have compiled your own kernel, you will most likely need to build + your own leds-alix-modules. The leds-alix-source package has been provided + for use with the Debian's module-assistant or kernel-package utilities to + produce a version of leds-alix-modules for your kernel. --- leds-alix-0.0.1.orig/debian/changelog +++ leds-alix-0.0.1/debian/changelog @@ -0,0 +1,5 @@ +leds-alix (0.0.1-1) unstable; urgency=low + + * Initial release (Closes: #461404). + + -- Adam Cécile (Le_Vert) Fri, 18 Jan 2008 10:38:23 +0100 --- leds-alix-0.0.1.orig/debian/copyright +++ leds-alix-0.0.1/debian/copyright @@ -0,0 +1,31 @@ +This package was debianized by Adam Cécile (Le_Vert) on +Fri, 18 Jan 2008 10:38:23 +0100. + +It was downloaded from https://dev.openwrt.org/ticket/2771 + +Upstream Author: + Petr Leibman + +Copyright: + Copyright (C) 2007 Petr Leibman + +License: + + This package 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 (version 2 ONLY). + + This package 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 package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL-2'. + +The Debian packaging is (C) 2008, Adam Cécile (Le_Vert) +and is licensed under the GPL-2, see above. --- leds-alix-0.0.1.orig/debian/README.Debian +++ leds-alix-0.0.1/debian/README.Debian @@ -0,0 +1,36 @@ +leds-alix for Debian +-------------------- + +1. How to use leds-alix-source package + + The leds-alix-source package can be used in several ways, + + - Using the make-kpkg(1) command provided by the kernel-package Debian + package. This will produce a corresponding leds-alix-modules package for + the Debian kernel-image package that you are using. This is "the Debian + way". See the "modules_image" section of the make-kpkg(1) man page. + + - Changing to the /usr/src/modules/leds-alix/ directory and building using + "make; make install". This will build and install a module specific to + the system you are building on and is not under control of the packaging + system. + +2. Play with the LEDs + + I got this small howto from the author (posted on OpenWRT forums): + + You should get three LED devices under /sys/class/leds/ + alix:1, alix:2 and alix:3 + + This should turn on one led: + echo 1 > /sys/class/leds/alix:1/brightness + + And off: + echo 0 > /sys/class/leds/alix:1/brightness + + And this should make it blink: + echo timer > /sys/class/leds/alix:1/trigger + echo 1000 > /sys/class/leds/alix:1/delay_off + echo 100 > /sys/class/leds/alix:1/delay_on + + -- Adam Cécile (Le_Vert) Fri, 18 Jan 2008 10:38:23 +0100 --- leds-alix-0.0.1.orig/debian/rules +++ leds-alix-0.0.1/debian/rules @@ -0,0 +1,72 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +psource:=leds-alix-source +sname:=leds-alix +PACKAGE=leds-alix-modules +MA_DIR ?= /usr/share/modass +-include $(MA_DIR)/include/generic.make +-include $(MA_DIR)/include/common-rules.make +DESTDIR = $(CURDIR)/debian/$(psource)/usr/src/modules/$(sname) + +kdist_config: prep-deb-files + +kdist_clean: clean + $(MAKE) -f debian/rules clean + +binary-modules: + dh_testroot + dh_clean -k + dh_installdirs lib/modules/$(KVERS)/kernel/leds + $(MAKE) KERNEL_DIR=$(KSRC) KERNEL_VERSION=$(KVERS) + cp leds-alix.ko debian/$(PKGNAME)/lib/modules/$(KVERS)/kernel/leds + dh_installdocs + dh_installchangelogs + dh_installmodules + dh_compress + dh_fixperms + dh_installdeb + dh_gencontrol -- -v$(VERSION) + dh_md5sums + dh_builddeb --destdir=$(DEB_DESTDIR) + dh_clean -k + dh_testdir + touch $@ + +clean: + dh_testdir + $(MAKE) clean + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + dh_installdirs -p$(psource) usr/src/modules/$(sname)/debian + cp Makefile leds-alix.c $(DESTDIR) + cp debian/*modules.in* debian/control debian/rules debian/changelog debian/copyright debian/compat debian/README.Debian $(DESTDIR)/debian + cd debian/$(psource)/usr/src && tar c modules | bzip2 -9 > $(sname).tar.bz2 && rm -rf modules + dh_install + +binary-indep: build install + dh_testdir -i + dh_testroot -i + dh_installchangelogs -i + dh_installdocs -i + dh_link -i + dh_compress -i + dh_fixperms -i + dh_installdeb -i + dh_installdeb -i + dh_shlibdeps -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + +binary-arch: + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure binary-modules kdist kdist_configure kdist_image kdist_clean --- leds-alix-0.0.1.orig/debian/compat +++ leds-alix-0.0.1/debian/compat @@ -0,0 +1 @@ +5