net-misc/freelan: add basic openrc init script

Package-Manager: portage-2.2.28
Signed-off-by: Alexis Ballier <aballier@gentoo.org>
This commit is contained in:
Alexis Ballier
2016-03-29 19:14:23 +02:00
parent 4a77d3442a
commit cf9a40a3df
2 changed files with 15 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
#!/sbin/runscript
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
command="/usr/bin/freelan"
command_args="-s -p /var/run/freelan.pid"
pidfile="/var/run/freelan.pid"
depend() {
need net
use logger
}

View File

@@ -55,4 +55,6 @@ src_compile() {
src_install() {
DESTDIR="${D}" escons --mode=release prefix="${EPREFIX:-/}" bin_prefix="/usr" install
dodoc CONTRIBUTING.md README.md
newinitd "${FILESDIR}/openrc/freelan.initd" freelan
}