[arch-commits] Commit in mldonkey/repos (12 files)

Anatol Pomozov anatolik at archlinux.org
Thu Feb 4 18:31:33 UTC 2016


    Date: Thursday, February 4, 2016 @ 19:31:33
  Author: anatolik
Revision: 160336

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  mldonkey/repos/community-testing-i686/
  mldonkey/repos/community-testing-i686/PKGBUILD
    (from rev 160335, mldonkey/trunk/PKGBUILD)
  mldonkey/repos/community-testing-i686/mldonkey.conf
    (from rev 160335, mldonkey/trunk/mldonkey.conf)
  mldonkey/repos/community-testing-i686/mldonkey.install
    (from rev 160335, mldonkey/trunk/mldonkey.install)
  mldonkey/repos/community-testing-i686/mldonkey.service
    (from rev 160335, mldonkey/trunk/mldonkey.service)
  mldonkey/repos/community-testing-i686/mldonkey.tmpfiles
    (from rev 160335, mldonkey/trunk/mldonkey.tmpfiles)
  mldonkey/repos/community-testing-x86_64/
  mldonkey/repos/community-testing-x86_64/PKGBUILD
    (from rev 160335, mldonkey/trunk/PKGBUILD)
  mldonkey/repos/community-testing-x86_64/mldonkey.conf
    (from rev 160335, mldonkey/trunk/mldonkey.conf)
  mldonkey/repos/community-testing-x86_64/mldonkey.install
    (from rev 160335, mldonkey/trunk/mldonkey.install)
  mldonkey/repos/community-testing-x86_64/mldonkey.service
    (from rev 160335, mldonkey/trunk/mldonkey.service)
  mldonkey/repos/community-testing-x86_64/mldonkey.tmpfiles
    (from rev 160335, mldonkey/trunk/mldonkey.tmpfiles)

--------------------------------------------+
 community-testing-i686/PKGBUILD            |   56 +++++++++++++++++++++++++++
 community-testing-i686/mldonkey.conf       |    2 
 community-testing-i686/mldonkey.install    |   29 +++++++++++++
 community-testing-i686/mldonkey.service    |   10 ++++
 community-testing-i686/mldonkey.tmpfiles   |    1 
 community-testing-x86_64/PKGBUILD          |   56 +++++++++++++++++++++++++++
 community-testing-x86_64/mldonkey.conf     |    2 
 community-testing-x86_64/mldonkey.install  |   29 +++++++++++++
 community-testing-x86_64/mldonkey.service  |   10 ++++
 community-testing-x86_64/mldonkey.tmpfiles |    1 
 10 files changed, 196 insertions(+)

