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)
|
|
|
|
ln -sf ../${DIR}/halt ${DESTDIR}/sbin/halt
|
|
|
|
ln -sf ../${DIR}/poweroff ${DESTDIR}/sbin/poweroff
|
|
|
|
ln -sf ../${DIR}/reboot ${DESTDIR}/sbin/reboot
|
|
|
|
ln -sf ../${DIR}/shutdown ${DESTDIR}/sbin/shutdown
|
|
|
|
ln -sf openrc-init ${DESTDIR}/sbin/init
|
|
|
|
endif
|
2015-06-10 02:49:51 +05:30
|
|
|
endif
|
2009-12-11 04:00:56 +05:30
|
|
|
|
|
|
|
include ${MK}/scripts.mk
|