summaryrefslogtreecommitdiffstats
path: root/pkg-get
diff options
context:
space:
mode:
authorpiernov <piernov@piernov.org>2012-01-22 11:53:58 +0100
committerpiernov <piernov@piernov.org>2012-01-22 11:53:58 +0100
commit656378eb13dd8c1af44a368e7dfee3333eb055a2 (patch)
tree9707d7a6d1af19d5c1d8431821232ae81ce42d85 /pkg-get
parent9626427c1a1d9c292fc519810c13b9a8073e777f (diff)
parent8d576551b5c270c65fe06443b7295d73cc662064 (diff)
downloadnutyx-pakxe-656378eb13dd8c1af44a368e7dfee3333eb055a2.tar.gz
nutyx-pakxe-656378eb13dd8c1af44a368e7dfee3333eb055a2.tar.bz2
nutyx-pakxe-656378eb13dd8c1af44a368e7dfee3333eb055a2.tar.xz
nutyx-pakxe-656378eb13dd8c1af44a368e7dfee3333eb055a2.zip
Merged with http://kiao.no-ip.info/NuTyX/git/nutyx-pakxe → Repository splitted → nutyx-pakxe
Diffstat (limited to 'pkg-get')
-rw-r--r--pkg-get/.footprint.i68611
-rw-r--r--pkg-get/.footprint.x86_6411
-rw-r--r--pkg-get/.md5sum.i6862
-rw-r--r--pkg-get/.md5sum.x86_642
-rw-r--r--pkg-get/Pkgfile19
-rw-r--r--pkg-get/syn44
6 files changed, 89 insertions, 0 deletions
diff --git a/pkg-get/.footprint.i686 b/pkg-get/.footprint.i686
new file mode 100644
index 000000000..3d58d2fb9
--- /dev/null
+++ b/pkg-get/.footprint.i686
@@ -0,0 +1,11 @@
+drwxr-xr-x root/root etc/
+-rw-r--r-- root/root etc/pkg-get.conf
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+-rwxr-xr-x root/root usr/bin/pkg-get
+-rwxr-xr-x root/root usr/bin/syn
+drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/locale/
+drwxr-xr-x root/root usr/share/locale/fr/
+drwxr-xr-x root/root usr/share/locale/fr/LC_MESSAGES/
+-rw-r--r-- root/root usr/share/locale/fr/LC_MESSAGES/pkg-get.mo
diff --git a/pkg-get/.footprint.x86_64 b/pkg-get/.footprint.x86_64
new file mode 100644
index 000000000..3d58d2fb9
--- /dev/null
+++ b/pkg-get/.footprint.x86_64
@@ -0,0 +1,11 @@
+drwxr-xr-x root/root etc/
+-rw-r--r-- root/root etc/pkg-get.conf
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+-rwxr-xr-x root/root usr/bin/pkg-get
+-rwxr-xr-x root/root usr/bin/syn
+drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/locale/
+drwxr-xr-x root/root usr/share/locale/fr/
+drwxr-xr-x root/root usr/share/locale/fr/LC_MESSAGES/
+-rw-r--r-- root/root usr/share/locale/fr/LC_MESSAGES/pkg-get.mo
diff --git a/pkg-get/.md5sum.i686 b/pkg-get/.md5sum.i686
new file mode 100644
index 000000000..a1aa5eca9
--- /dev/null
+++ b/pkg-get/.md5sum.i686
@@ -0,0 +1,2 @@
+6a090bcb120dc28f8160d1326889e1c6 pkg-get-0.3.95.tar.gz
+4b2308a5898180c997380228c0dc893b syn
diff --git a/pkg-get/.md5sum.x86_64 b/pkg-get/.md5sum.x86_64
new file mode 100644
index 000000000..a1aa5eca9
--- /dev/null
+++ b/pkg-get/.md5sum.x86_64
@@ -0,0 +1,2 @@
+6a090bcb120dc28f8160d1326889e1c6 pkg-get-0.3.95.tar.gz
+4b2308a5898180c997380228c0dc893b syn
diff --git a/pkg-get/Pkgfile b/pkg-get/Pkgfile
new file mode 100644
index 000000000..36ff163b1
--- /dev/null
+++ b/pkg-get/Pkgfile
@@ -0,0 +1,19 @@
+# Description: Un gestionnaire de paquets binaires pour NuTyX léger et rapide
+# URL: http://www.nutyx.org
+# Maintainer: NuTyX core team
+# Packager: tnut at nutyx dot com
+# Depends on: curl
+
+name=pkg-get
+version=0.3.95
+release=1
+source=(http://nutyx.meticul.eu/files/$name-$version.tar.gz \
+ syn)
+
+build()
+{
+ cd $name-$version
+ make
+ make DESTDIR=$PKG install
+ install -m 755 ../syn $PKG/usr/bin/syn
+}
diff --git a/pkg-get/syn b/pkg-get/syn
new file mode 100644
index 000000000..68a38c4b2
--- /dev/null
+++ b/pkg-get/syn
@@ -0,0 +1,44 @@
+#!/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
+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