lars
3500b67a40
refresh link for logs feature change default setting of UseConfigPartition to "0" README file rewritten README.samba added README.davfs added README.Debian rewritten event scripts for samba and apach2_dav improved do not redirect to "disks overview" after successful plugin execution (e.g. date, ...) unclean web dataset fixed removed some non-translateable strings from po and pot files automatically update the cryptobox version according to the debian package version number
74 lines
2.2 KiB
Text
74 lines
2.2 KiB
Text
HOW TO UPLOAD A FRESH DEBIAN PACKAGE
|
|
|
|
1) update the debian changelog
|
|
Run "debchange -i" to create a new changelog entry. Leave some useful notes.
|
|
|
|
BEWARE: all development releases must have the debian release no. "1" (the last
|
|
part of the version following the dash) - e.g.: 0.2.50-1.
|
|
|
|
You MUST increase the upstream version (before the dash) by one whenever you
|
|
want to upload a new debian package to the repository - otherwise you will
|
|
inevitably mess up the package repository - and you know, who will have to
|
|
figure out, how to fix this :)
|
|
|
|
|
|
2) create the package
|
|
Change to the trunk directory of the project and run the followin:
|
|
../tags/make-deb.sh UPSTREAM_VERSION .
|
|
(do not forget the final dot)
|
|
|
|
The UPSTREAM_VERSION is the one, that you were using for the new debian
|
|
changelog entry. Again: _never_ upload two different debian packages with the
|
|
same upstream version number or you will go to hell!
|
|
|
|
The package files will get copied to ../tags/packages/debian/.
|
|
|
|
The version number in src/cryptobox/__init__.py gets updated automatically by
|
|
the make-deb.sh script.
|
|
|
|
|
|
3) upload the package
|
|
You should use dupload - it is the preferred uploading program for debian
|
|
packages:
|
|
apt-get install dupload
|
|
See http://www.debian-administration.org/articles/286 for more details.
|
|
|
|
Create the following configuration file as ~/.dupload.conf:
|
|
package config;
|
|
$preupload{'changes'} = "";
|
|
$default_host = "sao";
|
|
$cfg{"sao"} = {
|
|
fqdn => "sao",
|
|
login => "uml-www",
|
|
method => "scpb",
|
|
incoming => "/data/deb-repo/incoming/unstable",
|
|
dinstall_runs => 1,
|
|
};
|
|
1;
|
|
|
|
Furthermore you need the following entry in your ~/.ssh/config:
|
|
Host sao
|
|
Hostname systemausfall.org
|
|
Port 2200
|
|
(otherwise it is impossible to change the ssh port in dupload)
|
|
|
|
To upload the latest debian package you could do the following:
|
|
dupload $(ls -tr ../tags/packages/debian/*.changes | tail -1)
|
|
(this will only use the latest changes-file)
|
|
|
|
|
|
4) import the package into the repository
|
|
It would be nice, if the web interface would work - but it does not.
|
|
Please wait for etch - then we will update reprepro.
|
|
|
|
For now you have to login to the www-uml:
|
|
ssh uml-www@sao
|
|
|
|
Switch to the deb-repo user:
|
|
su - deb-repo
|
|
|
|
Import all incoming packages:
|
|
scripts/import.sh
|
|
|
|
You did it!
|
|
|