[arch-commits] Commit in amule/repos (10 files)
Bartłomiej Piotrowski
bpiotrowski at nymeria.archlinux.org
Wed Jan 8 14:52:40 UTC 2014
Date: Wednesday, January 8, 2014 @ 15:52:40
Author: bpiotrowski
Revision: 203357
archrelease: copy trunk to testing-i686, testing-x86_64
Added:
amule/repos/testing-i686/
amule/repos/testing-i686/PKGBUILD
(from rev 203356, amule/trunk/PKGBUILD)
amule/repos/testing-i686/amule.install
(from rev 203356, amule/trunk/amule.install)
amule/repos/testing-i686/amuled.systemd
(from rev 203356, amule/trunk/amuled.systemd)
amule/repos/testing-i686/amuleweb.systemd
(from rev 203356, amule/trunk/amuleweb.systemd)
amule/repos/testing-x86_64/
amule/repos/testing-x86_64/PKGBUILD
(from rev 203356, amule/trunk/PKGBUILD)
amule/repos/testing-x86_64/amule.install
(from rev 203356, amule/trunk/amule.install)
amule/repos/testing-x86_64/amuled.systemd
(from rev 203356, amule/trunk/amuled.systemd)
amule/repos/testing-x86_64/amuleweb.systemd
(from rev 203356, amule/trunk/amuleweb.systemd)
---------------------------------+
testing-i686/PKGBUILD | 54 ++++++++++++++++++++++++++++++++++++++
testing-i686/amule.install | 29 ++++++++++++++++++++
testing-i686/amuled.systemd | 11 +++++++
testing-i686/amuleweb.systemd | 13 +++++++++
testing-x86_64/PKGBUILD | 54 ++++++++++++++++++++++++++++++++++++++
testing-x86_64/amule.install | 29 ++++++++++++++++++++
testing-x86_64/amuled.systemd | 11 +++++++
testing-x86_64/amuleweb.systemd | 13 +++++++++
8 files changed, 214 insertions(+)
Copied: amule/repos/testing-i686/PKGBUILD (from rev 203356, amule/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD (rev 0)
+++ testing-i686/PKGBUILD 2014-01-08 14:52:40 UTC (rev 203357)
@@ -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=10830
+pkgrel=2
+pkgdesc="An eMule-like client for ed2k p2p network"
+arch=('i686' 'x86_64')
+url="http://www.amule.org"
+license=('GPL')
+depends=('wxgtk2.8' 'gd' 'geoip' 'libupnp' 'crypto++' 'libsm')
+install=amule.install
+source=("http://amule.sourceforge.net/tarballs/aMule-SVN-r${pkgver}.tar.bz2"
+ 'amuled.systemd'
+ 'amuleweb.systemd')
+md5sums=('8ba572ed1c87909ee24652d96f93dc40'
+ '59772c41860e238f1c822feb8ca8d47f'
+ '05975c5d94bfc41fddb894d98b1115d5')
+
+build() {
+ cd "${srcdir}/aMule-SVN-r${pkgver}"
+
+ export WX_CONFIG_PATH=/usr/bin/wx-config-2.8
+ ./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
+
+ make
+}
+
+package() {
+ cd "${srcdir}/aMule-SVN-r${pkgver}"
+
+ 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"
+}
Copied: amule/repos/testing-i686/amule.install (from rev 203356, amule/trunk/amule.install)
===================================================================
--- testing-i686/amule.install (rev 0)
+++ testing-i686/amule.install 2014-01-08 14:52:40 UTC (rev 203357)
@@ -0,0 +1,29 @@
+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 -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
+}
+
+post_remove() {
+ # TOTHINK: delete homedir and user account/group?
+ #getent passwd amule >/dev/null && userdel amule
+ #getent group amule >/dev/null && groupdel amule
+ true
+}
Copied: amule/repos/testing-i686/amuled.systemd (from rev 203356, amule/trunk/amuled.systemd)
===================================================================
--- testing-i686/amuled.systemd (rev 0)
+++ testing-i686/amuled.systemd 2014-01-08 14:52:40 UTC (rev 203357)
@@ -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/testing-i686/amuleweb.systemd (from rev 203356, amule/trunk/amuleweb.systemd)
===================================================================
--- testing-i686/amuleweb.systemd (rev 0)
+++ testing-i686/amuleweb.systemd 2014-01-08 14:52:40 UTC (rev 203357)
@@ -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
Copied: amule/repos/testing-x86_64/PKGBUILD (from rev 203356, amule/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2014-01-08 14:52:40 UTC (rev 203357)
@@ -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=10830
+pkgrel=2
+pkgdesc="An eMule-like client for ed2k p2p network"
+arch=('i686' 'x86_64')
+url="http://www.amule.org"
+license=('GPL')
+depends=('wxgtk2.8' 'gd' 'geoip' 'libupnp' 'crypto++' 'libsm')
+install=amule.install
+source=("http://amule.sourceforge.net/tarballs/aMule-SVN-r${pkgver}.tar.bz2"
+ 'amuled.systemd'
+ 'amuleweb.systemd')
+md5sums=('8ba572ed1c87909ee24652d96f93dc40'
+ '59772c41860e238f1c822feb8ca8d47f'
+ '05975c5d94bfc41fddb894d98b1115d5')
+
+build() {
+ cd "${srcdir}/aMule-SVN-r${pkgver}"
+
+ export WX_CONFIG_PATH=/usr/bin/wx-config-2.8
+ ./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
+
+ make
+}
+
+package() {
+ cd "${srcdir}/aMule-SVN-r${pkgver}"
+
+ 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"
+}
Copied: amule/repos/testing-x86_64/amule.install (from rev 203356, amule/trunk/amule.install)
===================================================================
--- testing-x86_64/amule.install (rev 0)
+++ testing-x86_64/amule.install 2014-01-08 14:52:40 UTC (rev 203357)
@@ -0,0 +1,29 @@
+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 -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
+}
+
+post_remove() {
+ # TOTHINK: delete homedir and user account/group?
+ #getent passwd amule >/dev/null && userdel amule
+ #getent group amule >/dev/null && groupdel amule
+ true
+}
Copied: amule/repos/testing-x86_64/amuled.systemd (from rev 203356, amule/trunk/amuled.systemd)
===================================================================
--- testing-x86_64/amuled.systemd (rev 0)
+++ testing-x86_64/amuled.systemd 2014-01-08 14:52:40 UTC (rev 203357)
@@ -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/testing-x86_64/amuleweb.systemd (from rev 203356, amule/trunk/amuleweb.systemd)
===================================================================
--- testing-x86_64/amuleweb.systemd (rev 0)
+++ testing-x86_64/amuleweb.systemd 2014-01-08 14:52:40 UTC (rev 203357)
@@ -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