Added several ebuilds

This commit is contained in:
layman
2017-04-04 23:31:00 +02:00
parent 7fb53ee71e
commit bd8e1053e8
33 changed files with 1160 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
#!/sbin/openrc-run
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
pidfile="/run/smartd.pid"
command="/usr/sbin/smartd"
command_args="-p ${pidfile} ${SMARTD_OPTS}"
extra_started_commands="reload"
depend() {
need localmount
after bootmisc
}
start_pre() {
if [ ! -f "/etc/smartd.conf" ] ; then
eerror "You should setup your /etc/smartd.conf file!"
eerror "See the smartd.conf(5) manpage."
return 1
fi
return 0
}
reload() {
ebegin "Reloading configuration"
start-stop-daemon --signal HUP --pidfile ${pidfile} ${command##*/}
eend $?
}
@@ -0,0 +1,4 @@
# /etc/conf.d/smartd: config file for /etc/init.d/smartd
# Insert any other options needed
SMARTD_OPTS=""
@@ -0,0 +1,3 @@
#!/bin/sh
/usr/sbin/update-smart-drivedb