summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis Sautier <sautier.louis@gmail.com>2016-03-14 18:46:21 +0100
committerIan Delaney <idella4@gentoo.org>2016-03-15 02:19:13 +0800
commitad93e8df59ad944022b2012c62b37785a0d76fd1 (patch)
tree794430f5e5e75000cfe7ff5bf231f6d099f0e162 /net-p2p/airdcpp-webclient/files
parentwww-apps/airdcpp-webui: DEPEND on compatible versions of airdcpp-webclient (diff)
downloadgentoo-ad93e8df59ad944022b2012c62b37785a0d76fd1.tar.gz
gentoo-ad93e8df59ad944022b2012c62b37785a0d76fd1.tar.bz2
gentoo-ad93e8df59ad944022b2012c62b37785a0d76fd1.zip
net-p2p/airdcpp-webclient: bump to 1.0.0, add init script, add USE flags
Package-Manager: portage-2.2.27 Closes: https://github.com/gentoo/gentoo/pull/1047
Diffstat (limited to 'net-p2p/airdcpp-webclient/files')
-rw-r--r--net-p2p/airdcpp-webclient/files/airdcppd.confd8
-rw-r--r--net-p2p/airdcpp-webclient/files/airdcppd.initd21
2 files changed, 29 insertions, 0 deletions
diff --git a/net-p2p/airdcpp-webclient/files/airdcppd.confd b/net-p2p/airdcpp-webclient/files/airdcppd.confd
new file mode 100644
index 00000000000..af140cb6d3b
--- /dev/null
+++ b/net-p2p/airdcpp-webclient/files/airdcppd.confd
@@ -0,0 +1,8 @@
+# /etc/conf.d/airdcppd: config file for /etc/init.d/airdcppd
+
+# User and group as which to run
+#AIRDCPPD_USER="airdcppd"
+#AIRDCPPD_GROUP="airdcppd"
+
+# umask used to create files
+#AIRDCPPD_UMASK=007
diff --git a/net-p2p/airdcpp-webclient/files/airdcppd.initd b/net-p2p/airdcpp-webclient/files/airdcppd.initd
new file mode 100644
index 00000000000..53e6145b069
--- /dev/null
+++ b/net-p2p/airdcpp-webclient/files/airdcppd.initd
@@ -0,0 +1,21 @@
+#!/sbin/runscript
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+AIRDCPPD_USER="${AIRDCPPD_USER:-${RC_SVCNAME}}"
+AIRDCPPD_GROUP="${AIRDCPPD_GROUP:-${RC_SVCNAME}}"
+AIRDCPPD_UMASK="${SYNCTHING_UMASK:-007}"
+AIRDCPPD_HOME="$(getent passwd "${AIRDCPPD_USER}" | cut -d: -f6)"
+
+command="/usr/bin/airdcppd"
+pidfile="${AIRDCPPD_HOME}/.airdc++/${RC_SVCNAME}.pid"
+command_args="-d"
+start_stop_daemon_args="\
+ --user ${AIRDCPPD_USER} \
+ --group ${AIRDCPPD_GROUP} \
+ --umask ${AIRDCPPD_UMASK} \
+"
+
+depend() {
+ need localmount net
+}