[arch-commits] Commit in (7 files)
Antonio Rojas
arojas at archlinux.org
Wed Jun 14 13:26:28 UTC 2017
Date: Wednesday, June 14, 2017 @ 13:26:26
Author: arojas
Revision: 236756
extra2community: Moving amule from extra to community
Added:
amule/
amule/repos/
amule/trunk/
amule/trunk/PKGBUILD
amule/trunk/amule.install
amule/trunk/amuled.systemd
amule/trunk/amuleweb.systemd
------------------+
PKGBUILD | 54 +++++++++++++++++++++++++++++++++++++++++++++++++++++
amule.install | 22 +++++++++++++++++++++
amuled.systemd | 11 ++++++++++
amuleweb.systemd | 13 ++++++++++++
4 files changed, 100 insertions(+)
Added: amule/trunk/PKGBUILD
===================================================================
--- amule/trunk/PKGBUILD (rev 0)
+++ amule/trunk/PKGBUILD 2017-06-14 13:26:26 UTC (rev 236756)
@@ -0,0 +1,54 @@
+# $Id$
+# Maintainer: 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=1
+pkgdesc="An eMule-like client for ed2k p2p network"
+arch=('i686' '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')
+sha256sums=('SKIP'
+ '527a2cca6d56b8269722aafc77a89734f59a929f946f342bd0f69b256f9c7522'
+ 'f4f43b1154ddccc9036a4291a58c6715f097b171fec62ea7aead0c9d9fa654f2')
+
+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 -D -m644 "${srcdir}/amuled.systemd" "${pkgdir}/usr/lib/systemd/system/amuled.service"
+ install -D -m644 "${srcdir}/amuleweb.systemd" "${pkgdir}/usr/lib/systemd/system/amuleweb.service"
+}
Property changes on: amule/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Added: amule/trunk/amule.install
===================================================================
--- amule/trunk/amule.install (rev 0)
+++ amule/trunk/amule.install 2017-06-14 13:26:26 UTC (rev 236756)
@@ -0,0 +1,22 @@
+post_install() {
+ post_upgrade
+ passwd -l amule &>/dev/null
+}
+
+_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() {
+ # create user/group that the daemon will run as by default, do not delete this on uninstall, as it will own files
+ getent group amule >/dev/null || groupadd amule
+ getent passwd amule >/dev/null || useradd --system -c 'aMule Client' -g amule -d '/var/lib/amule' -m -s /bin/false amule
+
+ if [ ! -e /var/lib/amule/.aMule/amule.conf ]; then
+ _config_instructions
+ fi
+}
Added: amule/trunk/amuled.systemd
===================================================================
--- amule/trunk/amuled.systemd (rev 0)
+++ amule/trunk/amuled.systemd 2017-06-14 13:26:26 UTC (rev 236756)
@@ -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
Added: amule/trunk/amuleweb.systemd
===================================================================
--- amule/trunk/amuleweb.systemd (rev 0)
+++ amule/trunk/amuleweb.systemd 2017-06-14 13:26:26 UTC (rev 236756)
@@ -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