[arch-commits] Commit in amule/repos (7 files)

Felix Yan felixonmars at archlinux.org
Thu Dec 28 08:04:40 UTC 2017


    Date: Thursday, December 28, 2017 @ 08:04:39
  Author: felixonmars
Revision: 276376

archrelease: copy trunk to community-staging-x86_64

Added:
  amule/repos/community-staging-x86_64/
  amule/repos/community-staging-x86_64/PKGBUILD
    (from rev 276375, amule/trunk/PKGBUILD)
  amule/repos/community-staging-x86_64/amule.install
    (from rev 276375, amule/trunk/amule.install)
  amule/repos/community-staging-x86_64/amule.sysusers
    (from rev 276375, amule/trunk/amule.sysusers)
  amule/repos/community-staging-x86_64/amule.tmpfiles
    (from rev 276375, amule/trunk/amule.tmpfiles)
  amule/repos/community-staging-x86_64/amuled.systemd
    (from rev 276375, amule/trunk/amuled.systemd)
  amule/repos/community-staging-x86_64/amuleweb.systemd
    (from rev 276375, amule/trunk/amuleweb.systemd)

------------------+
 PKGBUILD         |   59 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 amule.install    |   17 +++++++++++++++
 amule.sysusers   |    1 
 amule.tmpfiles   |    1 
 amuled.systemd   |   11 +++++++++
 amuleweb.systemd |   13 +++++++++++
 6 files changed, 102 insertions(+)

Copied: amule/repos/community-staging-x86_64/PKGBUILD (from rev 276375, amule/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2017-12-28 08:04:39 UTC (rev 276376)
@@ -0,0 +1,59 @@
+# $Id$
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: Giovanni Scafora <giovanni at archlinux.org>
+# Contributor: Henrik Ronellenfitsch <searinox at web.de>
+# Contributor: Alessio Sergi <sergi.alessio {at} gmail.com>
+# Contributor: Dario 'Dax' Vilardi <dax [at] deelab [dot] org>
+# Contributor: Anatol Pomozov <anatol.pomozov at gmail.com>
+
+pkgname=amule
+pkgver=10990
+pkgrel=4
+pkgdesc="An eMule-like client for ed2k p2p network"
+arch=(x86_64)
+url="http://www.amule.org"
+license=(GPL)
+depends=(wxgtk2 gd geoip libupnp crypto++ boost-libs)
+makedepends=(git ccache boost)
+install=amule.install
+source=("git://repo.or.cz/amule.git#tag=amule-svn-r$pkgver"
+        amuled.systemd amuleweb.systemd amule.sysusers amule.tmpfiles)
+sha512sums=('SKIP'
+            '13dbaee96658ca34e76bfdcf1e65895a24b57bc64bb846ae50d3d64a2e65047d90c13c0b14a50947d0ff9ccf30c4764380da05383650995d3798981068b87ebd'
+            'fbb58e2d0229e72e2192eae724e812a158443dc8d465ce14f94c184bcb575079e5e568c24bfbd132d9a6edf8651e7d7c45ca2ce46209bd04e27948503f6bbcdc'
+            'aaeab784e3a0fa9bd296897024bdd550a1704be3d62aecb7be497a6c174cbbd8bc07bccc9652c9f98316209fc9fd6f801f9121f11d64e978185a2f0cb4b34549'
+            '1a16613bddda48a4c1c5489d9df8d796c7c2ffb1541e42e4c8b84d4598652f6a1a0305b39c3d40f376f816ad7b4a17d8079ed67203d90a21800352fba189a20a')
+
+build() {
+  cd amule
+
+  ./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 \
+              --enable-upnp \
+              --with-boost
+  make
+}
+
+package() {
+  cd amule
+
+  make DESTDIR="$pkgdir" install
+
+  install -Dm644 "$srcdir"/amuled.systemd "$pkgdir"/usr/lib/systemd/system/amuled.service
+  install -Dm644 "$srcdir"/amuleweb.systemd "$pkgdir"/usr/lib/systemd/system/amuleweb.service
+  install -Dm644 "$srcdir"/amule.sysusers "$pkgdir"/usr/lib/sysusers.d/amule.conf
+  install -Dm644 "$srcdir"/amule.tmpfiles "$pkgdir"/usr/lib/tmpfiles.d/amule.conf
+
+}

Copied: amule/repos/community-staging-x86_64/amule.install (from rev 276375, amule/trunk/amule.install)
===================================================================
--- community-staging-x86_64/amule.install	                        (rev 0)
+++ community-staging-x86_64/amule.install	2017-12-28 08:04:39 UTC (rev 276376)
@@ -0,0 +1,17 @@
+post_install() {
+  post_upgrade
+}
+
+_config_instructions() {
+  echo "If you plan to use external client (e.g. amuleGUI or amuleweb) then you need to"
+  echo "provide [ExternalConnect] configuration."
+  echo "You also need to specify amuleweb password."
+  echo "Please follow https://wiki.archlinux.org/index.php/AMule for more information."
+  echo "amuleweb can be started as 'systemctl start amuleweb'."
+}
+
+post_upgrade() {
+  if [ ! -e /var/lib/amule/.aMule/amule.conf ]; then
+    _config_instructions
+  fi
+}

Copied: amule/repos/community-staging-x86_64/amule.sysusers (from rev 276375, amule/trunk/amule.sysusers)
===================================================================
--- community-staging-x86_64/amule.sysusers	                        (rev 0)
+++ community-staging-x86_64/amule.sysusers	2017-12-28 08:04:39 UTC (rev 276376)
@@ -0,0 +1 @@
+u amule - "aMule Client" /var/lib/amule

Copied: amule/repos/community-staging-x86_64/amule.tmpfiles (from rev 276375, amule/trunk/amule.tmpfiles)
===================================================================
--- community-staging-x86_64/amule.tmpfiles	                        (rev 0)
+++ community-staging-x86_64/amule.tmpfiles	2017-12-28 08:04:39 UTC (rev 276376)
@@ -0,0 +1 @@
+d /var/lib/amule 0750 amule amule

Copied: amule/repos/community-staging-x86_64/amuled.systemd (from rev 276375, amule/trunk/amuled.systemd)
===================================================================
--- community-staging-x86_64/amuled.systemd	                        (rev 0)
+++ community-staging-x86_64/amuled.systemd	2017-12-28 08:04:39 UTC (rev 276376)
@@ -0,0 +1,11 @@
+[Unit]
+Description=aMule Daemon
+After=network.target
+
+# This assumes that a user 'amule' exists, with a writeable home directory
+[Service]
+User=amule
+ExecStart=/usr/bin/amuled
+
+[Install]
+WantedBy=multi-user.target

Copied: amule/repos/community-staging-x86_64/amuleweb.systemd (from rev 276375, amule/trunk/amuleweb.systemd)
===================================================================
--- community-staging-x86_64/amuleweb.systemd	                        (rev 0)
+++ community-staging-x86_64/amuleweb.systemd	2017-12-28 08:04:39 UTC (rev 276376)
@@ -0,0 +1,13 @@
+[Unit]
+Description=aMule Webserver
+Requires=amuled.service
+
+[Service]
+User=amule
+ExecStart=/usr/bin/amuleweb --quiet
+# If amuled still starting then amuleweb exits, restart until amuleweb is up 
+Restart=on-success
+RestartSec=3s
+
+[Install]
+WantedBy=multi-user.target



More information about the arch-commits mailing list