From 181b9cbade1b444d10f67076fe88f57eec8a4961 Mon Sep 17 00:00:00 2001 From: tnut Date: Mon, 23 Jan 2012 20:52:05 +0100 Subject: pkg-repgen, suppression fichiers obsolète MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg-repgen/pkg-get.conf | 11 ---------- pkg-repgen/syn | 58 ------------------------------------------------- 2 files changed, 69 deletions(-) delete mode 100644 pkg-repgen/pkg-get.conf delete mode 100644 pkg-repgen/syn diff --git a/pkg-repgen/pkg-get.conf b/pkg-repgen/pkg-get.conf deleted file mode 100644 index 06c0e5944..000000000 --- a/pkg-repgen/pkg-get.conf +++ /dev/null @@ -1,11 +0,0 @@ -### -# /etc/pkg-get.conf -# -# pkg-get configuration file -# Dépot des paquets NuTyX -# Activez le dépot test pour profiter des mise à jour test -# pkgdir /srv/NuTyX/test|http://nutyx.meticul.eu/pakxe/uname-m/test -pkgdir /srv/NuTyX/release|http://nutyx.meticul.eu/pakxe/uname-m/release -# runscripts: if "yes" pre-post install scripts are -# automatically executed. Handle with care. -runscripts yes diff --git a/pkg-repgen/syn b/pkg-repgen/syn deleted file mode 100644 index d29fcd6f7..000000000 --- a/pkg-repgen/syn +++ /dev/null @@ -1,58 +0,0 @@ -#!/bin/bash -MediaDepot=/media/cdrom/depot -Depot=/srv/NuTyX -find_cd() { -EXPECT_LABEL="nutyxcd" -let PKGNB=0 -for SYS in /sys/block/sd* /sys/block/sr* ; do - if [ ! -d "$SYS" ]; then continue; fi - DEV=/dev/${SYS##*/} - LABEL=`dd if=$DEV bs=1 skip=32808 count=32 2>/dev/null` - if [ $LABEL == $EXPECT_LABEL ] 2>/dev/null ; then - mkdir -p /media/cdrom 2>/dev/null - mount $DEV /media/cdrom - if [ ! -d /media/cdrom/depot ]; then - umount -n /media/cdrom - fi - break - fi -done -} -if [ ! "$EUID" -eq 0 ]; then - echo "Seul le compte root peut synchroniser les ports NuTyX" - exit 1 -fi -if ! mountpoint /media/cdrom > /dev/null; then - find_cd -fi -if [ ! -L /depot ]; then - for i in `cat /etc/pkg-get.conf |grep -v ^#|grep http|cut -d "|" -f 1|cut -d" " -f2|cut -d"/" -f4` - do - if [ -a $Depot/$i ]; then - rm -r $Depot/$i - fi - done - pkg-get sync - for i in `cat /etc/pkg-get.conf |grep -v ^#|grep http|cut -d "|" -f 1|cut -d" " -f2|cut -d"/" -f4` - do - if [ -d $MediaDepot/$i ]; then - rm -r $Depot/$i > /dev/null 2>&1 - mkdir -p $Depot/$i - for j in $MediaDepot/$i/*.xz - do - let PKGNB=$PKGNB+1 - - fj=`basename $j` - ln -sf $MediaDepot/$i/$fj $Depot/$i/$fj - echo -n -e "$PKGNB Paquets trouvés sur le média\r" - done - echo "$PKGNB Paquets trouvés sur le média" - cp $MediaDepot/$i/PKG* $Depot/$i/ - fi - done -else - for i in `cat /etc/pkg-get.conf |grep -v ^#|grep http|cut -d "|" -f 1|cut -d" " -f2|cut -d"/" -f4` - do - rsync -avuz --delete-before rsync://nutyx.meticul.eu/nutyx/attapu/i686/$i/ $Depot/$i/ - done -fi -- cgit v1.2.3-70-g09d2