From b349ae2145be4cb16218ec814e9cca85e96d3916 Mon Sep 17 00:00:00 2001 From: Petteri Räty Date: Sun, 12 Feb 2006 18:04:33 +0000 Subject: Added irssi init script. svn path=/; revision=103 --- net-irc/irssi-init/Manifest | 12 ++++++++++++ net-irc/irssi-init/files/0.1/conf.d | 4 ++++ net-irc/irssi-init/files/0.1/init.d | 14 ++++++++++++++ net-irc/irssi-init/files/digest-irssi-init-0.1 | 0 net-irc/irssi-init/irssi-init-0.1.ebuild | 20 ++++++++++++++++++++ 5 files changed, 50 insertions(+) create mode 100644 net-irc/irssi-init/Manifest create mode 100644 net-irc/irssi-init/files/0.1/conf.d create mode 100755 net-irc/irssi-init/files/0.1/init.d create mode 100644 net-irc/irssi-init/files/digest-irssi-init-0.1 create mode 100644 net-irc/irssi-init/irssi-init-0.1.ebuild diff --git a/net-irc/irssi-init/Manifest b/net-irc/irssi-init/Manifest new file mode 100644 index 0000000..72a9b52 --- /dev/null +++ b/net-irc/irssi-init/Manifest @@ -0,0 +1,12 @@ +MD5 1b459e7c6c72fce9252dbe5003afceb2 files/0.1/conf.d 91 +RMD160 962c0d8bbff177ef08fc4fd49314d21479000344 files/0.1/conf.d 91 +SHA256 a4f58fd066dc8951e653ca49ba57e4cf440a8c0e804ab75781c1adccfbae1664 files/0.1/conf.d 91 +MD5 498abcd67a6c79cd973e0cdf5c854b7c files/0.1/init.d 238 +RMD160 72410f83fd5cc6c7982589646dbecb59d97106dd files/0.1/init.d 238 +SHA256 a7832990e9059251c3409b34a3c9bd5372e82fbee6c59f78e1f53a789ce4e0d5 files/0.1/init.d 238 +MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-irssi-init-0.1 0 +RMD160 9c1185a5c5e9fc54612808977ee8f548b2258d31 files/digest-irssi-init-0.1 0 +SHA256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 files/digest-irssi-init-0.1 0 +MD5 74dd83f4e14ef35f9ca8d5dee0e0fbef irssi-init-0.1.ebuild 384 +RMD160 30444363353927d1ddb9cb6309bad6adea881c9d irssi-init-0.1.ebuild 384 +SHA256 26c1b5300ac99e92e876ea688f02c3c8841225fc0d05d5b1a5640fba82039df0 irssi-init-0.1.ebuild 384 diff --git a/net-irc/irssi-init/files/0.1/conf.d b/net-irc/irssi-init/files/0.1/conf.d new file mode 100644 index 0000000..5d14118 --- /dev/null +++ b/net-irc/irssi-init/files/0.1/conf.d @@ -0,0 +1,4 @@ +# List all the users you want to start a screen session with irssi +# here. + +IRSSI_USERS="" diff --git a/net-irc/irssi-init/files/0.1/init.d b/net-irc/irssi-init/files/0.1/init.d new file mode 100755 index 0000000..3d602e9 --- /dev/null +++ b/net-irc/irssi-init/files/0.1/init.d @@ -0,0 +1,14 @@ +#!/sbin/runscript + +depend() { + use net +} + +start() { + for user in ${IRSSI_USERS}; do + ebegin "Starting irssi session for ${user}" + /bin/su - ${user} -c "screen -dmS irssi -- irssi" + eend $? "Failed to start irssi for ${user}" + done +} + diff --git a/net-irc/irssi-init/files/digest-irssi-init-0.1 b/net-irc/irssi-init/files/digest-irssi-init-0.1 new file mode 100644 index 0000000..e69de29 diff --git a/net-irc/irssi-init/irssi-init-0.1.ebuild b/net-irc/irssi-init/irssi-init-0.1.ebuild new file mode 100644 index 0000000..4f4c3bf --- /dev/null +++ b/net-irc/irssi-init/irssi-init-0.1.ebuild @@ -0,0 +1,20 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +DESCRIPTION="Init script for irssi" +HOMEPAGE="http://a.bo.cx/ebuilds/net-irc/irssi-init" +SRC_URI="" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" + +IUSE="" + +DEPEND="" + +src_install() { + newconfd ${FILESDIR}/${PV}/conf.d irssi + newinitd ${FILESDIR}/${PV}/init.d irssi +} -- cgit v1.2.3-65-gdbad