No longer ship mkdebmirror example script
authorMichael Prokop <mika@grml.org>
Thu, 24 Aug 2017 22:06:35 +0000 (00:06 +0200)
committerMichael Prokop <mika@grml.org>
Thu, 24 Aug 2017 22:06:35 +0000 (00:06 +0200)
License and current state (is it working at all) are unclear.

docs/grml-live.txt
examples/mkdebmirror [deleted file]

index 05e9177..c4436e2 100644 (file)
@@ -43,8 +43,7 @@ completely independent at the same time!
 Please notice that you should have a fast network connection as all the Debian
 packages will be downloaded and installed via network. If you want to use a
 local mirror (strongly recommended if you plan to use grml-live more than once)
-checkout mkdebmirror (see /usr/share/doc/grml-live/examples/mkdebmirror),
-debmirror(1), reprepro(1) (see /usr/share/doc/grml-live/examples/reprepro/ for a
+checkout debmirror(1), reprepro(1) (see /usr/share/doc/grml-live/examples/reprepro/ for a
 sample configuration), apt-cacher(1) and approx(8). To avoid downloading the
 base system again and again check out <<create-a-base-tgz,the base tar.gz
 feature>>.
diff --git a/examples/mkdebmirror b/examples/mkdebmirror
deleted file mode 100644 (file)
index 52cb983..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-#!/bin/sh
-# $Id: mkdebmirror 4018 2006-09-25 12:13:17Z lange $
-# Thomas Lange, lange@informatik.uni-koeln.de, (c) 2001-2005
-# create partitial debian mirror using command debmirror(1) and rsync
-
-# - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-rsync_disks() {
-    # get the boot disks
-    rsync --delete -av $2::debian/dists/$1/main/disks-$arch $destdir/debian/dists/$1/main/
-}
-# - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-update_from() {
-    # update local mirror from a host
-    host=$1
-    defopt="$allopt --host=$host --dist=$dist"
-    echo "------------------ create mirror for debian ------------------"
-    debmirror --getcontents $destdir/debian $defopt
-}
-
-# - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-# main program
-# here you have to adjust the hostnames of the mirror and the names of the distributions
-debug="$@"
-arch=i386
-dist=etch
-# dist=etch,etch-proposed-updates
-destdir=/var/www/debian_mirror
-allopt="$debug --ignore-missing-release --ignore-release-gpg --passive --nosource --arch=$arch --ignore=disks-$arch/"
-
-# first sync from a mirror near to you!
-# please ask the mirror admin(s) for permission before downloading
-# several GB of data!
-update_from ftp.debian.org
-
-# since this mirror is not always up to date, sync the rest from an official mirror
-# update_from ftp.debian.org
-
-# even one should not mirror the security site, but I will do it.
-echo "------------------ create mirror for debian-security ------------------"
-debmirror $destdir/debian-security $allopt --host=security.debian.org -r debian-security  --section main,contrib,non-free -d etch/updates
-
-# get installation disk images via rsync
-#rsync_disks etch ftp2.de.debian.org