summaryrefslogtreecommitdiff
path: root/kernels/xe-guest-utilities
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-04-07 00:46:34 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-04-07 00:46:34 -0400
commit619b8d955269f2fe74386e98fac07675c8b55352 (patch)
treef3e2610a39c99a7e43bc2b345280b04e398b986a /kernels/xe-guest-utilities
parent2b04539ac9310541a4e563460aed0cb7715770d2 (diff)
parent7d4e98b2d6f2fd4d42ebb55105bab8a05e34ab94 (diff)
downloadabslibre-619b8d955269f2fe74386e98fac07675c8b55352.tar.gz
abslibre-619b8d955269f2fe74386e98fac07675c8b55352.tar.bz2
abslibre-619b8d955269f2fe74386e98fac07675c8b55352.zip
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'kernels/xe-guest-utilities')
-rw-r--r--kernels/xe-guest-utilities/PKGBUILD45
-rw-r--r--kernels/xe-guest-utilities/ip_address.patch30
-rw-r--r--kernels/xe-guest-utilities/xe-guest-utilities-parabola.patch146
3 files changed, 0 insertions, 221 deletions
diff --git a/kernels/xe-guest-utilities/PKGBUILD b/kernels/xe-guest-utilities/PKGBUILD
deleted file mode 100644
index a982f40d2..000000000
--- a/kernels/xe-guest-utilities/PKGBUILD
+++ /dev/null
@@ -1,45 +0,0 @@
-# Contributor: Krzysztof Raczkowski <raczkow@gnu-tech.pl>
-# Contributor (Parabola): André Silva <andre.paulista@adinet.com.uy>
-
-pkgname=xe-guest-utilities
-pkgver=6.0.2
-pkgrel=1
-pkgdesc="Citrix XenServer Tools"
-arch=('i686' 'x86_64')
-url="http://citrix.com/English/ps2/products/product.asp?contentID=683148&ntref=hp_nav_US"
-license=('GPL' 'LGPL')
-optdepends=('linux-libre: DomU kernel for x86_64'
- 'linux-libre-xen: DomU kernel for i686'
- 'linux-libre-lts-xen: DomU kernel for i686 (long time supported)')
-makedepends=('rpmextract')
-source=(ftp://ftp.prz.edu.pl/pub/archlinux/aur/src/xe-guest-utilities-${pkgver}-756.i386.rpm
- ftp://ftp.prz.edu.pl/pub/archlinux/aur/src/xe-guest-utilities-xenstore-${pkgver}-756.i386.rpm
- ftp://ftp.prz.edu.pl/pub/archlinux/aur/src/xe-guest-utilities-${pkgver}-756.x86_64.rpm
- ftp://ftp.prz.edu.pl/pub/archlinux/aur/src/xe-guest-utilities-xenstore-${pkgver}-756.x86_64.rpm
- xe-guest-utilities-parabola.patch
- ip_address.patch)
-
-md5sums=('7f1b670b6fec6f55764bc19ead41b07d'
- '7d9a2c9db65d76f93a5df709989915af'
- '953e858c03570105ea855fc3b32d43ff'
- '5cb44deb684f7069b05052ed92d0ac22'
- '0d8a8ebe124d585a2b101150df8f5ff7'
- '86b4a69b412f874bf5b4db8ac8858644')
-
-build() {
- cd $startdir/src
- [ $CARCH == "i686" ] && (
- rpmextract.sh xe-guest-utilities-*.i386.rpm && \
- rpmextract.sh xe-guest-utilities-xenstore-*.i386.rpm || return 1
- )
- [ $CARCH == "x86_64" ] && (
- rpmextract.sh xe-guest-utilities-*.x86_64.rpm && \
- rpmextract.sh xe-guest-utilities-xenstore-*.x86_64.rpm || return 1
- )
-
- patch -Np1 -i ${srcdir}/xe-guest-utilities-parabola.patch || return 1
- patch -Np1 -i ${srcdir}/ip_address.patch || return 1
-
- cp -ra ${srcdir}/{etc,usr} ${pkgdir}/ || return 1
- mv ${pkgdir}/etc/init.d ${pkgdir}/etc/rc.d
-}
diff --git a/kernels/xe-guest-utilities/ip_address.patch b/kernels/xe-guest-utilities/ip_address.patch
deleted file mode 100644
index 1e589ef37..000000000
--- a/kernels/xe-guest-utilities/ip_address.patch
+++ /dev/null
@@ -1,30 +0,0 @@
---- src.orig/usr/sbin/xe-update-guest-attrs 2011-12-28 21:05:13.055346917 -0600
-+++ src/usr/sbin/xe-update-guest-attrs 2011-12-28 21:04:02.545354603 -0600
-@@ -151,9 +151,9 @@
- # 3: sit0: <NOARP> mtu 1480 qdisc noop
- # link/sit 0.0.0.0 brd 0.0.0.0
-
--#eval $(ip addr show | \
--# sed -n -e 's/^[[:digit:]]*: \([a-z0-9]*\): .*/ifs="\$ifs \1"; current="\1"; /gp;' \
--# -e 's/^[[:space:]]\{4\}inet \('${IPADDR_RE}'\)\/.*/eval inet_\${current}="\1"; /gp;')
-+eval $(ip addr show | \
-+ sed -n -e 's/^[[:digit:]]*: \([a-z0-9]*\): .*/ifs="\$ifs \1"; current="\1"; /gp;' \
-+ -e 's/^[[:space:]]\{4\}inet \('${IPADDR_RE}'\)\/.*/eval inet_\${current}="\1"; /gp;')
-
- # e.g.
- # eth0 Link encap:Ethernet HWaddr 00:13:20:95:E8:74
-@@ -175,10 +175,10 @@
- # collisions:0 txqueuelen:0
- # RX bytes:3604609 (3.4 MiB) TX bytes:3604609 (3.4 MiB)
-
--eval $(/sbin/ifconfig | \
-- sed -n -e '/^[0-9a-z][0-9a-z]*\:/,/^$/d' \
-- -e 's/^\([0-9a-z][0-9a-z]*\) .*/ifs="\$ifs \1"; current="\1"; /gp;' \
-- -e 's/ *inet addr:\('$IPADDR_RE'\) .*/eval inet_\${current}="\1"; /gp;')
-+#eval $(/sbin/ifconfig | \
-+# sed -n -e '/^[0-9a-z][0-9a-z]*\:/,/^$/d' \
-+# -e 's/^\([0-9a-z][0-9a-z]*\) .*/ifs="\$ifs \1"; current="\1"; /gp;' \
-+# -e 's/ *inet addr:\('$IPADDR_RE'\) .*/eval inet_\${current}="\1"; /gp;')
-
- # network
- for if in $ifs ; do \ No newline at end of file
diff --git a/kernels/xe-guest-utilities/xe-guest-utilities-parabola.patch b/kernels/xe-guest-utilities/xe-guest-utilities-parabola.patch
deleted file mode 100644
index a433f6887..000000000
--- a/kernels/xe-guest-utilities/xe-guest-utilities-parabola.patch
+++ /dev/null
@@ -1,146 +0,0 @@
-diff -uNr src.orig//etc/init.d/xe-linux-distribution src/etc/init.d/xe-linux-distribution
---- src.orig//etc/init.d/xe-linux-distribution 2010-05-20 13:19:02.000000000 +0200
-+++ src/etc/init.d/xe-linux-distribution 2010-10-04 14:45:11.000000000 +0200
-@@ -18,24 +18,8 @@
- LANG="C"
- export LANG
-
--if [ -f /etc/init.d/functions ] ; then
--. /etc/init.d/functions
--else
--action()
--{
-- descr=$1 ; shift
-- cmd=$@
-- echo -n "$descr "
-- $cmd
-- ret=$?
-- if [ $ret -eq 0 ] ; then
-- echo "OK"
-- else
-- echo "Failed"
-- fi
-- return $ret
--}
--fi
-+. /etc/rc.conf
-+. /etc/rc.d/functions
-
- XE_LINUX_DISTRIBUTION=/usr/sbin/xe-linux-distribution
- XE_LINUX_DISTRIBUTION_CACHE=/var/cache/xe-linux-distribution
-@@ -48,35 +32,59 @@
-
- start()
- {
-+ if [ -e /proc/xen/capabilities ] && grep -q control_d /proc/xen/capabilities ; then
-+ # Do not want daemon in domain 0
-+ exit 0
-+ fi
-+
-+ stat_busy "Detecting GNU/Linux distribution version"
-+ ${XE_LINUX_DISTRIBUTION} ${XE_LINUX_DISTRIBUTION_CACHE}
-+ if [ $? -gt 0 ]; then
-+ stat_fail
-+ else
-+ stat_done
-+ fi
-+
- if [ ! -e /proc/xen/xenbus ] ; then
- if [ ! -d /proc/xen ] ; then
-- action $"Mounting xenfs on /proc/xen:" /bin/false
-+ stat_busy "Mounting xenfs on /proc/xen"
- echo "Could not find /proc/xen directory."
- echo "You need a post 2.6.29-rc1 kernel with CONFIG_XEN_COMPAT_XENFS=y and CONFIG_XENFS=y|m"
-- exit 1
-+ stat_die 1
- else
- # This is needed post 2.6.29-rc1 when /proc/xen support was pushed upstream as a xen filesystem
-- action $"Mounting xenfs on /proc/xen:" mount -t xenfs none /proc/xen
-+ stat_busy "Mounting xenfs on /proc/xen"
-+ mount -t xenfs none /proc/xen
-+ if [ $? -gt 0 ]; then
-+ stat_fail
-+ else
-+ stat_done
-+ fi
- fi
- fi
-
-- if [ -e /proc/xen/capabilities ] && grep -q control_d /proc/xen/capabilities ; then
-- # Do not want daemon in domain 0
-- exit 0
-- fi
--
-- action $"Detecting Linux distribution version:" \
-- ${XE_LINUX_DISTRIBUTION} ${XE_LINUX_DISTRIBUTION_CACHE}
--
-- action $"Starting xe daemon: " /bin/true
-+ stat_busy "Starting xe daemon"
- mkdir -p $(dirname ${XE_DAEMON_PIDFILE})
- # This is equivalent to daemon() in C
- ( exec &>/dev/null ; ${XE_DAEMON} -p ${XE_DAEMON_PIDFILE} & )
-+ if [ $? -gt 0 ]; then
-+ stat_fail
-+ else
-+ add_daemon xe-linux-distribution
-+ stat_done
-+ fi
- }
-
- stop()
- {
-- action $"Stopping xe daemon: " kill -TERM $(cat ${XE_DAEMON_PIDFILE})
-+ stat_busy "Stopping xe daemon"
-+ killall $(basename ${XE_DAEMON}) -TERM
-+ if [ $? -gt 0 ]; then
-+ stat_fail
-+ else
-+ rm_daemon xe-linux-distribution
-+ stat_done
-+ fi
- }
-
- # fail silently if not running xen
-@@ -91,7 +99,7 @@
- stop)
- stop
- ;;
-- force-reload|restart)
-+ restart)
- stop
- start
- ;;
-diff -uNr src.orig//usr/sbin/xe-linux-distribution src/usr/sbin/xe-linux-distribution
---- src.orig//usr/sbin/xe-linux-distribution 2010-05-20 13:19:02.000000000 +0200
-+++ src/usr/sbin/xe-linux-distribution 2010-10-04 14:44:37.000000000 +0200
-@@ -51,6 +51,22 @@
- return 0
- }
-
-+identify_parabola()
-+{
-+ local parabola_version="$1"
-+ local major
-+ local minor
-+
-+ if [ ! -f "${parabola_version}" ] ; then
-+ return 1
-+ fi
-+
-+ eval $(LC_ALL=C pacman -Qi initscripts |grep Version |sed "s/^.*: //" | \
-+ awk -F. '{print "major="$1 ; print "minor="$2 ; exit 0 }' )
-+ write_to_output "parabola" "${major}" "${minor}" "Parabola GNU/Linux-Libre ${major}.${minor}"
-+
-+}
-+
- identify_debian()
- {
- local debian_version="$1"
-@@ -258,6 +274,7 @@
- identify_sles /etc/SuSE-release && exit 0
- identify_lsb lsb_release && exit 0
- identify_debian /etc/debian_version && exit 0
-+ identify_parabola /etc/arch-release && exit 0
-
- if [ $# -eq 1 ] ; then
- rm -f "$1"