git: f7c74191c5f6 - main - sysutils/michaelo-periodic: add DOCS option to install README

From: Michael Osipov <michaelo_at_FreeBSD.org>
Date: Sun, 01 Nov 2026 21:06:54 UTC
The branch main has been updated by michaelo:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f7c74191c5f68854880217329c189ad6cabbedc6

commit f7c74191c5f68854880217329c189ad6cabbedc6
Author:     Michael Osipov <michaelo@FreeBSD.org>
AuthorDate: 2026-11-01 21:03:10 +0000
Commit:     Michael Osipov <michaelo@FreeBSD.org>
CommitDate: 2026-11-01 21:06:43 +0000

    sysutils/michaelo-periodic: add DOCS option to install README
    
    The README documents all periodic.conf knobs for the included scripts
    (weekly_gitup_enable, weekly_make_src_targets, etc.) but was never
    installed, mirroring net/gitup's existing DOCS pattern.
---
 sysutils/michaelo-periodic/Makefile | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/sysutils/michaelo-periodic/Makefile b/sysutils/michaelo-periodic/Makefile
index a5559e938546..d175efd902b7 100644
--- a/sysutils/michaelo-periodic/Makefile
+++ b/sysutils/michaelo-periodic/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=		michaelo-periodic
 PORTVERSION=	20260101
+PORTREVISION=	1
 CATEGORIES=		sysutils
 
 MAINTAINER=		michaelo@FreeBSD.org
@@ -22,6 +23,9 @@ PERIODIC_FILES=	etc/periodic/weekly/500.gitup \
 
 PLIST_FILES=	${PERIODIC_FILES}
 
+OPTIONS_DEFINE=	DOCS
+PORTDOCS=		README.md
+
 do-install:
 .for _dir in ${PERIODIC_FILES:H:u}
 	@${MKDIR} ${STAGEDIR}${PREFIX}/${_dir}
@@ -30,4 +34,8 @@ do-install:
 	${INSTALL_SCRIPT} ${WRKSRC}/${_file:C,^[^/]+/[^/]+/,,} ${STAGEDIR}${PREFIX}/${_file}
 .endfor
 
+do-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
+
 .include <bsd.port.mk>