Copied: mldonkey/repos/community-testing-i686/PKGBUILD (from rev 160335, mldonkey/trunk/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD	                        (rev 0)
+++ community-testing-i686/PKGBUILD	2016-02-04 18:31:33 UTC (rev 160336)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Anatol Pomozov <anatol.pomozov at gmail.com>
+
+pkgname=mldonkey
+pkgver=3.1.5
+pkgrel=7
+pkgdesc='A multi-network P2P client'
+arch=(i686 x86_64)
+url='http://mldonkey.sourceforge.net/'
+license=(GPL)
+depends=(file gd miniupnpc libnatpmp)
+makedepends=(gtk2 librsvg) # we build our own version of ocaml and lablgtk2
+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
+        http://caml.inria.fr/distrib/ocaml-3.12/ocaml-3.12.0.tar.gz
+        https://forge.ocamlcore.org/frs/download.php/561/lablgtk-2.14.2.tar.gz
+        libminiupnpc19.patch::https://github.com/ygrek/mldonkey/commit/d0f0cd5ce38bac67ecc55e4cc5dd2e1883ebc2e4.patch)
+sha256sums=('74f9d4bcc72356aa28d0812767ef5b9daa03efc5d1ddabf56447dc04969911cb'
+            'f1d9401cefd591662d49011c53fdb2788755a6f745a963e46d8037b990edeb6a'
+            '778cebe8edcffd63db3594054c2daa62ce571644a96ad235b8c95470b55c0415'
+            '45f45d2a3c064d5bbc0b6b9b70fa3497ed47cfecdd1ec52e175311f48eaa89dc'
+            'd964b385e110c1517c9de1c6331476d5e7a3585cc692b6b6b8973f3a9be7da4b'
+            '4981abedabdc462303f345104042c88af227ccd50fd30a9bf48fd353ab02d0ba'
+            'f7193a666a27a2cab9c76d08018faa5a4537861fae02b290cacb42946bea0174')
+
+prepare() {
+  cd mldonkey-$pkgver
+  # https://github.com/ygrek/mldonkey/issues/13
+  patch -p1 < ../libminiupnpc19.patch
+}
+
+build() {
+  cd mldonkey-$pkgver
+  # mldonkey hardcodes its dependencies to some specific version
+  ln -s "$srcdir"/ocaml-3.12.0.tar.gz "$srcdir"/lablgtk-2.14.2.tar.gz patches/
+  ./configure --prefix=/usr --enable-gui=newgui2 --enable-upnp-natpmp --enable-batch
+  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
+}

Copied: mldonkey/repos/community-testing-i686/mldonkey.conf (from rev 160335, mldonkey/trunk/mldonkey.conf)
===================================================================
--- community-testing-i686/mldonkey.conf	                        (rev 0)
+++ community-testing-i686/mldonkey.conf	2016-02-04 18:31:33 UTC (rev 160336)
@@ -0,0 +1,2 @@
+# Parameters to be passed to the daemon (default is empty)
+PARAMS=""

Copied: mldonkey/repos/community-testing-i686/mldonkey.install (from rev 160335, mldonkey/trunk/mldonkey.install)
===================================================================
--- community-testing-i686/mldonkey.install	                        (rev 0)
+++ community-testing-i686/mldonkey.install	2016-02-04 18:31:33 UTC (rev 160336)
@@ -0,0 +1,29 @@
+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
+
+  if type -P update-desktop-database &> /dev/null; then
+    update-desktop-database -q
+  fi
+
+  if type -P systemd-tmpfiles &> /dev/null; then
+    systemd-tmpfiles --create mldonkey.conf
+  fi
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+post_remove() {
+  if type -P update-desktop-database &> /dev/null; then
+    update-desktop-database -q
+  fi
+}

Copied: mldonkey/repos/community-testing-i686/mldonkey.service (from rev 160335, mldonkey/trunk/mldonkey.service)
===================================================================
--- community-testing-i686/mldonkey.service	                        (rev 0)
+++ community-testing-i686/mldonkey.service	2016-02-04 18:31:33 UTC (rev 160336)
@@ -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

Copied: mldonkey/repos/community-testing-i686/mldonkey.tmpfiles (from rev 160335, mldonkey/trunk/mldonkey.tmpfiles)
===================================================================
--- community-testing-i686/mldonkey.tmpfiles	                        (rev 0)
+++ community-testing-i686/mldonkey.tmpfiles	2016-02-04 18:31:33 UTC (rev 160336)
@@ -0,0 +1 @@
+d /run/mldonkey 755 mldonkey mldonkey -

Copied: mldonkey/repos/community-testing-x86_64/PKGBUILD (from rev 160335, mldonkey/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2016-02-04 18:31:33 UTC (rev 160336)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Anatol Pomozov <anatol.pomozov at gmail.com>
+
+pkgname=mldonkey
+pkgver=3.1.5
+pkgrel=7
+pkgdesc='A multi-network P2P client'
+arch=(i686 x86_64)
+url='http://mldonkey.sourceforge.net/'
+license=(GPL)
+depends=(file gd miniupnpc libnatpmp)
+makedepends=(gtk2 librsvg) # we build our own version of ocaml and lablgtk2
+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
+        http://caml.inria.fr/distrib/ocaml-3.12/ocaml-3.12.0.tar.gz
+        https://forge.ocamlcore.org/frs/download.php/561/lablgtk-2.14.2.tar.gz
+        libminiupnpc19.patch::https://github.com/ygrek/mldonkey/commit/d0f0cd5ce38bac67ecc55e4cc5dd2e1883ebc2e4.patch)
+sha256sums=('74f9d4bcc72356aa28d0812767ef5b9daa03efc5d1ddabf56447dc04969911cb'
+            'f1d9401cefd591662d49011c53fdb2788755a6f745a963e46d8037b990edeb6a'
+            '778cebe8edcffd63db3594054c2daa62ce571644a96ad235b8c95470b55c0415'
+            '45f45d2a3c064d5bbc0b6b9b70fa3497ed47cfecdd1ec52e175311f48eaa89dc'
+            'd964b385e110c1517c9de1c6331476d5e7a3585cc692b6b6b8973f3a9be7da4b'
+            '4981abedabdc462303f345104042c88af227ccd50fd30a9bf48fd353ab02d0ba'
+            'f7193a666a27a2cab9c76d08018faa5a4537861fae02b290cacb42946bea0174')
+
+prepare() {
+  cd mldonkey-$pkgver
+  # https://github.com/ygrek/mldonkey/issues/13
+  patch -p1 < ../libminiupnpc19.patch
+}
+
+build() {
+  cd mldonkey-$pkgver
+  # mldonkey hardcodes its dependencies to some specific version
+  ln -s "$srcdir"/ocaml-3.12.0.tar.gz "$srcdir"/lablgtk-2.14.2.tar.gz patches/
+  ./configure --prefix=/usr --enable-gui=newgui2 --enable-upnp-natpmp --enable-batch
+  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
+}

Copied: mldonkey/repos/community-testing-x86_64/mldonkey.conf (from rev 160335, mldonkey/trunk/mldonkey.conf)
===================================================================
--- community-testing-x86_64/mldonkey.conf	                        (rev 0)
+++ community-testing-x86_64/mldonkey.conf	2016-02-04 18:31:33 UTC (rev 160336)
@@ -0,0 +1,2 @@
+# Parameters to be passed to the daemon (default is empty)
+PARAMS=""

Copied: mldonkey/repos/community-testing-x86_64/mldonkey.install (from rev 160335, mldonkey/trunk/mldonkey.install)
===================================================================
--- community-testing-x86_64/mldonkey.install	                        (rev 0)
+++ community-testing-x86_64/mldonkey.install	2016-02-04 18:31:33 UTC (rev 160336)
@@ -0,0 +1,29 @@
+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
+
+  if type -P update-desktop-database &> /dev/null; then
+    update-desktop-database -q
+  fi
+
+  if type -P systemd-tmpfiles &> /dev/null; then
+    systemd-tmpfiles --create mldonkey.conf
+  fi
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+post_remove() {
+  if type -P update-desktop-database &> /dev/null; then
+    update-desktop-database -q
+  fi
+}

Copied: mldonkey/repos/community-testing-x86_64/mldonkey.service (from rev 160335, mldonkey/trunk/mldonkey.service)
===================================================================
--- community-testing-x86_64/mldonkey.service	                        (rev 0)
+++ community-testing-x86_64/mldonkey.service	2016-02-04 18:31:33 UTC (rev 160336)
@@ -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

Copied: mldonkey/repos/community-testing-x86_64/mldonkey.tmpfiles (from rev 160335, mldonkey/trunk/mldonkey.tmpfiles)
===================================================================
--- community-testing-x86_64/mldonkey.tmpfiles	                        (rev 0)
+++ community-testing-x86_64/mldonkey.tmpfiles	2016-02-04 18:31:33 UTC (rev 160336)
@@ -0,0 +1 @@
+d /run/mldonkey 755 mldonkey mldonkey -



More information about the arch-commits mailing list