1 |
commit: 71358b809e7f83d15ccac961a52414d643efb6fe |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Apr 20 14:17:47 2019 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 20 14:18:03 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71358b80 |
7 |
|
8 |
net-ftp/pure-ftpd: Drop "need net" dependency in openrc init script |
9 |
|
10 |
Closes: https://bugs.gentoo.org/514860 |
11 |
Package-Manager: Portage-2.3.64, Repoman-2.3.12 |
12 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
13 |
|
14 |
net-ftp/pure-ftpd/files/pure-ftpd.rc11 | 15 ++++++++------- |
15 |
1 file changed, 8 insertions(+), 7 deletions(-) |
16 |
|
17 |
diff --git a/net-ftp/pure-ftpd/files/pure-ftpd.rc11 b/net-ftp/pure-ftpd/files/pure-ftpd.rc11 |
18 |
index cc17b5afa12..35270ff3350 100644 |
19 |
--- a/net-ftp/pure-ftpd/files/pure-ftpd.rc11 |
20 |
+++ b/net-ftp/pure-ftpd/files/pure-ftpd.rc11 |
21 |
@@ -1,5 +1,5 @@ |
22 |
#!/sbin/openrc-run |
23 |
-# Copyright 1999-2016 Gentoo Foundation |
24 |
+# Copyright 1999-2019 Gentoo Authors |
25 |
# Distributed under the terms of the GNU General Public License v2 |
26 |
|
27 |
ftpd_pidfile="/var/run/pure-ftpd.pid" |
28 |
@@ -9,11 +9,12 @@ daemon="/usr/sbin/pure-ftpd" |
29 |
script_daemon="/usr/sbin/pure-uploadscript" |
30 |
|
31 |
depend() { |
32 |
- need net |
33 |
+ need localmount |
34 |
+ use netmount |
35 |
} |
36 |
|
37 |
start_pre() { |
38 |
- if [ -z "$IS_CONFIGURED" ] ; then |
39 |
+ if [ -z "${IS_CONFIGURED}" ] ; then |
40 |
eerror "You need to setup /etc/conf.d/pure-ftpd first!" |
41 |
return 1 |
42 |
fi |
43 |
@@ -21,7 +22,7 @@ start_pre() { |
44 |
|
45 |
start() { |
46 |
UPSCRIPT="" |
47 |
- if [ -n "$UPLOADSCRIPT" ] ; then |
48 |
+ if [ -n "${UPLOADSCRIPT}" ] ; then |
49 |
UPSCRIPT="--uploadscript" |
50 |
fi |
51 |
|
52 |
@@ -42,11 +43,11 @@ start() { |
53 |
--make-pidfile --background --exec /usr/sbin/pure-ftpd ${WAIT} \ |
54 |
-- $(echo ${FTPD_CONFIG} | sed 's@\([[:space:]]\+\|^\)-B\([[:space:]]\+\|$\)@\1@g') |
55 |
result=$? |
56 |
- if [ $result -ne 0 ] ; then |
57 |
+ if [ ${result} -ne 0 ] ; then |
58 |
eend 1 "Could not launch Pure-FTPd" |
59 |
else |
60 |
eend $result |
61 |
- if [ -n "$UPLOADSCRIPT" ] ; then |
62 |
+ if [ -n "${UPLOADSCRIPT}" ] ; then |
63 |
ebegin "Starting Pure-FTPd upload script" |
64 |
start-stop-daemon --start --quiet --make-pidfile \ |
65 |
--pidfile ${script_pidfile} \ |
66 |
@@ -58,7 +59,7 @@ start() { |
67 |
} |
68 |
|
69 |
stop() { |
70 |
- if [ -n "$UPLOADSCRIPT" ] ; then |
71 |
+ if [ -n "${UPLOADSCRIPT}" ] ; then |
72 |
ebegin "Stopping Pure-FTPd upload script" |
73 |
start-stop-daemon --stop --retry 20 --quiet \ |
74 |
--pidfile ${script_pidfile} |