summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2011-11-30 07:28:28 +0000
committerMike Gilbert <floppym@gentoo.org>2011-11-30 07:28:28 +0000
commit6a0586200e211532fa3e946bac36ec0bdf828b2f (patch)
tree7a9b84dd6d34b34c5f79a6054a54c1d40f0f15f0 /net-misc
parentFix annoying leading spaces in ftp directories (upstream patch) (diff)
downloadgentoo-2-6a0586200e211532fa3e946bac36ec0bdf828b2f.tar.gz
gentoo-2-6a0586200e211532fa3e946bac36ec0bdf828b2f.tar.bz2
gentoo-2-6a0586200e211532fa3e946bac36ec0bdf828b2f.zip
Install init script, bug 357665. Thanks to Milan Berger and Christian Kaps.
(Portage version: 2.2.0_alpha79/cvs/Linux x86_64)
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/ps3mediaserver/ChangeLog6
-rw-r--r--net-misc/ps3mediaserver/files/ps3mediaserver.confd7
-rw-r--r--net-misc/ps3mediaserver/files/ps3mediaserver.initd23
-rw-r--r--net-misc/ps3mediaserver/ps3mediaserver-1.50.0.ebuild5
4 files changed, 39 insertions, 2 deletions
diff --git a/net-misc/ps3mediaserver/ChangeLog b/net-misc/ps3mediaserver/ChangeLog
index 311ca05db0c3..6d45c66c4ed9 100644
--- a/net-misc/ps3mediaserver/ChangeLog
+++ b/net-misc/ps3mediaserver/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-misc/ps3mediaserver
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/ps3mediaserver/ChangeLog,v 1.4 2011/11/30 06:38:30 floppym Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/ps3mediaserver/ChangeLog,v 1.5 2011/11/30 07:28:28 floppym Exp $
+
+ 30 Nov 2011; Mike Gilbert <floppym@gentoo.org> +files/ps3mediaserver.confd,
+ +files/ps3mediaserver.initd, ps3mediaserver-1.50.0.ebuild:
+ Install init script, bug 357665. Thanks to Milan Berger and Christian Kaps.
*ps3mediaserver-1.50.0 (30 Nov 2011)
diff --git a/net-misc/ps3mediaserver/files/ps3mediaserver.confd b/net-misc/ps3mediaserver/files/ps3mediaserver.confd
new file mode 100644
index 000000000000..ce0b6ecf1b17
--- /dev/null
+++ b/net-misc/ps3mediaserver/files/ps3mediaserver.confd
@@ -0,0 +1,7 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/ps3mediaserver/files/ps3mediaserver.confd,v 1.1 2011/11/30 07:28:28 floppym Exp $
+
+PMS_USER=
+PMS_GROUP=
+PMS_PIDFILE=/var/run/ps3mediaserver.pid
diff --git a/net-misc/ps3mediaserver/files/ps3mediaserver.initd b/net-misc/ps3mediaserver/files/ps3mediaserver.initd
new file mode 100644
index 000000000000..e732c09efe4e
--- /dev/null
+++ b/net-misc/ps3mediaserver/files/ps3mediaserver.initd
@@ -0,0 +1,23 @@
+#!/sbin/runscript
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/ps3mediaserver/files/ps3mediaserver.initd,v 1.1 2011/11/30 07:28:28 floppym Exp $
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting ${RC_SVCNAME}"
+ start-stop-daemon --start --exec /usr/bin/ps3mediaserver \
+ --user "${PMS_USER}" --group "${PMS_GROUP}" \
+ --background --make-pidfile --pidfile "${PMS_PIDFILE}" \
+ -- console
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${RC_SVCNAME}"
+ start-stop-daemon --stop --pidfile "${PMS_PIDFILE}"
+ eend $?
+}
diff --git a/net-misc/ps3mediaserver/ps3mediaserver-1.50.0.ebuild b/net-misc/ps3mediaserver/ps3mediaserver-1.50.0.ebuild
index bf508bd21083..618feba89273 100644
--- a/net-misc/ps3mediaserver/ps3mediaserver-1.50.0.ebuild
+++ b/net-misc/ps3mediaserver/ps3mediaserver-1.50.0.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/ps3mediaserver/ps3mediaserver-1.50.0.ebuild,v 1.1 2011/11/30 06:38:30 floppym Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/ps3mediaserver/ps3mediaserver-1.50.0.ebuild,v 1.2 2011/11/30 07:28:28 floppym Exp $
EAPI="4"
@@ -75,6 +75,9 @@ src_install() {
newins icon-256.png ${PN}.png
domenu ${PN}.desktop
+
+ newconfd "${FILESDIR}/${PN}.confd" ${PN}
+ newinitd "${FILESDIR}/${PN}.initd" ${PN}
}
pkg_postinst() {