head	1.1;
access;
symbols
	pkgsrc-2026Q1:1.1.0.34
	pkgsrc-2026Q1-base:1.1
	pkgsrc-2025Q4:1.1.0.32
	pkgsrc-2025Q4-base:1.1
	pkgsrc-2025Q3:1.1.0.30
	pkgsrc-2025Q3-base:1.1
	pkgsrc-2025Q2:1.1.0.28
	pkgsrc-2025Q2-base:1.1
	pkgsrc-2025Q1:1.1.0.26
	pkgsrc-2025Q1-base:1.1
	pkgsrc-2024Q4:1.1.0.24
	pkgsrc-2024Q4-base:1.1
	pkgsrc-2024Q3:1.1.0.22
	pkgsrc-2024Q3-base:1.1
	pkgsrc-2024Q2:1.1.0.20
	pkgsrc-2024Q2-base:1.1
	pkgsrc-2024Q1:1.1.0.18
	pkgsrc-2024Q1-base:1.1
	pkgsrc-2023Q4:1.1.0.16
	pkgsrc-2023Q4-base:1.1
	pkgsrc-2023Q3:1.1.0.14
	pkgsrc-2023Q3-base:1.1
	pkgsrc-2023Q2:1.1.0.12
	pkgsrc-2023Q2-base:1.1
	pkgsrc-2023Q1:1.1.0.10
	pkgsrc-2023Q1-base:1.1
	pkgsrc-2022Q4:1.1.0.8
	pkgsrc-2022Q4-base:1.1
	pkgsrc-2022Q3:1.1.0.6
	pkgsrc-2022Q3-base:1.1
	pkgsrc-2022Q2:1.1.0.4
	pkgsrc-2022Q2-base:1.1
	pkgsrc-2022Q1:1.1.0.2
	pkgsrc-2022Q1-base:1.1;
locks; strict;
comment	@# @;


1.1
date	2022.01.05.10.56.00;	author schmonz;	state Exp;
branches;
next	;
commitid	ggCItHeunZTFZqnD;


desc
@@


1.1
log
@Add sleepwatcher, a daemon that runs a Unix command on various macOS
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.
@
text
@# $NetBSD$

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"
@
