2015-06-10 02:49:51 +05:30
|
|
|
MK= ../mk
|
|
|
|
include ${MK}/os.mk
|
|
|
|
|
2009-12-11 04:00:56 +05:30
|
|
|
DIR= ${LIBEXECDIR}/bin
|
|
|
|
BIN= on_ac_power
|
2015-06-10 02:49:51 +05:30
|
|
|
INSTALLAFTER = _installafter
|
|
|
|
|
|
|
|
ifeq (${OS},Linux)
|
2017-01-27 03:09:19 +05:30
|
|
|
SRCS+= rc-sstat.in
|
2015-06-10 02:49:51 +05:30
|
|
|
BIN+= rc-sstat
|
2017-05-31 23:45:32 +05:30
|
|
|
ifeq (${MKSYSVINIT},yes)
|
|
|
|
SRCS+= halt.in poweroff.in reboot.in shutdown.in
|
|
|
|
BIN+= halt poweroff reboot shutdown
|
|
|
|
endif
|
2015-06-10 02:49:51 +05:30
|
|
|
endif
|
|
|
|
|
|
|
|
_installafter:
|
|
|
|
ifeq (${OS},Linux)
|
|
|
|
${INSTALL} -d ${DESTDIR}${SBINDIR}
|
2017-05-31 23:45:32 +05:30
|
|
|
ln -sf ../${DIR}/rc-sstat ${DESTDIR}/${SBINDIR}/rc-sstat
|
|
|
|
ifeq (${MKSYSVINIT},yes)
|
2017-06-10 01:28:59 +05:30
|
|
|
ln -sf ../${DIR}/halt ${DESTDIR}/${SBINDIR}/halt
|
|
|
|
ln -sf ../${DIR}/poweroff ${DESTDIR}/${SBINDIR}/poweroff
|
|
|
|
ln -sf ../${DIR}/reboot ${DESTDIR}/${SBINDIR}/reboot
|
|
|
|
ln -sf ../${DIR}/shutdown ${DESTDIR}/${SBINDIR}/shutdown
|
|
|
|
ln -sf openrc-init ${DESTDIR}/${SBINDIR}/init
|
2017-05-31 23:45:32 +05:30
|
|
|
endif
|
2015-06-10 02:49:51 +05:30
|
|
|
endif
|
2009-12-11 04:00:56 +05:30
|
|
|
|
|
|
|
include ${MK}/scripts.mk
|