summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-sound')
-rw-r--r--media-sound/scmpc/ChangeLog5
-rw-r--r--media-sound/scmpc/Manifest18
-rw-r--r--media-sound/scmpc/files/scmpc.init30
3 files changed, 45 insertions, 8 deletions
diff --git a/media-sound/scmpc/ChangeLog b/media-sound/scmpc/ChangeLog
index 87c56ed3a770..b066b330b1d4 100644
--- a/media-sound/scmpc/ChangeLog
+++ b/media-sound/scmpc/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for media-sound/scmpc
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/scmpc/ChangeLog,v 1.1 2007/06/27 00:47:25 angelos Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/scmpc/ChangeLog,v 1.2 2007/06/27 00:57:41 angelos Exp $
+
+ 27 Jun 2007; Christoph Mende <angelos@gentoo.org> +files/scmpc.init:
+ Added an init script, thanks to Avuton Olrich
*scmpc-0.2.2 (26 Jun 2007)
diff --git a/media-sound/scmpc/Manifest b/media-sound/scmpc/Manifest
index 9adb3e901664..ab6aee396d57 100644
--- a/media-sound/scmpc/Manifest
+++ b/media-sound/scmpc/Manifest
@@ -1,15 +1,19 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
+AUX scmpc.init 551 RMD160 fcb006083b4f24bcc9e7a167c26952cc78ae45c2 SHA1 603382fd74158dc99feff16d22e76dfcb8e97f9a SHA256 6fbf1833c02708d9d933155803f0d478c3c0bec1aee6559637184286c7d3ed18
+MD5 26841c336ed496ced7a35577ed8ab056 files/scmpc.init 551
+RMD160 fcb006083b4f24bcc9e7a167c26952cc78ae45c2 files/scmpc.init 551
+SHA256 6fbf1833c02708d9d933155803f0d478c3c0bec1aee6559637184286c7d3ed18 files/scmpc.init 551
DIST scmpc-0.2.2.tar.bz2 72561 RMD160 b5aab6b72fff1910c8e245fa801ed788bd98eece SHA1 4105ef32f543c4babc20bf1569ca00426c7128fe SHA256 38d5992abd0b4ee55f9c7e40e979c56e90c685216e9b61fc8675e2ddece562de
EBUILD scmpc-0.2.2.ebuild 627 RMD160 145db9f392ffcdeda910ac173d0c1a25a89df2ab SHA1 85f56c3fa7e501ca0468322adf709ab65ee288aa SHA256 37450000c087d20642bf161d08930491309e20ca60cbe50d9db2647864a0c908
MD5 c088ca7cf5766c3d8d90628c541065d6 scmpc-0.2.2.ebuild 627
RMD160 145db9f392ffcdeda910ac173d0c1a25a89df2ab scmpc-0.2.2.ebuild 627
SHA256 37450000c087d20642bf161d08930491309e20ca60cbe50d9db2647864a0c908 scmpc-0.2.2.ebuild 627
-MISC ChangeLog 344 RMD160 e2121a62de881199ebe46f8b3796fb1f10cfe851 SHA1 e9dd9d860287cbaff0ddf36a5b4bf33d54da20e0 SHA256 ee87e1c31ad24686a5a99beb61db92403ab73941fdcd2b664d88163d5620b9ea
-MD5 d9ba271606260775240288ea9cc4db40 ChangeLog 344
-RMD160 e2121a62de881199ebe46f8b3796fb1f10cfe851 ChangeLog 344
-SHA256 ee87e1c31ad24686a5a99beb61db92403ab73941fdcd2b664d88163d5620b9ea ChangeLog 344
+MISC ChangeLog 464 RMD160 c0d08245f0dc5551bf68de0f1a4d63fd5a9c0f43 SHA1 e3a3e327da949e1581d4150772a81dad7c4bd5fc SHA256 fdf8888bbaee2c59a3a8a3c3ccc0b523592af58884e2d527a7f837ad3bbd5f2f
+MD5 c5eeb5ef4337f402ec7054701b73f1d6 ChangeLog 464
+RMD160 c0d08245f0dc5551bf68de0f1a4d63fd5a9c0f43 ChangeLog 464
+SHA256 fdf8888bbaee2c59a3a8a3c3ccc0b523592af58884e2d527a7f837ad3bbd5f2f ChangeLog 464
MISC metadata.xml 258 RMD160 6d4c6c4e7c021a3fc82145a078f8e113eb6f521a SHA1 02004f2821b6ac3f69abfbfdafc9744008535258 SHA256 ee85021b7ae93a2e1442a570b114d3c9bf2e577c16b7b1b409914983d5d55485
MD5 303f6d39495a43786f7e5a07f5a12ea8 metadata.xml 258
RMD160 6d4c6c4e7c021a3fc82145a078f8e113eb6f521a metadata.xml 258
@@ -20,7 +24,7 @@ SHA256 25ff72daceb3208bc5b1543fa9422ad55fc24b4026a1361ed2576fd22dc1da9b files/di
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (GNU/Linux)
-iD8DBQFGgbOlKhnDs22gwa8RAqc3AJ9DvC9TP0BAbc3Fi/jFFAh1lOIwJACfSO/2
-hUnm6chAahb59X9D3Zbkoio=
-=Tfxx
+iD8DBQFGgbYNKhnDs22gwa8RAjDTAKD7zTz3Ot93tUJ2dW2i9WqWizqYJACgrV5r
+E/yiOogdlVL2MiD1eotoGPA=
+=quHg
-----END PGP SIGNATURE-----
diff --git a/media-sound/scmpc/files/scmpc.init b/media-sound/scmpc/files/scmpc.init
new file mode 100644
index 000000000000..851cd5011da8
--- /dev/null
+++ b/media-sound/scmpc/files/scmpc.init
@@ -0,0 +1,30 @@
+#!/sbin/runscript
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need net mpd
+}
+
+checkconfig() {
+ if ! [ -f /etc/scmpc.conf ]; then
+ eerror "Configuration file /etc/scmpc.conf does not exist."
+ return 1
+ fi
+
+ return 0
+}
+
+start () {
+ checkconfig || return 1
+
+ ebegin "Starting scmpc"
+ start-stop-daemon --start --exec /usr/bin/scmpc
+ eend $?
+}
+
+stop () {
+ ebegin "Stopping scmpc"
+ start-stop-daemon --stop --exec /usr/bin/scmpc || eerror "scmpc is not running"
+ eend $?
+}