diff options
author | 2004-11-23 09:55:33 +0000 | |
---|---|---|
committer | 2004-11-23 09:55:33 +0000 | |
commit | 5f8bb01a68ce3bebae00b94d49f7ac62aa0e8309 (patch) | |
tree | fdf09399109b529b6f85419f5536e0c6ba324ad9 /net-news | |
parent | Fixed binary (diff) | |
download | overlay-5f8bb01a68ce3bebae00b94d49f7ac62aa0e8309.tar.gz overlay-5f8bb01a68ce3bebae00b94d49f7ac62aa0e8309.tar.bz2 overlay-5f8bb01a68ce3bebae00b94d49f7ac62aa0e8309.zip |
Hopefully with working init script now
svn path=/; revision=69
Diffstat (limited to 'net-news')
-rwxr-xr-x | net-news/nntprss/files/nntprss-init | 15 | ||||
-rw-r--r-- | net-news/nntprss/nntprss-0.5.1_beta.ebuild | 20 |
2 files changed, 28 insertions, 7 deletions
diff --git a/net-news/nntprss/files/nntprss-init b/net-news/nntprss/files/nntprss-init new file mode 100755 index 0000000..890e736 --- /dev/null +++ b/net-news/nntprss/files/nntprss-init @@ -0,0 +1,15 @@ +#!/sbin/runscript +# Copyright 2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 + +start() { + ebegin "Starting nntp//rss" + start-stop-daemon --start --background --quiet --exec /usr/sbin/nntprss + eend $? +} + +stop() { + ebegin "Stopping nntp//rss" + start-stop-daemon --stop --background --quiet --exec /usr/sbin/nntprss + eend $? +} diff --git a/net-news/nntprss/nntprss-0.5.1_beta.ebuild b/net-news/nntprss/nntprss-0.5.1_beta.ebuild index ac5f8ae..855a814 100644 --- a/net-news/nntprss/nntprss-0.5.1_beta.ebuild +++ b/net-news/nntprss/nntprss-0.5.1_beta.ebuild @@ -71,21 +71,27 @@ src_install() { OPTDIR=/opt/${PN}/lib XMLDIR=${shareroot}/xml ETCDIR=/etc/${PN} - - dodir ${OPTDIR} - insinto ${OPTDIR} - doins ${FILESDIR}/jdbm-0.20.jar + INIDIR=/etc/init.d dodir ${XMLDIR} insinto ${XMLDIR} doins ${S}/src/xml/publish-config.xml + cd ${FILESDIR} + + dodir ${OPTDIR} + insinto ${OPTDIR} + doins jdbm-0.20.jar + dodir ${ETCDIR} insinto ${ETCDIR} - doins ${FILESDIR}/nntprss-config.xml - doins ${FILESDIR}/log4j.properties + doins nntprss-config.xml + doins log4j.properties + + insinto ${INIDIR} + newins nntprss-init nntprss - dobin ${FILESDIR}/nntprss + dosbin nntprss } |