Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Jun 2024 05:19:11 GMT
From:      Matthias Fechner <mfechner@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 91536a12a375 - main - sysutils/f-upgrade: Unattended FreeBSD operating system updates
Message-ID:  <202406140519.45E5JBqU051036@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by mfechner:

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

commit 91536a12a37537d70250147a1487bc77a84bbaa8
Author:     Frank Wall <freebsd@moov.de>
AuthorDate: 2023-11-29 21:49:31 +0000
Commit:     Matthias Fechner <mfechner@FreeBSD.org>
CommitDate: 2024-06-14 05:17:19 +0000

    sysutils/f-upgrade: Unattended FreeBSD operating system updates
    
    PR:             275441
    Approved by:    maintainer
---
 sysutils/Makefile            |  1 +
 sysutils/f-upgrade/Makefile  | 38 ++++++++++++++++++++++++++++++++++++++
 sysutils/f-upgrade/distinfo  |  3 +++
 sysutils/f-upgrade/pkg-descr |  2 ++
 sysutils/f-upgrade/pkg-plist | 31 +++++++++++++++++++++++++++++++
 5 files changed, 75 insertions(+)

diff --git a/sysutils/Makefile b/sysutils/Makefile
index 2d0debe2cc0e..263fc70cc382 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -386,6 +386,7 @@
     SUBDIR += extipl
     SUBDIR += eza
     SUBDIR += ezjail
+    SUBDIR += f-upgrade
     SUBDIR += f2
     SUBDIR += f3
     SUBDIR += facter
diff --git a/sysutils/f-upgrade/Makefile b/sysutils/f-upgrade/Makefile
new file mode 100644
index 000000000000..4bf8b47171dd
--- /dev/null
+++ b/sysutils/f-upgrade/Makefile
@@ -0,0 +1,38 @@
+PORTNAME=	f-upgrade
+DISTVERSION=	1.0.2
+DISTVERSIONPREFIX=	v
+CATEGORIES=	sysutils
+
+MAINTAINER=	freebsd@moov.de
+COMMENT=	Unattended FreeBSD operating system updates
+WWW=		https://github.com/fraenki/f-upgrade
+
+LICENSE=	BSD2CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	fraenki
+
+NO_ARCH=	yes
+NO_BUILD=	yes
+
+OPTIONS_DEFINE=	DOCS
+
+PORTDOCS=	README.md
+
+post-patch:
+	${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' ${WRKSRC}/rc.d/f_upgrade.in
+
+do-install:
+	${MKDIR} ${STAGEDIR}${PREFIX}/etc
+	${INSTALL_SCRIPT} ${WRKSRC}/sbin/${PORTNAME} ${STAGEDIR}${PREFIX}/sbin/${PORTNAME}
+	${INSTALL_SCRIPT} ${WRKSRC}/rc.d/f_upgrade.in ${STAGEDIR}${PREFIX}/etc/rc.d/f_upgrade
+	(cd ${WRKSRC} && ${COPYTREE_SHARE} libdata ${STAGEDIR}${PREFIX})
+	(cd ${WRKSRC}/etc && ${COPYTREE_SHARE} ${PORTNAME}.hook.d ${STAGEDIR}${PREFIX}/etc)
+	${INSTALL_DATA} ${WRKSRC}/etc/${PORTNAME}.conf.dist ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample
+
+post-install-DOCS-on:
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>
diff --git a/sysutils/f-upgrade/distinfo b/sysutils/f-upgrade/distinfo
new file mode 100644
index 000000000000..99d10e0c17f0
--- /dev/null
+++ b/sysutils/f-upgrade/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1711915600
+SHA256 (fraenki-f-upgrade-v1.0.2_GH0.tar.gz) = 79515107eeaa9579f54e1205124c91b45ec34d794f1c15eb26cd620399d50095
+SIZE (fraenki-f-upgrade-v1.0.2_GH0.tar.gz) = 13553
diff --git a/sysutils/f-upgrade/pkg-descr b/sysutils/f-upgrade/pkg-descr
new file mode 100644
index 000000000000..3db8dfb8154c
--- /dev/null
+++ b/sysutils/f-upgrade/pkg-descr
@@ -0,0 +1,2 @@
+f-upgrade automates the process of installing FreeBSD operating system updates.
+It targets server fleets, not desktop environments.
diff --git a/sysutils/f-upgrade/pkg-plist b/sysutils/f-upgrade/pkg-plist
new file mode 100644
index 000000000000..701fe84227da
--- /dev/null
+++ b/sysutils/f-upgrade/pkg-plist
@@ -0,0 +1,31 @@
+@sample etc/f-upgrade.conf.sample
+etc/f-upgrade.hook.d/1000.pre
+etc/f-upgrade.hook.d/1000.pre.14
+etc/rc.d/f_upgrade
+libdata/f-upgrade.d/500
+libdata/f-upgrade.d/1000
+libdata/f-upgrade.d/1100
+libdata/f-upgrade.d/1200
+libdata/f-upgrade.d/1200.conf
+libdata/f-upgrade.d/2000
+libdata/f-upgrade.d/2000.conf
+libdata/f-upgrade.d/3000
+libdata/f-upgrade.d/3000.conf
+libdata/f-upgrade.d/3100
+libdata/f-upgrade.d/3200
+libdata/f-upgrade.d/3200.conf
+libdata/f-upgrade.d/4000
+libdata/f-upgrade.d/4000.conf
+libdata/f-upgrade.d/5000
+libdata/f-upgrade.d/5000.conf
+libdata/f-upgrade.d/5100
+libdata/f-upgrade.d/5100.conf
+libdata/f-upgrade.d/6000
+libdata/f-upgrade.d/6000.conf
+libdata/f-upgrade.d/7000
+libdata/f-upgrade.d/7100
+libdata/f-upgrade.d/8000
+libdata/f-upgrade.d/8000.conf
+sbin/f-upgrade
+@dir etc/f-upgrade.hook.d
+@dir libdata/f-upgrade.d



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202406140519.45E5JBqU051036>