summaryrefslogtreecommitdiffstats
path: root/abs/extra/community
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2010-08-30 22:26:00 (GMT)
committerJames Meyer <james.meyer@operamail.com>2010-08-30 22:26:00 (GMT)
commit1f175a7b07b9553ce98d0546ac04dbb925ec0bc9 (patch)
treec969070115611a8a75f23d468aa5e0cf86a08121 /abs/extra/community
parentc4bd4457b5d640e1c8f5afbca7cd54c53691e5fc (diff)
downloadlinhes_pkgbuild-1f175a7b07b9553ce98d0546ac04dbb925ec0bc9.zip
linhes_pkgbuild-1f175a7b07b9553ce98d0546ac04dbb925ec0bc9.tar.gz
linhes_pkgbuild-1f175a7b07b9553ce98d0546ac04dbb925ec0bc9.tar.bz2
RESYNC EXTRA:
synced extra-testing -> extra repo Signed-off-by: James Meyer <james.meyer@operamail.com>
Diffstat (limited to 'abs/extra/community')
-rw-r--r--abs/extra/community/amule/PKGBUILD37
-rw-r--r--abs/extra/community/blockcontrol/PKGBUILD37
-rw-r--r--abs/extra/community/blockcontrol/blockcontrol.lib.patch15
-rw-r--r--abs/extra/community/cwiid-git/PKGBUILD62
-rw-r--r--abs/extra/community/cwiid-git/cwiid.install16
-rw-r--r--abs/extra/community/deluge/PKGBUILD6
-rw-r--r--abs/extra/community/firefox/PKGBUILD5
-rw-r--r--abs/extra/community/flashplugin-prerelease/PKGBUILD28
-rw-r--r--abs/extra/community/flashplugin/PKGBUILD41
-rw-r--r--abs/extra/community/foldingathome/PKGBUILD8
-rw-r--r--abs/extra/community/foldingathome/run2
-rw-r--r--abs/extra/community/fuzemux/PKGBUILD42
-rw-r--r--abs/extra/community/fuzemux/fuzemux-svn.install5
-rw-r--r--abs/extra/community/mediatomb/PKGBUILD57
-rw-r--r--abs/extra/community/mediatomb/mediatomb-0.11.0+glibc-2.10.patch23
-rw-r--r--abs/extra/community/mediatomb/mediatomb-gcc-4.3.patch24
-rw-r--r--abs/extra/community/mediatomb/mediatomb.conf5
-rwxr-xr-xabs/extra/community/mediatomb/mediatomb.rc58
-rw-r--r--abs/extra/community/mobloquer/PKGBUILD24
-rw-r--r--abs/extra/community/mre/PKGBUILD41
-rw-r--r--abs/extra/community/mre/livescores.tgzbin0 -> 39586 bytes
-rw-r--r--abs/extra/community/mre/mre-1.1.2.tar.gzbin0 -> 19685 bytes
-rwxr-xr-xabs/extra/community/mre/mre.install20
-rw-r--r--abs/extra/community/mre/mre.lr9
-rw-r--r--abs/extra/community/mre/patch.diff273
-rwxr-xr-xabs/extra/community/mre/run10
-rw-r--r--abs/extra/community/mythpywii/CONTROLS25
-rw-r--r--abs/extra/community/mythpywii/PKGBUILD22
-rw-r--r--abs/extra/community/mythpywii/mythpywii.install59
-rw-r--r--abs/extra/community/mythpywii/wiimote.rules6
-rw-r--r--abs/extra/community/network-ups-tools/PKGBUILD53
-rw-r--r--abs/extra/community/network-ups-tools/finish.upsd16
-rw-r--r--abs/extra/community/network-ups-tools/nut.install21
-rw-r--r--abs/extra/community/network-ups-tools/run.upsd21
-rwxr-xr-xabs/extra/community/peardb/PKGBUILD22
-rwxr-xr-xabs/extra/community/pearlog/PKGBUILD25
-rw-r--r--abs/extra/community/powernowd/PKGBUILD28
-rw-r--r--abs/extra/community/powernowd/finish25
-rw-r--r--abs/extra/community/powernowd/powernowd.conf.d6
-rw-r--r--abs/extra/community/powernowd/powernowd.install19
-rw-r--r--abs/extra/community/powernowd/run25
-rw-r--r--abs/extra/community/squeezeboxserver/PKGBUILD34
-rw-r--r--abs/extra/community/squeezeboxserver/squeezeboxserver.conf.d7
-rw-r--r--abs/extra/community/squeezeboxserver/squeezeboxserver.install56
-rw-r--r--abs/extra/community/squeezeboxserver/squeezeboxserver.rc47
-rw-r--r--abs/extra/community/transmission-cli/PKGBUILD24
-rwxr-xr-xabs/extra/community/transmission-cli/run.transmissiond29
-rw-r--r--abs/extra/community/transmission-cli/transmission-cli.install25
-rw-r--r--abs/extra/community/transmission-cli/transmission.include15
-rw-r--r--abs/extra/community/transmission-cli/transmissiond.conf3
50 files changed, 1394 insertions, 67 deletions
diff --git a/abs/extra/community/amule/PKGBUILD b/abs/extra/community/amule/PKGBUILD
new file mode 100644
index 0000000..3bb5c1b
--- /dev/null
+++ b/abs/extra/community/amule/PKGBUILD
@@ -0,0 +1,37 @@
+# $Id: PKGBUILD 63810 2010-01-18 20:34:42Z ibiru $
+# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
+# Contributor: Henrik Ronellenfitsch <searinox@web.de>
+
+pkgname=amule
+pkgver=2.2.6
+pkgrel=2
+pkgdesc="An eMule-like client for ed2k p2p network"
+arch=('i686' 'x86_64')
+url="http://www.amule.org"
+license=('GPL')
+depends=('wxgtk>=2.8.10.1' 'gd>=2.0.35' 'geoip')
+makedepends=('crypto++')
+source=(http://downloads.sourceforge.net/project/${pkgname}/aMule/${pkgver}/aMule-${pkgver}.tar.bz2)
+md5sums=('530d9b48187e36f78fc21bb19e94326d')
+
+build() {
+ cd ${srcdir}/aMule-${pkgver}
+
+ ./configure --prefix=/usr \
+ --mandir=/usr/share/man \
+ --enable-cas \
+ --enable-wxcas \
+ --enable-amule-daemon \
+ --enable-amulecmd \
+ --enable-amule-gui \
+ --enable-alc \
+ --enable-alcc \
+ --enable-webserver \
+ --disable-debug \
+ --enable-optimize \
+ --enable-ccache \
+ --enable-geoip
+
+ make || return 1
+ make DESTDIR=${pkgdir}/ install || return 1
+}
diff --git a/abs/extra/community/blockcontrol/PKGBUILD b/abs/extra/community/blockcontrol/PKGBUILD
new file mode 100644
index 0000000..2507adc
--- /dev/null
+++ b/abs/extra/community/blockcontrol/PKGBUILD
@@ -0,0 +1,37 @@
+# Contributor: Daniele Marinello <marinz at email dot it>
+
+pkgname=blockcontrol
+pkgver=1.6.9
+pkgrel=3
+pkgdesc="blockcontrol is designed to do all tasks related to IP block daemons (MoBlock or NFBlock). They check internet traffic based on large lists of IP address ranges in order to protect your privacy."
+arch=('i686' 'x86_64')
+url="http://moblock-deb.sourceforge.net/"
+license=('GPL2' 'BSD')
+depends=('moblock' 'wget')
+conflicts=('moblockcontrol')
+source=(http://downloads.sourceforge.net/moblock-deb/$pkgname-$pkgver.tar.gz \
+ blockcontrol.lib.patch)
+backup=('etc/blockcontrol/blockcontrol.conf' 'etc/blockcontrol/blocklists.list')
+
+build() {
+ cd "$startdir/src/$pkgname-$pkgver"
+ patch -Np1 -i ../blockcontrol.lib.patch || return 1
+
+ install -D -m 755 $startdir/src/$pkgname-$pkgver/blockcontrol ${pkgdir}/usr/bin/blockcontrol
+ install -D -m 755 $startdir/src/$pkgname-$pkgver/blockcontrol.main ${pkgdir}/usr/lib/blockcontrol/blockcontrol.main
+ install -D -m 644 $startdir/src/$pkgname-$pkgver/blockcontrol.defaults ${pkgdir}/usr/lib/blockcontrol/blockcontrol.defaults
+ install -D -m 644 $startdir/src/$pkgname-$pkgver/blockcontrol.lib ${pkgdir}/usr/lib/blockcontrol/blockcontrol.lib
+ install -D -m 755 $startdir/src/$pkgname-$pkgver/blockcontrol.wd ${pkgdir}/usr/bin/blockcontrol.wd
+ install -D -m 644 $startdir/src/$pkgname-$pkgver/allow.p2p ${pkgdir}/etc/blockcontrol/allow.p2p
+ install -D -m 644 $startdir/src/$pkgname-$pkgver/blockcontrol.conf ${pkgdir}/etc/blockcontrol/blockcontrol.conf
+ install -D -m 644 $startdir/src/$pkgname-$pkgver/blocklists.list ${pkgdir}/etc/blockcontrol/blocklists.list
+# install -D -m 755 $startdir/src/$pkgname-$pkgver/if-up ${pkgdir}/etc/network/if-up.d/blockcontrol
+ install -D -m 755 $startdir/src/$pkgname-$pkgver/cron.daily ${pkgdir}/etc/cron.daily/blockcontrol
+ install -D -m 755 $startdir/src/$pkgname-$pkgver/init ${pkgdir}/etc/rc.d/blockcontrol
+ install -D -m 644 $startdir/src/$pkgname-$pkgver/logrotate ${pkgdir}/etc/logrotate.d/blockcontrol
+ install -d ${pkgdir}/var/lib/blockcontrol
+ install -d ${pkgdir}/var/spool/blockcontrol
+}
+
+md5sums=('d02002745aacf6100ff9057bdc80adf3'
+ 'efcca84e52ea98cc10610830f9c2ba37')
diff --git a/abs/extra/community/blockcontrol/blockcontrol.lib.patch b/abs/extra/community/blockcontrol/blockcontrol.lib.patch
new file mode 100644
index 0000000..4be1c75
--- /dev/null
+++ b/abs/extra/community/blockcontrol/blockcontrol.lib.patch
@@ -0,0 +1,15 @@
+--- blockcontrol/blockcontrol_old.lib 2009-09-14 19:35:24.000000000 +0200
++++ blockcontrol/blockcontrol.lib 2009-11-05 20:29:50.000000000 +0100
+@@ -1344,10 +1344,10 @@
+ DAEMON_OPTS="$CUSTOM_DAEMON_OPTS"
+ elif [ "$NAME" = moblock ] ; then
+ # The options MoBlock is started with
+- DAEMON_OPTS="-$BLOCKLIST_FORMAT $BLOCKLIST $NFQUEUE_NUMBER_OPT $LOG_SYSLOG_OPT $LOG_TIMESTAMP_OPT $REJECT_OPT $ACCEPT_OPT $DAEMON_LOG"
++ DAEMON_OPTS="-$BLOCKLIST_FORMAT $BLOCKLIST $NFQUEUE_NUMBER_OPT $LOG_SYSLOG_OPT $DAEMON_LOG"
+ elif [ "$NAME" = nfblockd ] ; then
+ # The options NFBlock is started with
+- DAEMON_OPTS="-d -f $BLOCKLIST -p $PIDFILE $NFQUEUE_NUMBER_OPT $REJECT_OPT $ACCEPT_OPT $LOG_SYSLOG_OPT"
++ DAEMON_OPTS="-d -f $BLOCKLIST -p $PIDFILE $NFQUEUE_NUMBER_OPT $LOG_SYSLOG_OPT"
+ fi
+
+ # Test NICE_LEVEL setting.
diff --git a/abs/extra/community/cwiid-git/PKGBUILD b/abs/extra/community/cwiid-git/PKGBUILD
new file mode 100644
index 0000000..909f224
--- /dev/null
+++ b/abs/extra/community/cwiid-git/PKGBUILD
@@ -0,0 +1,62 @@
+#Contributor:Andrea Tarocchi <valdar@email.it>
+pkgname=cwiid-git
+#pkgver=`date +%Y%m%d`
+pkgver=20100716
+pkgrel=1
+pkgdesc="Cwiid-git is the bleeding edge version of a wiimote's driver and utility tools"
+arch=(i686 x86_64)
+url="http://github.com/abstrakraft/cwiid"
+license=('GPL')
+
+depends=('bluez>=4' 'gtk2' 'python')
+makedepends=('git' 'make' 'automake' 'autoconf')
+replaces=('cwiid' 'cwiid-svn')
+provides=('cwiid' 'cwiid-git')
+install=('cwiid.install')
+source=()
+
+_gitroot=git://github.com/abstrakraft/cwiid.git
+_gitname=cwiid
+_builddir=$srcdir/$_gitname-build
+
+build() {
+
+ export LDFLAGS=
+
+ cd $srcdir/
+ msg "Connecting to github.com GIT server...."
+ if [ -d $srcdir/$_gitname ] ; then
+ pushd $_gitname && git pull origin && popd
+ msg "The local files are updated."
+ else
+ git clone $_gitroot
+ fi
+ msg "GIT checkout done or server timeout"
+ msg "Starting make..."
+ rm -rf $_gitname-build
+ git clone $_gitname $_gitname-build
+
+ cd $_builddir
+
+ aclocal
+ autoreconf
+ ./configure --prefix=/usr --sysconfdir=/etc --disable-ldconfig
+
+ make || return 1
+ make DESTDIR="${pkgdir}" install || return 1
+
+# aclocal
+# autoreconf
+
+# ./configure --disable-ldconfig --prefix=/usr --sysconfdir=/etc --with-cwiid-plugins-dir=/lib/cwiid/plugins
+# make LDFLAGS=-L../libcwiid || return 1
+
+# install -d $startdir/pkg/usr/bin
+# install -d $startdir/pkg/etc
+# install -d $startdir/pkg/usr/lib
+# install -d $startdir/pkg/usr/include
+
+# make install LDFLAGS=-L../libcwiid prefix=$startdir/pkg/usr sysconfdir=$startdir/pkg/etc install
+
+# install -D -m644 ./wminput/README $pkgdir/usr/share/doc/cwiid/wminput
+}
diff --git a/abs/extra/community/cwiid-git/cwiid.install b/abs/extra/community/cwiid-git/cwiid.install
new file mode 100644
index 0000000..5dc5faf
--- /dev/null
+++ b/abs/extra/community/cwiid-git/cwiid.install
@@ -0,0 +1,16 @@
+# arg 1: the new package version
+post_install() {
+echo -e "Note:"
+echo -e "\033[1;31m==> In order to use wminput you have to load the uinput kernel module:\033[0m"
+echo -e "\033[1;31m==> modprobe uinput (as root)\033[0m"
+echo -e "\033[1;31m==> and you have to assign correct right acces to /dev/uinput\033[0m"
+echo -e "\033[1;31m==> PLEAS READ THE DOC FILE /usr/share/doc/cwiid/wminput\033[0m"
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+op=$1
+shift
+$op $* \ No newline at end of file
diff --git a/abs/extra/community/deluge/PKGBUILD b/abs/extra/community/deluge/PKGBUILD
index 6a1a971..8238baa 100644
--- a/abs/extra/community/deluge/PKGBUILD
+++ b/abs/extra/community/deluge/PKGBUILD
@@ -2,7 +2,7 @@
# Maintainer: Hugo Doria <hugo@archlinux.org>
pkgname=deluge
-pkgver=1.1.2
+pkgver=1.2.2
pkgrel=1
pkgdesc="A bittorrent client written with python and pygtk"
arch=('i686' 'x86_64')
@@ -11,8 +11,7 @@ license=('GPL3')
depends=('pygtk' 'boost>=1.37.0' 'pyxdg' 'dbus-python' 'librsvg' 'setuptools')
makedepends=('subversion' 'intltool')
options=('!emptydirs')
-source=(http://download.deluge-torrent.org/source/${pkgver}/${pkgname}-${pkgver}.tar.gz)
-md5sums=('c9d56e266e5cb3024f2dbd72c952e182')
+source=(http://download.deluge-torrent.org/source/${pkgname}-${pkgver}.tar.gz)
build() {
@@ -23,3 +22,4 @@ build() {
install -D -m644 deluge/data/pixmaps/deluge.svg ${pkgdir}/usr/share/pixmaps/deluge.svg
}
+md5sums=('5165c6113efa75e2be0310976ce55e43')
diff --git a/abs/extra/community/firefox/PKGBUILD b/abs/extra/community/firefox/PKGBUILD
index 191c913..17a70b3 100644
--- a/abs/extra/community/firefox/PKGBUILD
+++ b/abs/extra/community/firefox/PKGBUILD
@@ -3,12 +3,12 @@
pkgname=firefox
pkgver=3.5.1
-pkgrel=3
+pkgrel=4
_xulver=1.9.1.1
pkgdesc="Standalone web browser from mozilla.org"
arch=(i686 x86_64)
license=('MPL' 'GPL' 'LGPL')
-depends=("xulrunner>=${_xulver}" 'desktop-file-utils' "nspr>=4.8")
+depends=("xulrunner>=${_xulver}" 'desktop-file-utils' "nspr>=4.8" gconf)
makedepends=('zip' 'pkgconfig' 'diffutils' 'libgnomeui>=2.24.1' 'python')
replaces=('firefox3')
install=firefox.install
@@ -70,6 +70,7 @@ build() {
mv ${pkgdir}/usr/bin/firefox ${pkgdir}/usr/bin/firefox.bin
echo "#!/bin/bash
+/usr/lib/GConf/gconfd-2 &
export LD_PRELOAD=/usr/lib/libGL.so.1
/usr/bin/firefox.bin" > ${pkgdir}/usr/bin/firefox
chmod 755 ${pkgdir}/usr/bin/firefox
diff --git a/abs/extra/community/flashplugin-prerelease/PKGBUILD b/abs/extra/community/flashplugin-prerelease/PKGBUILD
new file mode 100644
index 0000000..d6eca0b
--- /dev/null
+++ b/abs/extra/community/flashplugin-prerelease/PKGBUILD
@@ -0,0 +1,28 @@
+# Contributor : Anish Bhatt <anish[removethis][at]gatech[dot]edu>
+
+pkgname=flashplugin-prerelease
+_licensefile='Reader_Player_AIR_WWEULA-Combined-20080204_1313.pdf'
+pkgver=10.1.51.66
+pkgrel=1
+source=('http://download.macromedia.com/pub/labs/flashplayer10/flashplayer10_1_p2_linux_121709.tar.gz'
+ "http://www.adobe.com/products/eulas/pdfs/${_licensefile}")
+md5sums=('4f56f8235cb72a59d04d64ca4bd442b3'
+ '1636037610ee2aa35c5fb736a697b7e0')
+
+pkgdesc='Adobe Flash Player Prerelease'
+url='http://labs.adobe.com/technologies/flashplayer10/'
+arch=('i686')
+depends=('mozilla-common' 'libxt' 'gtk2' 'nss' 'curl')
+conflicts=('flashplugin')
+provides=('flashplayer')
+license=('custom')
+
+build() {
+ install -d -m755 ${pkgdir}/usr/lib/mozilla/plugins/ || return 1
+ if [ "${CARCH}" = 'i686' ]; then
+ install -m755 ${srcdir}/install_flash_player_10_linux/libflashplayer.so ${pkgdir}/usr/lib/mozilla/plugins/ || return 1
+ fi
+ install -d -m755 ${pkgdir}/usr/share/licenses/${pkgname}/ || return 1
+ install -m644 "${_licensefile}" ${pkgdir}/usr/share/licenses/${pkgname}/ || return 1
+}
+
diff --git a/abs/extra/community/flashplugin/PKGBUILD b/abs/extra/community/flashplugin/PKGBUILD
index 1e68f40..7d7e65f 100644
--- a/abs/extra/community/flashplugin/PKGBUILD
+++ b/abs/extra/community/flashplugin/PKGBUILD
@@ -1,40 +1,27 @@
-# $Id: PKGBUILD 21951 2008-12-18 13:25:19Z thomas $
+# $Id: PKGBUILD 60911 2009-12-09 11:51:09Z andrea $
+# Contributor: Andrea Scarpino <andrea@archlinux.org>
pkgname=flashplugin
-_licensefile='Reader_Player_WWEULA-Combined-20060724_1430.pdf'
-if [ "${CARCH}" = 'i686' ]; then
- pkgver=10.0.15.3
- pkgrel=1
- source=('http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_10_linux.tar.gz'
- "http://www.adobe.com/products/eulas/pdfs/${_licensefile}")
- md5sums=('afab0b40b0ae11445e2e90a4a9224a8a'
- '844cea6c9afc13d9e27f28ce1a6e20f3')
-elif [ "${CARCH}" = 'x86_64' ]; then
- pkgver=10.0.d21.1
- pkgrel=1
- source=("http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-${pkgver}.linux-x86_64.so.tar.gz"
- "http://www.adobe.com/products/eulas/pdfs/${_licensefile}")
- md5sums=('c165af9d4e324bfaf6d1cfbdbe959fbb'
- '844cea6c9afc13d9e27f28ce1a6e20f3')
-else
- error Unknown architecture.
- exit 1
-fi
+_licensefile='Reader_Player_AIR_WWEULA-Combined-20080204_1313.pdf'
+pkgver=10.1.53.64
+pkgrel=1
pkgdesc='Adobe Flash Player'
-url='http://www.adobe.com/go/getflash'
+url='http://get.adobe.com/flashplayer'
arch=('i686' 'x86_64')
depends=('mozilla-common' 'libxt' 'gtk2' 'nss' 'curl')
replaces=('flashplugin-beta')
provides=('flashplayer')
license=('custom')
+source=('http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_10_linux.tar.gz'
+ "http://www.adobe.com/products/eulas/pdfs/${_licensefile}")
+[ "${CARCH}" = "x86_64" ] && source[0]="http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-${pkgver}.linux-${CARCH}.so.tar.gz"
+[ "${CARCH}" = "x86_64" ] && md5sums[0]='8b427c2991c0447af56a951c653ee383'
build() {
install -d -m755 ${pkgdir}/usr/lib/mozilla/plugins/ || return 1
- if [ "${CARCH}" = 'i686' ]; then
- install -m755 ${srcdir}/install_flash_player_10_linux/libflashplayer.so ${pkgdir}/usr/lib/mozilla/plugins/ || return 1
- elif [ "${CARCH}" = 'x86_64' ]; then
- install -m755 ${srcdir}/libflashplayer.so ${pkgdir}/usr/lib/mozilla/plugins/ || return 1
- fi
+ install -m755 ${srcdir}/libflashplayer.so ${pkgdir}/usr/lib/mozilla/plugins/ || return 1
install -d -m755 ${pkgdir}/usr/share/licenses/${pkgname}/ || return 1
- install -m644 "${_licensefile}" ${pkgdir}/usr/share/licenses/${pkgname}/ || return 1
+ install -m644 "${_licensefile}" ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.pdf || return 1
}
+md5sums=('e4cb4d26124605a54c3d498cc440368f'
+ '1636037610ee2aa35c5fb736a697b7e0')
diff --git a/abs/extra/community/foldingathome/PKGBUILD b/abs/extra/community/foldingathome/PKGBUILD
index bb93407..6f00936 100644
--- a/abs/extra/community/foldingathome/PKGBUILD
+++ b/abs/extra/community/foldingathome/PKGBUILD
@@ -4,7 +4,7 @@
pkgname=foldingathome
pkgver=6.02
-pkgrel=6
+pkgrel=7
pkgdesc="Folding@Home is a distributed computing project which studies protein folding, misfolding, aggregation, and related diseases."
arch=('i686')
url="http://folding.stanford.edu/"
@@ -14,13 +14,15 @@ backup=('etc/conf.d/foldingathome')
install=foldingathome.install
source=(http://www.stanford.edu/group/pandegroup/folding/release/FAH$pkgver-Linux.tgz
run)
-md5sums=('112b3d66909050f1bb990993a1464cb9'
- '61eb4617e7363d586a05dde980ad1c14')
build() {
cd $startdir/src/
+ tar zxf FAH${pkgver}-Linux.tgz
+
# At this stage, the mpiexec is not included because it requires x86_64.
install -D -c -m755 fah6 $startdir/pkg/usr/bin/fah6 || return 1
install -D -m755 run $startdir/pkg/etc/sv/fah/run
}
+md5sums=('112b3d66909050f1bb990993a1464cb9'
+ 'cefaf5ba2f3e2fe81533b5ee4795dc78')
diff --git a/abs/extra/community/foldingathome/run b/abs/extra/community/foldingathome/run
index ede51f2..cd4a072 100644
--- a/abs/extra/community/foldingathome/run
+++ b/abs/extra/community/foldingathome/run
@@ -22,5 +22,5 @@ if [ -d $FOLDING_DIR ] ; then
# No need to direct output to a log file becase a log file
# will automatically be placed in $FOLDING_DIR
- exec /usr/bin/fah6 -verbosity 9 &> /dev/null < /dev/null
+ exec /usr/bin/fah6 &> /dev/null < /dev/null
fi
diff --git a/abs/extra/community/fuzemux/PKGBUILD b/abs/extra/community/fuzemux/PKGBUILD
new file mode 100644
index 0000000..5cce2d0
--- /dev/null
+++ b/abs/extra/community/fuzemux/PKGBUILD
@@ -0,0 +1,42 @@
+# Contributor: Michael Hanson <hansonorders@verizon.net>
+# Maintainer: Michael Hanson <hansonorders@verizon.net>
+pkgname=fuzemux-svn
+pkgver=11
+pkgrel=1
+pkgdesc="A tool to remux AVI video files for the San Disk Sansa Fuze portable media player"
+arch=('i686' 'x86_64')
+url="http://code.google.com/p/fuzemux"
+license=('GPL3')
+#depends=()
+makedepends=('subversion' 'autoconf')
+provides=('fuzemux')
+install=('fuzemux-svn.install')
+
+_svntrunk=http://fuzemux.googlecode.com/svn/trunk/
+_svnmod=fuzemux
+
+build() {
+ cd "$srcdir"
+
+ if [ -d $_svnmod/.svn ]; then
+ (cd $_svnmod && svn up -r $pkgver)
+ else
+ svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
+ fi
+
+ msg "SVN checkout done or server timeout"
+ msg "Starting make..."
+
+ rm -rf "$srcdir/$_svnmod-build"
+ cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
+ cd "$srcdir/$_svnmod-build"
+
+ #
+ # BUILD
+ #
+ /usr/bin/autoreconf --install
+ ./configure --prefix=/usr
+ make || return 1
+ make DESTDIR="$pkgdir/" install
+}
+md5sums=()
diff --git a/abs/extra/community/fuzemux/fuzemux-svn.install b/abs/extra/community/fuzemux/fuzemux-svn.install
new file mode 100644
index 0000000..877ec1b
--- /dev/null
+++ b/abs/extra/community/fuzemux/fuzemux-svn.install
@@ -0,0 +1,5 @@
+post_install() {
+ echo ">>>"
+ echo ">>> A user job script is supplied at /usr/LH/bin/myth2fuze"
+ echo ">>>"
+}
diff --git a/abs/extra/community/mediatomb/PKGBUILD b/abs/extra/community/mediatomb/PKGBUILD
new file mode 100644
index 0000000..aaf4d58
--- /dev/null
+++ b/abs/extra/community/mediatomb/PKGBUILD
@@ -0,0 +1,57 @@
+# Orginal Contributor: William Rea <sillywilly@gmail.com>
+# Contributor: Nikhil Bysani <nikron@gmail.com>
+# Contributor: Mika Hynnä <igheax@gmail.com>
+
+# 20090525:
+# + makedepends=('gcc' 'patch' 'make')
+# + mediatomb-0.11.0+glibc-2.10.patch
+
+pkgname=mediatomb
+pkgver=0.11.0
+pkgrel=10
+pkgdesc="A UPnP mediaserver"
+arch=('i686' 'x86_64')
+url="http://mediatomb.sourceforge.net"
+license=('GPL')
+depends=('libexif' 'taglib' 'sqlite3' 'expat' 'spidermonkey' 'curl' 'ffmpeg')
+makedepends=('gcc' 'patch' 'make')
+backup=(etc/conf.d/mediatomb)
+source=(
+ http://mesh.dl.sourceforge.net/sourceforge/mediatomb/mediatomb-$pkgver.tar.gz \
+ mediatomb.rc \
+ mediatomb.conf \
+ http://kapsi.fi/~ighea/arch/mediatomb-gcc-4.3.patch
+ mediatomb-0.11.0+glibc-2.10.patch
+)
+
+build()
+{
+ cd $startdir/src/mediatomb-$pkgver || return 1
+ patch -Np1 < ../mediatomb-gcc-4.3.patch || return 1
+ patch -Np0 < ../mediatomb-0.11.0+glibc-2.10.patch || return 1
+
+ sed -e s/"ffmpeg\/avformat.h"/"libavformat\/avformat.h"/g -i configure
+ sed -e s/"ffmpeg\/avformat.h"/"libavformat\/avformat.h"/g -i configure.ac
+ sed -e s/"ffmpeg\/avformat.h"/"libavformat\/avformat.h"/g -i src/metadata/ffmpeg_handler.cc
+
+
+ ./configure --prefix=/usr --enable-mysql=no --enable-libmagic=yes \
+ --enable-libjs=yes --enable-ffmpeg --with-ffmpeg-h=/usr/include/ || return 1
+
+ make || return 1
+ make DESTDIR=$startdir/pkg install || return 1
+
+ # rc-script
+ mkdir -p $startdir/pkg/etc/rc.d/ || return 1
+ install -m0755 ../mediatomb.rc $startdir/pkg/etc/rc.d/mediatomb || return 1
+
+ # config-file
+ mkdir -p $startdir/pkg/etc/conf.d/ || return 1
+ install -m0644 ../mediatomb.conf $startdir/pkg/etc/conf.d/mediatomb || return 1
+
+}
+md5sums=('661f08933830d920de21436fe122fb15'
+ 'a7ff197d5760b20b04675ba67bfd9e86'
+ 'a4cbd08c32c93f116363a29bef60e21d'
+ 'eda28d01e035b3237566da5b1aad7712'
+ '3b895eabee88a0697b4fd0c30af6cab2')
diff --git a/abs/extra/community/mediatomb/mediatomb-0.11.0+glibc-2.10.patch b/abs/extra/community/mediatomb/mediatomb-0.11.0+glibc-2.10.patch
new file mode 100644
index 0000000..b1436c1
--- /dev/null
+++ b/abs/extra/community/mediatomb/mediatomb-0.11.0+glibc-2.10.patch
@@ -0,0 +1,23 @@
+--- src/tools.cc (revisione 2018)
++++ src/tools.cc (copia locale)
+@@ -303,8 +303,8 @@
+ Ref<StringBuffer> buf(new StringBuffer(len / 2));
+ for (int i = 0; i < len; i += 2)
+ {
+- char *chi = strchr(HEX_CHARS, ptr[i]);
+- char *clo = strchr(HEX_CHARS, ptr[i + 1]);
++ const char *chi = strchr(HEX_CHARS, ptr[i]);
++ const char *clo = strchr(HEX_CHARS, ptr[i + 1]);
+ int hi, lo;
+
+ if (chi)
+@@ -397,7 +397,7 @@
+ char clo = data[i++];
+ int hi, lo;
+
+- char *pos;
++ const char *pos;
+
+ pos = strchr(hex, chi);
+ if (!pos)
+
diff --git a/abs/extra/community/mediatomb/mediatomb-gcc-4.3.patch b/abs/extra/community/mediatomb/mediatomb-gcc-4.3.patch
new file mode 100644
index 0000000..9440bec
--- /dev/null
+++ b/abs/extra/community/mediatomb/mediatomb-gcc-4.3.patch
@@ -0,0 +1,24 @@
+# GCC-4.3 compatibility patch by Mika Hynnä (ighea) <igheaxATgmailDOTcom>
+#
+--- mediatomb-0.11.0/src/url.cc 2008-03-02 00:48:36.000000000 +0200
++++ mediatomb-0.11.0.new/src/url.cc 2008-04-14 00:53:21.000000000 +0300
+@@ -75,7 +75,7 @@
+
+ if (only_header)
+ {
+- curl_easy_setopt(curl_handle, CURLOPT_NOBODY);
++ curl_easy_setopt(curl_handle, CURLOPT_NOBODY,0);
+ curl_easy_setopt(curl_handle, CURLOPT_HEADERFUNCTION, URL::dl);
+ curl_easy_setopt(curl_handle, CURLOPT_HEADERDATA,
+ (void *)buffer.getPtr());
+--- mediatomb-0.11.0/src/metadata/id3_handler.cc 2008-03-02 00:48:36.000000000 +0200
++++ mediatomb-0.11.0.new/src/metadata/id3_handler.cc 2008-04-14 01:22:36.000000000 +0300
+@@ -36,6 +36,8 @@
+
+ #ifdef HAVE_ID3
+
++#include <string.h>
++
+ #ifdef HAVE_CONFIG_H
+ #undef HAVE_CONFIG_H // else utils.h from the id3 library tries to import "config.h"
+
diff --git a/abs/extra/community/mediatomb/mediatomb.conf b/abs/extra/community/mediatomb/mediatomb.conf
new file mode 100644
index 0000000..339bd9e
--- /dev/null
+++ b/abs/extra/community/mediatomb/mediatomb.conf
@@ -0,0 +1,5 @@
+# User to run the mediatomb as:
+USER=""
+# Extra parameters to pass to the daemon:
+PARAMS=""
+
diff --git a/abs/extra/community/mediatomb/mediatomb.rc b/abs/extra/community/mediatomb/mediatomb.rc
new file mode 100755
index 0000000..b3333cc
--- /dev/null
+++ b/abs/extra/community/mediatomb/mediatomb.rc
@@ -0,0 +1,58 @@
+#!/bin/bash
+
+DESC="MediaTomb UPnP A/V Media Server"
+
+USER=""
+
+if [ "$(whoami)" != "root" ];then
+ echo "You must be root to start/restart/stop services."
+ exit 1
+fi
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+[ -r "/etc/conf.d/mediatomb" ] && . /etc/conf.d/mediatomb
+
+PID=`pidof -o %PPID /usr/bin/mediatomb`
+
+case "$1" in
+ start)
+ stat_busy "Starting $DESC"
+ if [ -z "$PID" ]; then
+ if [ -n "$USER" ]; then
+ echo -n "Starting as user: $USER"
+ su - $USER -c "/usr/bin/mediatomb -d $PARAMS &> /dev/null" || stat_fail
+ else
+ /usr/bin/mediatomb -d $PARAMS &> /dev/null || stat_fail
+ fi
+ PID=`pidof -o %PPID /usr/bin/mediatomb`
+ if [ -z "$PID" ]; then exit 1;fi
+ echo $PID > /var/run/mediatomb.pid
+ add_daemon mediatomb
+ stat_done
+ else
+ echo -n "Already running!"
+ stat_fail
+ fi
+ ;;
+ stop)
+ stat_busy "Stopping $DESC"
+ [ ! -z "$PID" ] && kill $PID &> /dev/null
+ if [ $? -gt 0 ]; then
+ echo -n "Not started!"
+ stat_fail
+ else
+ rm /var/run/mediatomb.pid
+ rm_daemon mediatomb
+ stat_done
+ fi
+ ;;
+ restart)
+ $0 stop
+ sleep 1
+ $0 start
+ ;;
+ *)
+ echo "usage: $0 {start|stop|restart}"
+esac
diff --git a/abs/extra/community/mobloquer/PKGBUILD b/abs/extra/community/mobloquer/PKGBUILD
index eecdb4a..b6254d5 100644
--- a/abs/extra/community/mobloquer/PKGBUILD
+++ b/abs/extra/community/mobloquer/PKGBUILD
@@ -1,26 +1,26 @@
-# Contributor: marinz <marinz@email.it>
+# Contributor: Daniele Marinello <marinz att email dot it>
pkgname=mobloquer
-pkgver=0.5
-pkgrel=5
+pkgver=0.6
+pkgrel=6
pkgdesc="A graphical front end for moblock"
arch=('i686' 'x86_64')
url="http://mobloquer.foutrelis.com/"
license=('GPL')
-depends=('qt' 'moblockcontrol')
-source=(http://download.sourceforge.net/mobloquer/$pkgname-$pkgver.tar.gz)
-md5sums=('2adb03d170fa0e9a7ffcc9dac8d71bf5')
+depends=('qt' 'blockcontrol')
+source=(http://downloads.sourceforge.net/mobloquer/$pkgname-$pkgver.tar.gz)
+md5sums=('6363ee4c42da1d85367fdd65d4bf42ca')
build() {
- cd $startdir/src/$pkgname
+ cd $startdir/src/$pkgname-$pkgver
qmake
make || return 1
-
- install -d ${pkgdir}/usr/share/applications ${pkgdir}/usr/bin
- install -m 755 -p $startdir/src/mobloquer/images/mobloquer.png $startdir/pkg/usr/share/pixmaps/
- install -m 644 -p $startdir/src/mobloquer/other/Mobloquer.desktop $startdir/pkg/usr/share/applications/
- install -m 755 -p $startdir/src/mobloquer/mobloquer $startdir/pkg/usr/bin/mobloquer
+
+ install -d ${pkgdir}/usr/share/applications ${pkgdir}/usr/bin ${pkgdir}/usr/share/pixmaps
+ install -m 644 -p $startdir/src/$pkgname-$pkgver/images/mobloquer.png $startdir/pkg/usr/share/pixmaps/
+ install -m 644 -p $startdir/src/$pkgname-$pkgver/other/Mobloquer.desktop $startdir/pkg/usr/share/applications/
+ install -m 755 -p $startdir/src/$pkgname-$pkgver/mobloquer $startdir/pkg/usr/bin/mobloquer
}
diff --git a/abs/extra/community/mre/PKGBUILD b/abs/extra/community/mre/PKGBUILD
new file mode 100644
index 0000000..72d3bc3
--- /dev/null
+++ b/abs/extra/community/mre/PKGBUILD
@@ -0,0 +1,41 @@
+arch=('i686')
+pkgname=mre
+pkgver=1.1.2
+pkgrel=2
+_kernver=2.6.28-LinHES
+pkgdesc="Myth Recording Extender"
+url="http://sourceforge.net/projects/mythtv-tools/"
+license=('GPL-2')
+depends=('PearDB' 'PearLog')
+makedepends=()
+source=('mre-1.1.2.tar.gz' 'patch.diff' 'livescores.tgz' 'run' 'mre.lr')
+install=('mre.install')
+
+build() {
+ cd $startdir/src/mre-1.1.2/
+ patch -p0 < ../patch.diff
+ ./configure
+ make INST_ROOT=$startdir/pkg install
+ cp $startdir/src/mre-1.1.2/conf/mre.conf $startdir/pkg/etc/mre.conf
+ cp $startdir/src/mre-1.1.2/test/test_title_subtitle.php\
+ $startdir/pkg/usr/local/bin/
+ chmod a+x $startdir/pkg/usr/local/bin/test_title_subtitle.php
+ rm -r $startdir/pkg/etc/init.d
+ mkdir -p $startdir/pkg/var/log/mre
+ touch $startdir/pkg/var/log/mre/mre.log
+ chown mythtv:mythtv "$startdir/pkg/var/log/mre/mre.log"
+ mkdir -p $startdir/pkg/etc/sv/mre
+ cp $startdir/src/run $startdir/pkg/etc/sv/mre/run
+ mkdir -p $startdir/pkg/etc/logrotate.d
+ cp $startdir/src/mre.lr $startdir/pkg/etc/logrotate.d/mre.lr
+ mkdir -p $startdir/pkg/data/srv/http/htdocs/
+ cp -r $startdir/src/scores /$startdir/pkg/data/srv/http/htdocs/
+ chown -R http:users "$startdir/pkg/data/srv/http/htdocs/scores"
+}
+
+
+md5sums=('8ab312e7597ae9413a57bd5e9a068096'
+ 'd2591989da512c0faa567408721b6e95'
+ 'fcc02a234b22ba5c2714a6b8dbaf3bef'
+ 'dea22d4e0f2c1dd8a2debd2f50756dda'
+ '6d71ab57afd974c5130c994b94e8746f')
diff --git a/abs/extra/community/mre/livescores.tgz b/abs/extra/community/mre/livescores.tgz
new file mode 100644
index 0000000..d97175b
--- /dev/null
+++ b/abs/extra/community/mre/livescores.tgz
Binary files differ
diff --git a/abs/extra/community/mre/mre-1.1.2.tar.gz b/abs/extra/community/mre/mre-1.1.2.tar.gz
new file mode 100644
index 0000000..3846e4b
--- /dev/null
+++ b/abs/extra/community/mre/mre-1.1.2.tar.gz
Binary files differ
diff --git a/abs/extra/community/mre/mre.install b/abs/extra/community/mre/mre.install
new file mode 100755
index 0000000..4e3fb0d
--- /dev/null
+++ b/abs/extra/community/mre/mre.install
@@ -0,0 +1,20 @@
+# arg 1: the new package version
+post_install() {
+ add_service.sh mre
+ sed -i.pacsave '/^open_basedir/s|$|:/var/log/mre:/usr/local/lib/mre|' /etc/php/php.ini
+}
+
+post_upgrade() {
+
+}
+
+
+# arg 1: the old package version
+post_remove() {
+ remove_service.sh mre
+ sed -i.pacsave '/^open_basedir/s|:/var/log/mre:/usr/local/lib/mre||' /etc/php/php.ini
+}
+
+op=$1
+shift
+$op $*
diff --git a/abs/extra/community/mre/mre.lr b/abs/extra/community/mre/mre.lr
new file mode 100644
index 0000000..3b54c23
--- /dev/null
+++ b/abs/extra/community/mre/mre.lr
@@ -0,0 +1,9 @@
+/var/log/mre/mre.log {
+ copytruncate
+ daily
+ size 10M
+ missingok
+ rotate 7
+ compress
+ notifempty
+}
diff --git a/abs/extra/community/mre/patch.diff b/abs/extra/community/mre/patch.diff
new file mode 100644
index 0000000..66390d9
--- /dev/null
+++ b/abs/extra/community/mre/patch.diff
@@ -0,0 +1,273 @@
+--- ../mre-1.1.2/class/MythClient.php.original 2006-04-05 17:39:13.000000000 -0500
++++ ../mre-1.1.2/class/MythClient.php 2010-05-14 10:16:54.000000000 -0500
+@@ -112,7 +112,7 @@
+ return '0';
+ }
+ foreach($out as $line)
+- if(preg_match('/^Library API version: (.*)$/', $line, $matches))
++ if(preg_match('/^Library API *: (.*)$/', $line, $matches))
+ return $matches[1];
+ return '0';
+ }
+--- ../mre-1.1.2/class/NHLEvent.php.original 2006-11-05 17:06:57.000000000 -0600
++++ ../mre-1.1.2/class/NHLEvent.php 2010-05-21 00:44:49.000000000 -0500
+@@ -27,7 +27,7 @@
+ /**
+ * URL to grab game info from
+ */
+- const url = 'http://scores.espn.go.com/nhl/scoreboard';
++ const url = 'http://localhost/scores/nhl.php';
+
+ /**
+ * Class constructor.
+@@ -39,32 +39,27 @@
+ parent::__construct();
+
+ $criteria = $this->generateSearchTerms($gameInfo);
++
+ if(!sizeof($criteria))
+ trigger_error("Unable to generate valid search terms! [$gameInfo]", E_USER_WARNING);
+ else
+ {
+ $data = file(self::url);
+- if($data !== FALSE)
+- foreach($criteria as $term)
+- {
+- $status = '';
+- foreach($data as $line)
+- if(preg_match('/' . preg_quote($term) . '/', $line))
+- {
+- $status = $line;
+- break;
+- }
+- if(preg_match('/id.*st"\>(.*)\<\/td/U', $status, $match))
+- {
+- $this->setStatus($match[1]);
+- if(preg_match('/^Final/', $match[1]))
+- $this->setEventOver(TRUE);
+- else
+- $this->setEventOver(FALSE);
+- $this->setValid(TRUE);
+- break;
+- }
++ if($data)
++ {
++ foreach($data as $line)
++ {
++ if((strpos($line,$criteria[0]))&&(strpos($line,$criteria[1])))
++ {
++ if(strpos($line,'FINAL'))
++ $this->setEventOver(TRUE);
++ else
++ $this->setEventOver(FALSE);
++ $this->setValid(TRUE);
++ break;
++ }
+ }
++ }
+ }
+ if(!$this->isValid())
+ trigger_error("Unable to find NHL info for '$gameInfo'! The NHL parser may need to be updated.", E_USER_WARNING);
+--- ../mre-1.1.2/conf/mre.conf.in.original 2006-08-13 16:48:57.000000000 -0500
++++ ../mre-1.1.2/conf/mre.conf.in 2010-05-04 00:25:26.000000000 -0500
+@@ -28,9 +28,9 @@
+ ; *** Application settings
+ ; Unprivledged user to run as, if started as root
+ ; This script will not run as root
+-user = nobody
++user = mythtv
+ ; Run MRE as daemon? Requires pcntl_* functions built into PHP
+-daemon = true
++daemon = false
+ ; Number of minutes to sleep between runs
+ sleep = 5
+ ; Logging level (0 = normal, 1 = +error, 2 = +warning, 3 = +debug)
+--- ../mre-1.1.2/class/MLBEvent.php.original 2006-11-05 17:06:57.000000000 -0600
++++ ../mre-1.1.2/class/MLBEvent.php 2010-05-21 20:08:30.000000000 -0500
+@@ -27,7 +27,7 @@
+ /**
+ * URL to grab game info from
+ */
+- const url = 'http://scores.espn.go.com/mlb/scoreboard';
++ const url = 'http://localhost/scores/mlb.php';
+
+ /**
+ * Class constructor.
+@@ -43,41 +43,22 @@
+ trigger_error("Unable to generate valid search terms! [$gameInfo]", E_USER_WARNING);
+ else
+ {
+- $data = file(self::url);
+- $games = array();
+- if($data !== FALSE)
+- {
+- // Split the huge string into individual game data
+- foreach($data as $line)
+- if(preg_match('/\<div id="allGames".*\>.*/', $line))
+- {
+- while(($loc = strrpos($line, 'teamTop')) !== FALSE)
+- {
+- $games[] = substr($line, $loc);
+- $line = substr($line, 0, $loc);
+- }
+- break;
+- }
+- if(!sizeof($games))
+- trigger_error("Unable to find valid game data within source!", E_USER_WARNING);
+- foreach($criteria as $term)
+- {
+- foreach($games as $game)
+- {
+- if(preg_match('/' . preg_quote($term) . '/', $game))
+- if(preg_match('/teamTop.*\>(.*)\<\/td\>/U', $game, $matches))
+- {
+- $this->setStatus($matches[1]);
+- if(preg_match('/^(Final|Postponed)/', $matches[1]))
+- $this->setEventOver(TRUE);
+- else
+- $this->setEventOver(FALSE);
+- $this->setValid(TRUE);
+- break 2;
+- }
+- }
++ $data = file(self::url);
++ if($data)
++ {
++ foreach($data as $line)
++ {
++ if((strpos($line,$criteria[0]))&&(strpos($line,$criteria[1])))
++ {
++ if((strpos($line,'FINAL'))or(strpos($line,'Postponed')))
++ $this->setEventOver(TRUE);
++ else
++ $this->setEventOver(FALSE);
++ $this->setValid(TRUE);
++ break;
++ }
+ }
+- }
++ }
+ }
+ if(!$this->isValid())
+ trigger_error("Unable to find MLB info for '$gameInfo'! The MLB parser may need to be updated.", E_USER_WARNING);
+--- ../mre-1.1.2/class/NBAEvent.php.original 2006-11-05 17:06:57.000000000 -0600
++++ ../mre-1.1.2/class/NBAEvent.php 2010-05-21 21:15:42.000000000 -0500
+@@ -27,7 +27,7 @@
+ /**
+ * URL to grab game info from
+ */
+- const url = 'http://scores.espn.go.com/nba/scoreboard';
++ const url = 'http://localhost/scores/nba.php';
+
+ /**
+ * Class constructor.
+@@ -44,35 +44,21 @@
+ else
+ {
+ $data = file(self::url);
+- if($data !== FALSE)
+- foreach($criteria as $term)
+- {
+- $status = '';
+- $i = 0;
+- while($i < sizeof($data))
+- {
+- if(preg_match('/' . preg_quote($term) . '/', $data[$i]))
+- {
+- $status = $data[$i];
+- break;
+- }
+- ++$i;
+- }
+- if($i == sizeof($data))
+- --$i;
+-
+- if(preg_match('/id.*clock"\>(.*)\<\/div/U', $data[$i], $match) ||
+- preg_match('/id.*clock"\>(.*)\<\/div/U', $data[$i-1], $match))
+- {
+- $this->setStatus($match[1]);
+- if(preg_match('/^Final/', $match[1]))
+- $this->setEventOver(TRUE);
+- else
+- $this->setEventOver(FALSE);
+- $this->setValid(TRUE);
+- break;
+- }
++ if($data)
++ {
++ foreach($data as $line)
++ {
++ if((strpos($line,$criteria[0]))&&(strpos($line,$criteria[1])))
++ {
++ if(strpos($line,'FINAL'))
++ $this->setEventOver(TRUE);
++ else
++ $this->setEventOver(FALSE);
++ $this->setValid(TRUE);
++ break;
++ }
+ }
++ }
+ }
+ if(!$this->isValid())
+ trigger_error("Unable to find NBA info for '$gameInfo'! The NBA parser may need to be updated.", E_USER_WARNING);
+--- ../mre-1.1.2/class/NFLEvent.php.original 2006-11-05 17:06:57.000000000 -0600
++++ ../mre-1.1.2/class/NFLEvent.php 2010-05-21 19:09:36.000000000 -0500
+@@ -27,7 +27,7 @@
+ /**
+ * URL to grab game info from
+ */
+- const url = 'http://scores.espn.go.com/nfl/scoreboard';
++ const url = 'http://localhost/scores/nfl.php';
+
+ /**
+ * Class constructor.
+@@ -44,33 +44,21 @@
+ else
+ {
+ $data = file(self::url);
+- $games = array();
+- if($data !== FALSE)
+- {
+- // Split the huge string into individual game data
+- foreach($data as $line)
+- if(preg_match('/\<td class="teamTop.*".*\>.*/', $line))
+- $games[] = $line;
+- if(!sizeof($games))
+- trigger_error("Unable to find valid game data within source!", E_USER_WARNING);
+- foreach($criteria as $term)
+- {
+- foreach($games as $game)
+- {
+- if(preg_match('/' . preg_quote($term) . '/', $game))
+- if(preg_match('/teamTop.*\>(.*)\<\/td\>/U', $game, $matches))
+- {
+- $this->setStatus($matches[1]);
+- if(preg_match('/^(Final|Postponed)/', $matches[1]))
+- $this->setEventOver(TRUE);
+- else
+- $this->setEventOver(FALSE);
+- $this->setValid(TRUE);
+- break 2;
+- }
+- }
+- }
+- }
++ if($data)
++ {
++ foreach($data as $line)
++ {
++ if((strpos($line,$criteria[0]))&&(strpos($line,$criteria[1])))
++ {
++ if(strpos($line,'FINAL'))
++ $this->setEventOver(TRUE);
++ else
++ $this->setEventOver(FALSE);
++ $this->setValid(TRUE);
++ break;
++ }
++ }
++ }
+ }
+ if(!$this->isValid())
+ trigger_error("Unable to find NFL info for '$gameInfo'! The NFL parser may need to be updated.", E_USER_WARNING);
diff --git a/abs/extra/community/mre/run b/abs/extra/community/mre/run
new file mode 100755
index 0000000..84d08e5
--- /dev/null
+++ b/abs/extra/community/mre/run
@@ -0,0 +1,10 @@
+#!/bin/bash
+export TERM=linux
+. /etc/rc.conf
+. /etc/rc.d/functions
+stat_runit "Starting mythrecordingextender"
+
+sv start mythbackend || exit 1
+sleep 5
+
+exec /usr/local/bin/mre.php
diff --git a/abs/extra/community/mythpywii/CONTROLS b/abs/extra/community/mythpywii/CONTROLS
new file mode 100644
index 0000000..d733964
--- /dev/null
+++ b/abs/extra/community/mythpywii/CONTROLS
@@ -0,0 +1,25 @@
+ * Keypad : same as keypad on keyboard
+ * A : Enter (Accept, OK, next, .)
+ * Minus (-) : d (Delete)
+ * Home : escape (Exit to previous menu/exit mythfrontend)
+ * Plus (+) : p (Play/pause)
+ * 1 : Info
+ * 2 : Menu
+ * B + left : rewind to beginning of video
+ * B + twist wiimote : rewind (if twisted to the left) or fastforward
+ (otherwise) with speed dependant on twist amount.
+ * B + A + twist wiimote: timestretching . slower (if twisted left) or
+ faster (if twisted right)
+
+A comment on twisting:
+Point the wii remote at the screen, and twist from the elbow so that it
+ continues to point at the screen.
+
+The maximum fastforward/rewind speed is 180x. The speeds are dictated by
+mythfrontend itself. When you rotate the wiimote, you will feel a slight
+vibration (0.05 seconds) to let you know you have gone up or down a speed
+segment. To stop fastforwarding/rewinding, simply let go of B.
+
+Beware: there is no power saving built in. However you should be able to
+turn the wiimote off (power button) when not in use, and turn it back on
+by holding down 1 and 2 to make it sync.
diff --git a/abs/extra/community/mythpywii/PKGBUILD b/abs/extra/community/mythpywii/PKGBUILD
index 4b57c77..38e456f 100644
--- a/abs/extra/community/mythpywii/PKGBUILD
+++ b/abs/extra/community/mythpywii/PKGBUILD
@@ -2,17 +2,27 @@
# Maintainer: Cecil Watson<knoppmyth@gmail.com>
pkgname=mythpywii
-pkgver=1
-pkgrel=1
+pkgver=17
+pkgrel=8
pkgdesc="Control MythTV using Wiimote."
arch=('i686' 'x86_64')
license=('GPL2')
url="http://www.benjiegillam.com/"
depends=('bluez' 'python-pybluez' 'cwiid-svn')
-#install=mythpywii.install
-source=(http://www.benjiegillam.com/code/myth_py_wii.py)
+install=mythpywii.install
+source=(http://www.benjiegillam.com/code/myth_py_wii.py \
+ wiimote.rules mythpywii.install CONTROLS)
build() {
- mkdir -p $startdir/pkg/usr/bin
- install -D -m 755 myth_py_wii.py $startdir/pkg/usr/bin
+ install -D -m755 ${srcdir}/myth_py_wii.py ${startdir}/pkg/usr/bin/myth_py_wii.py || return 1
+ install -D -m644 ${srcdir}/wiimote.rules ${startdir}/pkg/etc/udev/rules.d/z90-wiimote.rules || return 1
+ install -d -o mythtv -g mythtv ${startdir}/pkg/home/mythtv/.cwiid/wminput || return 1
+ install -D -m755 -o mythtv -g mythtv /etc/cwiid/wminput/{acc_led,buttons,gamepad,neverball,nunchuk_stick2btn,acc_ptr,ir_ptr,nunchuk_acc_ptr} ${startdir}/pkg/home/mythtv/.cwiid/wminput || return 1
+ install -D -m644 ${srcdir}/CONTROLS ${startdir}/pkg/usr/share/docs/mythpywii/CONTROLS || return 1
+ cd ${startdir}/pkg/home/mythtv/.cwiid/wminput
+ ln -s acc_led default
}
+md5sums=('5bd5e1bb9c4cbfabbffdb28ff616e83b'
+ '0d817a971d414b9320587a4cf289386b'
+ '64fa8dbd324dac68f71753ebd828d358'
+ '0872cbdb3def3dd9aa2b97b191ad76d8')
diff --git a/abs/extra/community/mythpywii/mythpywii.install b/abs/extra/community/mythpywii/mythpywii.install
new file mode 100644
index 0000000..8d0b867
--- /dev/null
+++ b/abs/extra/community/mythpywii/mythpywii.install
@@ -0,0 +1,59 @@
+post_install() {
+ . /home/mythtv/.mythtv/mysql.txt
+ # Enable the Network Remote Control Interface for use with the wiimote.
+ # Get local machine's hostname
+ HOST=`cat /etc/hostname`
+ # Update mysql for Network Remote Control Support
+ mysql -u mythtv -pmythtv --host=${DBHostName} mythconverg -e \
+ "UPDATE settings SET data = '1' WHERE value = 'NetworkControlEnabled' AND hostname = '${HOST}'";
+ echo "------------------------------------------------------------"
+ echo "myth_py_wii.py expects the Network Control Port to be set to"
+ echo "mythtv's default port of 6546. It will not work if you have"
+ echo "changed it to something else."
+ echo "------------------------------------------------------------"
+ # Add myth_py_wii.py to ~/mythtv/.fluxbox/apps before LinHES-run
+ sed -i '/LinHES-run/ i [startup] {/usr/bin/myth_py_wii.py >/dev/null}' /home/mythtv/.fluxbox/apps
+ # udev needs to pick up our new rule for the mythpywii.
+ udevadm trigger --subsystem-match="misc" --subsystem-match="bluetooth"
+ # Add the uinput module
+ modprobe uinput
+ # Ensure this module is loaded across reboots
+ echo "# uinput is needed by mythpywii" >> /etc/modules.mythvantage
+ echo "uinput" >> /etc/modules.mythvantage
+ # Bring up the bluetooth interface -- udev will do this after reboot
+ /usr/sbin/hciconfig hci0 up
+ # Punting on the multiple bluetooth adapter question.
+ echo "It is assumed your bluetooth adapter will be hci0."
+ echo "If you have more than one bluetooth adapter, you"
+ echo "may need to edit /etc/udev/rules.d/z90-wiimote.rules"
+ echo "--------------------------------------------------------------"
+ echo "--------------------------------------------------------------"
+ # Unfortunately there does not seem to be a way to do this without
+ # the user manually intervening.
+ echo "To use your wiimote you will need to restart the frontend service."
+ echo "$ sudo sv restart frontend"
+ echo "or simply reboot your machine."
+ echo "--------------------------------------------------------------"
+ echo "--------------------------------------------------------------"
+ echo "After frontend restart, you should now be able to pair your"
+ echo "Wiimote with your bluetooth adapter by pressing 1 & 2 at the"
+ echo "same time. After a few seconds the wiimote should vibrate and the"
+ echo "LEDs will show [ # . . # ] where # is on and . is off."
+ echo "--------------------------------------------------------------"
+ echo "See /usr/share/docs/mythpywii/CONTROLS for more information."
+ echo "--------------------------------------------------------------"
+}
+
+post_remove() {
+ . /home/mythtv/.mythtv/mysql.txt
+ # kill myth_py_wii.py
+ WIIPID=`pidof -o %PPID /usr/bin/myth_py_wii.py`
+ [ -n "$WIIPID" ] && kill $WIIPID
+ # Remove uinput
+ sed -i '/uinput/d' /etc/modules.mythvantage
+ # Remove line in .fluxbox/apps
+ sed -i '/myth_py_wii.py/d' /home/mythtv/.fluxbox/apps
+ # Remove network remote control support
+ mysql -u mythtv -pmythtv --host=${DBHostName} mythconverg -e \
+ "UPDATE settings SET data = '0' WHERE value = 'NetworkControlEnabled' AND hostname = '${HOST}'";
+}
diff --git a/abs/extra/community/mythpywii/wiimote.rules b/abs/extra/community/mythpywii/wiimote.rules
new file mode 100644
index 0000000..4bb2d9d
--- /dev/null
+++ b/abs/extra/community/mythpywii/wiimote.rules
@@ -0,0 +1,6 @@
+# For Bluetooth/Wiimote
+ KERNEL=="uinput", MODE="0660", GROUP="mythtv"
+
+# Automaticly bring up/down the bluetooth interface
+ ACTION=="add", KERNEL=="hci%n", SUBSYSTEM=="bluetooth", RUN+="/usr/sbin/hciconfig hci%n up"
+ ACTION=="remove", KERNEL=="hci%n", SUBSYSTEM=="bluetooth", RUN+="/usr/sbin/hciconfig hci%n down"
diff --git a/abs/extra/community/network-ups-tools/PKGBUILD b/abs/extra/community/network-ups-tools/PKGBUILD
new file mode 100644
index 0000000..1644c2e
--- /dev/null
+++ b/abs/extra/community/network-ups-tools/PKGBUILD
@@ -0,0 +1,53 @@
+# $Id: PKGBUILD 12757 2010-03-13 04:22:57Z dgriffiths $
+# Maintainer: Roman Kyrylych <roman@archlinux.org>
+# Contributor: Giuseppe Lucarelli <luk@rebelsoft.org>
+
+pkgname=network-ups-tools
+pkgver=2.4.3
+pkgrel=5
+pkgdesc="NUT is a collection of programs for monitoring and administering UPS hardware"
+arch=('i686' 'x86_64')
+url="http://www.networkupstools.org/"
+license=('GPL2')
+depends=('openssl' 'hal' 'gd')
+makedepends=('libusb')
+backup=(etc/ups/{ups.conf,upsd.conf,upsd.users,upsmon.conf,upssched.conf})
+install=nut.install
+source=(http://www.networkupstools.org/source/2.4/nut-$pkgver.tar.gz run.upsd finish.upsd)
+options=('!emptydirs' '!libtool')
+
+build() {
+cd $srcdir/nut-$pkgver
+./configure --with-user=nut \
+--prefix=/usr \
+--datadir=/usr/share/ups \
+--sysconfdir=/etc/ups \
+--with-group=nut \
+--with-hal \
+--with-usb \
+--with-cgi \
+--with-cgipath=/usr/share/webapps/nut \
+--with-htmlpath=/usr/share/webapps/nut \
+--with-udev-dir=/etc/udev || return 1
+
+ make || return 1
+ make DESTDIR=$pkgdir install
+ #ugly hack because --with-pkgconfig-dir doesn't work
+ install -D -m644 lib/libupsclient.pc $pkgdir/usr/lib/pkgconfig
+
+ install -D -m644 conf/ups.conf.sample $pkgdir/etc/ups/ups.conf
+ install -D -m640 conf/upsd.conf.sample $pkgdir/etc/ups/upsd.conf
+ install -D -m640 conf/upsd.users.sample $pkgdir/etc/ups/upsd.users
+ install -D -m640 conf/upsmon.conf.sample $pkgdir/etc/ups/upsmon.conf
+ install -D -m644 conf/upssched.conf.sample $pkgdir/etc/ups/upssched.conf
+ install -D -m755 ../run.upsd $pkgdir/etc/sv/upsd/run || return 1
+ install -D -m755 ../finish.upsd $pkgdir/etc/sv/upsd/finish || return 1
+
+ # Fix udev rules
+ sed -i "s|SYSFS|ATTRS|g" $pkgdir/etc/udev/rules.d/52-nut-usbups.rules
+ install -dm755 ${pkgdir}/lib
+ mv ${pkgdir}/etc/udev ${pkgdir}/lib
+}
+md5sums=('6f893b61b07915e7a139324fa3f79121'
+ 'd7af81650a966660f6fd41f957c66165'
+ 'd50f13385848a9bb8f8cbc9ee5dd9fd5')
diff --git a/abs/extra/community/network-ups-tools/finish.upsd b/abs/extra/community/network-ups-tools/finish.upsd
new file mode 100644
index 0000000..8eb335b
--- /dev/null
+++ b/abs/extra/community/network-ups-tools/finish.upsd
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+PID=`pidof -o %PPID /usr/sbin/upsd`
+ stat_runit "Stopping UPSd Daemon"
+ /usr/bin/upsdrvctl stop &> /dev/null
+ /usr/sbin/upsmon -c stop &> /dev/null
+ [ ! -z "$PID" ] && kill $PID &> /dev/null
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ rm_daemon upsd
+ stat_done
+ fi
diff --git a/abs/extra/community/network-ups-tools/nut.install b/abs/extra/community/network-ups-tools/nut.install
new file mode 100644
index 0000000..1e6beee
--- /dev/null
+++ b/abs/extra/community/network-ups-tools/nut.install
@@ -0,0 +1,21 @@
+post_install() {
+ groupadd -g 55 nut &> /dev/null
+ useradd -u 55 -g nut -G tty -d /var/state/ups -s /bin/false nut >/dev/null 2>&1
+ mkdir -p /var/state/ups/
+ chmod 0770 /var/state/ups/
+ chown root:nut /var/state/ups/
+ chown root:nut /etc/ups/upsd.conf /etc/ups/upsd.users /etc/ups/upsmon.conf
+ echo ">>> Before starting your UPSd daemon, it is imperative"
+ echo ">>> that you read through and edit where needed these files:"
+ echo ">>> /etc/ups/{ups.conf,upsd.conf,upsmon.conf,upsd.users}"
+ echo ">>>"
+ echo ">>> Then add the the upsd service:"
+ echo ">>> $ sudo add_service.sh upsd"
+}
+
+pre_remove() {
+ remove_service.sh upsd
+ userdel nut >/dev/null 2>&1
+ groupdel nut >/dev/null 2>&1
+ rm -rf /var/state/ups/
+}
diff --git a/abs/extra/community/network-ups-tools/run.upsd b/abs/extra/community/network-ups-tools/run.upsd
new file mode 100644
index 0000000..83be88d
--- /dev/null
+++ b/abs/extra/community/network-ups-tools/run.upsd
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+PID=`pidof -o %PPID /usr/sbin/upsd`
+
+ stat_runit "Starting UPSd Daemon"
+ /usr/bin/upsdrvctl start &> /dev/null
+ [ -z "$PID" ] && /usr/sbin/upsd &>/dev/null
+ /usr/sbin/upsmon &>/dev/null
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ add_daemon upsd
+ stat_done
+ fi
+
+ while [ -n $PID ] ; do
+ sleep 60
+ done
diff --git a/abs/extra/community/peardb/PKGBUILD b/abs/extra/community/peardb/PKGBUILD
new file mode 100755
index 0000000..dafe00f
--- /dev/null
+++ b/abs/extra/community/peardb/PKGBUILD
@@ -0,0 +1,22 @@
+arch=('i686')
+pkgname=PearDB
+pkgver=1.7.13
+pkgrel=1
+_kernver=2.6.28-LinHES
+pkgdesc="Pear Database Abstraction Layer"
+url="http://pear.php.net/"
+license=('GPL-2')
+source=('http://download.pear.php.net/package/DB-1.7.13.tgz')
+#install=('')
+
+build() {
+ mkdir -p $startdir/pkg/usr/share/pear/
+ cp -r $startdir/src/DB-$pkgver/DB* $startdir/pkg/usr/share/pear/
+ mkdir -p $startdir/pkg/usr/share/pear/docs/DB/
+ cp -r $startdir/src/DB-$pkgver/doc/* $startdir/pkg/usr/share/pear/docs/DB/
+ mkdir -p $startdir/pkg/usr/share/pear/tests/DB/
+ cp -r $startdir/src/DB-$pkgver/tests/* $startdir/pkg/usr/share/pear/tests/DB/
+
+ }
+
+md5sums=('39b451245941a7059511a852f18b4946')
diff --git a/abs/extra/community/pearlog/PKGBUILD b/abs/extra/community/pearlog/PKGBUILD
new file mode 100755
index 0000000..5bc4ccc
--- /dev/null
+++ b/abs/extra/community/pearlog/PKGBUILD
@@ -0,0 +1,25 @@
+arch=('i686')
+pkgname=PearLog
+pkgver=1.12.0
+pkgrel=1
+_kernver=2.6.28-LinHES
+pkgdesc="Pear Logging Framework"
+url="http://pear.php.net/"
+license=('GPL-2')
+source=('http://download.pear.php.net/package/Log-1.12.0.tgz')
+#install=('')
+
+build() {
+ mkdir -p $startdir/pkg/usr/share/pear/
+ cp -r $startdir/src/Log-$pkgver/Log* $startdir/pkg/usr/share/pear/
+ mkdir -p $startdir/pkg/usr/share/pear/docs/Log
+ cp -r $startdir/src/Log-$pkgver/docs/* $startdir/pkg/usr/share/pear/docs/Log/
+ mkdir -p $startdir/pkg/usr/share/pear/examples/Log
+ cp -r $startdir/src/Log-$pkgver/examples/* $startdir/pkg/usr/share/pear/examples/Log/
+ mkdir -p $startdir/pkg/usr/share/pear/misc/Log
+ cp -r $startdir/src/Log-$pkgver/misc/* $startdir/pkg/usr/share/pear/misc/Log/
+ mkdir -p $startdir/pkg/usr/share/pear/tests/Log
+ cp -r $startdir/src/Log-$pkgver/tests/* $startdir/pkg/usr/share/pear/tests/Log/
+ }
+
+md5sums=('7fe68920afc4b122cb15aba40d735cb6')
diff --git a/abs/extra/community/powernowd/PKGBUILD b/abs/extra/community/powernowd/PKGBUILD
new file mode 100644
index 0000000..f784523
--- /dev/null
+++ b/abs/extra/community/powernowd/PKGBUILD
@@ -0,0 +1,28 @@
+# Contributor: kastor <kastor@fobos.org.ar>
+
+pkgname=powernowd
+pkgver=1.00
+pkgrel=2
+pkgdesc="Program for powering down CPUs dynamicly"
+arch=('i686' 'x86_64')
+url="http://www.deater.net/john/powernowd.html"
+license="GPL"
+depends=('glibc')
+source=(http://www.deater.net/john/$pkgname-$pkgver.tar.gz \
+ run finish powernowd.install powernowd.conf.d)
+install=($pkgname.install)
+
+build() {
+ cd $startdir/src/$pkgname-$pkgver
+ make || return 1
+ install -D -m755 powernowd $startdir/pkg/usr/sbin/powernowd || return 1
+ mkdir -p $startdir/pkg/etc/sv/powernowd || return 1
+ install -D -m755 $startdir/src/run $startdir/pkg/etc/sv/powernowd || return 1
+ install -D -m755 $startdir/src/finish $startdir/pkg/etc/sv/powernowd || return 1
+ install -D -m644 $startdir/src/powernowd.conf.d $startdir/pkg/etc/conf.d/powernowd || return 1
+}
+md5sums=('abc48b690d104e9e71a85400ba19d799'
+ 'ffd9b939665f74dac2220b4311482e04'
+ '13c6591ffc27d0b16f41f7892671302f'
+ 'dcbf8e98425b208c29f4c06b687dd0d0'
+ 'c9385af22c7c74e6cd6bdc982f94644f')
diff --git a/abs/extra/community/powernowd/finish b/abs/extra/community/powernowd/finish
new file mode 100644
index 0000000..97e3034
--- /dev/null
+++ b/abs/extra/community/powernowd/finish
@@ -0,0 +1,25 @@
+#!/bin/bash
+
+# AUR Credits:
+# simple init script the ARCH-way for Powernowd
+# Made by, CyberTron, packages@linuxportalen.com
+
+# Modifications by Alexander Baldeck <alexander@archlinux.org>
+
+# general config
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+PID=`pidof -o %PPID /usr/sbin/powernowd`
+
+[ -f /etc/conf.d/powernowd ] && source /etc/conf.d/powernowd
+
+ stat_runit "Stopping Powernowd"
+ [ ! -z "$PID" ] && kill $PID &> /dev/null
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ rm /var/run/powernowd.pid
+ rm_daemon powernowd
+ stat_done
+ fi
diff --git a/abs/extra/community/powernowd/powernowd.conf.d b/abs/extra/community/powernowd/powernowd.conf.d
new file mode 100644
index 0000000..287c2bc
--- /dev/null
+++ b/abs/extra/community/powernowd/powernowd.conf.d
@@ -0,0 +1,6 @@
+# Configuration file for powernowd
+
+# If no options given, powernowd should be able to autodetect
+# a sane setup. So most users will not have to put anything
+# here.
+OPTIONS="-d"
diff --git a/abs/extra/community/powernowd/powernowd.install b/abs/extra/community/powernowd/powernowd.install
new file mode 100644
index 0000000..af218af
--- /dev/null
+++ b/abs/extra/community/powernowd/powernowd.install
@@ -0,0 +1,19 @@
+post_install() {
+ add_service.sh powernowd
+
+ echo "Be sure to modprobe the proper module for your CPU and then add it
+ echo "to /etc/rc.conf in the MODULES section."
+ echo "i.e. for a Core2Duo modprobe/add acpi_cpufreq"
+ echo "Then restart the powernowd service: sudo sv restart powernowd"
+}
+
+post_upgrade() {
+ echo "Be sure to modprobe the proper module for your CPU and then add it
+ echo "to /etc/rc.conf in the MODULES section."
+ echo "i.e. for a Core2Duo modprobe/add acpi_cpufreq"
+ echo "Then restart the powernowd service: sudo sv restart powernowd"
+}
+
+pre_remove() {
+ remove_service.sh powernowd
+}
diff --git a/abs/extra/community/powernowd/run b/abs/extra/community/powernowd/run
new file mode 100644
index 0000000..0e83b98
--- /dev/null
+++ b/abs/extra/community/powernowd/run
@@ -0,0 +1,25 @@
+#!/bin/bash
+
+# AUR Credits:
+# simple init script the ARCH-way for Powernowd
+# Made by, CyberTron, packages@linuxportalen.com
+
+# Modifications by Alexander Baldeck <alexander@archlinux.org>
+
+# general config
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+PID=`pidof -o %PPID /usr/sbin/powernowd`
+
+[ -f /etc/conf.d/powernowd ] && source /etc/conf.d/powernowd
+
+ stat_runit "Starting Powernowd"
+ [ -z "$PID" ] && /usr/sbin/powernowd $OPTIONS 2>/dev/null
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ echo $PID > /var/run/powernowd.pid
+ add_daemon powernowd
+ stat_done
+ fi
diff --git a/abs/extra/community/squeezeboxserver/PKGBUILD b/abs/extra/community/squeezeboxserver/PKGBUILD
new file mode 100644
index 0000000..45db11f
--- /dev/null
+++ b/abs/extra/community/squeezeboxserver/PKGBUILD
@@ -0,0 +1,34 @@
+# Contributor: Anton Prins <uar at prinsonline dot demon dot nl>
+
+pkgname=squeezeboxserver
+pkgver=7.4.1
+pkgrel=1
+pkgdesc="Powerful streaming audio server from Slim Devices"
+depends=(
+# unknown to me, default arch install + openssh handles it
+ )
+
+source=(http://downloads.slimdevices.com/SqueezeboxServer_v${pkgver}/squeezeboxserver-${pkgver}.tgz
+ $pkgname.rc
+ $pkgname.conf.d
+ )
+
+url="http://www.slimdevices.com/pi_features.html"
+license=('GPL')
+arch=('i686' 'x86_64')
+install=squeezeboxserver.install
+
+#not sure how to handle the build number -28947?
+build() {
+cd $startdir/src/squeezeboxserver-${pkgver}-28947 || return 1
+
+mkdir -p $startdir/pkg/home/squeezeboxserver || return 1
+cp -a * $startdir/pkg/home/squeezeboxserver || return 1
+install -D -m755 ../squeezeboxserver.rc $startdir/pkg/etc/rc.d/squeezeboxserver || return 1
+install -D -m644 ../squeezeboxserver.conf.d $startdir/pkg/etc/conf.d/squeezeboxserver || return 1
+mkdir $startdir/pkg/home/squeezeboxserver/prefs
+}
+
+md5sums=('fa65636e7df75ae7af884a2efa184639'
+ '5e57982c257797badbf72c2ae04994f7'
+ 'aa65896541958e119e63ee7c96be39af')
diff --git a/abs/extra/community/squeezeboxserver/squeezeboxserver.conf.d b/abs/extra/community/squeezeboxserver/squeezeboxserver.conf.d
new file mode 100644
index 0000000..d14a2e9
--- /dev/null
+++ b/abs/extra/community/squeezeboxserver/squeezeboxserver.conf.d
@@ -0,0 +1,7 @@
+# Configuration file for SqueezeCenter on Arch Linux.
+# Save this as /etc/conf.d/squeezeboxserver
+
+# Enter space-delimited options on the following line.
+# e.g. SQUEEZEBOXSERVER_OPTS="--diag --d_scan --d_command"
+# See "/home/squeezeboxserver/slimserver.pl --help" for a full list of possible options.
+SQUEEZEBOXSERVER_OPTS=""
diff --git a/abs/extra/community/squeezeboxserver/squeezeboxserver.install b/abs/extra/community/squeezeboxserver/squeezeboxserver.install
new file mode 100644
index 0000000..058de02
--- /dev/null
+++ b/abs/extra/community/squeezeboxserver/squeezeboxserver.install
@@ -0,0 +1,56 @@
+post_install() {
+echo -n "adding squeezeboxserver user... "
+useradd -c "SqueezeBoxServer" -g users -s /bin/false squeezeboxserver && echo "done."
+passwd -l squeezeboxserver &>/dev/null
+
+chown -R squeezeboxserver:users /home/squeezeboxserver
+
+install -o squeezeboxserver -d /var/cache/squeezeboxserver
+touch /var/log/squeezeboxserver.log
+chown squeezeboxserver:users /var/log/squeezeboxserver.log
+
+cat << 'EOM'
+
+==> SqueezeBoxServer uses MySQL instead of sqlite. If you have MySQL up and running
+==> you can configure SqueezeBoxServer to use that server as described here:
+==> http://wiki.slimdevices.com/index.php/ExistingMySQLInstance
+
+==> PLEASE NOTE: SqueezeBoxServer should always be run as the user 'squeezeboxserver'.
+==> This is easily done by adding squeezeboxserver to the DAEMONS array in rc.conf,
+==> after network and mysql.
+
+==> Additional run-time options can be added to /etc/conf.d/squeezeboxserver.
+==> Please refer to "/home/squeezeboxserver/slimserver.pl --help" for full details.
+
+EOM
+}
+
+post_upgrade() {
+chown -R squeezeboxserver:users /home/squeezeboxserver
+
+cat << 'EOM'
+
+==> SqueezeBoxServer uses MySQL instead of sqlite. If you have MySQL up and running
+==> you can configure SqueezeBoxServer to use that server as described here:
+==> http://wiki.slimdevices.com/index.php/ExistingMySQLInstance
+
+EOM
+}
+
+pre_remove() {
+# pre_remove gets called whenever post_remove is defined.
+true
+}
+
+post_remove() {
+# post_remove doesn't start at a newline like the other post_* functions,
+# so we'll have to make one for ourselves.
+echo -n -e "\nremoving squeezeboxserver user... "
+userdel squeezeboxserver && echo "done."
+
+rm -r /var/cache/squeezeboxserver /var/log/squeezeboxserver.log
+}
+
+op=$1
+shift
+$op $*
diff --git a/abs/extra/community/squeezeboxserver/squeezeboxserver.rc b/abs/extra/community/squeezeboxserver/squeezeboxserver.rc
new file mode 100644
index 0000000..d33db16
--- /dev/null
+++ b/abs/extra/community/squeezeboxserver/squeezeboxserver.rc
@@ -0,0 +1,47 @@
+#!/bin/bash
+
+# source application-specific settings
+[ -f /etc/conf.d/squeezeboxserver ] && . /etc/conf.d/squeezeboxserver
+
+# general config
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+squeezehome=/home/squeezeboxserver
+pidfile=/var/run/squeezeboxserver.pid
+logfile=/var/log/squeezeboxserver.log
+prefsdir=/home/squeezeboxserver/prefs
+cachedir=/var/cache/squeezeboxserver
+
+
+case "$1" in
+ start)
+ stat_busy "Starting SqueezeBoxServer"
+ cd $squeezehome
+ ./slimserver.pl --daemon --user squeezeboxserver --prefsdir $prefsdir \
+ --cachedir $cachedir --pidfile $pidfile --logfile $logfile $SQUEEZEBOXSERVER_OPTS
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ add_daemon squeezeboxserver
+ stat_done
+ fi
+ ;;
+ stop)
+ stat_busy "Stopping SqueezeBoxServer"
+ kill `cat $pidfile` &>/dev/null
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ rm_daemon squeezeboxserver
+ stat_done
+ fi
+ ;;
+ restart)
+ $0 stop
+ sleep 3
+ $0 start
+ ;;
+ *)
+ echo "usage: $0 {start|stop|restart}"
+esac
diff --git a/abs/extra/community/transmission-cli/PKGBUILD b/abs/extra/community/transmission-cli/PKGBUILD
index a3791fc..40af42a 100644
--- a/abs/extra/community/transmission-cli/PKGBUILD
+++ b/abs/extra/community/transmission-cli/PKGBUILD
@@ -3,33 +3,39 @@
# Contributor: Alessio 'mOLOk' Bolognino <themolok@gmail.com>
pkgname=transmission-cli
-pkgver=1.42
+pkgver=2.04
pkgrel=1
pkgdesc="Fast, easy, and free BitTorrent client (CLI tools, daemon and web client)"
arch=('i686' 'x86_64')
url="http://www.transmissionbt.com/"
license=('MIT')
-depends=('curl')
+depends=('curl' 'libevent')
makedepends=('intltool')
replaces=('transmission')
backup=('etc/conf.d/transmissiond')
install=transmission-cli.install
source=(http://mirrors.m0k.org/transmission/files/transmission-$pkgver.tar.bz2
- transmissiond
+ run.transmissiond
+ transmission-cli.install
+ transmission.include
transmissiond.conf)
-md5sums=('c083bdcb01426466e80ee339bccd9351'
- 'e2326d412e25b4449ff663a5d4015e1a'
- '7b019a710493ec4f8b54a1f528e1981d')
build() {
cd "$srcdir/transmission-$pkgver"
- ./configure --prefix=/usr --disable-gtk --disable-wx || return 1
+ ./configure --prefix=/usr --disable-gtk || return 1
make || return 1
make DESTDIR="$pkgdir" install || return 1
- install -D -m755 "$srcdir/transmissiond" "$pkgdir/etc/rc.d/transmissiond" || return 1
+ mkdir -p -m744 "$pkgdir/etc/sv/transmissiond" || return 1
+ mkdir -p -m777 "$pkgdir/myth/transmission" || return 1
+ install -D -m755 "$srcdir/run.transmissiond" "$pkgdir/etc/sv/transmissiond/run" || return 1
install -D -m644 "$srcdir/transmissiond.conf" "$pkgdir/etc/conf.d/transmissiond" || return 1
-
+ install -D -m644 "$srcdir/transmission.include" "$pkgdir/etc/transmission/transmission.include" || return 1
install -D -m644 COPYING "$pkgdir/usr/share/licenses/transmission-cli/COPYING" || return 1
}
+md5sums=('84fe15eb7e000fdc369def513299358b'
+ 'b91534aaf2e403331c611c615ab2c03d'
+ 'ff22c13dbd52565f9e88b1de22514eb9'
+ 'b5a49ea375333cd0fee40f70dbac4c2e'
+ 'd05567c7a4f9df9f28602d1356d5c05c')
diff --git a/abs/extra/community/transmission-cli/run.transmissiond b/abs/extra/community/transmission-cli/run.transmissiond
new file mode 100755
index 0000000..714c946
--- /dev/null
+++ b/abs/extra/community/transmission-cli/run.transmissiond
@@ -0,0 +1,29 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+. /etc/conf.d/transmissiond
+
+CONFIGDIR=/home/$TRANS_USER/.config/transmission-daemon
+PID=`pidof -o %PPID /usr/bin/transmission-daemon`
+# Update the block lists - try to keep the bad guys out.
+ cd ${CONFIGDIR}/blocklists
+ if [ $? -eq 0 ]; then
+ find . -mtime +4 -type f -name level1 -exec rm {} \;
+ if [ ! -f ${CONFIGDIR}/blocklists/level1 ]; then
+ # update blocklist
+ # echo "updating blocklist, ~4MB"
+ wget -q -O level1.gz http://download.m0k.org/transmission/files/level1.gz
+ if [ -f level1.gz ]; then
+ gunzip level1.gz
+ if [ $? -eq 0 ]; then
+ chmod go+r level1
+ else
+ rm -f level1*
+ fi
+ fi
+ fi
+ cd - 2>&1 >/dev/null
+ fi
+ stat_runit "Starting Transmission Daemon"
+ [ -z "$PID" ] && exec su -l -c "/usr/bin/nice -n 19 /usr/bin/transmission-daemon $TRANS_OPTS" $TRANS_USER 2>/dev/null
diff --git a/abs/extra/community/transmission-cli/transmission-cli.install b/abs/extra/community/transmission-cli/transmission-cli.install
index cb6bf60..088ecc6 100644
--- a/abs/extra/community/transmission-cli/transmission-cli.install
+++ b/abs/extra/community/transmission-cli/transmission-cli.install
@@ -1,9 +1,28 @@
post_install() {
+ /bin/echo 'include "/etc/transmission/transmission.include"' >> /etc/lighttpd/conf.include
+ killall -HUP lighttpd
+
+ add_service.sh transmissiond
+
cat << _EOF
- If you want to run the Transmission daemon at boot,
- add transmissiond to the DAEMONS array in /etc/rc.conf.
- You have to set the user in /etc/conf.d/transmissiond.
+ You can edit the user and options in /etc/conf.d/transmissiond.
+
+ To access the web interface:
+ http://localhost/transmission
+
+ Configuration file editing information can be found at:
+ http://trac.transmissionbt.com/wiki/ConfigFiles
_EOF
+
+}
+
+pre_upgrade() {
+ rm -f /usr/share/man/man1/transmission*
+
+}
+
+pre_remove() {
+ remove_service.sh transmissiond
}
diff --git a/abs/extra/community/transmission-cli/transmission.include b/abs/extra/community/transmission-cli/transmission.include
new file mode 100644
index 0000000..5cbf399
--- /dev/null
+++ b/abs/extra/community/transmission-cli/transmission.include
@@ -0,0 +1,15 @@
+#Redirect from /transmission to /transmission/web
+url.rewrite-once += ( "^/transmission[/]?$" => "/transmission/web" )
+$HTTP["url"] =~ "^/transmission/" {
+ #Serve static files from /usr/share/transmission
+ server.document-root = "/usr/share/"
+ #Forward RPC requests to the Transmission daemon
+ proxy.server = (
+ "/transmission/rpc" => (
+ (
+ "host" => "127.0.0.1",
+ "port" => 9091
+ )
+ )
+ )
+}
diff --git a/abs/extra/community/transmission-cli/transmissiond.conf b/abs/extra/community/transmission-cli/transmissiond.conf
index 8f1275b..d642c01 100644
--- a/abs/extra/community/transmission-cli/transmissiond.conf
+++ b/abs/extra/community/transmission-cli/transmissiond.conf
@@ -1 +1,2 @@
-TRANS_USER=""
+TRANS_USER="mythtv"
+TRANS_OPTS="-f -ep -w /myth/transmission"