[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Eigenes Repository



On 03.Nov 2004 - 15:02:45, Werner Mahr wrote:
> In jedes Unterverzeichnis eine reingepackt, aber sie wird einfach nicht 
> gefunden.
> Den Thread locale debs nutzen habe ich auch gelesen.

Die Loesung von Michelle ist IMHO eine der einfachsten. Wobei es sogar
noch kuerzer geht. Folgedens Verzeichnislayout hier:

$HOME/public_html/debian
|
+- pool
|   |
|   +- main
|   |   |
|   |   +- k
|   |   |  |
|   |   |  +- kernel-image
|   |   |  |   |
|   |   |  |   +> lauter kernel-image debs
|   |   |  +- kgoogleapplet
|   |   |  ...
|   |   |
|   |   +- g
|   |   |  |
|   |   |  +- galeon
|   |   |  |
|   |   |  +- gtk+2.0
|   |   ...
|   |   
|   +- non-free
|       |
|       ... (analog zu main)
|
+- dists
    |
    +- unstable
    |   |
    |   +- Contents*
    |   |
    |   +- main
    |   |   |
    |   |   +- binary-i386
    |   |       |
    |   |       +- Packages*
    |   |      
    |   +- non-free
    |       |
    |       ... Analaog main
    +- sid -> ./unstable

Angelegt hab ich nur die Ordnerstruktur und natuerlich musst du die
Pakete einzeln einsortieren. Ich hab mich da an die Debian-Server
gehalten, die alle debs in ein Verzeichnis packen das so heisst wie
das source-Paket (also z.B. gtk+2.0 fuer alle libgtk2.0 debs)

Zur Erzeugung von Contents und Packages Dateien nutze ich dann
apt-ftparchive mit folgender Config:

andreas@morpheus:~/public_html/debian>cat apt-ftparchive.conf
Dir {
	ArchiveDir "/home/andreas/public_html/debian";
	CacheDir "/home/andreas/temp/apt-ftparchive-db";
};

Default {
	Packages::Compress ". gzip bzip2";
	Sources::Compress ". gzip bzip2";
	Contents::Compress ". gzip bzip2";
};

BinDirectory "/home/andreas/public_html/debian/pool/main" {
	Packages "/home/andreas/public_html/debian/dists/unstable/main/binary-i386/Packages";
	SrcPackages "/home/andreas/public_html/debian/dists/unstable/main/source/Sources";
	Contents "/home/andreas/public_html/debian/dists/unstable/Contents-i386";
}

BinDirectory "/home/andreas/public_html/debian/pool/non-free" {
	Packages "/home/andreas/public_html/debian/dists/unstable/non-free/binary-i386/Packages";
	Contents "/home/andreas/public_html/debian/dists/unstable/Contents-i386";
};

Musst natuerlich die Pfade anpassen. Ein Aufruf von apt-ftparchive
generate apt-ftparchive.conf innerhalb von public_html/debian reicht
aus. Die sources.list Zeile fuer das Teil sieht dann so aus:

deb http://localhost/~andreas/debian unstable main non-free

Andreas

-- 
"A car is just a big purse on wheels."
-- Johanna Reynolds



Reply to: