From 1ba69cc033dfbd0a6c4c29c6d877c7e753f96e8e Mon Sep 17 00:00:00 2001 From: James Meyer Date: Sat, 8 Nov 2008 20:33:06 -0600 Subject: MythVantage specific pkgs --- abs/mv-core/confuse/PKGBUILD | 19 + abs/mv-core/dnsmasq/PKGBUILD | 41 + .../dnsmasq/dnsmasq-capability-config.patch | 14 + abs/mv-core/dnsmasq/dnsmasq.conf | 38 + abs/mv-core/dnsmasq/dnsmasq.install | 21 + abs/mv-core/dnsmasq/dnsmasq.rc.d | 36 + abs/mv-core/dnsmasq/pxelinux.0 | Bin 0 -> 13480 bytes abs/mv-core/dnsmasq/pxelinux.default | 10 + abs/mv-core/enlightenment/PKGBUILD | 30 + abs/mv-core/enlightenment/e_gen_menu.patch | 11 + abs/mv-core/enlightenment/enlightenment.desktop | 8 + abs/mv-core/enlightenment/starting.patch | 11 + abs/mv-core/evrouter/PKGBUILD | 18 + abs/mv-core/func/PKGBUILD | 32 + abs/mv-core/func/certmaster.conf | 7 + abs/mv-core/func/failed_func.sh | 14 + abs/mv-core/func/func-0.13.tar.gz | Bin 0 -> 59377 bytes abs/mv-core/func/func.install | 49 + abs/mv-core/func/minion.conf | 8 + abs/mv-core/func/pacman.py | 40 + abs/mv-core/func/power.py | 58 + abs/mv-core/ghosd/PKGBUILD | 33 + abs/mv-core/ghosd/blue800.png | Bin 0 -> 2609 bytes abs/mv-core/ghosd/gh800.png | Bin 0 -> 2559 bytes abs/mv-core/ghosd/green-800.png | Bin 0 -> 2448 bytes abs/mv-core/ghosd/green800.png | Bin 0 -> 2559 bytes abs/mv-core/ghosd/grey800.png | Bin 0 -> 870 bytes abs/mv-core/ghosd/image.c | 97 + abs/mv-core/ghosd/osdClient.pl | 25 + abs/mv-core/ghosd/osdServer.config | 6 + abs/mv-core/ghosd/osdServer.pl | 189 ++ abs/mv-core/ghosd/red800.png | Bin 0 -> 2546 bytes abs/mv-core/ghosd/yellow800.png | Bin 0 -> 2559 bytes abs/mv-core/graphviz/PKGBUILD | 21 + abs/mv-core/graphviz/graphviz.install | 39 + abs/mv-core/iguanair/PKGBUILD | 25 + abs/mv-core/keylaunch/PKGBUILD | 17 + abs/mv-core/keylaunch/example_rc | 19 + abs/mv-core/keylaunch/keylaunch.install | 40 + abs/mv-core/lcdproc/PKGBUILD | 25 + abs/mv-core/lcdproc/lcdd | 38 + abs/mv-core/lcdproc/lcdproc-CVS-current.tar.gz | Bin 0 -> 838429 bytes abs/mv-core/lcdproc/mythvantage.patch | 14 + abs/mv-core/lighttpd/PKGBUILD | 49 + abs/mv-core/lighttpd/index.html | 15 + abs/mv-core/lighttpd/lighttpd.conf | 369 ++++ abs/mv-core/lighttpd/lighttpd.conf.d | 10 + abs/mv-core/lighttpd/lighttpd.install | 80 + abs/mv-core/lighttpd/lighttpd.logrotate.d | 8 + abs/mv-core/lighttpd/lighttpd.rc.d | 39 + abs/mv-core/lighttpd/spawn-php.conf.d | 33 + abs/mv-core/lighttpd/spawn-php.rc.d | 67 + abs/mv-core/lighttpd/ssl_fix.diff | 10 + abs/mv-core/lighttpd/tweakconf.vim | 22 + abs/mv-core/local-website/PKGBUILD | 22 + abs/mv-core/local-website/cgi/beclear.cgi | 4 + abs/mv-core/local-website/cgi/bestop.cgi | 6 + abs/mv-core/local-website/cgi/diskless.py | 11 + abs/mv-core/local-website/cgi/serverkey.cgi | 3 + abs/mv-core/local-website/contents/calllog.py | 66 + abs/mv-core/local-website/contents/calllog.shtml | 20 + abs/mv-core/local-website/contents/count.py | 89 + abs/mv-core/local-website/contents/docs.html | 65 + .../local-website/contents/error-handler.html | 9 + .../local-website/contents/error/hobbit.html | 11 + .../local-website/contents/error/mythweb.html | 16 + .../local-website/contents/error/phpadmin.html | 28 + .../local-website/contents/error/status-404.html | 9 + abs/mv-core/local-website/contents/frame.css | 176 ++ abs/mv-core/local-website/contents/header.html | 33 + abs/mv-core/local-website/contents/header.jpg | Bin 0 -> 88341 bytes abs/mv-core/local-website/contents/home.shtml | 23 + .../contents/images/classic-menugraph.png | Bin 0 -> 144106 bytes .../contents/images/dvr_menugraph.png | Bin 0 -> 207288 bytes .../contents/images/menu_diagram_color.png | Bin 0 -> 193264 bytes abs/mv-core/local-website/contents/index.html | 14 + abs/mv-core/local-website/contents/links.html | 26 + abs/mv-core/local-website/contents/mv.css | 82 + abs/mv-core/local-website/contents/mvp_process.py | 195 ++ abs/mv-core/local-website/contents/mvp_select.py | 146 ++ abs/mv-core/local-website/contents/mvpmc.shtml | 21 + .../local-website/contents/page_background.jpg | Bin 0 -> 740 bytes abs/mv-core/local-website/contents/process.py | 337 +++ abs/mv-core/mysql/PKGBUILD | 48 + abs/mv-core/mysql/my.cnf | 150 ++ abs/mv-core/mysql/my.cnf.mv | 150 ++ abs/mv-core/mysql/mysql-no-clients.patch | 65 + abs/mv-core/mysql/mysqld | 87 + abs/mv-core/mysql/mysqld.conf.d | 1 + abs/mv-core/mythdb-initial/PKGBUILD | 21 + abs/mv-core/mythdb-initial/mc.sql | 2330 ++++++++++++++++++++ abs/mv-core/mythdb-initial/mythdb.install | 31 + abs/mv-core/mythdb-initial/permissions.sql | 11 + abs/mv-core/mythtv-status/PKGBUILD | 21 + abs/mv-core/mythtv-status/mythtv-status.cron | 4 + abs/mv-core/mythtv-status/mythtv-status.install | 51 + abs/mv-core/ncid/PKGBUILD | 63 + abs/mv-core/ncid/cid.sh | 11 + abs/mv-core/ncid/ncid-osd | 26 + abs/mv-core/ncid/ncid.conf | 59 + abs/mv-core/ncid/ncid.install | 17 + abs/mv-core/ncid/ncid.py | 59 + abs/mv-core/ncid/ncid.sql | 51 + abs/mv-core/ncid/ncidclient.sh | 2 + abs/mv-core/ncid/ncidd.conf | 143 ++ abs/mv-core/ncid/ncidpermissions.sql | 8 + abs/mv-core/tilda/PKGBUILD | 20 + abs/mv-core/tilda/tilda.patch | 25 + abs/mv-core/webcal/PKGBUILD | 35 + abs/mv-core/webcal/config.php | 263 +++ abs/mv-core/webcal/createdb.sql | 810 +++++++ abs/mv-core/webcal/posix.tab | 586 +++++ abs/mv-core/webcal/send_reminders.patch | 38 + abs/mv-core/webcal/sendreminders.sh | 5 + abs/mv-core/webcal/settings.php | 18 + abs/mv-core/webcal/webcal.install | 30 + 116 files changed, 8406 insertions(+) create mode 100755 abs/mv-core/confuse/PKGBUILD create mode 100644 abs/mv-core/dnsmasq/PKGBUILD create mode 100644 abs/mv-core/dnsmasq/dnsmasq-capability-config.patch create mode 100644 abs/mv-core/dnsmasq/dnsmasq.conf create mode 100644 abs/mv-core/dnsmasq/dnsmasq.install create mode 100755 abs/mv-core/dnsmasq/dnsmasq.rc.d create mode 100644 abs/mv-core/dnsmasq/pxelinux.0 create mode 100644 abs/mv-core/dnsmasq/pxelinux.default create mode 100644 abs/mv-core/enlightenment/PKGBUILD create mode 100644 abs/mv-core/enlightenment/e_gen_menu.patch create mode 100644 abs/mv-core/enlightenment/enlightenment.desktop create mode 100644 abs/mv-core/enlightenment/starting.patch create mode 100644 abs/mv-core/evrouter/PKGBUILD create mode 100644 abs/mv-core/func/PKGBUILD create mode 100644 abs/mv-core/func/certmaster.conf create mode 100755 abs/mv-core/func/failed_func.sh create mode 100644 abs/mv-core/func/func-0.13.tar.gz create mode 100755 abs/mv-core/func/func.install create mode 100644 abs/mv-core/func/minion.conf create mode 100644 abs/mv-core/func/pacman.py create mode 100644 abs/mv-core/func/power.py create mode 100755 abs/mv-core/ghosd/PKGBUILD create mode 100644 abs/mv-core/ghosd/blue800.png create mode 100755 abs/mv-core/ghosd/gh800.png create mode 100644 abs/mv-core/ghosd/green-800.png create mode 100644 abs/mv-core/ghosd/green800.png create mode 100644 abs/mv-core/ghosd/grey800.png create mode 100644 abs/mv-core/ghosd/image.c create mode 100755 abs/mv-core/ghosd/osdClient.pl create mode 100644 abs/mv-core/ghosd/osdServer.config create mode 100755 abs/mv-core/ghosd/osdServer.pl create mode 100644 abs/mv-core/ghosd/red800.png create mode 100644 abs/mv-core/ghosd/yellow800.png create mode 100644 abs/mv-core/graphviz/PKGBUILD create mode 100755 abs/mv-core/graphviz/graphviz.install create mode 100755 abs/mv-core/iguanair/PKGBUILD create mode 100644 abs/mv-core/keylaunch/PKGBUILD create mode 100644 abs/mv-core/keylaunch/example_rc create mode 100755 abs/mv-core/keylaunch/keylaunch.install create mode 100755 abs/mv-core/lcdproc/PKGBUILD create mode 100755 abs/mv-core/lcdproc/lcdd create mode 100644 abs/mv-core/lcdproc/lcdproc-CVS-current.tar.gz create mode 100644 abs/mv-core/lcdproc/mythvantage.patch create mode 100755 abs/mv-core/lighttpd/PKGBUILD create mode 100644 abs/mv-core/lighttpd/index.html create mode 100755 abs/mv-core/lighttpd/lighttpd.conf create mode 100644 abs/mv-core/lighttpd/lighttpd.conf.d create mode 100644 abs/mv-core/lighttpd/lighttpd.install create mode 100644 abs/mv-core/lighttpd/lighttpd.logrotate.d create mode 100644 abs/mv-core/lighttpd/lighttpd.rc.d create mode 100644 abs/mv-core/lighttpd/spawn-php.conf.d create mode 100755 abs/mv-core/lighttpd/spawn-php.rc.d create mode 100644 abs/mv-core/lighttpd/ssl_fix.diff create mode 100644 abs/mv-core/lighttpd/tweakconf.vim create mode 100755 abs/mv-core/local-website/PKGBUILD create mode 100755 abs/mv-core/local-website/cgi/beclear.cgi create mode 100755 abs/mv-core/local-website/cgi/bestop.cgi create mode 100755 abs/mv-core/local-website/cgi/diskless.py create mode 100755 abs/mv-core/local-website/cgi/serverkey.cgi create mode 100755 abs/mv-core/local-website/contents/calllog.py create mode 100755 abs/mv-core/local-website/contents/calllog.shtml create mode 100755 abs/mv-core/local-website/contents/count.py create mode 100755 abs/mv-core/local-website/contents/docs.html create mode 100755 abs/mv-core/local-website/contents/error-handler.html create mode 100755 abs/mv-core/local-website/contents/error/hobbit.html create mode 100755 abs/mv-core/local-website/contents/error/mythweb.html create mode 100755 abs/mv-core/local-website/contents/error/phpadmin.html create mode 100755 abs/mv-core/local-website/contents/error/status-404.html create mode 100755 abs/mv-core/local-website/contents/frame.css create mode 100755 abs/mv-core/local-website/contents/header.html create mode 100755 abs/mv-core/local-website/contents/header.jpg create mode 100755 abs/mv-core/local-website/contents/home.shtml create mode 100755 abs/mv-core/local-website/contents/images/classic-menugraph.png create mode 100755 abs/mv-core/local-website/contents/images/dvr_menugraph.png create mode 100755 abs/mv-core/local-website/contents/images/menu_diagram_color.png create mode 100755 abs/mv-core/local-website/contents/index.html create mode 100755 abs/mv-core/local-website/contents/links.html create mode 100755 abs/mv-core/local-website/contents/mv.css create mode 100755 abs/mv-core/local-website/contents/mvp_process.py create mode 100755 abs/mv-core/local-website/contents/mvp_select.py create mode 100755 abs/mv-core/local-website/contents/mvpmc.shtml create mode 100644 abs/mv-core/local-website/contents/page_background.jpg create mode 100755 abs/mv-core/local-website/contents/process.py create mode 100644 abs/mv-core/mysql/PKGBUILD create mode 100644 abs/mv-core/mysql/my.cnf create mode 100644 abs/mv-core/mysql/my.cnf.mv create mode 100644 abs/mv-core/mysql/mysql-no-clients.patch create mode 100755 abs/mv-core/mysql/mysqld create mode 100644 abs/mv-core/mysql/mysqld.conf.d create mode 100755 abs/mv-core/mythdb-initial/PKGBUILD create mode 100755 abs/mv-core/mythdb-initial/mc.sql create mode 100755 abs/mv-core/mythdb-initial/mythdb.install create mode 100755 abs/mv-core/mythdb-initial/permissions.sql create mode 100755 abs/mv-core/mythtv-status/PKGBUILD create mode 100644 abs/mv-core/mythtv-status/mythtv-status.cron create mode 100644 abs/mv-core/mythtv-status/mythtv-status.install create mode 100644 abs/mv-core/ncid/PKGBUILD create mode 100755 abs/mv-core/ncid/cid.sh create mode 100644 abs/mv-core/ncid/ncid-osd create mode 100644 abs/mv-core/ncid/ncid.conf create mode 100755 abs/mv-core/ncid/ncid.install create mode 100755 abs/mv-core/ncid/ncid.py create mode 100644 abs/mv-core/ncid/ncid.sql create mode 100755 abs/mv-core/ncid/ncidclient.sh create mode 100644 abs/mv-core/ncid/ncidd.conf create mode 100755 abs/mv-core/ncid/ncidpermissions.sql create mode 100755 abs/mv-core/tilda/PKGBUILD create mode 100644 abs/mv-core/tilda/tilda.patch create mode 100755 abs/mv-core/webcal/PKGBUILD create mode 100644 abs/mv-core/webcal/config.php create mode 100644 abs/mv-core/webcal/createdb.sql create mode 100644 abs/mv-core/webcal/posix.tab create mode 100644 abs/mv-core/webcal/send_reminders.patch create mode 100644 abs/mv-core/webcal/sendreminders.sh create mode 100644 abs/mv-core/webcal/settings.php create mode 100644 abs/mv-core/webcal/webcal.install diff --git a/abs/mv-core/confuse/PKGBUILD b/abs/mv-core/confuse/PKGBUILD new file mode 100755 index 0000000..ca0c15d --- /dev/null +++ b/abs/mv-core/confuse/PKGBUILD @@ -0,0 +1,19 @@ +# Contributor: Alexander Mieland (dma147) + +pkgname=confuse +pkgver=2.5 +pkgrel=1 +pkgdesc="C-library for parsing configuration files." +makedepends=('gcc' 'make') +arch=i686 +source=(http://savannah.nongnu.org/download/$pkgname/$pkgname-$pkgver.tar.gz) +url="http://www.nongnu.org/confuse/" +md5sums=('4bc9b73d77ebd571ac834619ce0b3582') + +build() { + cd $startdir/src/$pkgname-$pkgver + + ./configure --prefix=/usr + make || return 1 + make DESTDIR=$startdir/pkg PREFIX=$startdir/pkg install +} diff --git a/abs/mv-core/dnsmasq/PKGBUILD b/abs/mv-core/dnsmasq/PKGBUILD new file mode 100644 index 0000000..339b95a --- /dev/null +++ b/abs/mv-core/dnsmasq/PKGBUILD @@ -0,0 +1,41 @@ +pkgname=dnsmasq +pkgver=2.42 +pkgrel=15 +pkgdesc="A lightweight DNS/DHCP server ideal for small/home networks using NAT" +arch=(i686 x86_64) +source=(http://www.thekelleys.org.uk/$pkgname/$pkgname-$pkgver.tar.gz \ + dnsmasq.rc.d $pkgname-capability-config.patch dnsmasq.conf pxelinux.0 pxelinux.default ) +license=('GPL2') +url="http://www.thekelleys.org.uk/dnsmasq/doc.html" +depends=('glibc' 'bash') +backup=(etc/dnsmasq.conf) +install=$pkgname.install + +build() { + cd $startdir/src/$pkgname-$pkgver || return 1 + # patch to add a note about capability module in the config file + patch -Np0 -i ../$pkgname-capability-config.patch || return 1 + + # build + cd $startdir/src/$pkgname-$pkgver || return 1 + make || return 1 + + # install + mkdir -p $startdir/pkg/etc/rc.d || return 1 + make PREFIX=/usr DESTDIR=$startdir/pkg install || return 1 + install -D -m 0755 \ + $startdir/src/dnsmasq.rc.d $startdir/pkg/etc/rc.d/dnsmasq || return 1 + install -D -m 0644 \ + dnsmasq.conf.example $startdir/pkg/etc/dnsmasq.conf.example || return 1 + install -D -m 0644 $startdir/src/dnsmasq.conf $startdir/pkg/etc/dnsmasq.conf + + mkdir -p $startdir/pkg/data/srv/tftp/pxelinux.cfg + install -m 755 $startdir/src/pxelinux.default $startdir/pkg/data/srv/tftp/pxelinux.cfg/default + install -m 755 $startdir/src/pxelinux.0 $startdir/pkg/data/srv/tftp/pxelinux.0 + + + # make the required directories for DHCP server default directories + mkdir -p $startdir/pkg/var/db || return 1 + mkdir -p $startdir/pkg/var/lib/misc || return 1 +} +# vim: ts=2 sw=2 et ft=sh diff --git a/abs/mv-core/dnsmasq/dnsmasq-capability-config.patch b/abs/mv-core/dnsmasq/dnsmasq-capability-config.patch new file mode 100644 index 0000000..d8dbb82 --- /dev/null +++ b/abs/mv-core/dnsmasq/dnsmasq-capability-config.patch @@ -0,0 +1,14 @@ +diff -urN dnsmasq.conf.example dnsmasq.conf.example.fixed +--- dnsmasq.conf.example 2006-10-18 16:24:50.000000000 -0400 ++++ dnsmasq.conf.example.fixed 2006-11-20 22:07:12.000000000 -0500 +@@ -58,7 +58,9 @@ + #address=/doubleclick.net/127.0.0.1 + + # If you want dnsmasq to change uid and gid to something other +-# than the default, edit the following lines. ++# than root, you will need to have CONFIG_SECURITY_CAPABILITIES ++# enabled in your kernel. The default uid and gid of nobody will ++# be used if capability is available and this is not set. + #user= + #group= + diff --git a/abs/mv-core/dnsmasq/dnsmasq.conf b/abs/mv-core/dnsmasq/dnsmasq.conf new file mode 100644 index 0000000..96e338e --- /dev/null +++ b/abs/mv-core/dnsmasq/dnsmasq.conf @@ -0,0 +1,38 @@ +#logging +log-async=5 +log-facility=DAEMON +log-queries + +# filter what we send upstream +domain-needed +bogus-priv +filterwin2k +localise-queries + +# allow /etc/hosts and dhcp lookups via *.lan +local=/lan/ +domain=lan +expand-hosts + +# enable dhcp (start,end,netmask,leasetime) +dhcp-authoritative +dhcp-range=192.168.1.101,192.168.1.250,255.255.255.0,12h +dhcp-leasefile=/tmp/dhcp.leases + +# use /etc/ethers for static hosts; same format as --dhcp-host +# +read-ethers + +# other useful options: +# default route(s): dhcp-option=3,192.168.1.1,192.168.1.2 +# dns server(s): dhcp-option=6,192.168.1.1,192.168.1.2 + +dhcp-option=3,192.168.1.1 +dhcp-option=6,192.168.1.1 + +enable-tftp +tftp-root=/data/srv/tftp/ +conf-file=/etc/dnsmasq.mvpmc.conf + +dhcp-boot=pxelinux.0 + diff --git a/abs/mv-core/dnsmasq/dnsmasq.install b/abs/mv-core/dnsmasq/dnsmasq.install new file mode 100644 index 0000000..25501a4 --- /dev/null +++ b/abs/mv-core/dnsmasq/dnsmasq.install @@ -0,0 +1,21 @@ +# arg 1: the new package version +post_install() { + post_upgrade +} + +# arg 1: the new package version +# arg 2: the old package version +post_upgrade() { + touch /etc/dnsmasq.mvpmc.conf + chown nobody:nobody /etc/dnsmasq.mvpmc.conf +} + +# arg 1: the old package version +pre_remove() { + /bin/true +} + +op=$1 +shift + +$op $* diff --git a/abs/mv-core/dnsmasq/dnsmasq.rc.d b/abs/mv-core/dnsmasq/dnsmasq.rc.d new file mode 100755 index 0000000..1676072 --- /dev/null +++ b/abs/mv-core/dnsmasq/dnsmasq.rc.d @@ -0,0 +1,36 @@ +#!/bin/bash + +. /etc/rc.conf +. /etc/rc.d/functions + +PID=`pidof -o %PPID /usr/sbin/dnsmasq` +case "$1" in + start) + stat_busy "Starting DNS/DHCP daemon" + [ -z "$PID" ] && /usr/sbin/dnsmasq + if [ $? -gt 0 ] ; then + stat_fail + else + add_daemon dnsmasq # create the 'state' dir + stat_done + fi + ;; + stop) + stat_busy "Stopping DNS/DHCP daemon" + [ "$PID" ] && kill $PID &> /dev/null + if [ $? -gt 0 ]; then + stat_fail + else + rm_daemon dnsmasq # remove the 'state' dir + stat_done + fi + ;; + restart) + $0 stop + sleep 5 + $0 start + ;; + *) + echo "usage: $0 {start|stop|restart}" +esac +exit 0 diff --git a/abs/mv-core/dnsmasq/pxelinux.0 b/abs/mv-core/dnsmasq/pxelinux.0 new file mode 100644 index 0000000..cfe4420 Binary files /dev/null and b/abs/mv-core/dnsmasq/pxelinux.0 differ diff --git a/abs/mv-core/dnsmasq/pxelinux.default b/abs/mv-core/dnsmasq/pxelinux.default new file mode 100644 index 0000000..6294d3c --- /dev/null +++ b/abs/mv-core/dnsmasq/pxelinux.default @@ -0,0 +1,10 @@ +DISPLAY boot.txt + +DEFAULT install_image + +LABEL install_image + kernel masterbuild/boot/vmlinuz26 + append vga=normal root=/dev/nfs rw netboot netinstall nfsroot=$REPLACEME:/data/srv/tftp/masterbuild,rsize=16384,wsize=16384,rw ip=dhcp initrd=masterbuild/boot/kernel26.img + +TIMEOUT 4 +prompt 20 diff --git a/abs/mv-core/enlightenment/PKGBUILD b/abs/mv-core/enlightenment/PKGBUILD new file mode 100644 index 0000000..abdd1ba --- /dev/null +++ b/abs/mv-core/enlightenment/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Judd Vinet +pkgname=enlightenment +pkgver=0.16.8.9 +pkgrel=2 +pkgdesc="A fast, flexible, and very extensible Window Manager" +arch=('i686' 'x86_64') +url="http://www.enlightenment.org" +license=('BSD') +depends=('freetype2' 'libxinerama' 'libxft' 'libsm' 'libxxf86vm' 'imlib2' 'perl' 'libxcomposite' 'libxdamage' 'libxrandr') +makedepends=('xbitmaps') +source=(http://downloads.sourceforge.net/sourceforge/$pkgname/e16-$pkgver.tar.gz \ + http://downloads.sourceforge.net/sourceforge/$pkgname/e16-theme-BrushedMetal-Tigert-0.16.8.tar.gz \ + e_gen_menu.patch starting.patch) + +build() { + cd $startdir/src/e16-$pkgver + patch -Np0 -i $startdir/src/e_gen_menu.patch || return 1 + patch -Np0 -i $startdir/src/starting.patch || return 1 + ./configure --prefix=/usr --enable-fsstd --disable-sound --sysconfdir=/etc --disable-nls + make || return 1 + make DESTDIR=$startdir/pkg install + rm -rf $startdir/pkg/opt/share + install -D -m644 COPYING $startdir/pkg/usr/share/licenses/$pkgname/COPYING + for theme in BrushedMetal-Tigert; do + cd $startdir/src/e16-theme-$theme-0.16.8 + ./configure --prefix=/usr --enable-fsstd + make DESTDIR=$startdir/pkg install + done + chown -R root.root $startdir/pkg/usr/share/* +} diff --git a/abs/mv-core/enlightenment/e_gen_menu.patch b/abs/mv-core/enlightenment/e_gen_menu.patch new file mode 100644 index 0000000..d5ced43 --- /dev/null +++ b/abs/mv-core/enlightenment/e_gen_menu.patch @@ -0,0 +1,11 @@ +--- scripts/e_gen_menu~ 2006-03-29 22:09:17.000000000 +0200 ++++ scripts/e_gen_menu 2006-08-15 15:11:18.000000000 +0200 +@@ -25,7 +25,7 @@ + ############################################################################## + + # Likely prefixes +-$Prefixes = "/usr/local:/usr:/opt:/opt/kde:$ENV{'KDEDIR'}"; ++$Prefixes = "/usr/local:/usr:/opt:/opt/kde:/opt/gnome"; + $Prefixes = "$Prefixes:/opt/kde3:/opt/gnome"; # SUSE + $Prefixes = RemoveDuplcates($Prefixes); + diff --git a/abs/mv-core/enlightenment/enlightenment.desktop b/abs/mv-core/enlightenment/enlightenment.desktop new file mode 100644 index 0000000..658ea91 --- /dev/null +++ b/abs/mv-core/enlightenment/enlightenment.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=Enlightenment +Comment=The enlightenment window manager +Exec=e16 +# no icon yet, only the top three are currently used +Icon= +Type=Application diff --git a/abs/mv-core/enlightenment/starting.patch b/abs/mv-core/enlightenment/starting.patch new file mode 100644 index 0000000..9aafe4e --- /dev/null +++ b/abs/mv-core/enlightenment/starting.patch @@ -0,0 +1,11 @@ +--- src/config.c.orig 2007-09-17 19:31:51.000000000 +0000 ++++ src/config.c 2007-09-17 19:32:06.000000000 +0000 +@@ -602,7 +602,7 @@ + + if ((i > 1) && (!p)) + { +- p = ProgressbarCreate(_("Enlightenment Starting..."), 400, ++ p = ProgressbarCreate(_("Starting..."), 400, + 16); + if (p) + ProgressbarShow(p); diff --git a/abs/mv-core/evrouter/PKGBUILD b/abs/mv-core/evrouter/PKGBUILD new file mode 100644 index 0000000..e4fb59d --- /dev/null +++ b/abs/mv-core/evrouter/PKGBUILD @@ -0,0 +1,18 @@ +# Contributor: Jonathan Liu +pkgname=evrouter +pkgver=0.3.3 +pkgrel=2 +pkgdesc="An Input Event Router for Linux" +arch=(i686) +url="http://www.bedroomlan.org/~alexios/coding_evrouter.html" +license=('GPL2') +depends=('libxt' 'libxtst' 'xorg-server') +source=(http://www.bedroomlan.org/~alexios/files/SOFTWARE/evrouter/${pkgname}_${pkgver}.tar.gz) +md5sums=('a20073e04679eb11a5c2da9ab59e75fd') + +build() { + cd "$startdir/src/$pkgname" + ./configure --prefix=/usr --without-xmms + make || return 1 + make DESTDIR="$startdir/pkg" install +} diff --git a/abs/mv-core/func/PKGBUILD b/abs/mv-core/func/PKGBUILD new file mode 100644 index 0000000..a72ebd0 --- /dev/null +++ b/abs/mv-core/func/PKGBUILD @@ -0,0 +1,32 @@ +pkgname=func +pkgver=0.13 +pkgrel=15 +pkgdesc="fedora unifed network controller" +url="" +license="gpl" +depends=(pyopenssl) +makedepends=() +conflicts=() +replaces=() +backup=() +moddir="pkg/usr/lib/python2.5/site-packages/func/minion/modules/" +install=func.install +#source=(https://hosted.fedoraproject.org/projects/func/attachment/wiki/FuncReleases/$pkgname-$pkgver.tar.gz) +source=($pkgname-$pkgver.tar.gz certmaster.conf minion.conf power.py pacman.py failed_func.sh) +md5sums=() +arch=('i686') + +build() { + cd $startdir/src/$pkgname-${pkgver} + cd $startdir/src/func + 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 certmaster.conf $startdir/pkg/etc/func/certmaster.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/power.py ${startdir}/${moddir}/power.py + install -m755 -D $startdir/src/pacman.py ${startdir}/${moddir}/pacman.py + install -m755 -D $startdir/src/failed_func.sh $startdir/pkg/usr/bin/failed_func.sh + mkdir -p $startdir/pkg/var/log/func +} diff --git a/abs/mv-core/func/certmaster.conf b/abs/mv-core/func/certmaster.conf new file mode 100644 index 0000000..075d81f --- /dev/null +++ b/abs/mv-core/func/certmaster.conf @@ -0,0 +1,7 @@ +[main] +listen_addr = +cadir = /etc/pki/func/ca +certroot = /data/srv/func/certmaster/certs +csrroot = /data/srv/func/certmaster/csrs +autosign = yes + diff --git a/abs/mv-core/func/failed_func.sh b/abs/mv-core/func/failed_func.sh new file mode 100755 index 0000000..2ec4da7 --- /dev/null +++ b/abs/mv-core/func/failed_func.sh @@ -0,0 +1,14 @@ +. /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/func-0.13.tar.gz b/abs/mv-core/func/func-0.13.tar.gz new file mode 100644 index 0000000..76b6c82 Binary files /dev/null and b/abs/mv-core/func/func-0.13.tar.gz differ diff --git a/abs/mv-core/func/func.install b/abs/mv-core/func/func.install new file mode 100755 index 0000000..a1d42f8 --- /dev/null +++ b/abs/mv-core/func/func.install @@ -0,0 +1,49 @@ +# 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 +} + +# arg 1: the new package version +post_install() { + if [ ! -e /etc/cron.tenminutes ] + then + mkdir /etc/cron.tenminutes + fi + + ln -s /usr/bin/failed_func.sh /etc/cron.tenminutes/failed_func.sh + + + +} + +# 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 new file mode 100644 index 0000000..627e04b --- /dev/null +++ b/abs/mv-core/func/minion.conf @@ -0,0 +1,8 @@ +# configuration for minions + +[main] +log_level = DEBUG +certmaster = +cert_dir = /etc/pki/func +acl_dir = /etc/func/minion-acl.d + diff --git a/abs/mv-core/func/pacman.py b/abs/mv-core/func/pacman.py new file mode 100644 index 0000000..c1d8d9d --- /dev/null +++ b/abs/mv-core/func/pacman.py @@ -0,0 +1,40 @@ +#!/usr/bin/python + + +# other modules +import sub_process + +# our modules +from modules import func_module + +# ================================= + +class pacman(func_module.FuncModule): + def __init__(self): + self.methods = { + "update_system" : self.update_system, + "pkgversion" : self.pkgversion, + } + func_module.FuncModule.__init__(self) + + 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) + + +methods = pacman() +register_rpc = methods.register_rpc diff --git a/abs/mv-core/func/power.py b/abs/mv-core/func/power.py new file mode 100644 index 0000000..fd847e7 --- /dev/null +++ b/abs/mv-core/func/power.py @@ -0,0 +1,58 @@ +#!/usr/bin/python + +## +## Grabs status from SMART to see if your hard drives are ok +## Returns in the format of (return code, [line1, line2, line3,...]) +## +## Copyright 2007, Red Hat, Inc +## Michael DeHaan +## +## This software may be freely redistributed under the terms of the GNU +## general public license. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +## + +# other modules +import sub_process + +# our modules +from modules import func_module + +# ================================= + +class power(func_module.FuncModule): + def __init__(self): + self.methods = { + "poweroff" : self.poweroff, + "reboot" : self.reboot, + } + func_module.FuncModule.__init__(self) + + def poweroff(self,flags=""): + """ + Returns a struct of hardware information. By default, this pulls down + all of the devices. If you don't care about them, set with_devices to + False. + """ + + flags.replace(";","") # prevent stupidity + + #cmd = sub_process.Popen("/sbin/poweroff %s" % flags,stdout=sub_process.PIPE,shell=True) + cmd = sub_process.Popen("/sbin/poweroff") + data = cmd.communicate()[0] + + results = ['poweroff'] + return (cmd.returncode, results) + + def reboot(self,flags=""): + cmd=sub_process.Popen('/sbin/reboot') + data = cmd.communicate()[0] + results = ['rebooting'] + + return (cmd.returncode, results) + +methods = power() +register_rpc = methods.register_rpc diff --git a/abs/mv-core/ghosd/PKGBUILD b/abs/mv-core/ghosd/PKGBUILD new file mode 100755 index 0000000..e954ef9 --- /dev/null +++ b/abs/mv-core/ghosd/PKGBUILD @@ -0,0 +1,33 @@ +pkgname=ghosd +pkgver=0.0.1 +pkgrel=18 +pkgdesc="notification program like xosd" +depends=('cairo' 'perl' 'pango') +makedepends=('pkgconfig') +arch=('i686') +source=(osdClient.pl osdServer.config osdServer.pl green800.png red800.png blue800.png yellow800.png 'grey800.png') + + +build() { + cd $startdir/src + cp -rp $startdir/$pkgname-$pkgver . + cd $startdir/src/$pkgname-$pkgver + make distclean + make clean + ./configure --prefix=/usr --disable-shared + make || return 1 + make prefix=$startdir/pkg/usr install + #install -D -m755 ./examples/.libs/image $startdir/pkg/usr/bin/imageGhosd + install -D -m755 ./examples/image $startdir/pkg/usr/bin/imageGhosd + + cd $startdir/src + install -D -m755 osdClient.pl $startdir/pkg/usr/bin/osdClient.pl + install -D -m755 osdServer.pl $startdir/pkg/usr/bin/osdServer.pl + install -D -m755 osdServer.config $startdir/pkg/etc/osdServer.config + install -D -m755 green800.png $startdir/pkg/usr/share/green800.png + install -D -m755 red800.png $startdir/pkg/usr/share/red800.png + install -D -m755 blue800.png $startdir/pkg/usr/share/blue800.png + install -D -m755 yellow800.png $startdir/pkg/usr/share/yellow800.png + install -D -m755 grey800.png $startdir/pkg/usr/share/grey800.png +} + diff --git a/abs/mv-core/ghosd/blue800.png b/abs/mv-core/ghosd/blue800.png new file mode 100644 index 0000000..7b1b914 Binary files /dev/null and b/abs/mv-core/ghosd/blue800.png differ diff --git a/abs/mv-core/ghosd/gh800.png b/abs/mv-core/ghosd/gh800.png new file mode 100755 index 0000000..b0750d0 Binary files /dev/null and b/abs/mv-core/ghosd/gh800.png differ diff --git a/abs/mv-core/ghosd/green-800.png b/abs/mv-core/ghosd/green-800.png new file mode 100644 index 0000000..b1cd057 Binary files /dev/null and b/abs/mv-core/ghosd/green-800.png differ diff --git a/abs/mv-core/ghosd/green800.png b/abs/mv-core/ghosd/green800.png new file mode 100644 index 0000000..b0750d0 Binary files /dev/null and b/abs/mv-core/ghosd/green800.png differ diff --git a/abs/mv-core/ghosd/grey800.png b/abs/mv-core/ghosd/grey800.png new file mode 100644 index 0000000..141c203 Binary files /dev/null and b/abs/mv-core/ghosd/grey800.png differ diff --git a/abs/mv-core/ghosd/image.c b/abs/mv-core/ghosd/image.c new file mode 100644 index 0000000..cd5dadd --- /dev/null +++ b/abs/mv-core/ghosd/image.c @@ -0,0 +1,97 @@ +/* ghosd -- OSD with fake transparency, cairo, and pango. + * Copyright (C) 2006 Evan Martin + */ + +#include +#include +#include +#include +#include + +#include "example-shared.h" + +#define MARGIN 10 +#define RADIUS 20 +#define WIDTH 185 +#define HEIGHT 220 +char displayText[200] = "default message"; + +static void +render(Ghosd *ghosd, cairo_t *cr, void* data) { + cairo_surface_t* image = data; + const int width = cairo_image_surface_get_width(image); + const int height = cairo_image_surface_get_height(image); + + cairo_set_source_rgba(cr, 0, 0, 0, 0.5); + cairo_new_path(cr); + example_round_rect(cr, 0, 0, width+(2*MARGIN), height+(2*MARGIN), RADIUS); + cairo_fill(cr); + + cairo_save(cr); + cairo_set_source_surface(cr, image, MARGIN, MARGIN); + + + + + cairo_paint_with_alpha(cr, 0.9); + cairo_restore(cr); +cairo_select_font_face (cr, "Sans", CAIRO_FONT_SLANT_NORMAL, + CAIRO_FONT_WEIGHT_BOLD); +cairo_set_font_size (cr, 90.0); + +// cairo_move_to (cr, 10.0, 135.0); +// cairo_show_text (cr, "Hello"); + +cairo_move_to (cr, 70.0, 165.0); +cairo_text_path (cr, displayText); +cairo_set_source_rgb (cr, 1.5, 1.5, 1); +cairo_fill_preserve (cr); +cairo_set_source_rgb (cr, 0, 0, 0); +cairo_set_line_width (cr, 2.56); +cairo_stroke (cr); +} + +int main(int argc, char* argv[]) { + //g_type_init(); + + char *filename = NULL; + GOptionEntry options[] = { + { "image", 'i', G_OPTION_FLAG_IN_MAIN, G_OPTION_ARG_STRING, + (gpointer)&filename, "image to display", "PATH" }, + { NULL } + }; + GOptionGroup *group = g_option_group_new("image", "Image Options", "image help", + NULL, NULL); + g_option_group_add_entries(group, options); + example_options_parse(&argc, &argv, group, NULL); + + if (filename == NULL) { + printf("must specify image with -i flag.\n" + "try e.g. /usr/share/pixmaps/gnome-logo-large.png\n"); + return 1; + } + + if( argc == 2 ) + { + sprintf(displayText, argv[1]); + + } + + + Ghosd *ghosd; + cairo_surface_t* image = cairo_image_surface_create_from_png(filename); + const int width = cairo_image_surface_get_width(image); + const int height = cairo_image_surface_get_height(image); + + ghosd = ghosd_new(); + ghosd_set_transparent(ghosd, opts.transparent); + ghosd_set_position(ghosd, opts.x, opts.y, + width+(2*MARGIN), height+(2*MARGIN)); + ghosd_set_render(ghosd, render, image); + + ghosd_flash(ghosd, 1300, 6500); + + return 0; +} + +/* vim: set ts=2 sw=2 et cino=(0 : */ diff --git a/abs/mv-core/ghosd/osdClient.pl b/abs/mv-core/ghosd/osdClient.pl new file mode 100755 index 0000000..06fc381 --- /dev/null +++ b/abs/mv-core/ghosd/osdClient.pl @@ -0,0 +1,25 @@ +#!/usr/bin/perl -w +# osdClient.pl - send simple client text to server + +use strict; +use IO::Socket::INET; +use POSIX qw(F_GETFL F_SETFL O_NONBLOCK); +my $sock = ""; + +if( $#ARGV != 2 ){ die "specify a ip, port, text string" } + +eval +{ + $sock = IO::Socket::INET->new( + PeerAddr => $ARGV[0], + PeerPort => $ARGV[1]) || die "can't set it up $!"; + + $sock->blocking(0) +}; + +if( $@ =~ /socket/i ) +{ + print "die in record retrieval socket setup with $@"; +} + +print $sock "$ARGV[2] \n"; diff --git a/abs/mv-core/ghosd/osdServer.config b/abs/mv-core/ghosd/osdServer.config new file mode 100644 index 0000000..915cef9 --- /dev/null +++ b/abs/mv-core/ghosd/osdServer.config @@ -0,0 +1,6 @@ +image _#_ ALT _#_ /usr/share/red800.png -x -0 -y -450 75 90 1 1 1 50 900 6000 +image _#_ SYS _#_ /usr/share/blue800.png -x -0 -y -450 75 90 1 1 1 50 900 6000 +image _#_ PHN _#_ /usr/share/yellow800.png -x -0 -y -450 75 90 1 1 1 50 900 6000 +image _#_ PH2 _#_ /usr/share/yellow800.png -x -0 -y 450 75 90 1 1 1 50 900 6000 +image _#_ OTH _#_ /usr/share/grey800.png -x -0 -y -450 75 90 1 1 1 50 900 6000 +image _#_ NFO _#_ /usr/share/green800.png -x -0 -y -450 75 90 1 1 1 50 900 6000 diff --git a/abs/mv-core/ghosd/osdServer.pl b/abs/mv-core/ghosd/osdServer.pl new file mode 100755 index 0000000..8cd62b7 --- /dev/null +++ b/abs/mv-core/ghosd/osdServer.pl @@ -0,0 +1,189 @@ +#!/usr/bin/perl -w +# osdServer.pl - process incoming text events based on keyword matching and +# display using Ghosd +use strict; +use FileHandle; +use Socket; +use Thread; +use Config; +use Thread qw(async); + +if( @ARGV != 1 ){ die "specify a port to listen on " } +my %osdHash = (); +my $proto = ""; +my $port = ""; +my $port1 = ""; +my $sockAddr = ""; +my $sockAddr1= ""; +my $fullCmd = ""; +my $fullCmd1 = ""; + +# readKeyWordFile reads type, keywords, (text/image) parameters +# text parameters: +# X coordinate, Y coordinate, red, green, blue, font size, fade In, fade Out +# image parameters: +# image filename, X coordinate, Y coordinate +# osdServer.confg format is: type _#_ keywords _#_ osd parameters +sub readOsdFile +{ + open(OSDFILE,"/etc/osdServer.config") or die "no osdServer.config file: $!"; + + while(){ + + # ignore comment lines + if( !/^#/ ){ + chomp($_); + my @arrLine = split "_#_"; + $arrLine[0] =~ s/ //g; + $osdHash{ lc($arrLine[0]) }{ $arrLine[1] } = $arrLine[2]; + }#if not a comment line + + }#for each line in file + + close(OSDFILE); + +}#readOsdFile + +sub matchWords +{ + my $msgString = $_[0]; + my $type = $_[1]; +# print "msgstring $msgString \n"; + + # print "type $type\n " ; + # for the type specified + for my $kwList ( keys %{ $osdHash{$type} } ) + { + # for each word + for my $checkWord ( split " ", $kwList ) + { + $checkWord =~ s/ //g; + if( $msgString =~ /$checkWord/i ) + { + if( $type eq "text" ) + { + $fullCmd .= qq{./text '$msgString' $osdHash{text}{$kwList} &}; + + #print "$fullCmd\n"; + }else + { + my @realstring = split(/:::/, $msgString); + print "$realstring[0] \n"; + $fullCmd .= qq{/usr/bin/imageGhosd -i $osdHash{image}{$kwList} '$realstring[0]' &}; +# print "full $fullCmd\n"; + #print "msgstring- $msgString \n"; + } + }#if matching word + }#for each check word + }#for each key word list + +}#checkText + +sub matchWords1 +{ + my $msgString = $_[0]; + my $type = $_[1]; +# print "msgstring $msgString \n"; + print "Here ia m" ; + # print "type $type\n " ; + # for the type specified + for my $kwList ( keys %{ $osdHash{$type} } ) + { + # for each word + for my $checkWord ( split " ", $kwList ) + { + $checkWord =~ s/ //g; + if( $msgString =~ /$checkWord/i ) + { + if( $type eq "text" ) + { + $fullCmd1 .= qq{./text '$msgString' $osdHash{text}{$kwList} &}; + + #print "$fullCmd\n"; + }else + { + my @realstring = split(/:::/, $msgString); + print "$realstring[0] \n"; + $fullCmd1 .= qq{/usr/bin/imageGhosd -i $osdHash{image}{$kwList} '$realstring[0]' &}; + print "full $fullCmd1\n"; + #print "msgstring- $msgString \n"; + } + }#if matching word + }#for each check word + }#for each key word list +} + +sub sub1 { + while( 1 ) + { + my $acceptSock1 = accept(HANDLER, SERVER1) or die "accept: $!\n"; + my($acceptPort1, $acceptIpAddr) = sockaddr_in($acceptSock1); + + autoflush HANDLER 1; + while(my $msgString1 = ) + { + chomp($msgString1); + matchWords1($msgString1,"text"); + matchWords1($msgString1,"image"); + + $fullCmd1 = `$fullCmd1` unless $fullCmd1 eq ""; + $fullCmd1 = ""; + }#while handler + + close HANDLER or die "close HANDLER: $!\n"; + }#while forever +} + +# begin main program + +readOsdFile(); + +$proto = getprotobyname('tcp'); +socket(SERVER, PF_INET, SOCK_STREAM, $proto) or die "socket: $!\n"; +socket(SERVER1, PF_INET, SOCK_STREAM, $proto) or die "socket: $!\n"; + +$port = $ARGV[0]; +$port1 = $port + 1; +$port1 = 5001; + +$sockAddr = sockaddr_in($port, INADDR_ANY); +$sockAddr1 = sockaddr_in($port1, INADDR_ANY); + +bind(SERVER, $sockAddr) or die "bind: $!\n"; +bind(SERVER1, $sockAddr1) or die "bind: $!\n"; + +listen(SERVER, SOMAXCONN) or die "listen: $!\n"; +listen(SERVER1, SOMAXCONN) or die "listen: $!\n"; + + + +$Config{usethreads} or die "Recompile Perl with threads to run this program."; + +my $thr = threads->new(\&sub1); + + + + +#listen foreve + +while( 1 ) +{ + my $acceptSock = accept(HANDLER, SERVER) or die "accept: $!\n"; + my($acceptPort, $acceptIpAddr) = sockaddr_in($acceptSock); + + autoflush HANDLER 1; + while(my $msgString = ) + { + chomp($msgString); + + matchWords($msgString,"text"); + matchWords($msgString,"image"); + + $fullCmd = `$fullCmd` unless $fullCmd eq ""; + $fullCmd = ""; + }#while handler + + close HANDLER or die "close HANDLER: $!\n"; + +}#while forever + diff --git a/abs/mv-core/ghosd/red800.png b/abs/mv-core/ghosd/red800.png new file mode 100644 index 0000000..7c7ae5c Binary files /dev/null and b/abs/mv-core/ghosd/red800.png differ diff --git a/abs/mv-core/ghosd/yellow800.png b/abs/mv-core/ghosd/yellow800.png new file mode 100644 index 0000000..f6bfae1 Binary files /dev/null and b/abs/mv-core/ghosd/yellow800.png differ diff --git a/abs/mv-core/graphviz/PKGBUILD b/abs/mv-core/graphviz/PKGBUILD new file mode 100644 index 0000000..c979153 --- /dev/null +++ b/abs/mv-core/graphviz/PKGBUILD @@ -0,0 +1,21 @@ +pkgname=graphviz +pkgver=2.20.2 +pkgrel=1 +pkgdesc="Graph Visualization Software" +arch=(i686) +url="http://www.graphviz.org/About.php" +license=('CPL') +install=(graphviz.install) +depends=(cairo expat fontconfig gettext glib2 libpng pango zlib) +makedepends=(ghostscript swig ) +source=(http://www.graphviz.org/pub/graphviz/ARCHIVE/$pkgname-$pkgver.tar.gz) + +build() { + cd $startdir/src/$pkgname-$pkgver + make clean + ./configure --prefix=/usr --disable-perl + make || return 1 + make DESTDIR=$startdir/pkg install + } + +#disabled perl diff --git a/abs/mv-core/graphviz/graphviz.install b/abs/mv-core/graphviz/graphviz.install new file mode 100755 index 0000000..aba02b8 --- /dev/null +++ b/abs/mv-core/graphviz/graphviz.install @@ -0,0 +1,39 @@ +# 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 +} + +# arg 1: the new package version +post_install() { +/usr/bin/dot -cv +/usr/bin/dot -c +} + +# 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() { + /bin/true +} + +# 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/iguanair/PKGBUILD b/abs/mv-core/iguanair/PKGBUILD new file mode 100755 index 0000000..64b8048 --- /dev/null +++ b/abs/mv-core/iguanair/PKGBUILD @@ -0,0 +1,25 @@ +pkgname=iguanaIR +#pkgver=0.8.0.20061009 +pkgver=0.95 +pkgrel=3 +# leaving kernver dynamic ensures compatibility with srcpac +_kernver=2.6.24-STB +pkgdesc="Linux Infrared Remote Control usb from iguanaworks" +arch=(i686 x86_64) +depends=('swig' ) +source=(http://iguanaworks.net/downloads/iguanaIR-0.95.tar.bz2) +url="http://iguanaworks.net" +#install=$pkgname.install + + +build() { + # configure + cd $startdir/src/$pkgname-$pkgver || return 1 + ./configure + make || return 1 + make PREFIX=$startdir/pkg/usr DESTDIR=$startdir/pkg install || return 1 + mkdir $startdir/pkg/usr/bin/ + ls -la ig* + #cp -f igclient $startdir/pkg/usr/bin/ + #cp -f igd* $startdir/pkg/usr/bin/ +} diff --git a/abs/mv-core/keylaunch/PKGBUILD b/abs/mv-core/keylaunch/PKGBUILD new file mode 100644 index 0000000..f900c7a --- /dev/null +++ b/abs/mv-core/keylaunch/PKGBUILD @@ -0,0 +1,17 @@ +pkgname=keylaunch +pkgver=1.3.3 +pkgrel=10 +arch=('i686') +pkgdesc="KeyLaunch is a small utility for binding commands to a hot key. " +url="http://www.oroborus.org/" +depends=(glibc) +source=(http://www.oroborus.org/debian/dists/sid/main/source/x11/keylaunch_1.3.3.tar.gz example_rc) +install=keylaunch.install + +build() { + cd $startdir/src/$pkgname-$pkgver + ./configure --prefix=/usr + make + make DESTDIR=$startdir/pkg install + install -D -m0755 ../example_rc $startdir/pkg/etc/keylaunchrc +} diff --git a/abs/mv-core/keylaunch/example_rc b/abs/mv-core/keylaunch/example_rc new file mode 100644 index 0000000..ed6519e --- /dev/null +++ b/abs/mv-core/keylaunch/example_rc @@ -0,0 +1,19 @@ +# Copy to $HOME/.keylaunchrc +# +# Format: +# key=...KeyName:Command +# +# ... No modifier +# *.. Shift +# .*. Ctrl +# ..* Alt + +#key=..*Return:xterm +key=.*.Return:rxvt +key=*..Return:terminal +key=..*S:sudo /usr/local/bin/mythtv-setup +key=.**U:killall -9 unclutter +key=..*h:/usr/MythVantage/bin/mythinstall -h +key=..*1:/usr/MythVantage/bin/mythbeselect -stop +key=..*2:/usr/MythVantage/bin/mythbeselect -start +key=..*3:/usr/MythVantage/bin/mythbeselect -restart diff --git a/abs/mv-core/keylaunch/keylaunch.install b/abs/mv-core/keylaunch/keylaunch.install new file mode 100755 index 0000000..ade2c7b --- /dev/null +++ b/abs/mv-core/keylaunch/keylaunch.install @@ -0,0 +1,40 @@ +# 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 +} + +# arg 1: the new package version +post_install() { + ln -s /etc/keylaunchrc /data/home/mythtv/.keylaunchrc + +} + +# 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/lcdproc/PKGBUILD b/abs/mv-core/lcdproc/PKGBUILD new file mode 100755 index 0000000..cb536e9 --- /dev/null +++ b/abs/mv-core/lcdproc/PKGBUILD @@ -0,0 +1,25 @@ +pkgname=lcdproc +#pkgver=0.5.2 +pkgver=20080326 +pkgrel=7 +pkgdesc="LCDproc is a utility to drive one or more LCD (and LCD-like) devices attached to a host." +url="http://lcdproc.omnipotent.net/" +license="GPL" +depends=(libusb xosd) +backup=(etc/LCDd.conf) +arch=('i686') +#source=(http://switch.dl.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz lcdd mythvantage.patch) +source=(lcdproc-CVS-current.tar.gz lcdd mythvantage.patch) + +build() { + #cd $startdir/src/$pkgname-$pkgver + cd $startdir/src/$pkgname-CVS-current-$pkgver +# lcdproc-CVS-current-20080326 + patch -p0 < ../mythvantage.patch + ./configure --prefix=/usr --sysconfdir=/etc --enable-libusb --enable-drivers=all + make + make DESTDIR=$startdir/pkg install + sed -e "s/server\/drivers\//\/usr\/lib\/lcdproc\//g" LCDd.conf > $startdir/pkg/etc/LCDd.conf + mkdir -p $startdir/pkg/etc/rc.d + install -m 755 $startdir/src/lcdd $startdir/pkg/etc/rc.d +} diff --git a/abs/mv-core/lcdproc/lcdd b/abs/mv-core/lcdproc/lcdd new file mode 100755 index 0000000..fa3547a --- /dev/null +++ b/abs/mv-core/lcdproc/lcdd @@ -0,0 +1,38 @@ +#!/bin/bash + +. /etc/rc.conf +. /etc/rc.d/functions + +PID=`pidof -o %PPID /usr/sbin/LCDd` +case "$1" in + start) + stat_busy "Starting LCDd daemon" + [ -z "$PID" ] && /usr/sbin/LCDd -c /etc/LCDd.conf + if [ $? -gt 0 ]; then + stat_fail + else + echo $PID > /var/run/lcdd.pid + add_daemon lcdd + stat_done + fi + ;; + stop) + stat_busy "Stopping ProFTPd daemon" + [ ! -z "$PID" ] && kill $PID &> /dev/null + if [ $? -gt 0 ]; then + stat_fail + else + rm /var/run/lcdd.pid + rm_daemon lcdd + stat_done + fi + ;; + restart) + $0 stop + sleep 1 + $0 start + ;; + *) + echo "usage: $0 {start|stop|restart}" +esac +exit 0 diff --git a/abs/mv-core/lcdproc/lcdproc-CVS-current.tar.gz b/abs/mv-core/lcdproc/lcdproc-CVS-current.tar.gz new file mode 100644 index 0000000..e0f6df4 Binary files /dev/null and b/abs/mv-core/lcdproc/lcdproc-CVS-current.tar.gz differ diff --git a/abs/mv-core/lcdproc/mythvantage.patch b/abs/mv-core/lcdproc/mythvantage.patch new file mode 100644 index 0000000..70feff7 --- /dev/null +++ b/abs/mv-core/lcdproc/mythvantage.patch @@ -0,0 +1,14 @@ +--- server/serverscreens.c.orig 2007-09-17 18:35:57.000000000 +0000 ++++ server/serverscreens.c 2007-09-17 18:36:32.000000000 +0000 +@@ -167,9 +167,9 @@ + + char *top = "Thanks for using"; + #ifdef LINUX +- char *low = "LCDproc & Linux!"; ++ char *low = "MythVantage"; + #else +- char *low = " LCDproc! "; ++ char *low = " MythVantage "; + #endif + + drivers_string(1+xoffs, 1+yoffs, top); diff --git a/abs/mv-core/lighttpd/PKGBUILD b/abs/mv-core/lighttpd/PKGBUILD new file mode 100755 index 0000000..1f2d7df --- /dev/null +++ b/abs/mv-core/lighttpd/PKGBUILD @@ -0,0 +1,49 @@ +pkgname=lighttpd +pkgver=1.4.19 +pkgrel=25 +pkgdesc="lighttpd is a secure, fast, compliant and very flexible web-server" +arch=(i686 x86_64) +url="http://www.lighttpd.net/" +depends=('pcre' 'openssl' 'zlib' 'bzip2' 'attr') +makedepends=('fcgi' 'libmysqlclient' 'lua' 'gdbm' \ + 'libxml2' 'vim' 'pkgconfig' 'sqlite3') +backup=('etc/lighttpd/lighttpd.conf' 'etc/logrotate.d/lighttpd' \ + 'etc/conf.d/lighttpd' 'etc/conf.d/spawn-php' \ + 'home/lighttpd/html/index.html') +options=('!libtool') +install=$pkgname.install +source=(http://www.lighttpd.net/download/$pkgname-$pkgver.tar.gz \ + index.html $pkgname.rc.d $pkgname.conf.d $pkgname.logrotate.d \ + spawn-php.rc.d spawn-php.conf.d tweakconf.vim lighttpd.conf) +md5sums=('8f6756452138f5da384251f849b329f2' '85593eb67b928fec79b1efb3fa3cce84'\ + '6d05e499e47425e99bf809c88bd4969d' '14565fa5d30c60941190ceb32b1b551f'\ + 'a8c31344b90328c5b751d965d79c5047' 'df940132363030eafcf7009a5322048f'\ + '1ba657b113b7e473fb301631a7e2e1a4' 'e799c48f7cee46db089f90030cec935a') + +build() { + cd $startdir/src/$pkgname-$pkgver + ./configure --prefix=/usr --libdir=/usr/lib/lighttpd \ + --with-gdbm --with-lua --with-memcache \ + --with-openssl=/usr/include/openssl \ + --with-mysql=/usr/bin/mysql_config \ + --with-webdav-props --with-attr \ + --without-fam + make || return 1 + make DESTDIR=$startdir/pkg install || return 1 + + # install configuration scripts and daemons + #install -Dm644 ../index.html $startdir/pkg/data/srv/httpd/htdocs/index.html + install -Dm755 ../lighttpd.rc.d $startdir/pkg/etc/rc.d/lighttpd + install -Dm644 ../lighttpd.conf.d $startdir/pkg/etc/conf.d/lighttpd + install -Dm644 ../lighttpd.logrotate.d $startdir/pkg/etc/logrotate.d/lighttpd + install -Dm755 ../spawn-php.rc.d $startdir/pkg/etc/rc.d/spawn-php + install -Dm644 ../spawn-php.conf.d $startdir/pkg/etc/conf.d/spawn-php + + # show some mercy on docfiles +# mkdir -p $startdir/pkg/usr/share/lighttpd +# install -m644 doc/*.txt $startdir/pkg/usr/share/lighttpd + + install -Dm644 doc/lighttpd.conf $startdir/pkg/etc/lighttpd/lighttpd.conf + ex $startdir/pkg/etc/lighttpd/lighttpd.conf < $startdir/src/tweakconf.vim + install -Dm644 $startdir/src/lighttpd.conf $startdir/pkg/etc/lighttpd/lighttpd.conf +} diff --git a/abs/mv-core/lighttpd/index.html b/abs/mv-core/lighttpd/index.html new file mode 100644 index 0000000..22ea5d1 --- /dev/null +++ b/abs/mv-core/lighttpd/index.html @@ -0,0 +1,15 @@ + +lighttpd Test Page + + +
+ + Arch Linux + +

