From 8476be3279bd69419f6dadfd006fa49df046df64 Mon Sep 17 00:00:00 2001 From: tnut Date: Sun, 22 Jan 2012 11:41:30 +0100 Subject: pkg-get, maj 0.3.95.1-1 --- pkg-get/.md5sum.i686 | 2 +- pkg-get/.md5sum.x86_64 | 2 +- pkg-get/Pkgfile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg-get/.md5sum.i686 b/pkg-get/.md5sum.i686 index a1aa5eca9..fe8446f62 100644 --- a/pkg-get/.md5sum.i686 +++ b/pkg-get/.md5sum.i686 @@ -1,2 +1,2 @@ -6a090bcb120dc28f8160d1326889e1c6 pkg-get-0.3.95.tar.gz +b5c4eace6a63a65e46f281ac44ea2caf pkg-get-0.3.95.1.tar.gz 4b2308a5898180c997380228c0dc893b syn diff --git a/pkg-get/.md5sum.x86_64 b/pkg-get/.md5sum.x86_64 index a1aa5eca9..fe8446f62 100644 --- a/pkg-get/.md5sum.x86_64 +++ b/pkg-get/.md5sum.x86_64 @@ -1,2 +1,2 @@ -6a090bcb120dc28f8160d1326889e1c6 pkg-get-0.3.95.tar.gz +b5c4eace6a63a65e46f281ac44ea2caf pkg-get-0.3.95.1.tar.gz 4b2308a5898180c997380228c0dc893b syn diff --git a/pkg-get/Pkgfile b/pkg-get/Pkgfile index 36ff163b1..fb6a796ca 100644 --- a/pkg-get/Pkgfile +++ b/pkg-get/Pkgfile @@ -5,7 +5,7 @@ # Depends on: curl name=pkg-get -version=0.3.95 +version=0.3.95.1 release=1 source=(http://nutyx.meticul.eu/files/$name-$version.tar.gz \ syn) -- cgit v1.2.3-70-g09d2 From 67b548b748d6fefa00d222025ef5872c4e946696 Mon Sep 17 00:00:00 2001 From: tnut Date: Sun, 22 Jan 2012 14:41:28 +0100 Subject: pkg-get, maj 0.3.95.2-1 --- pkg-get/.md5sum.i686 | 2 +- pkg-get/.md5sum.x86_64 | 2 +- pkg-get/Pkgfile | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pkg-get/.md5sum.i686 b/pkg-get/.md5sum.i686 index fe8446f62..24e92d1de 100644 --- a/pkg-get/.md5sum.i686 +++ b/pkg-get/.md5sum.i686 @@ -1,2 +1,2 @@ -b5c4eace6a63a65e46f281ac44ea2caf pkg-get-0.3.95.1.tar.gz +221d3df546d67b4b8bfbf09c723b3f91 pkg-get-0.3.95.2.tar.gz 4b2308a5898180c997380228c0dc893b syn diff --git a/pkg-get/.md5sum.x86_64 b/pkg-get/.md5sum.x86_64 index fe8446f62..24e92d1de 100644 --- a/pkg-get/.md5sum.x86_64 +++ b/pkg-get/.md5sum.x86_64 @@ -1,2 +1,2 @@ -b5c4eace6a63a65e46f281ac44ea2caf pkg-get-0.3.95.1.tar.gz +221d3df546d67b4b8bfbf09c723b3f91 pkg-get-0.3.95.2.tar.gz 4b2308a5898180c997380228c0dc893b syn diff --git a/pkg-get/Pkgfile b/pkg-get/Pkgfile index fb6a796ca..d3e5c0b28 100644 --- a/pkg-get/Pkgfile +++ b/pkg-get/Pkgfile @@ -5,7 +5,7 @@ # Depends on: curl name=pkg-get -version=0.3.95.1 +version=0.3.95.2 release=1 source=(http://nutyx.meticul.eu/files/$name-$version.tar.gz \ syn) @@ -13,6 +13,7 @@ source=(http://nutyx.meticul.eu/files/$name-$version.tar.gz \ build() { cd $name-$version + make clean make make DESTDIR=$PKG install install -m 755 ../syn $PKG/usr/bin/syn -- cgit v1.2.3-70-g09d2 From 8c99d348134269b2ef61961810e131f5da521aae Mon Sep 17 00:00:00 2001 From: tnut Date: Mon, 23 Jan 2012 20:50:33 +0100 Subject: pkg-repgen ds pakxe --- pkg-repgen/.footprint.i686 | 8 ++++++ pkg-repgen/.footprint.x86_64 | 8 ++++++ pkg-repgen/.md5sum | 1 + pkg-repgen/.md5sum.i686 | 1 + pkg-repgen/.md5sum.x86_64 | 1 + pkg-repgen/Pkgfile | 19 +++++++++++++++ pkg-repgen/pkg-get.conf | 11 +++++++++ pkg-repgen/syn | 58 ++++++++++++++++++++++++++++++++++++++++++++ 8 files changed, 107 insertions(+) create mode 100644 pkg-repgen/.footprint.i686 create mode 100644 pkg-repgen/.footprint.x86_64 create mode 100644 pkg-repgen/.md5sum create mode 100644 pkg-repgen/.md5sum.i686 create mode 100644 pkg-repgen/.md5sum.x86_64 create mode 100644 pkg-repgen/Pkgfile create mode 100644 pkg-repgen/pkg-get.conf create mode 100644 pkg-repgen/syn diff --git a/pkg-repgen/.footprint.i686 b/pkg-repgen/.footprint.i686 new file mode 100644 index 000000000..ad97a7979 --- /dev/null +++ b/pkg-repgen/.footprint.i686 @@ -0,0 +1,8 @@ +drwxr-xr-x root/root etc/ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/pkg-repgen +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/man/ +drwxr-xr-x root/root usr/share/man/man8/ +-rw-r--r-- root/root usr/share/man/man8/pkg-repgen.8.gz diff --git a/pkg-repgen/.footprint.x86_64 b/pkg-repgen/.footprint.x86_64 new file mode 100644 index 000000000..ad97a7979 --- /dev/null +++ b/pkg-repgen/.footprint.x86_64 @@ -0,0 +1,8 @@ +drwxr-xr-x root/root etc/ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/pkg-repgen +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/man/ +drwxr-xr-x root/root usr/share/man/man8/ +-rw-r--r-- root/root usr/share/man/man8/pkg-repgen.8.gz diff --git a/pkg-repgen/.md5sum b/pkg-repgen/.md5sum new file mode 100644 index 000000000..5f008b96f --- /dev/null +++ b/pkg-repgen/.md5sum @@ -0,0 +1 @@ +45d1eec4209dfc81d9f10295c1dca975 pkg-repgen-0.4.6.tar.gz diff --git a/pkg-repgen/.md5sum.i686 b/pkg-repgen/.md5sum.i686 new file mode 100644 index 000000000..94160a452 --- /dev/null +++ b/pkg-repgen/.md5sum.i686 @@ -0,0 +1 @@ +4255529e512555b8759dc939305b708c pkg-get-0.5.2.tar.gz diff --git a/pkg-repgen/.md5sum.x86_64 b/pkg-repgen/.md5sum.x86_64 new file mode 100644 index 000000000..94160a452 --- /dev/null +++ b/pkg-repgen/.md5sum.x86_64 @@ -0,0 +1 @@ +4255529e512555b8759dc939305b708c pkg-get-0.5.2.tar.gz diff --git a/pkg-repgen/Pkgfile b/pkg-repgen/Pkgfile new file mode 100644 index 000000000..738926421 --- /dev/null +++ b/pkg-repgen/Pkgfile @@ -0,0 +1,19 @@ +# Description: Outil de gestion de paquets binaires pour NuTyX +# URL: http://www.varlock.com et nutyx.org +# Maintainer: thierryn1 at hispeed dot ch +# Packager: thierryn1 at hispeed dot ch + +name=pkg-repgen +version=0.4.6 +release=1 +source=(http://nutyx.meticul.eu/files/pkg-repgen-$version.tar.gz) + +build() { +ARCH_=`uname -m` + cd pkg-get-$version + make PREFIX=$PKG/usr install + if [ "$ARCH_" == "x86_64" ]; then + sed -i "s/i686/x86_64/" $PKG/usr/bin/pkg-repgen + fi +} + diff --git a/pkg-repgen/pkg-get.conf b/pkg-repgen/pkg-get.conf new file mode 100644 index 000000000..06c0e5944 --- /dev/null +++ b/pkg-repgen/pkg-get.conf @@ -0,0 +1,11 @@ +### +# /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 new file mode 100644 index 000000000..d29fcd6f7 --- /dev/null +++ b/pkg-repgen/syn @@ -0,0 +1,58 @@ +#!/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 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 From 3a1b2586ecfb9237efc5c171eaef18686b2a470c Mon Sep 17 00:00:00 2001 From: tnut Date: Mon, 23 Jan 2012 21:04:28 +0100 Subject: pkg-repgen, correction port --- pkg-repgen/.footprint.i686 | 1 - pkg-repgen/.footprint.x86_64 | 1 - pkg-repgen/.md5sum.i686 | 2 +- pkg-repgen/.md5sum.x86_64 | 2 +- pkg-repgen/Pkgfile | 2 +- 5 files changed, 3 insertions(+), 5 deletions(-) diff --git a/pkg-repgen/.footprint.i686 b/pkg-repgen/.footprint.i686 index ad97a7979..7d162f118 100644 --- a/pkg-repgen/.footprint.i686 +++ b/pkg-repgen/.footprint.i686 @@ -1,4 +1,3 @@ -drwxr-xr-x root/root etc/ drwxr-xr-x root/root usr/ drwxr-xr-x root/root usr/bin/ -rwxr-xr-x root/root usr/bin/pkg-repgen diff --git a/pkg-repgen/.footprint.x86_64 b/pkg-repgen/.footprint.x86_64 index ad97a7979..7d162f118 100644 --- a/pkg-repgen/.footprint.x86_64 +++ b/pkg-repgen/.footprint.x86_64 @@ -1,4 +1,3 @@ -drwxr-xr-x root/root etc/ drwxr-xr-x root/root usr/ drwxr-xr-x root/root usr/bin/ -rwxr-xr-x root/root usr/bin/pkg-repgen diff --git a/pkg-repgen/.md5sum.i686 b/pkg-repgen/.md5sum.i686 index 94160a452..5f008b96f 100644 --- a/pkg-repgen/.md5sum.i686 +++ b/pkg-repgen/.md5sum.i686 @@ -1 +1 @@ -4255529e512555b8759dc939305b708c pkg-get-0.5.2.tar.gz +45d1eec4209dfc81d9f10295c1dca975 pkg-repgen-0.4.6.tar.gz diff --git a/pkg-repgen/.md5sum.x86_64 b/pkg-repgen/.md5sum.x86_64 index 94160a452..5f008b96f 100644 --- a/pkg-repgen/.md5sum.x86_64 +++ b/pkg-repgen/.md5sum.x86_64 @@ -1 +1 @@ -4255529e512555b8759dc939305b708c pkg-get-0.5.2.tar.gz +45d1eec4209dfc81d9f10295c1dca975 pkg-repgen-0.4.6.tar.gz diff --git a/pkg-repgen/Pkgfile b/pkg-repgen/Pkgfile index 738926421..e32cef5fc 100644 --- a/pkg-repgen/Pkgfile +++ b/pkg-repgen/Pkgfile @@ -10,7 +10,7 @@ source=(http://nutyx.meticul.eu/files/pkg-repgen-$version.tar.gz) build() { ARCH_=`uname -m` - cd pkg-get-$version + cd pkg-repgen-$version make PREFIX=$PKG/usr install if [ "$ARCH_" == "x86_64" ]; then sed -i "s/i686/x86_64/" $PKG/usr/bin/pkg-repgen -- cgit v1.2.3-70-g09d2