malfs mekanizma guncelleme

This commit is contained in:
milisbir 2016-03-18 02:14:06 +00:00
parent 0a94383742
commit 7f6d59550b
7 changed files with 47 additions and 71 deletions

View File

@ -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
}

View File

@ -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 <sys/resource.h>|#include <sys/resource.h>\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
}

View File

@ -1 +0,0 @@
KERNEL=="kvm", GROUP="kvm", MODE="0660"

Binary file not shown.

View File

@ -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."

Binary file not shown.

View File

@ -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
}