summaryrefslogtreecommitdiffstats
path: root/abs/mv-core/func
diff options
context:
space:
mode:
Diffstat (limited to 'abs/mv-core/func')
-rw-r--r--abs/mv-core/func/PKGBUILD34
-rwxr-xr-xabs/mv-core/func/failed_func.sh14
-rw-r--r--abs/mv-core/func/fe_restart.py35
-rw-r--r--abs/mv-core/func/func-0.24.tar.gzbin130319 -> 0 bytes
-rw-r--r--abs/mv-core/func/func-0.25.tar.gzbin152871 -> 0 bytes
-rwxr-xr-xabs/mv-core/func/func.install56
-rw-r--r--abs/mv-core/func/minion.conf8
-rw-r--r--abs/mv-core/func/pacman.py36
-rw-r--r--abs/mv-core/func/power.py35
9 files changed, 0 insertions, 218 deletions
diff --git a/abs/mv-core/func/PKGBUILD b/abs/mv-core/func/PKGBUILD
deleted file mode 100644
index 13d3189..0000000
--- a/abs/mv-core/func/PKGBUILD
+++ /dev/null
@@ -1,34 +0,0 @@
-pkgname=func
-pkgver=0.25
-pkgrel=2
-pkgdesc="fedora unifed network controller"
-url=""
-license="gpl"
-depends=(pyopenssl certmaster)
-makedepends=()
-conflicts=()
-replaces=()
-backup=()
-moddir="pkg/usr/lib/python2.6/site-packages/func/minion/modules/"
-install=func.install
-source=($pkgname-$pkgver.tar.gz minion.conf power.py pacman.py failed_func.sh fe_restart.py)
-md5sums=()
-arch=('i686')
-
-build() {
- cd $startdir/src/$pkgname-${pkgver}
- python setup.py build
- python setup.py install --prefix=$startdir/pkg/usr
- cd $startdir/src
- install -m755 -D minion.conf $startdir/pkg/etc/func/minion.conf
- install -m755 -D async_methods.conf $startdir/pkg/etc/func/async_methods.conf
- install -m755 -D $startdir/src/$pkgname-${pkgver}/etc/sample.acl $startdir/pkg/etc/func/minion-acl.d/sample.acl
- install -m755 -D $startdir/src/$pkgname-${pkgver}/etc/Test.conf $startdir/pkg/etc/func/modules/Test.conf
- install -m755 -D $startdir/src/power.py ${startdir}/${moddir}/power.py
- install -m755 -D $startdir/src/pacman.py ${startdir}/${moddir}/pacman.py
- install -m755 -D $startdir/src/fe_restart.py ${startdir}/${moddir}/fe_restart.py
- install -m755 -D $startdir/src/failed_func.sh $startdir/pkg/usr/bin/failed_func.sh
- mkdir -p $startdir/pkg/var/log/func
- cd $startdir/pkg
- find ./ -name "*.pyc" -print | xargs rm -f
-}
diff --git a/abs/mv-core/func/failed_func.sh b/abs/mv-core/func/failed_func.sh
deleted file mode 100755
index 2ec4da7..0000000
--- a/abs/mv-core/func/failed_func.sh
+++ /dev/null
@@ -1,14 +0,0 @@
-. /etc/profile
-. /etc/systemconfig
-curl -# http://$dbhost/failed_func_hosts|grep -q `hostname`
-status=$?
-if [ $status = 0 ]
-then
- echo "removeing ca"
- rm -f /etc/pki/func/*
- echo "restarting func"
- sv stop funcd
- sleep 3
- sv start funcd
-fi
-
diff --git a/abs/mv-core/func/fe_restart.py b/abs/mv-core/func/fe_restart.py
deleted file mode 100644
index a75b0c5..0000000
--- a/abs/mv-core/func/fe_restart.py
+++ /dev/null
@@ -1,35 +0,0 @@
-##
-# other modules
-import sub_process
-
-# our modules
-import func_module
-
-# =================================
-
-class re_restart(func_module.FuncModule):
-
- version = "0.0.1"
- api_version = "0.0.1"
- description = "Restart the frontend"
-
- def killX (self,flags="restart frontend"):
- """
- Restart X
- """
- flags.replace(";","") # prevent stupidity
- cmd = sub_process.Popen("/sbin/sv %s " % flags,stdout=sub_process.PIPE,shell=True)
- data = cmd.communicate()[0]
- results = ['Restarted UI']
- return (cmd.returncode, results)
-
- def killmyth (self,flags="-9 mythfrontend"):
- """
- kill the mythfrontend process server
- """
- flags.replace(";","") # prevent stupidity
- cmd = sub_process.Popen("/usr/bin/killall %s" % flags,stdout=sub_process.PIPE,shell=True)
- data = cmd.communicate()[0]
- results = ['killed mythfrontend']
- return (cmd.returncode, results)
-
diff --git a/abs/mv-core/func/func-0.24.tar.gz b/abs/mv-core/func/func-0.24.tar.gz
deleted file mode 100644
index baa8eef..0000000
--- a/abs/mv-core/func/func-0.24.tar.gz
+++ /dev/null
Binary files differ
diff --git a/abs/mv-core/func/func-0.25.tar.gz b/abs/mv-core/func/func-0.25.tar.gz
deleted file mode 100644
index 381e0b6..0000000
--- a/abs/mv-core/func/func-0.25.tar.gz
+++ /dev/null
Binary files differ
diff --git a/abs/mv-core/func/func.install b/abs/mv-core/func/func.install
deleted file mode 100755
index 5f0fa72..0000000
--- a/abs/mv-core/func/func.install
+++ /dev/null
@@ -1,56 +0,0 @@
-# This is a default template for a post-install scriptlet. You can
-# remove any functions you don't need (and this header).
-
-# arg 1: the new package version
-pre_install() {
-/bin/true
-mkdir -p /var/log/func
-}
-
-# arg 1: the new package version
-post_install() {
- if [ ! -e /etc/cron.tenminutes ]
- then
- mkdir /etc/cron.tenminutes
- fi
- if [ ! -e /etc/cron.tenminutes/failed_func.sh ]
- then
- ln -s /usr/bin/failed_func.sh /etc/cron.tenminutes/failed_func.sh
- fi
-
- if [ ! -e /var/log/func ]
- then
- mkdir -p /var/log/func
- fi
-
-
-}
-
-# arg 1: the new package version
-# arg 2: the old package version
-pre_upgrade() {
- /bin/true
-
-
-
-}
-
-# arg 1: the new package version
-# arg 2: the old package version
-post_upgrade() {
- post_install
-}
-
-# arg 1: the old package version
-pre_remove() {
- /bin/true
-}
-
-# arg 1: the old package version
-post_remove() {
- /bin/true
-}
-
-op=$1
-shift
-$op $*
diff --git a/abs/mv-core/func/minion.conf b/abs/mv-core/func/minion.conf
deleted file mode 100644
index d1665f1..0000000
--- a/abs/mv-core/func/minion.conf
+++ /dev/null
@@ -1,8 +0,0 @@
-[main]
-log_level = INFO
-acl_dir = /etc/func/minion-acl.d
-
-listen_addr =
-listen_port = 51234
-minion_name =
-
diff --git a/abs/mv-core/func/pacman.py b/abs/mv-core/func/pacman.py
deleted file mode 100644
index c8f2e13..0000000
--- a/abs/mv-core/func/pacman.py
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/usr/bin/python
-
-
-# other modules
-import sub_process
-
-# our modules
-import func_module
-
-# =================================
-
-class pacman(func_module.FuncModule):
- version = "0.0.1"
- api_version = "0.0.1"
- description = "update the server"
-
-
- def update_system(self,flags):
- flags.replace(";","") # prevent stupidity
- cmd = sub_process.Popen("/usr/bin/update_system %s" % flags,stdout=sub_process.PIPE,shell=True)
- data = cmd.communicate()[0]
- results = []
- for x in data.split("\n"):
- results.append(x)
- return (cmd.returncode, results)
-
- def pkgversion(self,flags):
- flags.replace(";","") # prevent stupidity
- cmd = sub_process.Popen("/usr/bin/pacman -Q %s | grep -v error" % flags,stdout=sub_process.PIPE,shell=True)
- data = cmd.communicate()[0]
- results = []
- for x in data.split("\n"):
- results.append(x)
- return (cmd.returncode, results)
-
-
diff --git a/abs/mv-core/func/power.py b/abs/mv-core/func/power.py
deleted file mode 100644
index 668965a..0000000
--- a/abs/mv-core/func/power.py
+++ /dev/null
@@ -1,35 +0,0 @@
-##
-# other modules
-import sub_process
-
-# our modules
-import func_module
-
-# =================================
-
-class power(func_module.FuncModule):
-
- version = "0.0.1"
- api_version = "0.0.1"
- description = "Reboot the server"
-
- def reboot(self,flags="-q onecheck"):
- """
- Reboot the server
- """
- flags.replace(";","") # prevent stupidity
- cmd = sub_process.Popen("/sbin/reboot")
- data = cmd.communicate()[0]
- results = ['reboot']
- return (cmd.returncode, results)
-
- def poweroff (self,flags="-q onecheck"):
- """
- Reboot the server
- """
- flags.replace(";","") # prevent stupidity
- cmd = sub_process.Popen("/sbin/poweroff")
- data = cmd.communicate()[0]
- results = ['off']
- return (cmd.returncode, results)
-