[arch-commits] Commit in (9 files)

Anatol Pomozov anatolik at nymeria.archlinux.org
Fri Feb 21 22:28:59 UTC 2014


    Date: Friday, February 21, 2014 @ 23:28:59
  Author: anatolik
Revision: 106067

mldonkey: move package from aur to community

Added:
  mldonkey/
  mldonkey/repos/
  mldonkey/trunk/
  mldonkey/trunk/PKGBUILD
  mldonkey/trunk/gd_version.patch
  mldonkey/trunk/mldonkey.conf
  mldonkey/trunk/mldonkey.install
  mldonkey/trunk/mldonkey.service
  mldonkey/trunk/mldonkey.tmpfiles

-------------------+
 PKGBUILD          |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 gd_version.patch  |   40 ++++++++++++++++++++++++++++++++++++++++
 mldonkey.conf     |    2 ++
 mldonkey.install  |   27 +++++++++++++++++++++++++++
 mldonkey.service  |   10 ++++++++++
 mldonkey.tmpfiles |    1 +
 6 files changed, 131 insertions(+)

Added: mldonkey/trunk/PKGBUILD
===================================================================
--- mldonkey/trunk/PKGBUILD	                        (rev 0)
+++ mldonkey/trunk/PKGBUILD	2014-02-21 22:28:59 UTC (rev 106067)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Anatol Pomozov <anatol.pomozov at gmail.com>
+
+pkgname=mldonkey
+pkgver=3.1.3
+pkgrel=3
+pkgdesc='A multi-network P2P client'
+arch=(i686 x86_64)
+url='http://mldonkey.sourceforge.net/'
+license=(GPL)
+depends=(desktop-file-utils file gd)
+makedepends=(lablgtk2 librsvg ocaml)
+optdepends=('librsvg: GUI support'
+            'gtk2: GUI support')
+backup=(etc/conf.d/mldonkey)
+install=mldonkey.install
+source=(http://downloads.sourceforge.net/sourceforge/mldonkey/$pkgname-$pkgver.tar.bz2
+        mldonkey.conf
+        mldonkey.service
+        mldonkey.tmpfiles
+        gd_version.patch)
+sha1sums=('424386f277e84df55a2cbab213fae60787e42c8b'
+          '7e70e5f3c7bf5036debde4dacbed463c0464a1e7'
+          'd6886479cf36fbee0a62def0291706973c91dfa5'
+          'a454b919fac518ecb32f6262afbef0dfc423401c'
+          '18c4a0753d338bf24cac28dcbd43abcf59ce4534')
+
+prepare() {
+  cd mldonkey-$pkgver
+  patch -p0 < "$srcdir/gd_version.patch" # a fix from upstream http://cvs.savannah.gnu.org/viewvc/mldonkey/config/configure.in?root=mldonkey&r1=1.357&r2=1.358&view=patch
+
+  rm config/configure  # remove this file to force its regeneration, we've just changed ./config/configure.in
+}
+
+build() {
+  cd mldonkey-$pkgver
+  ./configure --prefix=/usr --enable-gui=newgui2
+  make
+}
+
+package() {
+  cd mldonkey-$pkgver
+  make DESTDIR="$pkgdir" install
+
+  install -Dm644 icons/rsvg/type_source_normal.svg "$pkgdir"/usr/share/icons/mldonkey.svg
+  install -Dm644 distrib/mldonkey.desktop "$pkgdir"/usr/share/applications/mldonkey.desktop
+
+  install -Dm644 "$srcdir"/mldonkey.conf "$pkgdir"/etc/conf.d/mldonkey
+  install -Dm644 "$srcdir"/mldonkey.service "$pkgdir"/usr/lib/systemd/system/mldonkey.service
+  install -Dm644 "$srcdir"/mldonkey.tmpfiles "$pkgdir"/usr/lib/tmpfiles.d/mldonkey.conf
+}


