diff --git a/bin/pkvt_olustur b/bin/pkvt_olustur index 5c6f507f9..0a10a7598 100755 --- a/bin/pkvt_olustur +++ b/bin/pkvt_olustur @@ -3,13 +3,14 @@ pvt_olustur(){ if [ ! -f paket.vt ];then touch paket.vt fi + if [ -f "paket.vt" ];then + mv "paket.vt" "paket.vt.eski" + fi for paket in `ls` do paketad="`echo $paket|cut -d "#" -f1`" shaek=`sha1sum $paket` - if [ -f "paket.vt" ];then - mv "paket.vt" "paket.vt.eski" - fi + echo $paketad $shaek >> paket.vt done } diff --git a/talimatname/genel/qemu-all/talimat b/talimatname/genel/qemu-all/talimat new file mode 100644 index 000000000..64356d95f --- /dev/null +++ b/talimatname/genel/qemu-all/talimat @@ -0,0 +1,43 @@ +#Description: QEMU is a processor emulator using dynamic translation to achieve good emulation speed (PC, PowerPC, PowerMac, sun, Mips, ARM etc...) +#URL: http://www.qemu.org +#Packager: milisarge@gmail.com +#Depends on: gtk2 gtk3 sdl glib python vte vte3 xorg-mesa nss lzo cyrus-sasl alsa-lib alsa-plugins alsa-utils curl check bluez ncurses nfs-utils libgcrypt libcap-ng gnutls libusb bzip2 usbutils bridge-utils + +description="Processor emulator using dynamic translation to achieve good emulation speed" +name=qemu-all +version=2.5.0 +release=1 +source=(http://wiki.qemu.org/download/qemu-$version.tar.bz2) + +build() { + + cd qemu-$version + + ./configure --prefix=/usr \ + --cc="${CC:=gcc}" \ + --host-cc="${CC:=gcc}" \ + --sysconfdir=/etc \ + --disable-docs \ + --libexecdir=/usr/lib/qemu \ + --disable-gtk \ + --localstatedir=/var + + # fix include issues with libcap + sed -i -e '/#include "qemu\/xattr.h"/d' \ + -e 's|#include |#include \r\n#include "qemu\/xattr.h"|g' \ + fsdev/virtfs-proxy-helper.c + + make ${MAKEFLAGS:=} + make DESTDIR=$PKG install + + make qemu.1 qemu-img.1 qemu-nbd.8 + install -D -m 644 qemu.1 $PKG/usr/share/man1/qemu.1 + install -D -m 644 qemu-img.1 $PKG/usr/share/man1/qemu-img.1 + install -D -m 644 qemu-nbd.8 $PKG/usr/share/man8/qemu-nbd.8 + + install -d $PKG/etc/udev/rules.d/ + echo 'KERNEL=="kvm", NAME="kvm", OWNER="root", GROUP="kvm", MODE="0660"' > \ + $PKG/etc/udev/rules.d/60-kvm.rules + + rm -rf $PKG/usr/share/locale +} diff --git a/talimatname/genel/qemu/65-kvm.rules b/talimatname/genel/qemu/65-kvm.rules deleted file mode 100644 index c2f7317aa..000000000 --- a/talimatname/genel/qemu/65-kvm.rules +++ /dev/null @@ -1 +0,0 @@ -KERNEL=="kvm", GROUP="kvm", MODE="0660" diff --git a/talimatname/genel/qemu/messages.mo b/talimatname/genel/qemu/messages.mo deleted file mode 100644 index 53780f4be..000000000 Binary files a/talimatname/genel/qemu/messages.mo and /dev/null differ diff --git a/talimatname/genel/qemu/qemu.kur-kos b/talimatname/genel/qemu/qemu.kur-kos deleted file mode 100644 index 95711b3ee..000000000 --- a/talimatname/genel/qemu/qemu.kur-kos +++ /dev/null @@ -1,24 +0,0 @@ -groupadd -g 61 kvm - -qemuser=$(whoami) - -echo "L'ajout de votre nom d'utilisateur $qemuser au groupe kvm est nécessaire pour la virtualisation par le noyau linux. Etes vous d'accord ? (oui/non)" -read rep - -if [ "$rep" != "oui" ]; then - - if [ "$rep" != "non" ]; then - echo "Réponse incorrecte L'administrateur du système peut vous ajouter au groupe si vous le désirez" - fi -fi - - -if [ "$rep" = "oui" ]; then - usermod -a -G kvm $qemuser - echo "votre nom d'utilisateur $qemuser a été ajouté au groupe kvm" -fi - -ln -sv qemu-system-x86_64 /usr/bin/qemu - -echo "Qemu est configuré pour lancer une machine virtuelle x86_64. Pour utiliser un autre système (PowerMac, PowerPC, Sparc, mips etc..) il faut lancer les machines correstondantes directement depuis le repertoire /usr/bin." - diff --git a/talimatname/genel/qemu/qemu.mo b/talimatname/genel/qemu/qemu.mo deleted file mode 100644 index ebd249bcf..000000000 Binary files a/talimatname/genel/qemu/qemu.mo and /dev/null differ diff --git a/talimatname/genel/qemu/talimat b/talimatname/genel/qemu/talimat deleted file mode 100644 index 696b7a4df..000000000 --- a/talimatname/genel/qemu/talimat +++ /dev/null @@ -1,43 +0,0 @@ -# Description: QEMU is a processor emulator using dynamic translation to achieve good emulation speed (PC, PowerPC, PowerMac, sun, Mips, ARM etc...) -# URL: http://www.qemu.org -# Packager: berlius at nutyx dot com -# Depends on: gtk2 gtk3 sdl glib python vte vte3 xorg-mesa nss lzo cyrus-sasl alsa-lib alsa-plugins alsa-utils curl check bluez ncurses nfs-utils libgcrypt libcap-ng gnutls libusb bzip2 usbutils bridge-utils - -description="Processor emulator using dynamic translation to achieve good emulation speed" -name=qemu -version=2.4.1 -release=2 -source=(http://wiki.qemu.org/download/qemu-$version.tar.bz2 - 65-kvm.rules qemu.mo messages.mo) - -build() { - - cd qemu-$version - -# pas nécessaire car compilation volontaire pour toutes les emulations -# if [ $(uname -m) = i686 ]; then -# QEMU_ARCH=i386-softmmu -# else -# QEMU_ARCH=x86_64-softmmu -# fi - - ./configure --prefix=/usr \ - --sysconfdir=/etc \ - --audio-drv-list=alsa,sdl \ - --docdir=/usr/share/doc/qemu-2.4.1 - -# unset QEMU_ARCH - make - make DESTDIR=$PKG install - - [ -e $PKG/usr/lib/libcacard.so ] - chmod -v 755 $PKG/usr/lib/libcacard.so - - install -v -m755 -d $PKG/lib/udev/rules.d - install -v -m755 -d $PKG/usr/share/locale/fr/LC_MESSAGES - - cp -v $SRC/65-kvm.rules $PKG/lib/udev/rules.d/65-kvm.rules - cp -v $SRC/qemu.mo $PKG/usr/share/locale/fr/LC_MESSAGES/qemu.mo - cp -v $SRC/messages.mo $PKG/usr/share/locale/fr/LC_MESSAGES/messages.mo - -}