+ This is a test page for the lighttpd Web Server.
+
+ + + + diff --git a/abs/mv-core/lighttpd/lighttpd.conf b/abs/mv-core/lighttpd/lighttpd.conf new file mode 100755 index 0000000..45fccf6 --- /dev/null +++ b/abs/mv-core/lighttpd/lighttpd.conf @@ -0,0 +1,369 @@ +# lighttpd configuration file +# +# use a it as base for lighttpd 1.0.0 and above +# +# i'm th enew file + +############ Options you really have to take care of #################### + +## modules to load +# at least mod_access and mod_accesslog should be loaded +# all other module should only be loaded if really neccesary +# - saves some time +# - saves memory +server.modules = ( + "mod_rewrite", +# "mod_redirect", + "mod_alias", + "mod_access", +# "mod_cml", +# "mod_trigger_b4_dl", +# "mod_auth", + "mod_status", + "mod_setenv", + "mod_fastcgi", +# "mod_proxy", +# "mod_simple_vhost", +# "mod_evhost", +# "mod_userdir", + "mod_cgi", +# "mod_compress", + "mod_ssi", +# "mod_usertrack", +# "mod_expire", +# "mod_secdownload", +# "mod_rrdtool", + "mod_accesslog" ) + +## a static document-root, for virtual-hosting take look at the +## server.virtual-* options +server.document-root = "/data/srv/httpd/htdocs" + +## where to send error-messages to +#server.errorlog = "/var/log/lighttpd/error.log" +server.errorlog-use-syslog = "enable" +#do not log images +$HTTP["url"] !~ "\.(jpe?g|png|gif|css)" { accesslog.use-syslog = "enable" } + + + + +# files to check for if .../ is requested +index-file.names = ( "index.php", "index.html", + "index.htm", "default.htm","mythweb.php") + +# mimetype mapping +mimetype.assign = ( + ".pdf" => "application/pdf", + ".sig" => "application/pgp-signature", + ".spl" => "application/futuresplash", + ".class" => "application/octet-stream", + ".ps" => "application/postscript", + ".torrent" => "application/x-bittorrent", + ".dvi" => "application/x-dvi", + ".gz" => "application/x-gzip", + ".pac" => "application/x-ns-proxy-autoconfig", + ".swf" => "application/x-shockwave-flash", + ".tar.gz" => "application/x-tgz", + ".tgz" => "application/x-tgz", + ".tar" => "application/x-tar", + ".zip" => "application/zip", + ".mp3" => "audio/mpeg", + ".m3u" => "audio/x-mpegurl", + ".wma" => "audio/x-ms-wma", + ".wax" => "audio/x-ms-wax", + ".ogg" => "application/ogg", + ".wav" => "audio/x-wav", + ".gif" => "image/gif", + ".jpg" => "image/jpeg", + ".jpeg" => "image/jpeg", + ".png" => "image/png", + ".xbm" => "image/x-xbitmap", + ".xpm" => "image/x-xpixmap", + ".xwd" => "image/x-xwindowdump", + ".css" => "text/css", + ".html" => "text/html", + ".htm" => "text/html", + ".js" => "text/javascript", + ".asc" => "text/plain", + ".c" => "text/plain", + ".cpp" => "text/plain", + ".log" => "text/plain", + ".conf" => "text/plain", + ".text" => "text/plain", + ".txt" => "text/plain", + ".dtd" => "text/xml", + ".xml" => "text/xml", + ".mpeg" => "video/mpeg", + ".mpg" => "video/mpeg", + ".mov" => "video/quicktime", + ".qt" => "video/quicktime", + ".avi" => "video/x-msvideo", + ".asf" => "video/x-ms-asf", + ".asx" => "video/x-ms-asf", + ".wmv" => "video/x-ms-wmv", + ".bz2" => "application/x-bzip", + ".tbz" => "application/x-bzip-compressed-tar", + ".tar.bz2" => "application/x-bzip-compressed-tar", + ".nuv" => "video/nuppelvideo" + ) + + +# Use the "Content-Type" extended attribute to obtain mime type if possible +mimetype.use-xattr = "enable" + + +## send a different Server: header +## be nice and keep it at lighttpd +#server.tag = "lighttpd" + +#### accesslog module +#accesslog.filename = "/var/log/lighttpd/access.log" + +## deny access the file-extensions +# +# ~ is for backupfiles from vi, emacs, joe, ... +# .inc is often used for code includes which should in general not be part +# of the document-root +url.access-deny = ( "~", ".inc" ) + +$HTTP["url"] =~ "\.pdf$" { + + + server.range-requests = "disable" +} + +######### Options that are good to be but not neccesary to be changed ####### + +## bind to port (default: 80) +#server.port = 80 + +## bind to localhost (default: all interfaces) +#server.bind = "grisu.home.kneschke.de" + +#custom handlers for mythweb and phpmyadmin +$HTTP["url"] =~ "(mythweb)" { +server.error-handler-404 = "/error/mythweb.html" +} + +$HTTP["url"] =~ "(phpMyAdmin)" { +server.error-handler-404 = "/error/phpadmin.html" +} + +$HTTP["url"] =~ "(hobbit)" { +server.error-handler-404 = "/error/hobbit.html" +} + +## error-handler for status 404 +server.error-handler-404 = "/error-handler.html" +server.errorfile-prefix = "/data/srv/httpd/htdocs/error/status-" +#server.error-handler-404 = "/error-handler.php" + +## to help the rc.scripts +server.pid-file = "/var/run/lighttpd.pid" + +alias.url = ( "/logs/" => "/var/log/" ) + + +$HTTP["url"] =~ "^/logs($|/)" { +dir-listing.activate= "enable" +dir-listing.hide-dotfiles = "enable" +dir-listing.external-css = "/frame.css" +} + + + + +###### virtual hosts +## +## If you want name-based virtual hosting add the next three settings and load +## mod_simple_vhost +## +## document-root = +## virtual-server-root + virtual-server-default-host + virtual-server-docroot +## or +## virtual-server-root + http-host + virtual-server-docroot +## +#simple-vhost.server-root = "/home/lighttpd/vhosts/" +#simple-vhost.default-host = "lighttpd.localhost" +#simple-vhost.document-root = "/pages/" +## +## Format: .html +## -> ..../status-404.html for 'File not found' +#server.errorfile-prefix = "/home/weigon/projects/lighttpd/doc/status-" + +## virtual directory listings +#server.dir-listing = "enable" + +## enable debugging +#debug.log-request-header = "enable" +#debug.log-response-header = "enable" +#debug.log-request-handling = "enable" +#debug.log-file-not-found = "enable" + +### only root can use these options +# +# chroot() to directory (default: no chroot() ) +#server.chroot = "/" + +## change uid to (default: don't care) +server.username = "nobody" + +## change uid to (default: don't care) +server.groupname = "nobody" + +#### compress module +#compress.cache-dir = "/home/lighttpd/cache/" +#compress.filetype = ("text/plain", "text/html") + +#### proxy module +## read proxy.txt for more info +#proxy.server = ( ".php" => +# ( "localhost" => +# ( +# "host" => "192.168.0.101", +# "port" => 80 +# ) +# ) +# ) + +#### fastcgi module +## read fastcgi.txt for more info +fastcgi.server = ( ".php" => + ( "localhost" => + ( + "socket" => "/tmp/php-fastcgi.socket", + "bin-path" => "/usr/bin/php-cgi", + "min-procs" => 0, + "max-procs" => 1, + "max-load-per-proc" => 1, + "idle-timeout" => 10, + # Fix PATH_INFO for PHP scripts that rely on it (like Wordpress). + "broken-scriptfilename" => "enable" + ) + ) +) + + +#the rewrite rule for mythweb + + url.rewrite = ( + "^/mythweb(/tv.*|/music.*|/stats.*|/remote.*|/video.*|/weather.*|/settings.*|/status.*|/backend_log.*)$" => "mythweb/mythweb.php/$1" + ) + + +#### CGI module +cgi.assign = ( ".pl" => "/usr/bin/perl", + ".sh" => "/bin/bash" , + ".py" => "/usr/bin/python" , + ".cgi" => "/bin/bash" ) + + + +#### SSL engine +#$SERVER["socket"] == "0.0.0.0:443" { +# ssl.engine = "enable" +# ssl.pemfile = "/home/lighttpd/ssl/server.pem" +# server.errorlog = "/var/log/lighttpd/error-ssl.log" +# accesslog.filename = "/var/log/lighttpd/access-ssl.log" +# server.document-root = "/home/lighttpd/html-ssl" +#} + + +$SERVER["socket"] == ":1337" { + server.document-root = "/data/srv/httpd/cgi/" + alias.url = ( "/templates/" => "/data/home/mythtv/templates/" ) + +} + + +#### status module +status.status-url = "/server-status" +status.config-url = "/server-config" + +#### auth module +## read authentication.txt for more info +#auth.backend = "plain" +#auth.backend.plain.userfile = "lighttpd.user" +#auth.backend.plain.groupfile = "lighttpd.group" + +#auth.backend.ldap.hostname = "localhost" +#auth.backend.ldap.base-dn = "dc=my-domain,dc=com" +#auth.backend.ldap.filter = "(uid=$)" +#auth.require = ( "/server-status" => +# ( +# "method" => "digest", +# "realm" => "download archiv", +# "require" => "user=jan" +# ), +# "/server-info" => +# ( +# "method" => "digest", +# "realm" => "download archiv", +# "require" => "valid-user" +# ) +# ) + +#### url handling modules (rewrite, redirect, access) +#url.rewrite = ( "^/$" => "/server-status" ) +#url.redirect = ( "^/wishlist/(.+)" => "http://www.123.org/$1" ) + +# +# define a pattern for the host url finding +# %% => % sign +# %0 => domain name + tld +# %1 => tld +# %2 => domain name without tld +# %3 => subdomain 1 name +# %4 => subdomain 2 name +# +#evhost.path-pattern = "/home/storage/dev/www/%3/htdocs/" + +#### expire module +#expire.url = ( "/buggy/" => "access 2 hours", "/asdhas/" => "access plus 1 seconds 2 minutes") + +#### ssi +ssi.extension = ( ".shtml" ) + +#### rrdtool +#rrdtool.binary = "/usr/bin/rrdtool" +#rrdtool.db-name = "/var/www/lighttpd.rrd" + +#### setenv +#setenv.add-request-header = ( "TRAV_ENV" => "mysql://user@host/db" ) +#setenv.add-response-header = ( "X-Secret-Message" => "42" ) +## for mod_trigger_b4_dl +# trigger-before-download.gdbm-filename = "/home/weigon/testbase/trigger.db" +# trigger-before-download.memcache-hosts = ( "127.0.0.1:11211" ) +# trigger-before-download.trigger-url = "^/trigger/" +# trigger-before-download.download-url = "^/download/" +# trigger-before-download.deny-url = "http://127.0.0.1/index.html" +# trigger-before-download.trigger-timeout = 10 + +## for mod_cml +## don't forget to add index.cml to server.indexfiles +# cml.extension = ".cml" +# cml.memcache-hosts = ( "127.0.0.1:11211" ) + +#### variable usage: +## variable name without "." is auto prefixed by "var." and becomes "var.bar" +#bar = 1 +#var.mystring = "foo" + +## integer add +#bar += 1 +## string concat, with integer cast as string, result: "www.foo1.com" +#server.name = "www." + mystring + var.bar + ".com" +## array merge +#index-file.names = (foo + ".php") + index-file.names +#index-file.names += (foo + ".php") + +#### include +#include /etc/lighttpd/lighttpd-inc.conf +## same as above if you run: "lighttpd -f /etc/lighttpd/lighttpd.conf" +#include "lighttpd-inc.conf" + +#### include_shell +#include_shell "echo var.a=1" +## the above is same as: +#var.a=1 diff --git a/abs/mv-core/lighttpd/lighttpd.conf.d b/abs/mv-core/lighttpd/lighttpd.conf.d new file mode 100644 index 0000000..5321598 --- /dev/null +++ b/abs/mv-core/lighttpd/lighttpd.conf.d @@ -0,0 +1,10 @@ +DAEMON_NAME="lighttpd" +DAEMON_CONF="/etc/lighttpd/lighttpd.conf" +DAEMON_PATH="/usr/sbin/lighttpd" + # this greps the error-log which is set in the lighttpd.conf + # override it by setting it to a fix path +DAEMON_ERRLOG=`sed -n \ + -e '/server\.errorlog/p' ${DAEMON_CONF} \ + | sed -e '/^ *#.*/d' \ + | sed -e 's/^.*"\(.*\)".*$/\1/'` +# DAEMON_ERRLOG="/var/log/lighttpd/error.log" diff --git a/abs/mv-core/lighttpd/lighttpd.install b/abs/mv-core/lighttpd/lighttpd.install new file mode 100644 index 0000000..1055e4b --- /dev/null +++ b/abs/mv-core/lighttpd/lighttpd.install @@ -0,0 +1,80 @@ +post_install() { + # set post_install message + /bin/cat << EOM + + --> This release marks a minor (NOT micro!) version change and is not 100% + --> compatible with former versions. Have a look at the new lighttpd.conf, + --> there are some changes in the index files syntax and nested conditions + --> are possible by now. Also please read the documentation in + --> /usr/share/lighttpd or on lighttpds's hompage: http://lighttpd.org + + --> for the following OPTIONAL modules (when choosen from lighttpd.conf) + --> you will need the following dependencies: + mod_webdav : libxml2, sqlite3 + mod_cml: libmemcache, lua + mod_trigger_b4_dl: libmemcache, gdbm + mod_auth.so: libldap + mod_mysql_vhost: libmysqlclient + +EOM + + # import daemon configuration file to detect lighttpd.conf location + [ -f /etc/conf.d/lighttpd ] && . /etc/conf.d/lighttpd + # some automagic dealing with the users preferences as marked in + # /etc/lighttpd/lighttpd.conf + # a simple conf-file parser to isolate the user, logfiles etc. + FILES=`sed -n -e '/accesslog\.filename/p;/server\.errorlog/p' \ + ${DAEMON_CONF} \ + | sed -e 's/^.*"\(.*\)".*$/\1/'` + DAEMON_USER=`sed -n -e '/server\.username/p' ${DAEMON_CONF} \ + | sed -e 's/^.*"\(.*\)".*$/\1/'` + DAEMON_GROUP=`sed -n -e '/server\.groupname/p' ${DAEMON_CONF} \ + | sed -e 's/^.*"\(.*\)".*$/\1/'` + DIRECTORIES=`sed -n -e '/\.cache-dir/p;/\.server-root/p' ${DAEMON_CONF} \ + | sed -e 's/^.*"\(.*\)".*$/\1/'` + DOCROOTDIRS=`sed -n -e '/server.\document-root/p' ${DAEMON_CONF} \ + | sed -e 's/^.*"\(.*\)".*$/\1/'` + CHROOT=`sed -n -e '/server\.chroot/p' ${DAEMON_CONF} \ + | sed -e '/^ *#.*$/d' \ + | sed -e 's/^.*"\(.*\)".*$/\1/'` + + touch /tmp/empty + # make sure logfiles exist + for FILE in $FILES; do + [ ! -f ${CHROOT}${FILE} ] && \ + install -Dm644 -o $DAEMON_USER -g $DAEMON_GROUP /tmp/empty ${CHROOT}${FILE} && \ + echo 'Creating file ' ${CHROOT}${FILE} + done + # make sure the lighttpd.user owns the cache dirs and vhost-root ... + for DIR in $DIRECTORIES; do + [ ! -d ${CHROOT}${DIR} ] && \ + install -dm755 -o $DAEMON_USER -g $DAEMON_GROUP ${CHROOT}${DIR} && \ + echo "Creating directory ${CHROOT}${DIR}" && \ + chown $DAEMON_USER:$DAEMON_GROUP ${CHROOT}${DIR} + done + # ... and the document roots + for DIR in $DOCROOTDIRS; do + [ ! -d ${CHROOT}${DIR} ] && \ + install -dm755 -o $DAEMON_USER -g $DAEMON_GROUP ${CHROOT}${DIR} && \ + echo "Creating directory ${CHROOT}${DIR}" + chown -R $DAEMON_USER:$DAEMON_GROUP ${CHROOT}${DIR} + done + rm -f /tmp/empty +} + +post_upgrade() { + cp /etc/lighttpd/lighttpd.conf /etc/lighttpd/lighttpd.conf.old + cp /etc/lighttpd/lighttpd.conf.pacnew /etc/lighttpd/lighttpd.conf + if [ -f /usr/bin/php ] +then + cp /etc/lighttpd/lighttpd.conf /tmp + sed -e "s/# .* \"mod_fastcgi\",/\"mod_fastcgi\"\,/g" /tmp/lighttpd.conf > /etc/lighttpd/lighttpd.conf + +fi + post_install $1 +} + +op=$1 +shift +$op $* +# vim: ft=sh ts=2 diff --git a/abs/mv-core/lighttpd/lighttpd.logrotate.d b/abs/mv-core/lighttpd/lighttpd.logrotate.d new file mode 100644 index 0000000..f31cb79 --- /dev/null +++ b/abs/mv-core/lighttpd/lighttpd.logrotate.d @@ -0,0 +1,8 @@ +/var/log/lighttpd/*log { + create 644 nobody nobody + compress + postrotate + /bin/kill -HUP `cat /var/run/lighttpd.pid 2>/dev/null` 2> /dev/null || true + endscript +} + diff --git a/abs/mv-core/lighttpd/lighttpd.rc.d b/abs/mv-core/lighttpd/lighttpd.rc.d new file mode 100644 index 0000000..245ac0a --- /dev/null +++ b/abs/mv-core/lighttpd/lighttpd.rc.d @@ -0,0 +1,39 @@ +#!/bin/bash + +# source application-specific settings +[ -f /etc/conf.d/lighttpd ] && . /etc/conf.d/lighttpd + +. /etc/rc.conf +. /etc/rc.d/functions + +PID=`pidof -o %PPID ${DAEMON_NAME}` +case "$1" in + start) + stat_busy "Starting ${DAEMON_NAME}" + [ -z "$PID" ] && ${DAEMON_PATH} -f ${DAEMON_CONF} >> $DAEMON_ERRLOG 2>&1 + if [ $? -gt 0 ]; then + stat_fail + else + add_daemon ${DAEMON_NAME} + stat_done + fi + ;; + stop) + stat_busy "Stopping ${DAEMON_NAME}" + [ ! -z "$PID" ] && kill $PID &>/dev/null + if [ $? -gt 0 ]; then + stat_fail + else + rm_daemon ${DAEMON_NAME} + stat_done + fi + ;; + restart) + $0 stop + sleep 1 + $0 start + ;; + *) + echo "usage: $0 {start|stop|restart}" +esac +exit 0 diff --git a/abs/mv-core/lighttpd/spawn-php.conf.d b/abs/mv-core/lighttpd/spawn-php.conf.d new file mode 100644 index 0000000..4a2810d --- /dev/null +++ b/abs/mv-core/lighttpd/spawn-php.conf.d @@ -0,0 +1,33 @@ +## ABSOLUTE path to the spawn-fcgi binary +SPAWNFCGI="/usr/bin/spawn-fcgi" + +## ABSOLUTE path to the PHP binary +FCGIPROGRAM="/usr/bin/php-cgi" + +## In preparation of a possible python/perl/etc compliance +SPAWN_DAEMON_NAME="spawn-php" + +## bind to tcp-port on localhost +FCGIPORT="1066" + +## If uncommented, socket will be used instead of port +#FCGISOCKET="/tmp/php-fastcgi.socket" + +## number of PHP childs to spawn +PHP_FCGI_CHILDREN=6 + +## number of request server by a single php-process until is will be restarted +PHP_FCGI_MAX_REQUESTS=1000 + +## IP adresses where PHP should access server connections from +FCGI_WEB_SERVER_ADDRS="127.0.0.1" + +# allowed environment variables sperated by spaces +ALLOWED_ENV="ORACLE_HOME PATH USER" + +## if the daemon script is run as root switch to the following user +USERID=nobody +GROUPID=nobody + +## cage the php process to the following dir (chrootdir) +#CHROOTDIR="/home/lighttpd/html" diff --git a/abs/mv-core/lighttpd/spawn-php.rc.d b/abs/mv-core/lighttpd/spawn-php.rc.d new file mode 100755 index 0000000..cbda262 --- /dev/null +++ b/abs/mv-core/lighttpd/spawn-php.rc.d @@ -0,0 +1,67 @@ +#!/bin/bash + +# source application-specific settings +[ -f /etc/conf.d/spawn-php ] && . /etc/conf.d/spawn-php + +. /etc/rc.conf +. /etc/rc.d/functions + + +PID=`pidof -o %PPID ${FCGIPROGRAM}` +case "$1" in + start) + stat_busy "Starting ${SPAWN_DAEMON_NAME}" + if [ -z "$PID" ]; then + ################## no config below this line + if test x$PHP_FCGI_CHILDREN = x; then + PHP_FCGI_CHILDREN=5 + fi + export PHP_FCGI_MAX_REQUESTS + export FCGI_WEB_SERVER_ADDRS + + ALLOWED_ENV="$ALLOWED_ENV PHP_FCGI_MAX_REQUESTS FCGI_WEB_SERVER_ADDRS" + + # negotiate the parameters for the php-cgi spawn program + EX="$SPAWNFCGI -f $FCGIPROGRAM -C $PHP_FCGI_CHILDREN" + if [ -z "$FCGISOCKET" ]; then + EX="$EX -p $FCGIPORT" + else + EX="$EX -s $FCGISOCKET" + fi + if test x$UID = x0; then + EX="$EX -u $USERID -g $GROUPID" + fi + if [ ! -z "$CHROOTDIR" ]; then + EX="$EX -c $CHROOTDIR" + fi + + # copy the allowed environment variables + E= + for i in $ALLOWED_ENV; do + E="$E $i=${!i}" + done + # clean environment and set up a new one + env - $E $EX > /dev/null + add_daemon ${SPAWN_DAEMON_NAME} + stat_done + fi + ;; + stop) + stat_busy "Stopping ${SPAWN_DAEMON_NAME}" + if [ ! -z "$PID" ]; then + killall ${FCGIPROGRAM} + rm_daemon ${SPAWN_DAEMON_NAME} + stat_done + fi + ;; + restart) + $0 stop + sleep 2 + $0 start + ;; + *) + echo "usage: $0 {start|stop|restart}" +esac +exit 0 + + diff --git a/abs/mv-core/lighttpd/ssl_fix.diff b/abs/mv-core/lighttpd/ssl_fix.diff new file mode 100644 index 0000000..7031a48 --- /dev/null +++ b/abs/mv-core/lighttpd/ssl_fix.diff @@ -0,0 +1,10 @@ +--- lighttpd-1.3.13/src/connections.c 2005-03-03 15:36:51.000000000 -0800 ++++ lighttpd-1.3.13fix/src/connections.c 2005-05-12 02:33:37.124740872 -0700 +@@ -1141,6 +1141,7 @@ + return NULL; + } else { + SSL_set_accept_state(con->ssl); ++ con->conf.is_ssl=1; + } + + if (1 != (SSL_set_fd(con->ssl, cnt))) { diff --git a/abs/mv-core/lighttpd/tweakconf.vim b/abs/mv-core/lighttpd/tweakconf.vim new file mode 100644 index 0000000..7e55ee3 --- /dev/null +++ b/abs/mv-core/lighttpd/tweakconf.vim @@ -0,0 +1,22 @@ +%s/\/www\/logs\//\/var\/log\/lighttpd\/ +%s/lighttpd\.error/error/ +%s/\/www\/pages\//\/home\/lighttpd\/html\// +%s/#server\.pid\-file/server.pid-file/ +%s/\/tmp\/lighttpd\/cache\/compress\//\/home\/lighttpd\/cache\/ +%s/^#server\.username.*$/server.username = "nobody"/ +%s/^#server\.groupname.*$/server.groupname = "nobody"/ +%s/\/usr\/local\/bin\/php/\/usr\/bin\/php-cgi/ +%s/\(vhost\.server-root.*=\).*$/\1 "\/home\/lighttpd\/vhosts\/"/ +/SSL engine/,/pem/d +i +#### SSL engine +#$SERVER["socket"] == "0.0.0.0:443" { +# ssl.engine = "enable" +# ssl.pemfile = "/home/lighttpd/ssl/server.pem" +# server.errorlog = "/var/log/lighttpd/error-ssl.log" +# accesslog.filename = "/var/log/lighttpd/access-ssl.log" +# server.document-root = "/home/lighttpd/html-ssl" +#} +. +w +q diff --git a/abs/mv-core/local-website/PKGBUILD b/abs/mv-core/local-website/PKGBUILD new file mode 100755 index 0000000..5fb61f6 --- /dev/null +++ b/abs/mv-core/local-website/PKGBUILD @@ -0,0 +1,22 @@ +pkgname=local-website +pkgver=3 +pkgrel=75 +pkgdesc="Local website for MythVantage " +arch=(i686 x86_64) +#depends=('lighttpd') +depends=('lighttpd' 'php' 'fcgi' 'python' ) +source=() + + +build() { + cd $startdir/src/ + + mkdir -p $startdir/pkg/data/srv/httpd/htdocs + cp -rp $startdir/contents/* $startdir/pkg/data/srv/httpd/htdocs + chmod -R 755 $startdir/pkg/data/srv/httpd/htdocs + cd $startdir + mkdir -p $startdir/pkg/data/srv/httpd/ + cp -rp cgi $startdir/pkg/data/srv/httpd/ + +} + diff --git a/abs/mv-core/local-website/cgi/beclear.cgi b/abs/mv-core/local-website/cgi/beclear.cgi new file mode 100755 index 0000000..40c0cec --- /dev/null +++ b/abs/mv-core/local-website/cgi/beclear.cgi @@ -0,0 +1,4 @@ +#!/bin/bash +/usr/local/bin/mythbackend --clearcache +MESSAGE="settings cache is cleared " +#/usr/bin/notify.py SYS "$MESSAGE" 2>/dev/null diff --git a/abs/mv-core/local-website/cgi/bestop.cgi b/abs/mv-core/local-website/cgi/bestop.cgi new file mode 100755 index 0000000..e45e74d --- /dev/null +++ b/abs/mv-core/local-website/cgi/bestop.cgi @@ -0,0 +1,6 @@ +#!/bin/bash +sudo /sbin/sv stop mythbackend > /dev/null +MESSAGE="`hostname` B.E. stopped" + +#echo $MESSAGE +/usr/bin/notify.py NFO "$MESSAGE" 2>/dev/null diff --git a/abs/mv-core/local-website/cgi/diskless.py b/abs/mv-core/local-website/cgi/diskless.py new file mode 100755 index 0000000..d8d960b --- /dev/null +++ b/abs/mv-core/local-website/cgi/diskless.py @@ -0,0 +1,11 @@ +#!/usr/bin/python +import cgi +import os +#http://192.168.1.200:1337/diskless.py?HOSTNAME=Envynetfe&MAC=00:0C:29:2D:08:82 + +The_Form = cgi.FieldStorage() +print "name:" + The_Form["HOSTNAME"].value +print "mac:" + The_Form["MAC"].value +cmd="sudo /usr/MythVantage/bin/build_diskless.sh " + The_Form["HOSTNAME"].value + " " + The_Form["MAC"].value +print cmd +os.popen(cmd + " >/dev/null 2>&1 &" ) diff --git a/abs/mv-core/local-website/cgi/serverkey.cgi b/abs/mv-core/local-website/cgi/serverkey.cgi new file mode 100755 index 0000000..ee54480 --- /dev/null +++ b/abs/mv-core/local-website/cgi/serverkey.cgi @@ -0,0 +1,3 @@ +#!/bin/bash +#cat /data/srv/httpd/dsa.pub +cat /data/srv/.nobody_ssh/id_dsa.pub diff --git a/abs/mv-core/local-website/contents/calllog.py b/abs/mv-core/local-website/contents/calllog.py new file mode 100755 index 0000000..a96813e --- /dev/null +++ b/abs/mv-core/local-website/contents/calllog.py @@ -0,0 +1,66 @@ +#!/usr/bin/python +# import MySQL module + +import MySQLdb +import sys +import getopt +import socket + + +def main(argv): + grandtotal=0 + grandtotal_current=0 + db = MySQLdb.connect(host="localhost", user="mythtv", passwd="mythtv", db="ncid") + # create a cursor + cursor = db.cursor() + # execute SQL statement + cursor.execute("select name,number,count(number) as '# calls' from cid group by number,name order by '# calls' DESC limit 20;") + result = cursor.fetchall() + + +#Top shows + #print '

