Translations


This proposal describes the infrastructure for emdebian packages and modified packaging tools for use with them. Demo infrastructure has been set up on buildd.emdebian.org

Initial ideas

[:Embedded_Debian:Emdebian] packages should be split into two aptable repositories:

Source code repository structure

Repository location

If you have direct access to the emdebian.org server you will find the files are stored here:

Equivalent external access URLs are:

Repository layout

Package repositories

Package repositories were prepared using [http://mirrorer.alioth.debian.org/ reprepro tool(mirrorer)]

Repository location

Repository layout

deb http://buildd.emdebian.org/debian/ unstable main
deb-src http://buildd.emdebian.org/debian/ unstable main
deb http://buildd.emdebian.org/debian/ testing main
deb-src http://buildd.emdebian.org/debian/ testing main

deb http://buildd.emdebian.org/emdebian/ unstable main
deb-src http://buildd.emdebian.org/emdebian/ unstable main

Incoming directories

Examples of dput.cf for emdebian uploads

[emdebian-tools]
fqdn = buildd.emdebian.org
login = <your login>
method = scp
incoming = /var/emdebian/debian/incoming-unstable/

[emdebian-target]
fqdn = buildd.emdebian.org
method = scp
login = <your login>
incoming = /var/emdebian/emdebian/incoming-unstable/

Simple example of how to handle uploads (debian or emdebian should be passed as parameter)

[ -z "$1" ] && exit 1

DIST=$1

INCOMING=/var/emdebian/$DIST/incoming-unstable/

cd $INCOMING/../

#
#  Now import each new package that we *did* find
#
for f in $INCOMING/*.changes; do

  [ -e "$f" ] || continue;

  # Import package to the selected distribution.
  reprepro -Vb . include $DIST $f

  # Delete the referenced files
  sed '1,/Files:/d' $f | sed '/BEGIN PGP SIGNATURE/,$d' \
       | while read MD SIZE SECTION PRIORITY NAME; do

      [ -z "$NAME" ] && continue

      rm -f "$INCOMING/$NAME"
  done

  # Finally delete the .changes file itself.
  rm $f

done

TODO


CategoryEmdebian