howto build the build environment

 apt-get install cowbuilder git-buildpackage debootstrap 

 sudo cowbuilder --create --basepath=/var/cache/pbuilder/base-sid.cow --mirror http://ftp.de.debian.org/debian --distribution sid 

 sudo cowbuilder --login --basepath=/var/cache/pbuilder/base-sid.cow 

sudo cp /usr/share/doc/git-buildpackage/examples/gbp-cowbuilder-sid /usr/local/bin/ 

cp /etc/pbuilder/pbuilderrc /etc/pbuilder/pbuilderrc.sid

#  /etc/pbuilder/pbuilderrc.sid
...
BASEPATH=/var/cache/pbuilder/base-sid.cow

# /etc/pbuilder/pbuilderrc.lenny
...
BASEPATH=/var/cache/pbuilder/base-lenny.cow

wget https://honk.sigxcpu.org/piki/projects/git-buildpackage/gbp.conf
mv gbp.conf ~/.gbp.conf 

alias gbp-lenny='nice -19 git-buildpackage --git-builder=gbp-cowbuilder-lenny'
alias gbp-sid='nice -19 git-buildpackage --git-builder=gbp-cowbuilder-sid'

Schmierzettel for jboss-packaging

Notiz

* Im Master fehlen: antlr, aopalliance * Im Master zuviel: apache-xmlsec, commons-logging, console, log4j, sun-servlet, xml-apis (allerdings alles nur component-info.xml, keine jars in den Verzeichnissen)

package jbosass5

 $ git-import-orig --upstream-branch=upstream_jboss.org --debian-branch=upstream_jboss.org --upstream-tag=upstream_jboss.org/5.1.0.GA --upstream-version=5.1.0.GA ../jboss-5.1.0.GA-src.tar.gz 

 git checkout upstream
 git merge upstream_jboss.org
 cp thirdparty/ ../
 git rm -r thirdparty 

package jbosass5-libs

 mkdir jbossas-libs
 mv thirdparty jbossas-libs/libs
 tar -czf jbossas5-libs_5.1.0.GA.tar.gz jbossas-libs/

git-import-orig --debian-branch=upstream_jboss.org --upstream-branch=upstream_jboss.org  --upstream-tag=upstream_jboss.org/5.1.0.GA --upstream-version=5.1.0.GA ../jbossas5-libs_5.1.0.GA.tar.gz 

 git checkout upstream
 git merge upstream_jboss.org

Using usbfoo on Debian

What is USBfoo?

 aptitude install avr-gcc dfu-programmer avr-libc 

Connection hardware

 [20622.464064] usb 3-1: new full speed USB device using uhci_hcd and address 10
 [20622.642160] usb 3-1: New USB device found, idVendor=03eb, idProduct=2ffa
 [20622.642169] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
 [20622.642176] usb 3-1: Product: AT90USB162 DFU
 [20622.642180] usb 3-1: Manufacturer: ATMEL
 [20622.642185] usb 3-1: SerialNumber: 1.0.5
 [20622.642421] usb 3-1: configuration #1 chosen from 1 choice

Compile software, program and run

#include <avr/io.h>

int main (void) {
  /* set data direction register d to output */
  DDRD = 0xff;

  /* set port d to 0x00 this activates the red led on the board */
  PORTD = 0x00;

  /* loop until reset */
  while(1) { 
     /* narf! */
  }
  
  /* this will never reached */
  return 0
}

 avr-gcc -Wall -mmcu=at90usb162 program.c -o program 

 avr-objcopy program -O ihex program.hex 

dfu-programmer at90usb162 erase
dfu-programmer at90usb162 flash program.hex