summaryrefslogtreecommitdiff
path: root/scripts/Makefile.am
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2014-07-06 18:04:32 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2014-07-06 18:04:32 +0200
commita7f89980e5b3f4b9a74c70dbc5ffe8aabd28be28 (patch)
tree41c4deec1fdfbafd7821b4ca7a9772ac0abd92f5 /scripts/Makefile.am
Imported Upstream version 2.9.3upstream/2.9.3
Diffstat (limited to 'scripts/Makefile.am')
-rw-r--r--scripts/Makefile.am60
1 files changed, 60 insertions, 0 deletions
diff --git a/scripts/Makefile.am b/scripts/Makefile.am
new file mode 100644
index 0000000..b693a58
--- /dev/null
+++ b/scripts/Makefile.am
@@ -0,0 +1,60 @@
+#!/bin/sh
+# Makefile to build/install script files
+#
+MKDIR = sh ../mkinstalldirs
+INSTALL_SH = sh ../install-sh -c
+INSTALL_DATA_SH = ${INSTALL_SH} -m 644
+INSTALL_SCRIPT_SH = ${INSTALL_SH} -m 755
+prefix = /usr
+
+datadir = ${prefix}/share
+mandir = ${prefix}/share/man
+docdir = ${prefix}/share/doc/ipmiutil-${version}
+sbindir = ${prefix}/sbin
+etcdir = /etc
+datato = ${DESTDIR}${datadir}/ipmiutil
+cronto = ${DESTDIR}${etcdir}/cron.daily
+sbinto = ${DESTDIR}${sbindir}
+varto = ${DESTDIR}/var/lib/ipmiutil
+initto = ${DESTDIR}@INIT_DIR@
+sysdto = ${DESTDIR}@SYSTEMD_DIR@
+sysvinit = ${datato}
+sbinfls = ialarms ihealth ifru igetevent ireset icmd isol ilan isensor isel iserial iwdt iconfig ipicmg ifirewall ifwum ihpm
+
+all:
+
+clean:
+
+clobber:
+
+distclean:
+
+check:
+
+install:
+ $(MKDIR) ${datato}
+ $(MKDIR) ${sbinto}
+ $(MKDIR) ${initto}
+ $(MKDIR) ${varto}
+ $(MKDIR) ${sysdto}
+ ${INSTALL_SCRIPT_SH} ipmi_if.sh ${datato}
+ ${INSTALL_SCRIPT_SH} evt.sh ${datato}
+ if [ -f /etc/debian_version ]; then \
+ sysvinit=${initto}; fi
+ ${INSTALL_SCRIPT_SH} ipmiutil_wdt ${sysvinit}/ipmiutil_wdt
+ ${INSTALL_SCRIPT_SH} ipmiutil_asy ${sysvinit}/ipmiutil_asy
+ ${INSTALL_SCRIPT_SH} ipmiutil_evt ${sysvinit}/ipmiutil_evt
+ ${INSTALL_SCRIPT_SH} ipmi_port.sh ${sysvinit}/ipmi_port
+ ${INSTALL_SCRIPT_SH} ipmi_info ${sysvinit}/ipmi_info
+ ${INSTALL_SCRIPT_SH} checksel ${datato}
+ ${INSTALL_DATA_SH} ipmiutil_wdt.service ${sysdto}
+ ${INSTALL_DATA_SH} ipmiutil_asy.service ${sysdto}
+ ${INSTALL_DATA_SH} ipmiutil_evt.service ${sysdto}
+ ${INSTALL_DATA_SH} ipmi_port.service ${sysdto}
+ ${INSTALL_SCRIPT_SH} ipmiutil.env ${datato}
+ ${INSTALL_SCRIPT_SH} ipmiutil.pre ${datato}
+ ${INSTALL_SCRIPT_SH} ipmiutil.setup ${datato}
+ ${INSTALL_SCRIPT_SH} ipmi.init.basic ${datato}
+ for f in ${sbinfls}; do \
+ ${INSTALL_SCRIPT_SH} $$f ${sbinto}; done
+