mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 06:48:18 -07:00
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:
13
net-misc/freelan/files/openrc/freelan.initd
Executable file
13
net-misc/freelan/files/openrc/freelan.initd
Executable 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
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user