From 3fff793cffd8170e0f15a8138e5f9fd7e40cb0cc Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 16 Jun 2010 09:18:25 +0000 Subject: add --zeroconf support in urpmi.addmedia --- README.zeroconf | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 README.zeroconf (limited to 'README.zeroconf') diff --git a/README.zeroconf b/README.zeroconf new file mode 100644 index 00000000..4df14066 --- /dev/null +++ b/README.zeroconf @@ -0,0 +1,30 @@ +urpmi can automatically find the media repository path using DNS-SD +(Zeroconf), with the "--zeroconf" option: + urpmi.addmedia --distrib --zeroconf + urpmi.addmedia --zeroconf main media/main/release + +This option can also be used together with the "--mirrorlist" option, +in which case the repositories are configured using Zeroconf if found, +and mirrorlist is used as a fallback: + urpmi.addmedia --distrib --zeroconf --mirrorlist + +When searching for the repository using Zeroconf, the request timeouts +after a delay of 10 seconds, to avoid hanging urpmi if some hosts are +unresolvable. + +If a repository is found using DNS-SD, urpmi.addmedia will build a +complete repository path using fields from /etc/product.id, this way: +/lowercase()// + +To advertise an urpmi repository using DNS-SD, a service record with +the instance "_mdv_urpmi" has to be created, specifying the target +host and target port where the service is located. +In addition, two DNS-SD TXT records must be specified, in the form of +key/value pairs: protocol (http, ftp or rsync) and path (repository root). + +The path value should be the full path to the media repository root, +for example /dis if the distribution repository is reachable on +http://host:port/dis/official/2010.1/i586 + +See the urpmi-repository-http.service file for an example of urpmi +repository advertising using Avahi. -- cgit v1.2.1