Subject: [alpine-aports] [PATCH] main/fetchmail: Updated init.d script

From: Daniele Coli <[email-masked]>
Date: Tue, 23 Feb 2016 17:00:04 +0100

Moved cfgfile and options at the start of the command,
otherwise interpreter the -i option as server name.
---
 main/fetchmail/APKBUILD        | 8 ++++----
 main/fetchmail/fetchmail.initd | 4 ++--
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/main/fetchmail/APKBUILD b/main/fetchmail/APKBUILD
index bcec281..da8c6b6 100644
--- a/main/fetchmail/APKBUILD
+++ b/main/fetchmail/APKBUILD
@@ -2,7 +2,7 @@
 # Maintainer: Natanael Copa <[email-masked]>
 pkgname=fetchmail
 pkgver=6.3.26
-pkgrel=6
+pkgrel=7
 pkgdesc="A remote-mail retrieval and forwarding utility"
 url="http://www.fetchmail.info/"
 arch="all"
@@ -59,11 +59,11 @@ fetchmailconf() {
 }
 
 md5sums="61b66faad044afa26e142bb1791aa2b3  fetchmail-6.3.26.tar.xz
-482cbb5f67bedaeb3ed559f6671d3d3d  fetchmail.initd
+6a448e0f2b34f58e0007a660b0f8c343  fetchmail.initd
 0203136e64395c8411b01d75407d1adc  fetchmail.confd"
 sha256sums="79b4c54cdbaf02c1a9a691d9948fcb1a77a1591a813e904283a8b614b757e850  fetchmail-6.3.26.tar.xz
-ec00bbe1e2e8932c2fada56aea805cf537b775e804bac1d8794e07659291e9d5  fetchmail.initd
+5eaaba09c253b4d8ff9ea217597c6c531f66417beca7057cb2ea6ffe16cfd134  fetchmail.initd
 6343137640a25b115f015f41640bb498a6ebba471caa9374718364616aef3f85  fetchmail.confd"
 sha512sums="8e0a2484e60eaf6c0231e2599e10fec6d207fa1c0fa02ec99b3ef9aea00b6d87275434e79470a25f06e358cdd4a293f9c46a82dd128fe733a99c85144e6caa63  fetchmail-6.3.26.tar.xz
-989127859c91eaec9bfa38dd873f141b0561cbe08d9ac4ab700abe612950fc4d61ec9670becf0d432a46c4d1558a2fd65f62f84e79cea9387ec1d377dacaecce  fetchmail.initd
+9520ec6616f4004d091b1c908d3ea38e104ad8f6595959a3cd3ef7544d05e3b75854631289e167ead08479250d04584d3f1855668a7a0ebd16a1ee9106f3b0b3  fetchmail.initd
 6f031ec6bd4a3ae53cd04fbd8470f4d10bd46ca29cabffa634a6801aa2e7707169855fbc045ced3c9a69523e694511a3f076b611678143e49339c8ccac98074e  fetchmail.confd"
diff --git a/main/fetchmail/fetchmail.initd b/main/fetchmail/fetchmail.initd
index ad826ec..cee4f69 100755
--- a/main/fetchmail/fetchmail.initd
+++ b/main/fetchmail/fetchmail.initd
@@ -24,8 +24,8 @@ start() {
         ebegin "Starting fetchmail"
         start-stop-daemon --start --quiet \
 		--user fetchmail --exec /usr/bin/fetchmail \
-		--pidfile ${pidfile} -i /var/lib/fetchmail/.fetchids \
-		-- -f "${CFGFILE}" ${FETCHMAIL_OPTS}
+		-- -f "${CFGFILE}" ${FETCHMAIL_OPTS} \
+		--pidfile ${pidfile} -i /var/lib/fetchmail/.fetchids
         eend ${?}
 }
 
-- 
2.7.1

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---