Property changes on: mldonkey/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Added: mldonkey/trunk/gd_version.patch
===================================================================
--- mldonkey/trunk/gd_version.patch	                        (rev 0)
+++ mldonkey/trunk/gd_version.patch	2014-02-21 22:28:59 UTC (rev 106067)
@@ -0,0 +1,40 @@
+--- config/configure.in	2013/07/07 11:46:34	1.357
++++ config/configure.in	2013/07/20 10:14:57	1.358
+@@ -932,13 +932,30 @@
+     GDMAJORVERSION=`$GDLIBCONFIG --majorversion`
+     GDMINORVERSION=`$GDLIBCONFIG --minorversion`
+     GDREVISION=`$GDLIBCONFIG --revision`
+-    if [ [ $GDMAJORVERSION = 2 ] && [ $GDMINORVERSION = 0 ] && [ $GDREVISION -gt 14 ]]; then
+-	AC_MSG_RESULT($GDVERSION)
+-	LIBGD=yes
+-    else
+-	AC_MSG_RESULT(no (found $GDVERSION))
+-	LIBGD=no
+-    fi
++    case $GDMAJORVERSION in
++        1)
++            AC_MSG_RESULT(no (found $GDVERSION))
++            LIBGD=no
++            ;;
++        2)
++            if test $GDMINORVERSION -ge 1; then
++                AC_MSG_RESULT($GDVERSION)
++                LIBGD=yes
++            else
++                if test $GDREVISION -gt 14; then
++                    AC_MSG_RESULT($GDVERSION)
++                    LIBGD=yes
++                else
++                    AC_MSG_RESULT(no (found $GDVERSION))
++                    LIBGD=no
++                fi
++            fi
++            ;;
++        *)
++            AC_MSG_RESULT($GDVERSION)
++            LIBGD=yes
++            ;;
++    esac
+   else
+     LIBGD=yes
+   fi

Added: mldonkey/trunk/mldonkey.conf
===================================================================
--- mldonkey/trunk/mldonkey.conf	                        (rev 0)
+++ mldonkey/trunk/mldonkey.conf	2014-02-21 22:28:59 UTC (rev 106067)
@@ -0,0 +1,2 @@
+# Parameters to be passed to the daemon (default is empty)
+PARAMS=""

Added: mldonkey/trunk/mldonkey.install
===================================================================
--- mldonkey/trunk/mldonkey.install	                        (rev 0)
+++ mldonkey/trunk/mldonkey.install	2014-02-21 22:28:59 UTC (rev 106067)
@@ -0,0 +1,27 @@
+post_install() {
+  if ! getent group mldonkey >/dev/null; then
+    groupadd --system mldonkey
+  fi
+  if ! getent passwd mldonkey >/dev/null; then
+    useradd --system -c 'Mldonkey daemon user' -g mldonkey -d /var/lib/mldonkey -s /bin/false mldonkey
+  fi
+
+  mkdir -p /var/lib/mldonkey
+  chown mldonkey:mldonkey /var/lib/mldonkey
+  update-desktop-database -q
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+post_remove() {
+  if getent passwd mldonkey >/dev/null; then
+    userdel mldonkey
+  fi
+  if getent group mldonkey >/dev/null; then
+    groupdel mldonkey
+  fi
+
+  update-desktop-database -q
+}

Added: mldonkey/trunk/mldonkey.service
===================================================================
--- mldonkey/trunk/mldonkey.service	                        (rev 0)
+++ mldonkey/trunk/mldonkey.service	2014-02-21 22:28:59 UTC (rev 106067)
@@ -0,0 +1,10 @@
+[Unit]
+Description=Mldonkey - Multiple Peer-To-Peer Network Client
+After=network.target
+
+[Service]
+User=mldonkey
+ExecStart=/usr/bin/mlnet -log_to_syslog true -log_file /dev/null -pid /run/mldonkey
+
+[Install]
+WantedBy=multi-user.target

Added: mldonkey/trunk/mldonkey.tmpfiles
===================================================================
--- mldonkey/trunk/mldonkey.tmpfiles	                        (rev 0)
+++ mldonkey/trunk/mldonkey.tmpfiles	2014-02-21 22:28:59 UTC (rev 106067)
@@ -0,0 +1 @@
+d /run/mldonkey 755 mldonkey mldonkey -




More information about the arch-commits mailing list