From 1c50f83d6e7d4b0f5bdff9edd9e3a71a25abe423 Mon Sep 17 00:00:00 2001 From: Cecil Hugh Watson Date: Mon, 26 Jan 2009 11:35:05 -0800 Subject: Added mythstream.install to PKGBUILD. Bumped ver. --- abs/core-testing/mythtv/stable/mythstream/PKGBUILD | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/abs/core-testing/mythtv/stable/mythstream/PKGBUILD b/abs/core-testing/mythtv/stable/mythstream/PKGBUILD index d9afa8a..0bfe8ad 100644 --- a/abs/core-testing/mythtv/stable/mythstream/PKGBUILD +++ b/abs/core-testing/mythtv/stable/mythstream/PKGBUILD @@ -4,7 +4,7 @@ pkgname=mythstream pkgver=0.18_1 -pkgrel=5 +pkgrel=6 pkgdesc="Unofficial MythTV plugin for Internet audio and video streams." arch=('i686' 'x86_64') url="http://home.kabelfoon.nl/~moongies/streamtuned.html" @@ -12,6 +12,7 @@ license=('GPL') depends=('mythtv' 'perl-xml-simple') source=("http://home.kabelfoon.nl/~moongies/sw9vc4htz2/mythstream-v0.18_1.tar.gz" "http://home.kabelfoon.nl/~moongies/sw9vc4htz2/mythstream.cpp.patch_svn20071123" "mythstream.diff") md5sums=('') +install=mythstream.install groups=('mythtv-extras') build() { -- cgit v0.12 From 6980e3d3f5dbc51bd787c2ad490dc7b3c160199c Mon Sep 17 00:00:00 2001 From: Cecil Hugh Watson Date: Mon, 26 Jan 2009 11:35:29 -0800 Subject: Initial PKGBUILD for Folding at Home. --- abs/extra-testing/community/foldingathome/PKGBUILD | 28 ++++++ .../foldingathome/archpatch_foldingathome.diff | 110 +++++++++++++++++++++ .../community/foldingathome/foldingathome.install | 30 ++++++ 3 files changed, 168 insertions(+) create mode 100644 abs/extra-testing/community/foldingathome/PKGBUILD create mode 100644 abs/extra-testing/community/foldingathome/archpatch_foldingathome.diff create mode 100755 abs/extra-testing/community/foldingathome/foldingathome.install diff --git a/abs/extra-testing/community/foldingathome/PKGBUILD b/abs/extra-testing/community/foldingathome/PKGBUILD new file mode 100644 index 0000000..411702c --- /dev/null +++ b/abs/extra-testing/community/foldingathome/PKGBUILD @@ -0,0 +1,28 @@ +# Contributor: Jason Taylor +# Contributor: seratne +# Contributor: Nick B + +pkgname=foldingathome +pkgver=6.02 +pkgrel=1 +pkgdesc="Folding@Home is a distributed computing project which studies protein folding, misfolding, aggregation, and related diseases." +arch=('i686') +url="http://folding.stanford.edu/" +license=('custom') +depends=('bash') +backup=('etc/conf.d/foldingathome') +install=foldingathome.install +source=(http://www.stanford.edu/group/pandegroup/folding/release/FAH$pkgver-Linux.tgz + archpatch_foldingathome.diff) +md5sums=('112b3d66909050f1bb990993a1464cb9' + '02f4ca64d552b442d484c51fa5f4228a') + +build() { + cd $startdir/src/ + patch -p1 /opt/fah/$FAH_USER/myfah.log" & ++ else ++ cd /opt/fah ++ nice --adjustment 19 /opt/fah/fah6 -verbosity 9 > /opt/fah/myfah.log & ++ fi ++ fi ++ if [ ! -z "$PID" -o $? -gt 0 ]; then ++ stat_fail ++ else ++ add_daemon foldingathome ++ stat_done ++ fi ++ ;; ++ ++ stop) ++ stat_busy "Stopping Folding@Home" ++ [ ! -z "$PID" ]&& kill $PID &> /dev/null ++ if [ $? -gt 0 ]; then ++ stat_fail ++ else ++ rm_daemon foldingathome ++ stat_done ++ fi ++ ;; ++ ++ restart) ++ $0 stop ++ sleep 1 ++ $0 start ++ ;; ++ ++ *) ++ echo $"Usage: $0 {start|stop|restart}" ++esac ++ diff --git a/abs/extra-testing/community/foldingathome/foldingathome.install b/abs/extra-testing/community/foldingathome/foldingathome.install new file mode 100755 index 0000000..8eedb6c --- /dev/null +++ b/abs/extra-testing/community/foldingathome/foldingathome.install @@ -0,0 +1,30 @@ +# arg 1: the new package version +post_install() { + cat << 'EOM' + --> Please cd to /opt/fah/ and execute ./fah6 -smp -configonly + --> to configure your settings. Then add "foldingathome" to the list + --> of daemons in /etc/rc.conf. If you would like to join the Arch + --> Linux team, use team number 45032. To check current progress, + --> point your browser to file://opt/fah/MyFolding.html + + --> It is strongly recommended that you run foldingathome as a user other + --> than root. You can identify a user in /etc/conf.d/foldingathome. + --> A directory called /opt/fah/$FAH_USER will be created." +EOM +} + +# arg 1: the new package version +# arg 2: the old package version +post_upgrade() { + post_install $1 +} + +# arg 1: the old package version +pre_remove() { + /bin/true +} + +op=$1 +shift + +$op $* -- cgit v0.12