' + print '

' + print '' + print "Top 20 callers" + searchstring=''' ''' + cursor.execute("select name,number,count(number) as '# calls' from cid group by number,name order by '# calls' DESC limit 20;") + result = cursor.fetchall() + for row in result: + print " " + #print " " + print searchstring % (row[0], row [0]) + print " " + #print " " + print searchstring % (row[1], row [1]) + print " " + #print "%40s %26s %10s" %(row[0],row[2],row[1]) + print "
%s
",row[0],"",row[2],"",row[1],"
" + print "
" +#Top categorys + + + print '
' + print '
' + #print '

' + print '

' + print '' + print "Last 20 calls" + print '
' + cursor.execute("select date,time,name,number from cid order by date(ts) DESC ,time DESC limit 20 ;" ) + result = cursor.fetchall() + for row in result: + print " " + print " " %(row[0]) + print " " + #print " " + print searchstring % (row[2], row [2]) + #print " " + print searchstring % (row[3], row [3]) + print " " +# print "%26s %26s %26s %26s " %(row[0],row[1],row[2],row[3]) + print "
%s ",row[1],"",row[2],"",row[3],"
" + print "
" + +if __name__ == "__main__": + main(sys.argv[1:]) diff --git a/abs/mv-core/local-website/contents/calllog.shtml b/abs/mv-core/local-website/contents/calllog.shtml new file mode 100755 index 0000000..ddf3d88 --- /dev/null +++ b/abs/mv-core/local-website/contents/calllog.shtml @@ -0,0 +1,20 @@ + + + + + + +
+ + + + + +
+
+ + + + diff --git a/abs/mv-core/local-website/contents/count.py b/abs/mv-core/local-website/contents/count.py new file mode 100755 index 0000000..6d813c1 --- /dev/null +++ b/abs/mv-core/local-website/contents/count.py @@ -0,0 +1,89 @@ +#!/usr/bin/python +# import MySQL module + +import MySQLdb +import sys +import getopt +import socket + + +def main(argv): + grandtotal=0 + grandtotal_current=0 + db = MySQLdb.connect(host="localhost", user="mythtv", passwd="mythtv", db="mythconverg") + # create a cursor + cursor = db.cursor() + # execute SQL statement + cursor.execute("SELECT unix_timestamp(starttime),unix_timestamp(endtime),title FROM oldrecorded ORDER by starttime;") + result = cursor.fetchall() + + for row in result: + # print row[0], row[1] ,row [2] + start=row[0] + end=row[1] + if ( end > start ): + total = (end - start) /60 + grandtotal+=total + hours = grandtotal / 60.0 + days = hours / 24.0 + + cursor.execute("SELECT unix_timestamp(starttime),unix_timestamp(endtime),title FROM recorded where not (recgroup=(%s)) ORDER by starttime",("LiveTV")) + result_current = cursor.fetchall() + for row in result_current: + start=row[0] + end=row[1] + if ( end > start ): + total = (end - start) /60 + grandtotal_current+=total + hours_current = grandtotal_current / 60.0 + days_current = hours_current / 24.0 + + print '' + print "

" +#Top shows + print '

' + print '' + print "Top 20 Shows" + cursor.execute("select title,count(title),category as numtitle from oldrecorded group by title having (COUNT(title) > 1) order by (COUNT(title)) DESC limit 20;" ) + result = cursor.fetchall() + for row in result: + print " " + print " " + print " " + print " " + print " " + # print "%40s %26s %10s" %(row[0],row[2],row[1]) + print "
",row[0],"",row[2],"",row[1],"
" + print "
" +#Top categorys + + print '
' + print '' + print "Top 20 Categories" + cursor.execute("select category,count(category) as numtitle from oldrecorded group by category having (COUNT(category) > 1) order by (COUNT(category)) DESC limit 20; " ) + result = cursor.fetchall() + for row in result: + print " " + print " " + print " " + print " " + #print "%16s %16s" %(row[0],row[1]) + print "
",row[0],"",row[1],"
" + print "
" + +if __name__ == "__main__": + main(sys.argv[1:]) \ No newline at end of file diff --git a/abs/mv-core/local-website/contents/docs.html b/abs/mv-core/local-website/contents/docs.html new file mode 100755 index 0000000..c4a934b --- /dev/null +++ b/abs/mv-core/local-website/contents/docs.html @@ -0,0 +1,65 @@ + + + + + + +Package Management +
+ + +
+Starting and stopping services. +
+ + + +
+