Commit 8d3c0ba9 authored by Aaditya Bagga's avatar Aaditya Bagga

Add SYSCONFDIR variable to allow switching default openrc etc prefix

parent 4936f528
......@@ -2,13 +2,14 @@
# fix_openrc_base.sh
DESTDIR=$1
SYSCONFDIR=${SYSCONFDIR:-etc}
# https://stackoverflow.com/a/29394504/4005566
function ver { printf "%03d%03d%03d%03d" $(echo "$1" | tr '.' ' '); }
# dbus
_p1='s|dbus.pid|dbus/dbus.pid|g'
sed -e "${_p1}" -i "${DESTDIR}/etc/init.d/dbus"
sed -e "${_p1}" -i "${DESTDIR}/${SYSCONFDIR}/init.d/dbus"
# dhcpcd
# get dhcpcd version
......@@ -16,8 +17,8 @@ dhcpcd_ver=$(ls /var/log/packages/ | grep dhcpcd | cut -f 2 -d "-")
if [ $(ver "$dhcpcd_ver") -lt $(ver "6.10") ]; then
# fix for slackware 14.2
_p1='s|dhcpcd.pid|dhcpcd/dhcpcd.pid|g'
sed -e "${_p1}" -i "${DESTDIR}/etc/init.d/dhcpcd"
sed -e "${_p1}" -i "${DESTDIR}/${SYSCONFDIR}/init.d/dhcpcd"
fi
# dmeventd
sed 's| --pidfile $PIDFILE||g' -i "${DESTDIR}/etc/init.d/dmeventd"
sed 's| --pidfile $PIDFILE||g' -i "${DESTDIR}/${SYSCONFDIR}/init.d/dmeventd"
......@@ -2,14 +2,15 @@
# fix_openrc_desktop.sh
DESTDIR=$1
SYSCONFDIR=${SYSCONFDIR:-etc}
# bluetooth
_p1='s|libexec/bluetooth|sbin|g'
sed -e "${_p1}" -i "${DESTDIR}/etc/init.d/bluetooth"
sed -e "${_p1}" -i "${DESTDIR}/${SYSCONFDIR}/init.d/bluetooth"
# xdm
_p1='s|/etc/profile.env|/etc/profile|g'
sed -e "${_p1}" -i "${DESTDIR}/etc/init.d/xdm"
sed -e "${_p1}" -i "${DESTDIR}/${SYSCONFDIR}/init.d/xdm"
# wpa_supplicant
if [ -f /etc/os-release ]; then
......
......@@ -2,10 +2,11 @@
# fix_openrc_devel.sh
DESTDIR=$1
SYSCONFDIR=${SYSCONFDIR:-etc}
# influxdb
_p1='s|influxd.conf|influxdb.conf|g'
sed -e "${_p1}" -i "${DESTDIR}/etc/init.d/influxdb"
sed -e "${_p1}" -i "${DESTDIR}/${SYSCONFDIR}/init.d/influxdb"
# mysql
#_p1='s|--exec "${basedir}"/sbin/mysqld|--exec "${basedir}"/bin/mysqld_safe|g'
......@@ -13,10 +14,10 @@ _p1='s|/sbin/mysqld|/libexec/mysqld|g'
_p2='s|/etc/mysql/my.cnf|/etc/my.cnf|g'
_p3='s|STARTUP_TIMEOUT="900"|STARTUP_TIMEOUT=30|'
_p4='s|STOP_TIMEOUT=120|STOP_TIMEOUT=60|'
sed -e "${_p1}" -i "${DESTDIR}/etc/init.d/mysqld"
sed -e "${_p2}" -e "${_p3}" -e "${_p4}" -i "${DESTDIR}/etc/conf.d/mysqld"
sed -e "${_p1}" -i "${DESTDIR}/${SYSCONFDIR}/init.d/mysqld"
sed -e "${_p2}" -e "${_p3}" -e "${_p4}" -i "${DESTDIR}/${SYSCONFDIR}/conf.d/mysqld"
# remove extra check
sed "/\! -d \"\${datadir}\"\/mysql/,+11d" -i "${DESTDIR}/etc/init.d/mysqld"
sed "/\! -d \"\${datadir}\"\/mysql/,+11d" -i "${DESTDIR}/${SYSCONFDIR}/init.d/mysqld"
# postgresql
if [ "$(uname -m)" = x86_64 ]; then
......@@ -30,8 +31,8 @@ postgres_slot=$(echo "$postgres_ver" | cut -f 1-2 -d ".")
_p2='s|postgresql-@SLOT@|postgresql/@SLOT@|g'
_p3="s|@SLOT@|${postgres_slot}|g"
_p4='s|/var/lib/postgresql|/var/lib/pgsql|g'
sed -e "${_p1}" -e "${_p2}" -e "${_p3}" -i "${DESTDIR}/etc/init.d/postgresql"
sed -e "${_p2}" -e "${_p3}" -e "${_p4}" -i "${DESTDIR}/etc/conf.d/postgresql"
sed -e "${_p1}" -e "${_p2}" -e "${_p3}" -i "${DESTDIR}/${SYSCONFDIR}/init.d/postgresql"
sed -e "${_p2}" -e "${_p3}" -e "${_p4}" -i "${DESTDIR}/${SYSCONFDIR}/conf.d/postgresql"
# redis
_p1='s|/usr/sbin/redis-server|/usr/bin/redis-server|'
......@@ -39,12 +40,12 @@ _p2='/rc_need/s/^/#/'
_p3='s/REDIS_USER="redis"/REDIS_USER="root"/'
_p4='s/REDIS_GROUP="redis"/REDIS_GROUP="root"/'
_p5='s|/etc/redis.conf|/etc/redis/redis.conf|'
sed -e "${_p1}" -i "${DESTDIR}/etc/init.d/redis"
sed -e "${_p2}" -e "${_p3}" -e "${_p4}" -e "${_p5}" -i "${DESTDIR}/etc/conf.d/redis"
sed -e "${_p1}" -i "${DESTDIR}/${SYSCONFDIR}/init.d/redis"
sed -e "${_p2}" -e "${_p3}" -e "${_p4}" -e "${_p5}" -i "${DESTDIR}/${SYSCONFDIR}/conf.d/redis"
# subversion
_p2='s|-apache|-http|g'
sed -e "${_p2}" -i "${DESTDIR}/etc/init.d/svn"
sed -e "${_p2}" -i "${DESTDIR}/${SYSCONFDIR}/init.d/svn"
# git-daemon
sed 's| --base-path=/var/git||' -i "${DESTDIR}/etc/conf.d/git-daemon"
sed 's| --base-path=/var/git||' -i "${DESTDIR}/${SYSCONFDIR}/conf.d/git-daemon"
......@@ -2,10 +2,11 @@
# fix_openrc_misc.sh
DESTDIR=$1
SYSCONFDIR=${SYSCONFDIR:-etc}
# bitlbee
_p1='s|need logger net|need net\n use logger|'
sed -e "${_p1}" -i "${DESTDIR}/etc/init.d/bitlbee"
sed -e "${_p1}" -i "${DESTDIR}/${SYSCONFDIR}/init.d/bitlbee"
# boinc
if [ "$(uname -m)" = x86_64 ]; then
......@@ -13,37 +14,37 @@ if [ "$(uname -m)" = x86_64 ]; then
else
_p1='s|@libdir@|lib|g'
fi
sed -e "${_p1}" -i "${DESTDIR}/etc/init.d/boinc"
sed -e "${_p1}" -i "${DESTDIR}/${SYSCONFDIR}/init.d/boinc"
# cups
_p1='s|lp:lpadmin|daemon:sys|'
_p2='s|@neededservices@|need dbus|'
sed -e "${_p1}" -e "${_p2}" -i "${DESTDIR}/etc/init.d/cupsd"
sed -e "${_p1}" -e "${_p2}" -i "${DESTDIR}/${SYSCONFDIR}/init.d/cupsd"
# fcron
_p1='s|/usr/libexec|/usr/sbin|g'
sed -e "${_p1}" -i "${DESTDIR}/etc/init.d/fcron"
sed -e "${_p1}" -i "${DESTDIR}/${SYSCONFDIR}/init.d/fcron"
# haveged
_p1='s|/usr/sbin|/sbin|g'
sed -e "${_p1}" -i "${DESTDIR}/etc/init.d/haveged"
sed -e "${_p1}" -i "${DESTDIR}/${SYSCONFDIR}/init.d/haveged"
# ntpd
_p1='s| -u ntp:ntp||'
sed -e "${_p1}" -i "${DESTDIR}/etc/conf.d/ntpd"
sed -e "${_p1}" -i "${DESTDIR}/${SYSCONFDIR}/conf.d/ntpd"
# vboxservice
_p1='s|vboxguest-service|VBoxService|'
sed -e "${_p1}" -i "${DESTDIR}/etc/init.d/vboxservice"
sed -e "${_p1}" -i "${DESTDIR}/${SYSCONFDIR}/init.d/vboxservice"
# libvirt
_p1='s|USE_FLAG_FIREWALLD||'
_p2='s|USE_FLAG_AVAHI||'
_p3='s|USE_FLAG_ISCSI||'
_p4='s|USE_FLAG_RBD||'
sed -e "${_p1}" -e "${_p2}" -e "${_p3}" -e "${_p4}" -i "${DESTDIR}/etc/init.d/libvirtd"
sed -e "${_p1}" -e "${_p2}" -e "${_p3}" -e "${_p4}" -i "${DESTDIR}/${SYSCONFDIR}/init.d/libvirtd"
cat << "EOF" >> "${DESTDIR}/etc/init.d/libvirtd"
cat << "EOF" >> "${DESTDIR}/${SYSCONFDIR}/init.d/libvirtd"
# adapted from SBo's rc.libvirt
# https://slackbuilds.org/repository/14.2/libraries/libvirt/
......@@ -92,9 +93,9 @@ EOF
# saned
_p1='s|saned/saned.pid|saned.pid|g'
sed -e "${_p1}" -i "${DESTDIR}/etc/init.d/saned"
sed -e "${_p1}" -i "${DESTDIR}/${SYSCONFDIR}/init.d/saned"
# zfs
_p1='s|/usr/bin/zfs|/sbin/zfs|'
_p2='s|/usr/bin/zpool|/sbin/zpool|'
sed -e "${_p1}" -e "${_p2}" -i "${DESTDIR}/etc/init.d/zfs"
sed -e "${_p1}" -e "${_p2}" -i "${DESTDIR}/${SYSCONFDIR}/init.d/zfs"
......@@ -2,6 +2,7 @@
# fix_openrc_net.sh
DESTDIR=$1
SYSCONFDIR=${SYSCONFDIR:-etc}
# apache (httpd)
_p1='s|/usr/sbin/apache2|/usr/sbin/apachectl|'
......@@ -16,39 +17,39 @@ _p6='s|apache2 >/dev/null|httpd >/dev/null|'
_p7='s|apache2|httpd|g'
_p8='s|/run/apache_ssl_mutex|/run/httpd|'
_p9='s|start-stop-daemon --start|start-stop-daemon --start --pidfile ${PIDFILE}|'
sed -e "${_p1}" -e "${_p2}" -e "${_p4}" -e "${_p5}" -e "${_p6}" -e "${_p8}" -e "${_p9}" -i "${DESTDIR}/etc/init.d/httpd"
sed -e "${_p2}" -e "${_p4}" -e "${_p5}" -e "${_p7}" -i "${DESTDIR}/etc/conf.d/httpd"
sed -e "${_p1}" -e "${_p2}" -e "${_p4}" -e "${_p5}" -e "${_p6}" -e "${_p8}" -e "${_p9}" -i "${DESTDIR}/${SYSCONFDIR}/init.d/httpd"
sed -e "${_p2}" -e "${_p4}" -e "${_p5}" -e "${_p7}" -i "${DESTDIR}/${SYSCONFDIR}/conf.d/httpd"
# dnsmasq
_p1='/DNSMASQ_OPTS/s/^/#/'
sed -e "${_p1}" -i "${DESTDIR}/etc/conf.d/dnsmasq"
sed -e "${_p1}" -i "${DESTDIR}/${SYSCONFDIR}/conf.d/dnsmasq"
# named
_p1='s|/etc/bind/named.conf|/etc/named.conf|g'
sed -e "${_p1}" -i "${DESTDIR}/etc/init.d/named"
sed -e "${_p1}" -i "${DESTDIR}/${SYSCONFDIR}/init.d/named"
# hostapd
sed -e "s|INTERFACES=|#INTERFACES=|" -i "${DESTDIR}/etc/conf.d/hostapd"
sed -e "s|INTERFACES=|#INTERFACES=|" -i "${DESTDIR}/${SYSCONFDIR}/conf.d/hostapd"
# iptables
_p1='s|/sbin/${iptables_name}|/usr/sbin/${iptables_name}|g'
sed -e "${_p1}" -i "${DESTDIR}/etc/init.d/iptables"
sed -e "${_p1}" -i "${DESTDIR}/etc/init.d/ip6tables"
sed -e "${_p1}" -i "${DESTDIR}/${SYSCONFDIR}/init.d/iptables"
sed -e "${_p1}" -i "${DESTDIR}/${SYSCONFDIR}/init.d/ip6tables"
# proftpd
_p1='s|/etc/proftpd|/etc|g'
sed -e "${_p1}" -i "${DESTDIR}/etc/init.d/proftpd"
sed -e "${_p1}" -i "${DESTDIR}/${SYSCONFDIR}/init.d/proftpd"
# saslauthd
_p1='s|-a pam|-a shadow|'
sed -e "${_p1}" -i "${DESTDIR}/etc/conf.d/saslauthd"
sed -e "${_p1}" -i "${DESTDIR}/${SYSCONFDIR}/conf.d/saslauthd"
# vsftpd
_p1='s|/etc/vsftpd|/etc|g'
sed -e "${_p1}" -i "${DESTDIR}/etc/init.d/vsftpd"
sed -e "${_p1}" -i "${DESTDIR}/${SYSCONFDIR}/init.d/vsftpd"
# vnstatd
_p1='/checkpath -q/d'
_p2='/--user vnstat --group vnstat/d'
_p3='s|/usr/bin/vnstatd|/usr/sbin/vnstatd|'
sed -e "${_p1}" -e "${_p2}" -e "${_p3}" -i "${DESTDIR}/etc/init.d/vnstatd"
sed -e "${_p1}" -e "${_p2}" -e "${_p3}" -i "${DESTDIR}/${SYSCONFDIR}/init.d/vnstatd"
......@@ -2,6 +2,7 @@
# fix_openrc_slack.sh
DESTDIR=$1
SYSCONFDIR=${SYSCONFDIR:-etc}
# dcron
# starting slackware current 14.2+
......@@ -9,7 +10,7 @@ _p1='/ebegin "Starting \${SVCNAME}"/a \\t# adapted from \/etc\/rc.d\/rc.crond \n
_p2='/start-stop-daemon/,+1d'
_p3='/ebegin "Stopping \${SVCNAME}"/a \\t# adapted from \/etc\/rc.d\/rc.crond\
\/usr\/bin\/pkill --ns \$\$ --euid root -f "^\/usr\/sbin\/crond" 2> \/dev\/null'
sed -e "${_p1}" -e "${_p2}" -e "${_p3}" -i "${DESTDIR}/etc/init.d/dcron"
sed -e "${_p1}" -e "${_p2}" -e "${_p3}" -i "${DESTDIR}/${SYSCONFDIR}/init.d/dcron"
# php-fpm
_p1='s|lib/${PHPSLOT}/bin|sbin|g'
......@@ -18,8 +19,8 @@ _p3='s|/run/php-fpm-${PHPSLOT}|/run/php-fpm|'
_p4='/PHPSLOT=${SVCNAME#php-fpm-}/d'
_p5='s|^.*${PHPSLOT}.*||'
_p6='s|apache2|httpd|'
sed -e "${_p1}" -e "${_p2}" -e "${_p3}" -e "${_p4}" -e "${_p5}" -e "${_p6}" -i "${DESTDIR}/etc/init.d/php-fpm"
sed -e "${_p1}" -e "${_p2}" -e "${_p3}" -e "${_p4}" -e "${_p5}" -e "${_p6}" -i "${DESTDIR}/${SYSCONFDIR}/init.d/php-fpm"
# ulogd
_p1='s| --uid ulogd||g'
sed -e "${_p1}" -i "${DESTDIR}/etc/init.d/ulogd"
sed -e "${_p1}" -i "${DESTDIR}/${SYSCONFDIR}/init.d/ulogd"
......@@ -2,9 +2,10 @@
# fix_openrc_video.sh
DESTDIR=$1
SYSCONFDIR=${SYSCONFDIR:-etc}
# nvidia
_p1='s|/opt/bin/nvidia-smi|/usr/bin/nvidia-smi|g'
_p2='s|/opt/bin/nvidia-persistenced|/usr/bin/nvidia-persistenced|g'
sed -e "${_p1}" -i "${DESTDIR}/etc/init.d/nvidia-smi"
sed -e "${_p2}" -i "${DESTDIR}/etc/init.d/nvidia-persistenced"
sed -e "${_p1}" -i "${DESTDIR}/${SYSCONFDIR}/init.d/nvidia-smi"
sed -e "${_p2}" -i "${DESTDIR}/${SYSCONFDIR}/init.d/nvidia-persistenced"
......@@ -2,14 +2,15 @@
# fix_path.sh: fixes path in runscript and location of /var/run
DESTDIR=$1
SYSCONFDIR=${SYSCONFDIR:-/etc}
_shebang='s|#!/sbin/runscript|#!/sbin/openrc-run|'
_runpath='s|/var/run|/run|g'
for file in ${DESTDIR}/etc/init.d/*; do
for file in ${DESTDIR}/${SYSCONFDIR}/init.d/*; do
sed -e "${_shebang}" -e "${_runpath}" -i "$file"
done
for file in ${DESTDIR}/etc/conf.d/*; do
for file in ${DESTDIR}/${SYSCONFDIR}/conf.d/*; do
sed -e "${_runpath}" -i "$file"
done
......@@ -4,6 +4,7 @@
set -e # exit on error
DESTDIR=$1
SYSCONFDIR=${SYSCONFDIR:-etc}
echo "Installing OpenRC services..."
......
......@@ -2,6 +2,7 @@
# install_openrc_accessible.sh
DESTDIR=$1
SYSCONFDIR=${SYSCONFDIR:-etc}
_gentoo_uri="gentoo"
......@@ -10,5 +11,5 @@ _Cespk=${_gentoo_uri}/app-accessibility/espeakup/files/espeakup.confd
_Iespk=${_gentoo_uri}/app-accessibility/espeakup/files/espeakup.rc
# install
install -Dm644 "${_Cespk}" "${DESTDIR}/etc/conf.d/espeakup"
install -Dm755 "${_Iespk}" "${DESTDIR}/etc/init.d/espeakup"
install -Dm644 "${_Cespk}" "${DESTDIR}/${SYSCONFDIR}/conf.d/espeakup"
install -Dm755 "${_Iespk}" "${DESTDIR}/${SYSCONFDIR}/init.d/espeakup"
......@@ -2,6 +2,7 @@
# install_openrc_base.sh
DESTDIR=$1
SYSCONFDIR=${SYSCONFDIR:-etc}
_gentoo_uri="gentoo"
_udev="udev-init-scripts"
......@@ -26,26 +27,26 @@ _Imdraid=${_gentoo_uri}/sys-fs/mdadm/files/mdraid.rc
_Ikmod=${_gentoo_uri}/sys-apps/kmod/files/kmod-static-nodes-r1
# install
install -Dm755 "${_Icron}" "${DESTDIR}/etc/init.d/cronie"
install -Dm755 "${_Idhcpcd}" "${DESTDIR}/etc/init.d/dhcpcd"
install -Dm755 "${_Idbus}" "${DESTDIR}/etc/init.d/dbus"
install -Dm644 "${_Cdm}" "${DESTDIR}/etc/conf.d/device-mapper"
install -Dm755 "${_Idm1}" "${DESTDIR}/etc/init.d/device-mapper"
install -Dm755 "${_Idm2}" "${DESTDIR}/etc/init.d/dmeventd"
install -Dm644 "${_Ccrypt}" "${DESTDIR}/etc/conf.d/dmcrypt"
install -Dm755 "${_Icrypt}" "${DESTDIR}/etc/init.d/dmcrypt"
install -Dm644 "${_Clvm}" "${DESTDIR}/etc/conf.d/lvm"
install -Dm755 "${_Ilvm1}" "${DESTDIR}/etc/init.d/lvm"
install -Dm755 "${_Ilvm2}" "${DESTDIR}/etc/init.d/lvm-monitoring"
install -Dm755 "${_Ilvm3}" "${DESTDIR}/etc/init.d/lvmetad"
install -Dm644 "${_Cmdadm}" "${DESTDIR}/etc/conf.d/mdadm"
install -Dm755 "${_Imdadm}" "${DESTDIR}/etc/init.d/mdadm"
install -Dm644 "${_Cmdraid}" "${DESTDIR}/etc/conf.d/mdraid"
install -Dm755 "${_Imdraid}" "${DESTDIR}/etc/init.d/mdraid"
install -Dm755 "${_Ikmod}" "${DESTDIR}/etc/init.d/kmod-static-nodes"
install -Dm644 "misc/${_udev}/conf.d/udev" "${DESTDIR}/etc/conf.d/udev"
install -Dm755 "misc/${_udev}/init.d/udev" "${DESTDIR}/etc/init.d/udev"
install -Dm644 "misc/${_udev}/conf.d/udev-settle" "${DESTDIR}/etc/conf.d/udev-settle"
install -Dm755 "misc/${_udev}/init.d/udev-settle" "${DESTDIR}/etc/init.d/udev-settle"
install -Dm644 "misc/${_udev}/conf.d/udev-trigger" "${DESTDIR}/etc/conf.d/udev-trigger"
install -Dm755 "misc/${_udev}/init.d/udev-trigger" "${DESTDIR}/etc/init.d/udev-trigger"
install -Dm755 "${_Icron}" "${DESTDIR}/${SYSCONFDIR}/init.d/cronie"
install -Dm755 "${_Idhcpcd}" "${DESTDIR}/${SYSCONFDIR}/init.d/dhcpcd"
install -Dm755 "${_Idbus}" "${DESTDIR}/${SYSCONFDIR}/init.d/dbus"
install -Dm644 "${_Cdm}" "${DESTDIR}/${SYSCONFDIR}/conf.d/device-mapper"
install -Dm755 "${_Idm1}" "${DESTDIR}/${SYSCONFDIR}/init.d/device-mapper"
install -Dm755 "${_Idm2}" "${DESTDIR}/${SYSCONFDIR}/init.d/dmeventd"
install -Dm644 "${_Ccrypt}" "${DESTDIR}/${SYSCONFDIR}/conf.d/dmcrypt"
install -Dm755 "${_Icrypt}" "${DESTDIR}/${SYSCONFDIR}/init.d/dmcrypt"
install -Dm644 "${_Clvm}" "${DESTDIR}/${SYSCONFDIR}/conf.d/lvm"
install -Dm755 "${_Ilvm1}" "${DESTDIR}/${SYSCONFDIR}/init.d/lvm"
install -Dm755 "${_Ilvm2}" "${DESTDIR}/${SYSCONFDIR}/init.d/lvm-monitoring"
install -Dm755 "${_Ilvm3}" "${DESTDIR}/${SYSCONFDIR}/init.d/lvmetad"
install -Dm644 "${_Cmdadm}" "${DESTDIR}/${SYSCONFDIR}/conf.d/mdadm"
install -Dm755 "${_Imdadm}" "${DESTDIR}/${SYSCONFDIR}/init.d/mdadm"
install -Dm644 "${_Cmdraid}" "${DESTDIR}/${SYSCONFDIR}/conf.d/mdraid"
install -Dm755 "${_Imdraid}" "${DESTDIR}/${SYSCONFDIR}/init.d/mdraid"
install -Dm755 "${_Ikmod}" "${DESTDIR}/${SYSCONFDIR}/init.d/kmod-static-nodes"
install -Dm644 "misc/${_udev}/conf.d/udev" "${DESTDIR}/${SYSCONFDIR}/conf.d/udev"
install -Dm755 "misc/${_udev}/init.d/udev" "${DESTDIR}/${SYSCONFDIR}/init.d/udev"
install -Dm644 "misc/${_udev}/conf.d/udev-settle" "${DESTDIR}/${SYSCONFDIR}/conf.d/udev-settle"
install -Dm755 "misc/${_udev}/init.d/udev-settle" "${DESTDIR}/${SYSCONFDIR}/init.d/udev-settle"
install -Dm644 "misc/${_udev}/conf.d/udev-trigger" "${DESTDIR}/${SYSCONFDIR}/conf.d/udev-trigger"
install -Dm755 "misc/${_udev}/init.d/udev-trigger" "${DESTDIR}/${SYSCONFDIR}/init.d/udev-trigger"
......@@ -2,6 +2,7 @@
# install_openrc_desktop.sh
DESTDIR=$1
SYSCONFDIR=${SYSCONFDIR:-etc}
_gentoo_uri="gentoo"
......@@ -29,27 +30,27 @@ _INM=${_gentoo_uri}/net-misc/networkmanager/files/init.d.NetworkManager-r1
_SNM=${_gentoo_uri}/net-misc/networkmanager/files/10-openrc-status-r4
# install
install -Dm644 "${_Cacpi}" "${DESTDIR}/etc/conf.d/acpid"
install -Dm755 "${_Iacpi}" "${DESTDIR}/etc/init.d/acpid"
install -Dm644 "${_Calsa}" "${DESTDIR}/etc/conf.d/alsasound"
install -Dm755 "${_Ialsa}" "${DESTDIR}/etc/init.d/alsasound"
install -Dm755 "${_Ick}" "$DESTDIR/etc/init.d/consolekit"
install -Dm755 "${_Icgm}" "$DESTDIR/etc/init.d/cgmanager"
install -Dm755 "${_Icgp}" "$DESTDIR/etc/init.d/cgproxy"
install -Dm644 "${_Cxdm}" "${DESTDIR}/etc/conf.d/xdm"
install -Dm755 "${_Ixdm1}" "${DESTDIR}/etc/init.d/xdm"
install -Dm755 "${_Ixdm2}" "${DESTDIR}/etc/init.d/xdm-setup"
install -Dm644 "${_Cacpi}" "${DESTDIR}/${SYSCONFDIR}/conf.d/acpid"
install -Dm755 "${_Iacpi}" "${DESTDIR}/${SYSCONFDIR}/init.d/acpid"
install -Dm644 "${_Calsa}" "${DESTDIR}/${SYSCONFDIR}/conf.d/alsasound"
install -Dm755 "${_Ialsa}" "${DESTDIR}/${SYSCONFDIR}/init.d/alsasound"
install -Dm755 "${_Ick}" "${DESTDIR}/${SYSCONFDIR}/init.d/consolekit"
install -Dm755 "${_Icgm}" "${DESTDIR}/${SYSCONFDIR}/init.d/cgmanager"
install -Dm755 "${_Icgp}" "${DESTDIR}/${SYSCONFDIR}/init.d/cgproxy"
install -Dm644 "${_Cxdm}" "${DESTDIR}/${SYSCONFDIR}/conf.d/xdm"
install -Dm755 "${_Ixdm1}" "${DESTDIR}/${SYSCONFDIR}/init.d/xdm"
install -Dm755 "${_Ixdm2}" "${DESTDIR}/${SYSCONFDIR}/init.d/xdm-setup"
install -Dm755 "${_Sxdm}" "${DESTDIR}/etc/X11/startDM.sh"
install -Dm644 "${_Cgpm}" "${DESTDIR}/etc/conf.d/gpm"
install -Dm755 "${_Igpm}" "${DESTDIR}/etc/init.d/gpm"
install -Dm755 "${_Iblue1}" "${DESTDIR}/etc/init.d/rfcomm"
install -Dm755 "${_Iblue2}" "${DESTDIR}/etc/init.d/bluetooth"
install -Dm644 "${_Cwpa}" "${DESTDIR}/etc/conf.d/wpa_supplicant"
install -Dm755 "${_Iwpa}" "${DESTDIR}/etc/init.d/wpa_supplicant"
install -Dm644 "${_Cgpm}" "${DESTDIR}/${SYSCONFDIR}/conf.d/gpm"
install -Dm755 "${_Igpm}" "${DESTDIR}/${SYSCONFDIR}/init.d/gpm"
install -Dm755 "${_Iblue1}" "${DESTDIR}/${SYSCONFDIR}/init.d/rfcomm"
install -Dm755 "${_Iblue2}" "${DESTDIR}/${SYSCONFDIR}/init.d/bluetooth"
install -Dm644 "${_Cwpa}" "${DESTDIR}/${SYSCONFDIR}/conf.d/wpa_supplicant"
install -Dm755 "${_Iwpa}" "${DESTDIR}/${SYSCONFDIR}/init.d/wpa_supplicant"
install -Dm755 "${_Swpa}" "${DESTDIR}/etc/wpa_supplicant/wpa_cli.sh"
install -Dm644 "${_CNM}" "${DESTDIR}/etc/conf.d/NetworkManager"
install -Dm755 "${_INM}" "${DESTDIR}/etc/init.d/NetworkManager"
install -Dm644 "${_CNM}" "${DESTDIR}/${SYSCONFDIR}/conf.d/NetworkManager"
install -Dm755 "${_INM}" "${DESTDIR}/${SYSCONFDIR}/init.d/NetworkManager"
install -Dm755 "${_SNM}" "${DESTDIR}/etc/NetworkManager/dispatcher.d/10-openrc-status"
install -Dm755 "misc/init.d/avahi-daemon" "${DESTDIR}/etc/init.d/avahi-daemon"
install -Dm755 "misc/init.d/avahi-daemon" "${DESTDIR}/etc/init.d/avahi-daemon"
install -Dm755 "misc/init.d/tlp-init.openrc-r2" "${DESTDIR}/etc/init.d/tlp"
install -Dm755 "misc/init.d/avahi-daemon" "${DESTDIR}/${SYSCONFDIR}/init.d/avahi-daemon"
install -Dm755 "misc/init.d/avahi-daemon" "${DESTDIR}/${SYSCONFDIR}/init.d/avahi-daemon"
install -Dm755 "misc/init.d/tlp-init.openrc-r2" "${DESTDIR}/${SYSCONFDIR}/init.d/tlp"
......@@ -2,6 +2,7 @@
# install_openrc_devel.sh
DESTDIR=$1
SYSCONFDIR=${SYSCONFDIR:-etc}
_gentoo_uri="gentoo"
......@@ -25,20 +26,20 @@ _CRedS="${_gentoo_uri}/dev-db/redis/files/redis.confd-r1"
_IRedS="${_gentoo_uri}/dev-db/redis/files/redis.initd-5"
# install
install -Dm644 "${_Cgit}" "${DESTDIR}/etc/conf.d/git-daemon"
install -Dm755 "${_Igit}" "${DESTDIR}/etc/init.d/git-daemon"
install -Dm644 "${_Cmy}" "${DESTDIR}/etc/conf.d/mysqld"
install -Dm755 "${_Imy}" "${DESTDIR}/etc/init.d/mysqld"
install -Dm644 "${_CPgsql}" "${DESTDIR}/etc/conf.d/postgresql"
install -Dm755 "${_IPgsql}" "${DESTDIR}/etc/init.d/postgresql"
install -Dm644 "${_Csvn}" "${DESTDIR}/etc/conf.d/svn"
install -Dm755 "${_Isvn}" "${DESTDIR}/etc/init.d/svn"
install -Dm644 "${_CDistcc}" "${DESTDIR}/etc/conf.d/distccd"
install -Dm755 "${_IDistcc}" "${DESTDIR}/etc/init.d/distccd"
install -Dm644 "${_CJenk}" "${DESTDIR}/etc/conf.d/jenkins"
install -Dm755 "${_IJenk}" "${DESTDIR}/etc/init.d/jenkins"
install -Dm644 "${_Cgit}" "${DESTDIR}/${SYSCONFDIR}/conf.d/git-daemon"
install -Dm755 "${_Igit}" "${DESTDIR}/${SYSCONFDIR}/init.d/git-daemon"
install -Dm644 "${_Cmy}" "${DESTDIR}/${SYSCONFDIR}/conf.d/mysqld"
install -Dm755 "${_Imy}" "${DESTDIR}/${SYSCONFDIR}/init.d/mysqld"
install -Dm644 "${_CPgsql}" "${DESTDIR}/${SYSCONFDIR}/conf.d/postgresql"
install -Dm755 "${_IPgsql}" "${DESTDIR}/${SYSCONFDIR}/init.d/postgresql"
install -Dm644 "${_Csvn}" "${DESTDIR}/${SYSCONFDIR}/conf.d/svn"
install -Dm755 "${_Isvn}" "${DESTDIR}/${SYSCONFDIR}/init.d/svn"
install -Dm644 "${_CDistcc}" "${DESTDIR}/${SYSCONFDIR}/conf.d/distccd"
install -Dm755 "${_IDistcc}" "${DESTDIR}/${SYSCONFDIR}/init.d/distccd"
install -Dm644 "${_CJenk}" "${DESTDIR}/${SYSCONFDIR}/conf.d/jenkins"
install -Dm755 "${_IJenk}" "${DESTDIR}/${SYSCONFDIR}/init.d/jenkins"
install -Dm644 "${_LJenk}" "${DESTDIR}/etc/logrotate.d/jenkins"
install -Dm644 "${_Cinflux}" "${DESTDIR}/etc/conf.d/influxdb"
install -Dm755 "${_Iinflux}" "${DESTDIR}/etc/init.d/influxdb"
install -Dm644 "${_CRedS}" "${DESTDIR}/etc/conf.d/redis"
install -Dm755 "${_IRedS}" "${DESTDIR}/etc/init.d/redis"
install -Dm644 "${_Cinflux}" "${DESTDIR}/${SYSCONFDIR}/conf.d/influxdb"
install -Dm755 "${_Iinflux}" "${DESTDIR}/${SYSCONFDIR}/init.d/influxdb"
install -Dm644 "${_CRedS}" "${DESTDIR}/${SYSCONFDIR}/conf.d/redis"
install -Dm755 "${_IRedS}" "${DESTDIR}/${SYSCONFDIR}/init.d/redis"
......@@ -2,6 +2,7 @@
# install_openrc_misc.sh
DESTDIR=$1
SYSCONFDIR=${SYSCONFDIR:-etc}
_gentoo_uri="gentoo"
......@@ -69,68 +70,68 @@ _CPulseAudio=${_gentoo_uri}/media-sound/pulseaudio/files/pulseaudio.conf.d
_IPulseAudio=${_gentoo_uri}/media-sound/pulseaudio/files/pulseaudio.init.d-5
# install
install -Dm755 "${_Iacron}" "${DESTDIR}/etc/init.d/anacron"
install -Dm755 "${_Ifrcon}" "${DESTDIR}/etc/init.d/fcron"
install -Dm644 "${_Cbit}" "${DESTDIR}/etc/conf.d/bitlbee"
install -Dm755 "${_Ibit}" "${DESTDIR}/etc/init.d/bitlbee"
install -Dm644 "${_Ccpu}" "${DESTDIR}/etc/conf.d/cpupower"
install -Dm755 "${_Icpu}" "${DESTDIR}/etc/init.d/cpupower"
install -Dm644 "${_Ccon}" "${DESTDIR}/etc/conf.d/connman"
install -Dm755 "${_Icon}" "${DESTDIR}/etc/init.d/connman"
install -Dm755 "${_Icups}" "${DESTDIR}/etc/init.d/cupsd"
install -Dm644 "${_Cntp1}" "${DESTDIR}/etc/conf.d/ntpd"
install -Dm755 "${_Intp1}" "${DESTDIR}/etc/init.d/ntpd"
install -Dm644 "${_Cntp2}" "${DESTDIR}/etc/conf.d/ntp-client"
install -Dm755 "${_Intp2}" "${DESTDIR}/etc/init.d/ntp-client"
install -Dm644 "${_Cntp3}" "${DESTDIR}/etc/conf.d/sntp"
install -Dm755 "${_Intp3}" "${DESTDIR}/etc/init.d/sntp"
install -Dm644 "${_Crsysl}" "${DESTDIR}/etc/conf.d/rsyslog"
install -Dm755 "${_Irsysl}" "${DESTDIR}/etc/init.d/rsyslog"
install -Dm644 "${_Csane}" "${DESTDIR}/etc/conf.d/saned"
install -Dm755 "${_Isane}" "${DESTDIR}/etc/init.d/saned"
install -Dm755 "${_Ifuse}" "${DESTDIR}/etc/init.d/fuse"
install -Dm644 "${_Cmeta}" "${DESTDIR}/etc/conf.d/metalog"
install -Dm755 "${_Imeta}" "${DESTDIR}/etc/init.d/metalog"
install -Dm644 "${_Csyslog}" "${DESTDIR}/etc/conf.d/syslog-ng"
install -Dm755 "${_Isyslog}" "${DESTDIR}/etc/init.d/syslog-ng"
install -Dm644 "${_Csens}" "${DESTDIR}/etc/conf.d/sensord"
install -Dm644 "${_Csens1}" "${DESTDIR}/etc/conf.d/fancontrol"
install -Dm644 "${_Csens2}" "${DESTDIR}/etc/conf.d/lm_sensors"
install -Dm755 "${_Isens1}" "${DESTDIR}/etc/init.d/sensord"
install -Dm755 "${_Isens2}" "${DESTDIR}/etc/init.d/fancontrol"
install -Dm755 "${_Isens3}" "${DESTDIR}/etc/init.d/lm_sensors"
install -Dm644 "${_Clirc1}" "${DESTDIR}/etc/conf.d/lircd"
install -Dm755 "${_Ilirc1}" "${DESTDIR}/etc/init.d/lircd"
install -Dm644 "${_Clirc2}" "${DESTDIR}/etc/conf.d/irexec"
install -Dm755 "${_Ilirc2}" "${DESTDIR}/etc/init.d/irexec"
install -Dm755 "${_Ilirc3}" "${DESTDIR}/etc/init.d/lircmd"
install -Dm644 "${_Chaveg}" "${DESTDIR}/etc/conf.d/haveged"
install -Dm755 "${_Ihaveg}" "${DESTDIR}/etc/init.d/haveged"
install -Dm644 "${_Csalt_mtr}" "${DESTDIR}/etc/conf.d/salt-master"
install -Dm755 "${_Isalt_mtr}" "${DESTDIR}/etc/init.d/salt-master"
install -Dm644 "${_Csalt_min}" "${DESTDIR}/etc/conf.d/salt-minion"
install -Dm755 "${_Isalt_min}" "${DESTDIR}/etc/init.d/salt-minion"
install -Dm644 "${_Csalt_sync}" "${DESTDIR}/etc/conf.d/salt-syncdic"
install -Dm755 "${_Isalt_sync}" "${DESTDIR}/etc/init.d/salt-syncdic"
install -Dm755 "${_Impd}" "${DESTDIR}/etc/init.d/mpd"
install -Dm644 "${_Chdparm}" "${DESTDIR}/etc/conf.d/hdparm"
install -Dm755 "${_Ihdparm}" "${DESTDIR}/etc/init.d/hdparm"
install -Dm755 "${_Itherm}" "${DESTDIR}/etc/init.d/thermald"
install -Dm755 "${_Ixe}" "${DESTDIR}/etc/init.d/xe-daemon"
install -Dm755 "${_Ivbox}" "${DESTDIR}/etc/init.d/vboxservice"
install -Dm644 "${_CClam}" "${DESTDIR}/etc/conf.d/clamd"
install -Dm755 "${_IClam}" "${DESTDIR}/etc/init.d/clamd"
install -Dm644 "${_CBoinc}" "${DESTDIR}/etc/conf.d/boinc"
install -Dm755 "${_IBoinc}" "${DESTDIR}/etc/init.d/boinc"
install -Dm644 "${_CAt}" "${DESTDIR}/etc/conf.d/atd"
install -Dm755 "${_IAt}" "${DESTDIR}/etc/init.d/atd"
install -Dm644 "${_Clibvirt}" "${DESTDIR}/etc/conf.d/libvirtd"
install -Dm755 "${_Ilibvirt}" "${DESTDIR}/etc/init.d/libvirtd"
install -Dm755 "${_Ivirtlock}" "${DESTDIR}/etc/init.d/virtlockd"
install -Dm755 "${_Ivirtlog}" "${DESTDIR}/etc/init.d/virtlogd"
install -Dm644 "${_CPulseAudio}" "${DESTDIR}/etc/conf.d/pulseaudio"
install -Dm755 "${_IPulseAudio}" "${DESTDIR}/etc/init.d/pulseaudio"
install -Dm755 "misc/init.d/zfs.initd" "${DESTDIR}/etc/init.d/zfs"
install -Dm755 "misc/init.d/netdata-openrc.initd" "${DESTDIR}/etc/init.d/netdata"
install -Dm644 "misc/conf.d/docker.confd" "${DESTDIR}/etc/conf.d/docker"
install -Dm755 "misc/init.d/docker.initd" "${DESTDIR}/etc/init.d/docker"
install -Dm755 "${_Iacron}" "${DESTDIR}/${SYSCONFDIR}/init.d/anacron"
install -Dm755 "${_Ifrcon}" "${DESTDIR}/${SYSCONFDIR}/init.d/fcron"
install -Dm644 "${_Cbit}" "${DESTDIR}/${SYSCONFDIR}/conf.d/bitlbee"
install -Dm755 "${_Ibit}" "${DESTDIR}/${SYSCONFDIR}/init.d/bitlbee"
install -Dm644 "${_Ccpu}" "${DESTDIR}/${SYSCONFDIR}/conf.d/cpupower"
install -Dm755 "${_Icpu}" "${DESTDIR}/${SYSCONFDIR}/init.d/cpupower"
install -Dm644 "${_Ccon}" "${DESTDIR}/${SYSCONFDIR}/conf.d/connman"
install -Dm755 "${_Icon}" "${DESTDIR}/${SYSCONFDIR}/init.d/connman"
install -Dm755 "${_Icups}" "${DESTDIR}/${SYSCONFDIR}/init.d/cupsd"
install -Dm644 "${_Cntp1}" "${DESTDIR}/${SYSCONFDIR}/conf.d/ntpd"
install -Dm755 "${_Intp1}" "${DESTDIR}/${SYSCONFDIR}/init.d/ntpd"
install -Dm644 "${_Cntp2}" "${DESTDIR}/${SYSCONFDIR}/conf.d/ntp-client"
install -Dm755 "${_Intp2}" "${DESTDIR}/${SYSCONFDIR}/init.d/ntp-client"
install -Dm644 "${_Cntp3}" "${DESTDIR}/${SYSCONFDIR}/conf.d/sntp"
install -Dm755 "${_Intp3}" "${DESTDIR}/${SYSCONFDIR}/init.d/sntp"
install -Dm644 "${_Crsysl}" "${DESTDIR}/${SYSCONFDIR}/conf.d/rsyslog"
install -Dm755 "${_Irsysl}" "${DESTDIR}/${SYSCONFDIR}/init.d/rsyslog"
install -Dm644 "${_Csane}" "${DESTDIR}/${SYSCONFDIR}/conf.d/saned"
install -Dm755 "${_Isane}" "${DESTDIR}/${SYSCONFDIR}/init.d/saned"
install -Dm755 "${_Ifuse}" "${DESTDIR}/${SYSCONFDIR}/init.d/fuse"
install -Dm644 "${_Cmeta}" "${DESTDIR}/${SYSCONFDIR}/conf.d/metalog"
install -Dm755 "${_Imeta}" "${DESTDIR}/${SYSCONFDIR}/init.d/metalog"
install -Dm644 "${_Csyslog}" "${DESTDIR}/${SYSCONFDIR}/conf.d/syslog-ng"
install -Dm755 "${_Isyslog}" "${DESTDIR}/${SYSCONFDIR}/init.d/syslog-ng"
install -Dm644 "${_Csens}" "${DESTDIR}/${SYSCONFDIR}/conf.d/sensord"
install -Dm644 "${_Csens1}" "${DESTDIR}/${SYSCONFDIR}/conf.d/fancontrol"
install -Dm644 "${_Csens2}" "${DESTDIR}/${SYSCONFDIR}/conf.d/lm_sensors"
install -Dm755 "${_Isens1}" "${DESTDIR}/${SYSCONFDIR}/init.d/sensord"
install -Dm755 "${_Isens2}" "${DESTDIR}/${SYSCONFDIR}/init.d/fancontrol"
install -Dm755 "${_Isens3}" "${DESTDIR}/${SYSCONFDIR}/init.d/lm_sensors"
install -Dm644 "${_Clirc1}" "${DESTDIR}/${SYSCONFDIR}/conf.d/lircd"
install -Dm755 "${_Ilirc1}" "${DESTDIR}/${SYSCONFDIR}/init.d/lircd"
install -Dm644 "${_Clirc2}" "${DESTDIR}/${SYSCONFDIR}/conf.d/irexec"
install -Dm755 "${_Ilirc2}" "${DESTDIR}/${SYSCONFDIR}/init.d/irexec"
install -Dm755 "${_Ilirc3}" "${DESTDIR}/${SYSCONFDIR}/init.d/lircmd"
install -Dm644 "${_Chaveg}" "${DESTDIR}/${SYSCONFDIR}/conf.d/haveged"
install -Dm755 "${_Ihaveg}" "${DESTDIR}/${SYSCONFDIR}/init.d/haveged"
install -Dm644 "${_Csalt_mtr}" "${DESTDIR}/${SYSCONFDIR}/conf.d/salt-master"
install -Dm755 "${_Isalt_mtr}" "${DESTDIR}/${SYSCONFDIR}/init.d/salt-master"
install -Dm644 "${_Csalt_min}" "${DESTDIR}/${SYSCONFDIR}/conf.d/salt-minion"
install -Dm755 "${_Isalt_min}" "${DESTDIR}/${SYSCONFDIR}/init.d/salt-minion"
install -Dm644 "${_Csalt_sync}" "${DESTDIR}/${SYSCONFDIR}/conf.d/salt-syncdic"
install -Dm755 "${_Isalt_sync}" "${DESTDIR}/${SYSCONFDIR}/init.d/salt-syncdic"
install -Dm755 "${_Impd}" "${DESTDIR}/${SYSCONFDIR}/init.d/mpd"
install -Dm644 "${_Chdparm}" "${DESTDIR}/${SYSCONFDIR}/conf.d/hdparm"
install -Dm755 "${_Ihdparm}" "${DESTDIR}/${SYSCONFDIR}/init.d/hdparm"
install -Dm755 "${_Itherm}" "${DESTDIR}/${SYSCONFDIR}/init.d/thermald"
install -Dm755 "${_Ixe}" "${DESTDIR}/${SYSCONFDIR}/init.d/xe-daemon"
install -Dm755 "${_Ivbox}" "${DESTDIR}/${SYSCONFDIR}/init.d/vboxservice"
install -Dm644 "${_CClam}" "${DESTDIR}/${SYSCONFDIR}/conf.d/clamd"
install -Dm755 "${_IClam}" "${DESTDIR}/${SYSCONFDIR}/init.d/clamd"
install -Dm644 "${_CBoinc}" "${DESTDIR}/${SYSCONFDIR}/conf.d/boinc"
install -Dm755 "${_IBoinc}" "${DESTDIR}/${SYSCONFDIR}/init.d/boinc"
install -Dm644 "${_CAt}" "${DESTDIR}/${SYSCONFDIR}/conf.d/atd"
install -Dm755 "${_IAt}" "${DESTDIR}/${SYSCONFDIR}/init.d/atd"
install -Dm644 "${_Clibvirt}" "${DESTDIR}/${SYSCONFDIR}/conf.d/libvirtd"
install -Dm755 "${_Ilibvirt}" "${DESTDIR}/${SYSCONFDIR}/init.d/libvirtd"
install -Dm755 "${_Ivirtlock}" "${DESTDIR}/${SYSCONFDIR}/init.d/virtlockd"
install -Dm755 "${_Ivirtlog}" "${DESTDIR}/${SYSCONFDIR}/init.d/virtlogd"
install -Dm644 "${_CPulseAudio}" "${DESTDIR}/${SYSCONFDIR}/conf.d/pulseaudio"
install -Dm755 "${_IPulseAudio}" "${DESTDIR}/${SYSCONFDIR}/init.d/pulseaudio"
install -Dm755 "misc/init.d/zfs.initd" "${DESTDIR}/${SYSCONFDIR}/init.d/zfs"
install -Dm755 "misc/init.d/netdata-openrc.initd" "${DESTDIR}/${SYSCONFDIR}/init.d/netdata"
install -Dm644 "misc/conf.d/docker.confd" "${DESTDIR}/${SYSCONFDIR}/conf.d/docker"
install -Dm755 "misc/init.d/docker.initd" "${DESTDIR}/${SYSCONFDIR}/init.d/docker"
This diff is collapsed.
......@@ -2,6 +2,7 @@
# install_openrc_slack.sh
DESTDIR=$1
SYSCONFDIR=${SYSCONFDIR:-etc}
_gentoo_uri="gentoo"
......@@ -20,19 +21,19 @@ _Imonit="${_gentoo_uri}/app-admin/monit/files/monit.initd-5.0-r1"
_Itherm="${_gentoo_uri}/sys-power/thermald/files/thermald"
# install
install -Dm644 "${_Cdcron}" "${DESTDIR}/etc/conf.d/dcron"
install -Dm755 "${_Idcron}" "${DESTDIR}/etc/init.d/dcron"
install -Dm644 "${_Csysklogd}" "${DESTDIR}/etc/conf.d/sysklogd"
install -Dm755 "${_Isysklogd}" "${DESTDIR}/etc/init.d/sysklogd"
install -Dm644 "${_Csnmp}" "${DESTDIR}/etc/conf.d/snmpd"
install -Dm755 "${_Isnmp}" "${DESTDIR}/etc/init.d/snmpd"
install -Dm644 "${_Csnmptrap}" "${DESTDIR}/etc/conf.d/snmptrapd"
install -Dm755 "${_Isnmptrap}" "${DESTDIR}/etc/init.d/snmptrapd"
install -Dm755 "${_Isendmail}" "${DESTDIR}/etc/init.d/sendmail"
install -Dm644 "misc/conf.d/sendmail.confd" "${DESTDIR}/etc/conf.d/sendmail"
install -Dm755 "${_Iulogd}" "${DESTDIR}/etc/init.d/ulogd"
install -Dm755 "${_Imonit}" "${DESTDIR}/etc/init.d/monit"
install -Dm755 "${_Itherm}" "${DESTDIR}/etc/init.d/thermald"
install -Dm755 "misc/init.d/php-fpm-r4.init" "${DESTDIR}/etc/init.d/php-fpm"
install -Dm644 "misc/conf.d/fail2ban.confd" "${DESTDIR}/etc/conf.d/fail2ban"
install -Dm755 "misc/init.d/fail2ban.initd" "${DESTDIR}/etc/init.d/fail2ban"
install -Dm644 "${_Cdcron}" "${DESTDIR}/${SYSCONFDIR}/conf.d/dcron"
install -Dm755 "${_Idcron}" "${DESTDIR}/${SYSCONFDIR}/init.d/dcron"
install -Dm644 "${_Csysklogd}" "${DESTDIR}/${SYSCONFDIR}/conf.d/sysklogd"
install -Dm755 "${_Isysklogd}" "${DESTDIR}/${SYSCONFDIR}/init.d/sysklogd"
install -Dm644 "${_Csnmp}" "${DESTDIR}/${SYSCONFDIR}/conf.d/snmpd"
install -Dm755 "${_Isnmp}" "${DESTDIR}/${SYSCONFDIR}/init.d/snmpd"
install -Dm644 "${_Csnmptrap}" "${DESTDIR}/${SYSCONFDIR}/conf.d/snmptrapd"
install -Dm755 "${_Isnmptrap}" "${DESTDIR}/${SYSCONFDIR}/init.d/snmptrapd"
install -Dm755 "${_Isendmail}" "${DESTDIR}/${SYSCONFDIR}/init.d/sendmail"
install -Dm644 "misc/conf.d/sendmail.confd" "${DESTDIR}