diff options
Diffstat (limited to 'community-staging/mldonkey')
-rw-r--r-- | community-staging/mldonkey/PKGBUILD | 46 | ||||
-rw-r--r-- | community-staging/mldonkey/mldonkey.conf | 5 | ||||
-rw-r--r-- | community-staging/mldonkey/mldonkey.desktop | 8 | ||||
-rw-r--r-- | community-staging/mldonkey/mldonkey.install | 17 | ||||
-rw-r--r-- | community-staging/mldonkey/mldonkeyd | 67 |
5 files changed, 0 insertions, 143 deletions
diff --git a/community-staging/mldonkey/PKGBUILD b/community-staging/mldonkey/PKGBUILD deleted file mode 100644 index 88cc8860d..000000000 --- a/community-staging/mldonkey/PKGBUILD +++ /dev/null @@ -1,46 +0,0 @@ -# $Id: PKGBUILD 62876 2012-01-28 13:55:36Z cbrannon $ -# Maintainer: Chris Brannon <cmbrannon79@gmail.com> -# Contributor: Corrado Primier <bardo@aur.archlinux.org> -# Contributor: Alessio 'mOLOk' Bolognino <themolok@gmail.com> - -pkgname=mldonkey -pkgver=3.1.0 -pkgrel=2 -pkgdesc="A multi-network P2P client" -arch=('i686' 'x86_64') -url="http://mldonkey.sourceforge.net/" -license=('GPL') -depends=('desktop-file-utils' 'file' 'gd' 'bzip2') -makedepends=('lablgtk2' 'librsvg' 'ocaml') -optdepends=('librsvg: GUI support' - 'libx11: GUI support') -backup=('etc/conf.d/mldonkey') -install=mldonkey.install -source=(http://downloads.sourceforge.net/sourceforge/mldonkey/$pkgname-$pkgver.tar.bz2 - mldonkeyd - mldonkey.conf - mldonkey.desktop) - -build() { - cd "$srcdir/$pkgname-$pkgver" - - ./configure --prefix=/usr --enable-gui=newgui2 - make -} - -package() { - cd "$srcdir/$pkgname-$pkgver" - make DESTDIR="$pkgdir" install - - install -Dm644 "$srcdir/$pkgname-$pkgver/icons/rsvg/type_source_normal.svg" \ - "$pkgdir/usr/share/icons/mldonkey.svg" - install -Dm644 "$srcdir/mldonkey.desktop" \ - "$pkgdir/usr/share/applications/mldonkey.desktop" - - install -Dm755 "$srcdir/mldonkeyd" "$pkgdir/etc/rc.d/mldonkey" - install -Dm644 "$srcdir/mldonkey.conf" "$pkgdir/etc/conf.d/mldonkey" -} -md5sums=('072726d158ba1e936c554be341e7ceff' - '75e4b6c7fb282f7de15a8d5478f3bd70' - '1f86d92db51c62cded0e6f3833057dee' - '1de3266caa49f82bee73ba891eea12cf') diff --git a/community-staging/mldonkey/mldonkey.conf b/community-staging/mldonkey/mldonkey.conf deleted file mode 100644 index 24a25af74..000000000 --- a/community-staging/mldonkey/mldonkey.conf +++ /dev/null @@ -1,5 +0,0 @@ -# Username under which the daemon will run (mandatory) -MLDUSER="" - -# Parameters to be passed to the daemon (default is empty) -PARAMS="" diff --git a/community-staging/mldonkey/mldonkey.desktop b/community-staging/mldonkey/mldonkey.desktop deleted file mode 100644 index b307261e1..000000000 --- a/community-staging/mldonkey/mldonkey.desktop +++ /dev/null @@ -1,8 +0,0 @@ -[Desktop Entry] -Name=MLDonkey GUI -Comment=multi-protocol P2P program -Exec=mldonkey_gui -Icon=mldonkey -Terminal=false -Type=Application -Categories=Network;P2P; diff --git a/community-staging/mldonkey/mldonkey.install b/community-staging/mldonkey/mldonkey.install deleted file mode 100644 index dd8ea0407..000000000 --- a/community-staging/mldonkey/mldonkey.install +++ /dev/null @@ -1,17 +0,0 @@ -post_install() { - update-desktop-database -q -} - -post_upgrade() { - if [ -f /etc/mldonkey.conf ]; then - mv /etc/mldonkey.conf /etc/conf.d/mldonkey - cat << EOM - -==> mldonkey post upgrade message: -==> /etc/mldonkey.conf has been moved in /etc/conf.d/mldonkey - -EOM - fi -} - -# vim:set ts=2 sw=2 et: diff --git a/community-staging/mldonkey/mldonkeyd b/community-staging/mldonkey/mldonkeyd deleted file mode 100644 index 6a458d68e..000000000 --- a/community-staging/mldonkey/mldonkeyd +++ /dev/null @@ -1,67 +0,0 @@ -#!/bin/bash - -. /etc/rc.conf -. /etc/conf.d/mldonkey -. /etc/rc.d/functions - -if [ -z $MLDUSER ] ; then - echo "Unable to run MLDonkey. You must set a user in /etc/conf.d/mldonkey ." - exit 2 -fi - -if [ -z "$(getent passwd "$MLDUSER")" ]; then - # Perhaps we should create the account for the user? - echo "You must create the account $MLDUSER in order to run mldonkey." - echo "Please create the account manually, and try again." - exit 2 -fi - -MLDGROUPID=$(getent passwd "$MLDUSER" |cut -d':' -f4) -MLDGROUP=$(getent group $MLDGROUPID |cut -d':' -f1) -USERDIR=$(getent passwd $MLDUSER | cut -d: -f6) - -if [ ! -d $USERDIR ]; then - echo "Unable to run MLDonkey. Home directory for ${MLDUSER} does not exist." - exit 2 -fi - -PIDDIR="/var/run/mldonkey" -PIDFILE="$PIDDIR/mlnet.pid" -PID=$(cat $PIDFILE 2>/dev/null) - -case "$1" in - start) - stat_busy "Starting MLDonkey" - if [ ! -d $PIDDIR ]; then - install -d -m755 -o "$MLDUSER" -g "$MLDGROUP" $PIDDIR - fi - if [ "$(stat -c %U $PIDDIR)" != "$MLDUSER" ]; then - chown -R "$MLDUSER:$MLDGROUP" $PIDDIR - fi - [ -z $PID ] && su $MLDUSER -s /bin/sh -c "/usr/bin/mlnet -pid $PIDDIR $PARAMS -log_to_syslog true &> /tmp/mldonkey.log &" - if [ $? -gt 0 ]; then - stat_fail - else - add_daemon mldonkey - stat_done - fi - ;; - stop) - stat_busy "Stopping MLDonkey" - [ ! -z $PID ] && kill $PID &> /dev/null - if [ $? -gt 0 ]; then - stat_fail - else - rm_daemon mldonkey - stat_done - fi - ;; - restart) - $0 stop - sleep 1 - $0 start - ;; - *) - echo "usage: $0 {start|stop|restart}" -esac -exit 0 |