ae762e1b78
sleep or wake events. SleepWatcher is a daemon for macOS that monitors sleep, wakeup and idleness of a Mac. It can be used to execute a Unix command when the Mac or the display of the Mac goes to sleep mode or wakes up, after a given time without user interaction or when the user resumes activity after a break or when the power supply of a Mac notebook is attached or detached. It also can send the Mac to sleep mode or retrieve the time since last user activity.
31 lines
803 B
Makefile
31 lines
803 B
Makefile
# $NetBSD: Makefile,v 1.1 2022/01/05 10:56:00 schmonz Exp $
|
|
|
|
DISTNAME= sleepwatcher_2.2.1
|
|
PKGNAME= ${DISTNAME:S/_/-/}
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= ${HOMEPAGE}
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= schmonz@NetBSD.org
|
|
HOMEPAGE= https://www.bernhard-baehr.de/
|
|
COMMENT= Run a Unix command on macOS sleep or wake events
|
|
LICENSE= gnu-gpl-v3
|
|
|
|
ONLY_FOR_PLATFORM= Darwin-*-*
|
|
|
|
BUILD_DIRS= sources
|
|
BUILD_TARGET= ${PKGBASE}
|
|
|
|
RCD_SCRIPTS= sleepwatcher
|
|
|
|
REPLACE_SH+= config/rc.sleep config/rc.wakeup
|
|
|
|
post-extract:
|
|
cd ${WRKSRC} && rm -f sleepwatcher && mv sleepwatcher.8 sources
|
|
|
|
post-install:
|
|
cd ${WRKSRC}/config && \
|
|
${INSTALL_SCRIPT} rc.sleep ${DESTDIR}${PREFIX}/sbin/sleepwatcher-sleep && \
|
|
${INSTALL_SCRIPT} rc.wakeup ${DESTDIR}${PREFIX}/sbin/sleepwatcher-wakeup
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|