r4123 - in dists/trunk/modules: . unicorn unicorn/unicorn unicorn/unicorn/debian

Sven Luther luther at costa.debian.org
Fri Sep 2 17:03:07 UTC 2005


Author: luther
Date: 2005-09-02 17:02:30 +0000 (Fri, 02 Sep 2005)
New Revision: 4123

Added:
   dists/trunk/modules/unicorn/
   dists/trunk/modules/unicorn/unicorn/
   dists/trunk/modules/unicorn/unicorn/debian/
   dists/trunk/modules/unicorn/unicorn/debian/README.Debian
   dists/trunk/modules/unicorn/unicorn/debian/changelog
   dists/trunk/modules/unicorn/unicorn/debian/compat
   dists/trunk/modules/unicorn/unicorn/debian/control
   dists/trunk/modules/unicorn/unicorn/debian/control.modules.in
   dists/trunk/modules/unicorn/unicorn/debian/copyright
   dists/trunk/modules/unicorn/unicorn/debian/peers-pppoatm
   dists/trunk/modules/unicorn/unicorn/debian/rules
   dists/trunk/modules/unicorn/unicorn/debian/unicorn-modules.postinst.in
   dists/trunk/modules/unicorn/unicorn/debian/unicorn-source.dirs
   dists/trunk/modules/unicorn/unicorn/debian/unicorn-source.docs
   dists/trunk/modules/unicorn/unicorn/debian/unicorn-source.override
   dists/trunk/modules/unicorn/unicorn/debian/unicorn.desktop
   dists/trunk/modules/unicorn/unicorn/debian/unicorn.dirs
   dists/trunk/modules/unicorn/unicorn/debian/unicorn.docs
   dists/trunk/modules/unicorn/unicorn/debian/unicorn.override
   dists/trunk/modules/unicorn/unicorn_0.9.2.orig.tar.gz
Log:
Initial checking of the unicorn modules, driver for the bewan ADSL pci&usb
modems and related products.


Added: dists/trunk/modules/unicorn/unicorn/debian/README.Debian
===================================================================
--- dists/trunk/modules/unicorn/unicorn/debian/README.Debian	2005-09-01 09:08:03 UTC (rev 4122)
+++ dists/trunk/modules/unicorn/unicorn/debian/README.Debian	2005-09-02 17:02:30 UTC (rev 4123)
@@ -0,0 +1,61 @@
+unicorn for Debian
+------------------
+
+Please see ./README for a description of the unicorn software.
+
+The Debian unicorn source package provides two packages,
+
+ 1) unicorn, which the provides userspace applications for monitoring the
+    Bewan ADSL modems
+ 2) unicorn-source, which provides the source for the kernel modules
+
+The unicorn-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 unicorn-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.
+   Notice that you have to be root to build the unicorn-modules, i don't know
+   why this is, fakeroot is not enough, but sudo will do the trick.
+
+ - Changing to the /usr/src/modules/unicorn/ directory and building as
+   the README file instructs 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.
+
+Note, KT400 users which have problems with the modem may find it useful to
+#define KT400 at the start of :
+
+  /usr/src/modules/unicorn/unicorn_pci/unicorn_pcidrv.c.
+
+Notice that you need a version of ppp with the pppoatm plugin enabled to be
+able to connect to your ISP with the pppoatm protocol. Starting from version
+2.4.2+20031002-2, the debian ppp package should do.
+
+You then need to do the following to bring up your connection in pppoatm mode :
+
+  1) You copy the provider script, found in the unicorn package,
+     /usr/share/doc/unicorn/peers-pppoatm to /etc/ppp/<your_isp>
+     (or whatever you like, and edit it. You then only need to edit
+     the user line to to something like :
+
+       user <your_isp_login>
+
+     and adjust the 8.35 VPI/VCI values to the number your ISP provided you :
+
+       plugin pppoatm.so 8.35
+
+  2) Copy no_ppp_on_boot to ppp_on_boot and make it executable. Additionnaly,
+     you can edit it and change the default provider to whatever you renamed
+     the /etc/ppp/provider script (same as when doing pon <your_isp> ).
+
+  3) you add your isp password to the /etc/ppp/chap_secrets and/or
+     /etc/ppp/pap_secrets files as usual.
+
+You then only need to reboot your box, and the connection will come up.
+   
+<notice : it is also possible to configure your modem to use pppoe, or bridged
+mode, but i am not familiar with the way to set this stuff up, so any
+instructions of the still of the above would be welcome, thanks in advance>
+
+ -- Sven Luther <luther at debian.org>, Mon, 08 Dec 2003 20:08:52 +0100

Added: dists/trunk/modules/unicorn/unicorn/debian/changelog
===================================================================
--- dists/trunk/modules/unicorn/unicorn/debian/changelog	2005-09-01 09:08:03 UTC (rev 4122)
+++ dists/trunk/modules/unicorn/unicorn/debian/changelog	2005-09-02 17:02:30 UTC (rev 4123)
@@ -0,0 +1,167 @@
+unicorn (0.9.2-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Philippe Coval <Philippe.COVAL at laposte.net>  Mon, 29 Aug 2005 01:29:33 +0200
+
+unicorn (0.8.7-1.1) unstable; urgency=high
+
+  * NMU at maintainer's request.
+  * Changed unicorn from Architecture: any to Architecture: i386, since
+    other archs are currently not supported. (Closes: #267701)
+
+ -- Ben Burton <bab at debian.org>  Thu, 26 Aug 2004 08:35:50 +1000
+
+unicorn (0.8.7-1) unstable; urgency=medium
+
+  * New upstream release. (Closes: #246800, #245311, #235614)
+  * Really supports 2.6 kernels now. Thanks to Nuutti Kotivuori
+    <naked at iki.fi> for testing and finsihing the 2.6 port.
+    (Closes: #234006)
+
+ -- Sven Luther <luther at debian.org>  Tue, 17 Aug 2004 15:07:35 +0200
+
+unicorn (0.8.3-1) unstable; urgency=low
+
+  * New upstream release.
+    - Adds support for 2.6 kernels.
+
+ -- Sven Luther <luther at debian.org>  Sun, 29 Feb 2004 12:00:49 +0100
+
+unicorn (0.8-3) unstable; urgency=low
+
+  * Mmm, let's use the provided libm instead, it ships in sources now, so
+    there should be no license problem, and the softADSL library seem to be
+    linking with it, and thus missing some symbols when using the glibc one.
+
+ -- Sven Luther <luther at debian.org>  Fri, 20 Feb 2004 10:31:49 +0100
+
+unicorn (0.8-2) unstable; urgency=low
+
+  * Fixed missing libm.a library.
+
+ -- Sven Luther <luther at debian.org>  Fri, 20 Feb 2004 09:16:49 +0100
+
+unicorn (0.8-1) unstable; urgency=low
+
+  * New upstream release.
+    - adds AFE 20174 support.
+    - possible fix for SMP machines.
+
+ -- Sven Luther <luther at debian.org>  Tue, 17 Feb 2004 19:36:21 +0100
+
+unicorn (0.7.6-2) unstable; urgency=low
+
+  * Added small bewan icon for the unicorn status application.
+  * Now include example peers file provided by Marco d'Itri.
+  * 0.7.6 doesn't really work on 2.6.x kernels. It compiles, but does not
+    work yet.
+
+ -- Sven Luther <luther at debian.org>  Tue,  9 Dec 2003 11:17:09 +0100
+
+unicorn (0.7.6-1) unstable; urgency=low
+
+  * New upstream release.
+    - Now compiles on newer kernels (2.4.23 & 2.6.x).
+  * Cleaned up README.Debian to not suggest to modify /etc/ppp/options.
+    (Closes: #215984).
+
+ -- Sven Luther <luther at debian.org>  Mon,  8 Dec 2003 20:11:35 +0100
+
+unicorn (0.7.4-2) unstable; urgency=low
+
+  * Now install the unicorn scripts in the unicorn-modules package.
+    (Closes: #211024)
+  * Fixed Build-dependencies. (Closes: #203971)
+
+ -- Sven Luther <luther at debian.org>  Sat,  4 Oct 2003 10:35:33 +0200
+
+unicorn (0.7.4-1) unstable; urgency=low
+
+  * New upstream release.
+    - unicorntest compiled with DEBUG.
+    - Fixes in the Makefiles.
+    - Workaround for SMP disconnection.
+    - Lock around TOSCA interrupts (for SMP).
+    - Setting useAFE based on board id.
+    - Minor changes in adsl parameters.
+
+ -- Sven Luther <luther at debian.org>  Fri,  3 Oct 2003 18:22:22 +0200
+
+unicorn (0.7.2-2) unstable; urgency=low
+
+  * Fixed bewan_adsl_status pixmap path. (Closes: #211022)
+
+ -- Sven Luther <luther at debian.org>  Tue, 16 Sep 2003 12:59:11 +0200
+
+unicorn (0.7.2-1) unstable; urgency=low
+
+  * New upstream release.
+    - Integrated debian Makefile changes.
+    - Forces the driver to run on cpu #0 only, fix SMP problems.
+    - Removed the autoconfig tool.
+    - Some Telecom Italia compatibility fixes.
+
+ -- Sven Luther <luther at debian.org>  Tue,  9 Sep 2003 19:13:05 +0200
+
+unicorn (0.7-1) unstable; urgency=low
+
+  * New upstream release.
+    - The status application is now redimensioanable. (Closes: #188990)
+    - Moved the unicorn_atm code into the corresponding drivers, and removing
+      the broken unicorn_usb->unicorn_pci dependency (Closes: #204007)
+    - Added unicorn_eth driver to use ethernet instead of atm.
+
+ -- Sven Luther <luther at debian.org>  Mon,  8 Sep 2003 15:55:37 +0200
+
+unicorn (0.6.1-1) unstable; urgency=low
+
+  * New upstream release.
+    - contains small fixes for gcc 3.3 and kernel 2.4.21. (Closes: #199018)
+
+ -- Sven Luther <luther at debian.org>  Wed,  2 Jul 2003 13:38:35 +0200
+
+unicorn (0.5.3-2) unstable; urgency=low
+
+  * Removed the modem type detection from the Makefile and now build both the
+    usb and the pci modules. It did not work well, and people could build
+    the modules on a different box and it does not cost so much anyway.
+
+ -- Sven Luther <luther at debian.org>  Sat, 17 May 2003 07:38:15 +0200
+
+unicorn (0.5.3-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Sven Luther <luther at debian.org>  Wed, 23 Apr 2003 16:57:39 +0200
+
+unicorn (0.5.2-1) unstable; urgency=low
+
+  * New upstream release.
+  * Adds a nice graphical status tool as well as an adsl autoconfiguration
+    program.
+  * Added a .desktop menu entry for bewan_adsl_status.
+  * Now put the uncorn source in a .tar.gz instead of a .tar.bz.
+    (Closes: #187565)
+
+ -- Sven Luther <luther at debian.org>  Fri,  4 Apr 2003 15:38:19 +0200
+
+unicorn (0.4.5-3) unstable; urgency=low
+
+  * Now upload driver in a tarball. (Closes: #183952)
+
+ -- Sven Luther <luther at debian.org>  Sat,  8 Mar 2003 21:37:25 +0100
+
+unicorn (0.4.5-2) unstable; urgency=low
+
+  * README.Debian did not get installed in the unicorn-source package,
+    corrected that.
+
+ -- Sven Luther <luther at debian.org>  Thu,  6 Mar 2003 09:54:50 +0100
+
+unicorn (0.4.5-1) unstable; urgency=low
+
+  * Initial Release.
+
+ -- Sven Luther <luther at debian.org>  Sat, 22 Feb 2003 21:26:43 +0100
+

Added: dists/trunk/modules/unicorn/unicorn/debian/compat
===================================================================
--- dists/trunk/modules/unicorn/unicorn/debian/compat	2005-09-01 09:08:03 UTC (rev 4122)
+++ dists/trunk/modules/unicorn/unicorn/debian/compat	2005-09-02 17:02:30 UTC (rev 4123)
@@ -0,0 +1 @@
+4

Added: dists/trunk/modules/unicorn/unicorn/debian/control
===================================================================
--- dists/trunk/modules/unicorn/unicorn/debian/control	2005-09-01 09:08:03 UTC (rev 4122)
+++ dists/trunk/modules/unicorn/unicorn/debian/control	2005-09-02 17:02:30 UTC (rev 4123)
@@ -0,0 +1,27 @@
+Source: unicorn
+Section: non-free/net
+Priority: optional
+Maintainer: Sven Luther <luther at debian.org>
+Build-Depends: debhelper (>> 4.0.0), automake1.4, libgtk1.2-dev
+Standards-Version: 3.6.1
+
+Package: unicorn
+Architecture: i386
+Depends: ${shlibs:Depends}
+Description: Monitoring applications for the Bewan ADSL PCI st and USB modems
+ This package contains applications useful for monitoring the state of the
+ Bewan ADSL modems.
+
+Package: unicorn-source
+Architecture: all
+Depends: make, debhelper, kernel-package
+Description: Source for the Bewan ADSL PCI st and USB unicorn driver
+ This package provides the source code for the unicorn kernel modules.
+ The unicorn package contains applications that can be useful to monitor the
+ state of the Bewan ADSL modems. Kernel source is required to compile these
+ modules.
+ .
+ Note that the sources build only for i386 for now, but if people would want
+ to use this modem on other arches, please tell me, and i will try to get the
+ proprietary part built for this arch.
+

Added: dists/trunk/modules/unicorn/unicorn/debian/control.modules.in
===================================================================
--- dists/trunk/modules/unicorn/unicorn/debian/control.modules.in	2005-09-01 09:08:03 UTC (rev 4122)
+++ dists/trunk/modules/unicorn/unicorn/debian/control.modules.in	2005-09-02 17:02:30 UTC (rev 4123)
@@ -0,0 +1,29 @@
+Source: unicorn
+Section: non-free/net
+Priority: optional
+Maintainer: Sven Luther <luther at debian.org>
+Build-Depends: debhelper (>> 4.0.0)
+Standards-Version: 3.6.1
+
+Package: unicorn-modules-${kpkg:Kernel-Version}
+Architecture: any
+Provides: unicorn-modules
+Suggests: unicorn, ppp (>= 2.4.2+20031002-2)
+Description: Bewan ADSL PCI st and USB modems drivers for Linux (kernel ${kpkg:Kernel-Version}).
+ This package contains the set of loadable kernel modules for the
+ Bewan ADSL PCI st and Bewan ADSL USB modems.
+ .
+ This package contains the compiled kernel modules for ${kpkg:Kernel-Version}
+ The unicorn package contains applications that can be usefull to monitor the
+ state of the Bewan ADSL modems.
+ .
+ If you have compiled your own kernel, you will most likely need to build
+ your own unicorn-modules.  The unicorn-source package has been
+ provided for use with the Debian kernel-package utility to produce a version
+ of unicorn-module for your kernel.
+ . 
+ Note that this package is i386 only for now, but if people would want
+ to use this modem on other arches, please tell me, and i will try to get
+ the proprietary part built for this arch.
+
+

Added: dists/trunk/modules/unicorn/unicorn/debian/copyright
===================================================================
--- dists/trunk/modules/unicorn/unicorn/debian/copyright	2005-09-01 09:08:03 UTC (rev 4122)
+++ dists/trunk/modules/unicorn/unicorn/debian/copyright	2005-09-02 17:02:30 UTC (rev 4123)
@@ -0,0 +1,28 @@
+This package was debianized by Sven Luther <luther at debian.org> on
+Sat, 22 Feb 2003 21:26:43 +0100.
+
+It was downloaded from http://www.bewan.com/bewan/users/downloads/index.php
+
+Upstream Author: Frode Isaksen <fisaksen at bewan.com>
+
+Copyright:
+
+Program code and documentation are
+(C) Copyright 2002 BeWAN systems
+All rights reserved.
+
+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; either version 2 of the License, or
+(at your option) any later version. The GNU General Public License can be
+found on a Debian system in /usr/share/common-licenses/GPL.
+
+In addition, as a special exception, BeWAN systems gives permission 
+to link the code of this program with the modem SW library 
+(modem_ant_PCI.o, modem_ant_USB.o), and distribute linked combinations 
+including the two. You are also given permission to redistribute the
+modem SW library (modem_ant_PCI.o, modem_ant_USB.o) with the rest of the
+code.
+You must obey the GNU General Public License in all respects for all of 
+the code used other than the modem SW library.
+

Added: dists/trunk/modules/unicorn/unicorn/debian/peers-pppoatm
===================================================================
--- dists/trunk/modules/unicorn/unicorn/debian/peers-pppoatm	2005-09-01 09:08:03 UTC (rev 4122)
+++ dists/trunk/modules/unicorn/unicorn/debian/peers-pppoatm	2005-09-02 17:02:30 UTC (rev 4123)
@@ -0,0 +1,31 @@
+# xdslusb driver example configuration for PPPoA
+#
+# See the manual page pppd(8) for information on all the options.
+
+# MUST CHANGE: Uncomment the following line, replacing the user at provider.net
+# by the DSL user name given to your by your DSL provider.
+# There should be a matching entry with the password in /etc/ppp/pap-secrets
+# and/or /etc/ppp/chap-secrets.
+#user "myusername at myprovider.net"
+
+# VP and VC must match the ones used by your ISP.
+plugin pppoatm.so 8.35
+
+# Assumes that your IP address is allocated dynamically by the ISP.
+noipdefault
+# Try to get the name server addresses from the ISP.
+usepeerdns
+# Use this connection as the default route.
+# Comment out if you already have the correct default route installed.
+defaultroute
+
+# Makes pppd "dial again" when the connection is lost.
+persist
+
+# Do not ask the remote to authenticate.
+noauth
+
+# Do not try to negotiate compression.
+nopcomp
+noccp
+novj

Added: dists/trunk/modules/unicorn/unicorn/debian/rules
===================================================================
--- dists/trunk/modules/unicorn/unicorn/debian/rules	2005-09-01 09:08:03 UTC (rev 4122)
+++ dists/trunk/modules/unicorn/unicorn/debian/rules	2005-09-02 17:02:30 UTC (rev 4123)
@@ -0,0 +1,345 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper. 
+# GNU copyright 1997 by Joey Hess.
+#
+# This version is for a hypothetical package that can build a kernel modules
+# architecture-dependant package via make-kpkg, as well as an
+# architecture-independent module source package, and other packages
+# either dep/indep for things like common files or userspace components
+# needed for the kernel modules.
+
+# Uncomment this to turn on verbose mode. 
+#export DH_VERBOSE=1
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+	INSTALL_PROGRAM += -s
+endif
+
+### KERNEL SETUP
+### Setup the stuff needed for making kernel module packages
+### taken from /usr/share/kernel-package/sample.module.rules
+
+# Name of package
+package		= unicorn
+# KSRC is the location of the kernel source. This is the default value,
+# when make-kpkg is used it will supply to real value
+KSRC		= /usr/src/linux
+# KDREV is the package-revision, as given to make-kpkg by the user.
+# Just put a simply default value in here which we use when we test
+# the packagebuilding without make-kpkg
+ifeq ($(strip $(KDREV)),)
+KDREV		= "test1.0"
+endif
+
+## Now to determine the kernel version, normally supplied by make-kpkg
+ifeq ($(strip $(KVERS)),)
+# Now we need to get the kernel-version somehow (we are not running
+# under make-kpkg?)
+ifeq ($(strip $(KSRC)),)
+$(error Error. I do not know how to determine the kernel version)
+else
+kversion :=$(shell egrep '^VERSION +=' $(KSRC)/Makefile 2>/dev/null | \
+                 sed -e 's/[^0-9]*\([0-9]*\)/\1/')
+kplevel  :=$(shell egrep '^PATCHLEVEL +=' $(KSRC)/Makefile 2>/dev/null | \
+                    sed -e 's/[^0-9]*\([0-9]*\)/\1/')
+ksublevel:=$(shell egrep '^SUBLEVEL +=' $(KSRC)/Makefile 2>/dev/null | \
+                  sed -e 's/[^0-9]*\([0-9]*\)/\1/')
+EXTRA_VERSION:=$(shell egrep '^EXTRAVERSION +=' $(KSRC)/Makefile 2>/dev/null | \
+                 sed -e 's/EXTRAVERSION[\t ]*=[\t ]*\(.*\)/\1/')
+kextra:=$(strip $(EXTRA_VERSION))
+HAVE_NEW_MODLIB:=$(shell egrep '\(INSTALL_MOD_PATH\)' \
+                            $(KSRC)/Makefile 2>/dev/null )
+
+# If you want to have more than one kernel configuration per kernel
+# version, set FLAVOUR in the top level kernel Makefile *before*
+# invoking make-kpkg -- it will be appended to UTS_RELEASE in
+# version.h (separated by a hyphen). This affects everything -- the
+# names and versions of the image, source, headers, and doc packages,
+# and where the modules are searched for in /lib/modules.
+
+ifdef FLAVOUR
+# uhm - should check if we really have a Makefile capable of Flavours?
+endif
+
+FLAVOUR:=$(shell grep ^FLAVOUR $(KSRC)/Makefile 2>/dev/null | \
+                  perl -ple 's/FLAVOUR[\s:=]+//g')
+
+ifneq ($(strip $(FLAVOUR)),)
+INT_FLAV := -$(FLAVOUR)
+FLAV_ARG := FLAVOUR=$(FLAVOUR)
+else
+INT_FLAV :=
+FLAV_ARG :=
+endif
+
+## This is the replacement for FLAVOUR
+ifneq ($(strip $(APPEND_TO_VERSION)),)
+iatv := $(strip $(APPEND_TO_VERSION))
+EXTRAV_ARG := EXTRAVERSION=${EXTRA_VERSION}${iatv}
+else
+iatv :=
+EXTRAV_ARG :=
+endif
+
+KVERS = $(kversion).$(kplevel).$(ksublevel)$(kextra)$(iatv)$(INT_FLAV)
+
+endif
+endif
+
+non_epoch_version=$(shell echo $(KVERS) | perl -pe 's/^\d+://')
+epoch=$(shell echo $(KVERS) | perl -ne 'm/^(\d+:)/ && print $$1')
+
+# We also need the package version
+pversion	= $(shell sed -ne '1s/.*\((.*)\).*/\1/' debian/changelog)
+pversion	= $(shell sed -ne '1s/.*(\(.*\)).*/\1/p' debian/changelog)
+
+# MODDIR is the place where the final .deb package should be made. This is the
+# default value, when make-kpkg is used it will supply to real value
+MODDIR		= ..
+
+pmodules = $(package)-modules-$(non_epoch_version)
+psource = $(package)-source
+
+# Prepares the package for distribution.  Intended for the kernel
+# maintainer.
+kdist: kdist_clean kdist_config kdist_image
+
+# The kdist_configure target is called by make-kpkg modules_config. It
+# should configure the module so it is ready for compilation (mostly
+# useful for calling configure)
+kdist_config:
+	@echo Nothing to configure
+
+# the kdist_image target is called by make-kpkg modules_image. It is
+# responsible for compiling the module and creating the package. It
+# should also clean up after making the module. Please note we use a
+# seperate binary-modules target to make testing the package building
+# easier
+kdist_image:
+	$(MAKE) $(MFLAGS) -f debian/rules binary-modules
+	$(MAKE) $(MFLAGS) -f debian/rules clean
+
+# the kdist_clean target is called by make-kpkg modules_clean. It is
+# responsible for cleaning up any changes that have been made by the
+# other kdist_commands (except for the .deb files created).
+kdist_clean:
+	$(MAKE) $(MFLAGS) debian/rules clean
+
+### end  KERNEL SETUP
+
+configure: configure-stamp
+configure-stamp: 
+	dh_testdir
+	# Add here commands to configure the package.
+	cd adsl_status; ./configure --prefix=/usr
+
+	touch configure-stamp
+
+
+build-arch: configure-stamp  build-arch-stamp
+build-arch-stamp: 
+	dh_testdir
+
+	# Add here command to compile/build the package.
+	$(MAKE) applis
+
+	touch build-arch-stamp
+
+UNICORN_PATCHLEVEL=$(shell grep -s PATCHLEVEL ${KSRC}/Makefile |  head -n 1 | sed s/'PATCHLEVEL = '//)
+
+# the binary-modules target prepares the $(pmodules) package.
+# It is called by make-kpkg and *not* during a normal build
+binary-modules:
+	export DH_OPTIONS='-p$(pmodules)'
+
+	# Is this needed for setting up a Depends?
+	#echo "kpkg:Package-Version=$(epoch)$(pversion)+$(non_epoch_version)" \
+	#	 >> debian/$(package).substvars
+	echo "kpkg:Kernel-Version=$(non_epoch_version)" > \
+		debian/$(pmodules).substvars
+
+	# The substvars mechanism seems slightly broken, hack to get around it
+	# stolen from the qce-ga package. Yaaaa!
+	sed -e 's/$${kpkg\:Kernel\-Version}/$(non_epoch_version)/' \
+	debian/control.in > debian/control
+
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	
+	# Build and install the module
+	if [ $(UNICORN_PATCHLEVEL) = 4 ]; then                          \
+		$(MAKE) modules HPATH=$(KSRC)/include KERNEL_SOURCES=$(KSRC);	\
+		$(MAKE) only_modules_install KERNEL_SOURCES=$(KSRC)	\
+			DESTDIR=$(CURDIR)/debian/$(pmodules) KVERS=$(KVERS);    \
+	elif [ $(UNICORN_PATCHLEVEL) = 6 ]; then                        \
+		$(MAKE) -C libm modules;                                \
+		$(MAKE) -C $(KSRC) SUBDIRS=$(CURDIR)/unicorn_pci $(KPKG_EXTRAV_ARG)	\
+			INSTALL_MOD_PATH=$(CURDIR)/debian/$(pmodules) modules modules_install;	\
+		$(MAKE) -C $(KSRC) SUBDIRS=$(CURDIR)/unicorn_usb $(KPKG_EXTRAV_ARG)	\
+			INSTALL_MOD_PATH=$(CURDIR)/debian/$(pmodules) modules modules_install;	\
+	fi
+
+#	# Build the module
+#	$(MAKE) modules HPATH=$(KSRC)/include
+#
+#	# Install the module
+#	$(MAKE) only_modules_install DESTDIR=$(CURDIR)/debian/$(pmodules) KVERS=$(KVERS)
+	mkdir -p $(CURDIR)/debian/$(pmodules)/usr/share/doc/$(pmodules)
+	cp -a scripts $(CURDIR)/debian/$(pmodules)/usr/share/doc/$(pmodules)
+	sed -e "s%#KERNEL_VERSION#%$(KVERS)%" \
+		debian/$(package)-modules.postinst.in >debian/$(package)-modules.postinst
+
+	dh_installdebconf
+	dh_installdocs README
+	dh_installchangelogs
+
+	# We're not using this yet
+	#dh_installmodules
+
+	dh_installdeb
+	dh_gencontrol -- -v$(epoch)$(pversion)+$(non_epoch_version)+$(KDREV)
+	#dh_gencontrol -- -v$(epoch)$(pversion)
+	dh_md5sums
+	dh_builddeb --destdir=$(KSRC)/..
+	#dh_builddeb --destdir=$(MODDIR)
+
+
+build-indep:  configure-stamp build-indep-stamp
+build-indep-stamp:
+	dh_testdir
+
+	# Add here command to compile/build the arch indep package.
+	# It's ok not to do anything here, if you don't need to build
+	#  anything for this package.
+	#/usr/bin/docbook-to-man debian/unicorn.sgml > unicorn.1
+
+	touch build-indep-stamp
+
+build: build-arch build-indep
+
+clean: 
+	dh_testdir
+	dh_testroot
+	rm -f build-arch-stamp build-indep-stamp configure-stamp
+
+	# Add here commands to clean up after the build process.
+	-$(MAKE) clean
+
+	dh_clean
+
+install: DH_OPTIONS=
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+
+	# Create the directories to install the source into
+	dh_installdirs -p$(psource)  usr/src/modules/$(package)
+	dh_installdirs -p$(psource)  usr/src/modules/$(package)/debian
+
+	# Copy only the driver source to the proper location
+	#cp -s driver/*  debian/$(psource)/usr/src/modules/$(package)
+	cp -a amu arch include msw unicorn_atm README unicorn_eth \
+		unicorn_pci unicorn_usb patches COPYING libm Makefile \
+		scripts debian/$(psource)/usr/src/modules/$(package)
+	install -m 644 debian/$(package)-source.override \
+		$(CURDIR)/debian/$(psource)/usr/share/lintian/overrides/$(package)-source
+	# Copy the needed debian/ pieces to the proper location
+	cp debian/*-modules.* \
+		debian/$(psource)/usr/src/modules/$(package)/debian
+	cp debian/control.modules.in \
+		debian/$(psource)/usr/src/modules/$(package)/debian/control.in
+	cp debian/rules \
+		debian/$(psource)/usr/src/modules/$(package)/debian
+	cp debian/changelog \
+		debian/$(psource)/usr/src/modules/$(package)/debian
+	cp debian/copyright \
+		debian/$(psource)/usr/src/modules/$(package)/debian
+	cp debian/compat \
+		debian/$(psource)/usr/src/modules/$(package)/debian
+	# And finally, make a tarball from the module source.
+	tar czf debian/$(psource)/usr/src/$(package).tar.gz \
+		-C debian/$(psource)/usr/src modules
+	rm -rf debian/$(psource)/usr/src/modules
+
+	# Add here commands to install the package into debian/unicorn.
+	$(MAKE) applis_install DESTDIR=$(CURDIR)/debian/unicorn prefix=/usr
+	cp Documentation/unicorntest.8 $(CURDIR)/debian/unicorn/usr/share/man/man8
+	cp debian/unicorn.desktop $(CURDIR)/debian/unicorn/usr/share/applications
+	cp adsl_status/bewan.xpm $(CURDIR)/debian/unicorn/usr/share/pixmaps
+	cp debian/unicorn.override $(CURDIR)/debian/unicorn/usr/share/lintian/overrides/unicorn
+
+	dh_install
+
+# Build architecture-independent files here.
+# Pass -i to all debhelper commands in this target to reduce clutter.
+binary-indep: build install
+	dh_testdir -i
+	dh_testroot -i
+	dh_installchangelogs  -i
+	dh_installdocs -i debian/README.Debian
+	dh_installexamples -i
+#	dh_install -i
+#	dh_installmenu -i
+#	dh_installdebconf -i
+#	dh_installlogrotate -i
+#	dh_installemacsen -i
+#	dh_installpam -i
+#	dh_installmime -i
+#	dh_installinit -i
+#	dh_installcron -i
+#	dh_installinfo -i
+	dh_installman -i
+	dh_link -i
+	dh_compress -i
+	dh_fixperms -i
+	dh_installdeb -i
+#	dh_perl -i
+#	dh_python -i
+#	dh_makeshlibs -i
+	dh_installdeb -i
+	dh_shlibdeps -i
+	dh_gencontrol -i
+	dh_md5sums -i
+	dh_builddeb -i
+
+# Build architecture-dependent files here.
+binary-arch: build install
+	dh_testdir -s
+	dh_testroot -s
+#	dh_installdebconf -s
+	dh_installdocs -s debian/peers-pppoatm
+	dh_installexamples -s
+	dh_installmenu -s
+#	dh_installlogrotate -s
+#	dh_installemacsen -s
+#	dh_installpam -s
+#	dh_installmime -s
+#	dh_installinit -s
+	dh_installcron -s
+#	dh_installman -s
+	dh_installinfo -s
+	dh_installchangelogs  -s
+	dh_strip -s
+	dh_link -s
+	dh_compress -s
+	dh_fixperms -s
+#	dh_makeshlibs -s
+	dh_installdeb -s
+#	dh_perl -s
+	dh_shlibdeps -s
+	dh_gencontrol -s
+	dh_md5sums -s
+	dh_builddeb -s
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure binary-modules kdist kdist_config kdist_image kdist_clean


Property changes on: dists/trunk/modules/unicorn/unicorn/debian/rules
___________________________________________________________________
Name: svn:executable
   + *

Added: dists/trunk/modules/unicorn/unicorn/debian/unicorn-modules.postinst.in
===================================================================
--- dists/trunk/modules/unicorn/unicorn/debian/unicorn-modules.postinst.in	2005-09-01 09:08:03 UTC (rev 4122)
+++ dists/trunk/modules/unicorn/unicorn/debian/unicorn-modules.postinst.in	2005-09-02 17:02:30 UTC (rev 4123)
@@ -0,0 +1,50 @@
+#! /bin/sh
+# postinst script for unicorn-module
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postinst> `configure' <most-recently-configured-version>
+#        * <old-postinst> `abort-upgrade' <new version>
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+#          <failed-install-package> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+#
+# quoting from the policy:
+#     Any necessary prompting should almost always be confined to the
+#     post-installation script, and should be protected with a conditional
+#     so that unnecessary prompting doesn't happen if a package's
+#     installation fails and the `postinst' is called with `abort-upgrade',
+#     `abort-remove' or `abort-deconfigure'.
+
+case "$1" in
+    configure)
+    	/sbin/depmod -ae -F /boot/System.map-#KERNEL_VERSION#
+
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    	/sbin/depmod -ae -F /boot/System.map-#KERNEL_VERSION#
+
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+

Added: dists/trunk/modules/unicorn/unicorn/debian/unicorn-source.dirs
===================================================================
--- dists/trunk/modules/unicorn/unicorn/debian/unicorn-source.dirs	2005-09-01 09:08:03 UTC (rev 4122)
+++ dists/trunk/modules/unicorn/unicorn/debian/unicorn-source.dirs	2005-09-02 17:02:30 UTC (rev 4123)
@@ -0,0 +1,2 @@
+usr/src
+usr/share/lintian/overrides

Added: dists/trunk/modules/unicorn/unicorn/debian/unicorn-source.docs
===================================================================
--- dists/trunk/modules/unicorn/unicorn/debian/unicorn-source.docs	2005-09-01 09:08:03 UTC (rev 4122)
+++ dists/trunk/modules/unicorn/unicorn/debian/unicorn-source.docs	2005-09-02 17:02:30 UTC (rev 4123)
@@ -0,0 +1 @@
+README

Added: dists/trunk/modules/unicorn/unicorn/debian/unicorn-source.override
===================================================================
--- dists/trunk/modules/unicorn/unicorn/debian/unicorn-source.override	2005-09-01 09:08:03 UTC (rev 4122)
+++ dists/trunk/modules/unicorn/unicorn/debian/unicorn-source.override	2005-09-02 17:02:30 UTC (rev 4123)
@@ -0,0 +1,4 @@
+unicorn-source: script-not-executable ./usr/src/modules/unicorn/debian/unicorn-modules.postinst
+unicorn-source: arch-independent-package-contains-binary-or-object ./usr/src/modules/unicorn/arch/i386/modem_ant_PCI.o
+unicorn-source: arch-independent-package-contains-binary-or-object ./usr/src/modules/unicorn/arch/i386/modem_ant_USB.o
+

Added: dists/trunk/modules/unicorn/unicorn/debian/unicorn.desktop
===================================================================
--- dists/trunk/modules/unicorn/unicorn/debian/unicorn.desktop	2005-09-01 09:08:03 UTC (rev 4122)
+++ dists/trunk/modules/unicorn/unicorn/debian/unicorn.desktop	2005-09-02 17:02:30 UTC (rev 4123)
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=Unicorn status
+Comment=Bewan ADSL modem status monitor
+Exec=bewan_adsl_status
+Icon=bewan.xpm
+Terminal=false
+Type=Application
+Categories=GNOME;Application;System
+

Added: dists/trunk/modules/unicorn/unicorn/debian/unicorn.dirs
===================================================================
--- dists/trunk/modules/unicorn/unicorn/debian/unicorn.dirs	2005-09-01 09:08:03 UTC (rev 4122)
+++ dists/trunk/modules/unicorn/unicorn/debian/unicorn.dirs	2005-09-02 17:02:30 UTC (rev 4123)
@@ -0,0 +1,5 @@
+usr/bin
+usr/share/applications
+usr/share/pixmaps
+usr/share/man/man8
+usr/share/lintian/overrides

Added: dists/trunk/modules/unicorn/unicorn/debian/unicorn.docs
===================================================================
--- dists/trunk/modules/unicorn/unicorn/debian/unicorn.docs	2005-09-01 09:08:03 UTC (rev 4122)
+++ dists/trunk/modules/unicorn/unicorn/debian/unicorn.docs	2005-09-02 17:02:30 UTC (rev 4123)
@@ -0,0 +1 @@
+README

Added: dists/trunk/modules/unicorn/unicorn/debian/unicorn.override
===================================================================
--- dists/trunk/modules/unicorn/unicorn/debian/unicorn.override	2005-09-01 09:08:03 UTC (rev 4122)
+++ dists/trunk/modules/unicorn/unicorn/debian/unicorn.override	2005-09-02 17:02:30 UTC (rev 4123)
@@ -0,0 +1,3 @@
+unicorn: binary-without-manpage adsl-autoconfig
+unicorn: binary-without-manpage bewan_adsl_status
+

Added: dists/trunk/modules/unicorn/unicorn_0.9.2.orig.tar.gz
===================================================================
(Binary files differ)


Property changes on: dists/trunk/modules/unicorn/unicorn_0.9.2.orig.tar.gz
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream




More information about the Kernel-svn-changes mailing list