Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
136 commits
Select commit Hold shift + click to select a range
a1e7920
app-admin/logrotate: Sync with Gentoo
Jun 15, 2026
2c77c6f
app-alternatives/ninja: Sync with Gentoo
Jun 15, 2026
d8cbaf2
app-arch/libarchive: Sync with Gentoo
Jun 15, 2026
e0c4e29
app-containers/aardvark-dns: Sync with Gentoo
Jun 15, 2026
95c65d8
app-containers/conmon: Sync with Gentoo
Jun 15, 2026
5b67fcf
app-containers/containerd: Sync with Gentoo
Jun 15, 2026
ef12447
app-containers/cri-tools: Sync with Gentoo
Jun 15, 2026
a4e3f0d
app-containers/crun: Sync with Gentoo
Jun 15, 2026
5fa0289
app-containers/docker: Sync with Gentoo
Jun 15, 2026
4abb768
app-containers/docker-buildx: Sync with Gentoo
Jun 15, 2026
dba0877
app-containers/docker-cli: Sync with Gentoo
Jun 15, 2026
eaec32d
app-containers/netavark: Sync with Gentoo
Jun 15, 2026
110c82d
app-containers/podman: Sync with Gentoo
Jun 15, 2026
08e0d80
app-containers/runc: Sync with Gentoo
Jun 15, 2026
698152e
app-crypt/adcli: Sync with Gentoo
Jun 15, 2026
cc39eec
app-crypt/gnupg: Sync with Gentoo
Jun 15, 2026
0d4e42c
app-crypt/gpgme: Sync with Gentoo
Jun 15, 2026
27b8da1
app-crypt/mit-krb5: Sync with Gentoo
Jun 15, 2026
3752bc0
app-crypt/pinentry: Sync with Gentoo
Jun 15, 2026
d0d20bf
app-crypt/tpm2-tss: Sync with Gentoo
Jun 15, 2026
928f335
app-emulation/qemu-guest-agent: Sync with Gentoo
Jun 15, 2026
60a18d0
app-emulation/virt-firmware: Sync with Gentoo
Jun 15, 2026
762dde4
app-portage/gentoolkit: Sync with Gentoo
Jun 15, 2026
468755d
app-portage/getuto: Sync with Gentoo
Jun 15, 2026
a8b5607
app-shells/bash: Sync with Gentoo
Jun 15, 2026
9b6c5dc
dev-build/autoconf: Sync with Gentoo
Jun 15, 2026
86c7b13
dev-build/automake: Sync with Gentoo
Jun 15, 2026
cc8277b
dev-build/meson: Sync with Gentoo
Jun 15, 2026
13f9caf
dev-db/etcd: Sync with Gentoo
Jun 15, 2026
ffa7200
dev-db/sqlite: Sync with Gentoo
Jun 15, 2026
b0b84b5
dev-go/go-md2man: Sync with Gentoo
Jun 15, 2026
9837aee
dev-lang/go: Sync with Gentoo
Jun 15, 2026
f1e0ca5
dev-lang/python: Sync with Gentoo
Jun 15, 2026
1516b97
dev-lang/swig: Sync with Gentoo
Jun 15, 2026
6b3cf8c
dev-lang/tcl: Sync with Gentoo
Jun 15, 2026
9c094be
dev-libs/expat: Sync with Gentoo
Jun 15, 2026
a5b5387
dev-libs/jsoncpp: Sync with Gentoo
Jun 15, 2026
ab83f05
dev-libs/libksba: Sync with Gentoo
Jun 15, 2026
eca117a
dev-libs/libpwquality: Sync with Gentoo
Jun 15, 2026
904f604
dev-libs/libtasn1: Sync with Gentoo
Jun 15, 2026
eb1b34e
dev-libs/libtraceevent: Sync with Gentoo
Jun 15, 2026
70861ac
dev-libs/libusb: Sync with Gentoo
Jun 15, 2026
588d54e
dev-libs/libuv: Sync with Gentoo
Jun 15, 2026
0ba61d1
dev-libs/libxml2: Sync with Gentoo
Jun 15, 2026
c9e66b4
dev-libs/opensc: Sync with Gentoo
Jun 15, 2026
ff096cf
dev-libs/openssl: Sync with Gentoo
Jun 15, 2026
3e5a65f
dev-libs/protobuf: Sync with Gentoo
Jun 15, 2026
071b1b7
dev-python/cryptography: Sync with Gentoo
Jun 15, 2026
e8932f9
dev-python/cython: Sync with Gentoo
Jun 15, 2026
1926faa
dev-python/distlib: Sync with Gentoo
Jun 15, 2026
0339d4b
dev-python/docutils: Sync with Gentoo
Jun 15, 2026
e9bbacc
dev-python/editables: Sync with Gentoo
Jun 15, 2026
f6cfa23
dev-python/ensurepip-pip: Sync with Gentoo
Jun 15, 2026
9e31ad3
dev-python/hatchling: Sync with Gentoo
Jun 15, 2026
0eb4161
dev-python/idna: Sync with Gentoo
Jun 15, 2026
996b68a
dev-python/installer: Sync with Gentoo
Jun 15, 2026
bccd1bc
dev-python/jaraco-functools: Sync with Gentoo
Jun 15, 2026
0014325
dev-python/markdown-it-py: Sync with Gentoo
Jun 15, 2026
1045ed5
dev-python/msgpack: Sync with Gentoo
Jun 15, 2026
1bcbbfe
dev-python/packaging: Sync with Gentoo
Jun 15, 2026
fe0a3a8
dev-python/pathspec: Sync with Gentoo
Jun 15, 2026
ba07bd6
dev-python/pip: Sync with Gentoo
Jun 15, 2026
205e6b9
dev-python/platformdirs: Sync with Gentoo
Jun 15, 2026
a13f7b7
dev-python/poetry-core: Sync with Gentoo
Jun 15, 2026
977e992
dev-python/requests: Sync with Gentoo
Jun 15, 2026
9ef5401
dev-python/trove-classifiers: Sync with Gentoo
Jun 15, 2026
c6656af
dev-util/catalyst: Sync with Gentoo
Jun 15, 2026
12b0303
dev-util/maturin: Sync with Gentoo
Jun 15, 2026
f8f7a5d
dev-util/patchutils: Sync with Gentoo
Jun 15, 2026
c954015
dev-util/perf: Sync with Gentoo
Jun 15, 2026
6e03068
dev-vcs/git: Sync with Gentoo
Jun 15, 2026
c882311
eclass/cmake: Sync with Gentoo
Jun 15, 2026
5019393
eclass/dist-kernel-utils: Sync with Gentoo
Jun 15, 2026
ca91616
eclass/distutils-r1: Sync with Gentoo
Jun 15, 2026
163bdff
eclass/kernel-2: Sync with Gentoo
Jun 15, 2026
2210c2c
eclass/linux-mod: Sync with Gentoo
Jun 15, 2026
9a9fa15
eclass/python-utils-r1: Sync with Gentoo
Jun 15, 2026
a35eec4
eclass/secureboot: Sync with Gentoo
Jun 15, 2026
5001402
eclass/toolchain: Sync with Gentoo
Jun 15, 2026
f8d22a4
licenses: Sync with Gentoo
Jun 15, 2026
7e8476d
media-libs/libpng: Sync with Gentoo
Jun 15, 2026
9d4c298
net-dns/bind: Sync with Gentoo
Jun 15, 2026
3b0359b
net-dns/dnsmasq: Sync with Gentoo
Jun 15, 2026
18577c7
net-fs/samba: Sync with Gentoo
Jun 15, 2026
8a264aa
net-libs/gnutls: Sync with Gentoo
Jun 15, 2026
82a6cfe
net-libs/libslirp: Sync with Gentoo
Jun 15, 2026
894382e
net-libs/ngtcp2: Sync with Gentoo
Jun 15, 2026
ad21fac
net-misc/chrony: Sync with Gentoo
Jun 15, 2026
d5edc9d
net-misc/curl: Sync with Gentoo
Jun 15, 2026
187b589
net-misc/iperf: Sync with Gentoo
Jun 15, 2026
1717207
net-misc/iputils: Sync with Gentoo
Jun 15, 2026
07cff3f
net-misc/passt: Sync with Gentoo
Jun 15, 2026
3830531
net-misc/rsync: Sync with Gentoo
Jun 15, 2026
86a43c8
net-misc/wget: Sync with Gentoo
Jun 15, 2026
216cb34
profiles: Sync with Gentoo
Jun 15, 2026
bb40def
sec-policy/selinux-base: Sync with Gentoo
Jun 15, 2026
356965c
sec-policy/selinux-base-policy: Sync with Gentoo
Jun 15, 2026
6ae04ea
sec-policy/selinux-container: Sync with Gentoo
Jun 15, 2026
7f21f50
sec-policy/selinux-dbus: Sync with Gentoo
Jun 15, 2026
34894d0
sec-policy/selinux-policykit: Sync with Gentoo
Jun 15, 2026
cbbb3a1
sec-policy/selinux-sssd: Sync with Gentoo
Jun 15, 2026
c6e887b
sec-policy/selinux-unconfined: Sync with Gentoo
Jun 15, 2026
c23e601
sys-apps/bubblewrap: Sync with Gentoo
Jun 15, 2026
98d321a
sys-apps/checkpolicy: Sync with Gentoo
Jun 15, 2026
d6dc8e2
sys-apps/coreutils: Sync with Gentoo
Jun 15, 2026
9754013
sys-apps/ethtool: Sync with Gentoo
Jun 15, 2026
7b0905d
sys-apps/file: Sync with Gentoo
Jun 15, 2026
7dfac7e
sys-apps/gentoo-functions: Sync with Gentoo
Jun 15, 2026
77e937a
sys-apps/i2c-tools: Sync with Gentoo
Jun 15, 2026
ac55018
sys-apps/kbd: Sync with Gentoo
Jun 15, 2026
a38903e
sys-apps/less: Sync with Gentoo
Jun 15, 2026
fc93e7a
sys-apps/portage: Sync with Gentoo
Jun 15, 2026
3101cfc
sys-apps/sed: Sync with Gentoo
Jun 15, 2026
e678f39
sys-apps/semodule-utils: Sync with Gentoo
Jun 15, 2026
785a722
sys-apps/shadow: Sync with Gentoo
Jun 15, 2026
2486e20
sys-apps/systemd: Sync with Gentoo
Jun 15, 2026
4bf3224
sys-apps/util-linux: Sync with Gentoo
Jun 15, 2026
5570607
sys-auth/sssd: Sync with Gentoo
Jun 15, 2026
5fe611b
sys-devel/binutils: Sync with Gentoo
Jun 15, 2026
7c2f2b5
sys-devel/gcc: Sync with Gentoo
Jun 15, 2026
1bc557e
sys-fs/zfs: Sync with Gentoo
Jun 15, 2026
1ad21b4
sys-fs/zfs-kmod: Sync with Gentoo
Jun 15, 2026
1ac5074
sys-kernel/dracut: Sync with Gentoo
Jun 15, 2026
5b808f3
sys-libs/binutils-libs: Sync with Gentoo
Jun 15, 2026
45a5cae
sys-libs/glibc: Sync with Gentoo
Jun 15, 2026
e8a5d0d
sys-libs/libcap: Sync with Gentoo
Jun 15, 2026
e7293c5
sys-libs/libcap-ng: Sync with Gentoo
Jun 15, 2026
1c165fb
sys-libs/libselinux: Sync with Gentoo
Jun 15, 2026
d802f7b
sys-libs/libsepol: Sync with Gentoo
Jun 15, 2026
da3dc15
sys-libs/libunwind: Sync with Gentoo
Jun 15, 2026
63f8db6
sys-libs/liburing: Sync with Gentoo
Jun 15, 2026
4aafa78
sys-libs/talloc: Sync with Gentoo
Jun 15, 2026
44b4a79
sys-libs/tdb: Sync with Gentoo
Jun 15, 2026
36b3507
sys-process/audit: Sync with Gentoo
Jun 15, 2026
08a4752
x11-drivers/nvidia-drivers: Sync with Gentoo
Jun 15, 2026
dcb594d
Merge branch 'main' into buildbot/weekly-portage-stable-package-updat…
t-lo Jun 17, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
https://bugs.gentoo.org/934983
https://github.com/logrotate/logrotate/commit/04b21743980c4e236ca5e8de18173fbd3848573b

From 04b21743980c4e236ca5e8de18173fbd3848573b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= <cgzones@googlemail.com>
Date: Sat, 8 Jun 2024 17:59:40 +0200
Subject: [PATCH] test: avoid locale dependent errno string

String representations of errno values are locale dependent, thus avoid
using them.
---
test/test-0112.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/test-0112.sh b/test/test-0112.sh
index 812632b1..fa9eed65 100755
--- a/test/test-0112.sh
+++ b/test/test-0112.sh
@@ -23,7 +23,7 @@ test_reg.log.1.gz 1 zero
test_reg.log.2.gz 1 first
EOF

-grep "test_fifo.log.1 (read-only) for compression: Operation not supported" error.log >/dev/null
+grep "^error: unable to open .*/test_fifo\.log\.1 (read-only) for compression: " error.log >/dev/null
if [ $? != 0 ]; then
echo "No error printed, but there should be one."
exit 3

Original file line number Diff line number Diff line change
@@ -0,0 +1,184 @@
https://github.com/logrotate/logrotate/issues/632
https://github.com/logrotate/logrotate/pull/633

From d2e090a9c0ba62aeab8c415aecf3067297f3eccc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= <cgzones@googlemail.com>
Date: Sat, 3 Aug 2024 19:07:38 +0200
Subject: [PATCH] Avoid opening log file for getting SELinux context

Currently setSecCtxByName() uses open_logfile() to get a file descriptor
to the current log file to retrieve its security context.
open_logfile() performs additional checks, like whether the file is a
regular file, which alter the control flow between systems with SELinux
enabled and disabled. This can be observed in the reported issue #632.
Use lgetfilecon_raw() instead to have the same behavior for SELinux
enabled and disabled systems and delay the checks for invalid log files
to code executed in both cases.

Closes: #632
---
logrotate.c | 89 ++++++++++++++++++++++++++++++-----------------------
1 file changed, 51 insertions(+), 38 deletions(-)

diff --git a/logrotate.c b/logrotate.c
index ba779950..c62e7c78 100644
--- a/logrotate.c
+++ b/logrotate.c
@@ -361,27 +361,9 @@ static int movefd(int oldfd, int newfd)
return rc;
}

-static int setSecCtx(int fdSrc, const char *src, char **pPrevCtx)
-{
#ifdef WITH_SELINUX
- char *srcCtx;
- *pPrevCtx = NULL;
-
- if (!selinux_enabled)
- /* pretend success */
- return 0;
-
- /* read security context of fdSrc */
- if (fgetfilecon_raw(fdSrc, &srcCtx) < 0) {
- if (errno == ENOTSUP)
- /* pretend success */
- return 0;
-
- message(MESS_ERROR, "getting file context %s: %s\n", src,
- strerror(errno));
- return selinux_enforce;
- }
-
+static int setSecCtx(char *srcCtx, char **pPrevCtx)
+{
/* save default security context for restoreSecCtx() */
if (getfscreatecon_raw(pPrevCtx) < 0) {
message(MESS_ERROR, "getting default context: %s\n", strerror(errno));
@@ -401,37 +383,68 @@ static int setSecCtx(int fdSrc, const char *src, char **pPrevCtx)

message(MESS_DEBUG, "set default create context to %s\n", srcCtx);
freecon(srcCtx);
+
+ return 0;
+}
+#endif /* WITH_SELINUX */
+
+static int setSecCtxByFd(int fdSrc, const char *src, char **pPrevCtx)
+{
+#ifdef WITH_SELINUX
+ char *srcCtx;
+ *pPrevCtx = NULL;
+
+ if (!selinux_enabled)
+ /* pretend success */
+ return 0;
+
+ /* read security context of fdSrc */
+ if (fgetfilecon_raw(fdSrc, &srcCtx) < 0) {
+ if (errno == ENOTSUP)
+ /* pretend success */
+ return 0;
+
+ message(MESS_ERROR, "getting file context %s: %s\n", src,
+ strerror(errno));
+ return selinux_enforce;
+ }
+
+ return setSecCtx(srcCtx, pPrevCtx);
#else
(void) fdSrc;
(void) src;
(void) pPrevCtx;
-#endif
return 0;
+#endif /* WITH_SELINUX */
}

-static int setSecCtxByName(const char *src, const struct logInfo *log, char **pPrevCtx)
+static int setSecCtxByName(const char *src, char **pPrevCtx)
{
- int hasErrors = 0;
#ifdef WITH_SELINUX
- int fd;
+ char *srcCtx;
+ *pPrevCtx = NULL;

if (!selinux_enabled)
/* pretend success */
return 0;

- fd = open_logfile(src, log, 0);
- if (fd < 0) {
- message(MESS_ERROR, "error opening %s: %s\n", src, strerror(errno));
- return 1;
+ /* read security context of src */
+ if (lgetfilecon_raw(src, &srcCtx) < 0) {
+ if (errno == ENOTSUP)
+ /* pretend success */
+ return 0;
+
+ message(MESS_ERROR, "getting file context %s: %s\n", src,
+ strerror(errno));
+ return selinux_enforce;
}
- hasErrors = setSecCtx(fd, src, pPrevCtx);
- close(fd);
+
+ return setSecCtx(srcCtx, pPrevCtx);
#else
(void) src;
- (void) log;
(void) pPrevCtx;
-#endif
- return hasErrors;
+ return 0;
+#endif /* WITH_SELINUX */
}

static void restoreSecCtx(char **pPrevCtx)
@@ -874,7 +887,7 @@ static int compressLogFile(const char *name, const struct logInfo *log, const st
return 1;
}

- if (setSecCtx(inFile, name, &prevCtx) != 0) {
+ if (setSecCtxByFd(inFile, name, &prevCtx) != 0) {
/* error msg already printed */
close(inFile);
return 1;
@@ -1307,7 +1320,7 @@ static int copyTruncate(const char *currLog, const char *saveLog, const struct s
if (!skip_copy) {
char *prevCtx;

- if (setSecCtx(fdcurr, currLog, &prevCtx) != 0) {
+ if (setSecCtxByFd(fdcurr, currLog, &prevCtx) != 0) {
/* error msg already printed */
goto fail;
}
@@ -1905,7 +1918,7 @@ static int prerotateSingleLog(const struct logInfo *log, unsigned logNum,
message(MESS_DEBUG, "dateext suffix '%s'\n", dext_str);
message(MESS_DEBUG, "glob pattern '%s'\n", dext_pattern);

- if (setSecCtxByName(log->files[logNum], log, &prev_context) != 0) {
+ if (setSecCtxByName(log->files[logNum], &prev_context) != 0) {
/* error msg already printed */
return 1;
}
@@ -2186,7 +2199,7 @@ static int rotateSingleLog(const struct logInfo *log, unsigned logNum,
if (!hasErrors) {

if (!(log->flags & (LOG_FLAG_COPYTRUNCATE | LOG_FLAG_COPY))) {
- if (setSecCtxByName(log->files[logNum], log, &savedContext) != 0) {
+ if (setSecCtxByName(log->files[logNum], &savedContext) != 0) {
/* error msg already printed */
return 1;
}
@@ -2730,7 +2743,7 @@ static int writeState(const char *stateFilename)

/* get attributes, to assign them to the new state file */

- if (setSecCtx(fdcurr, stateFilename, &prevCtx) != 0) {
+ if (setSecCtxByFd(fdcurr, stateFilename, &prevCtx) != 0) {
/* error msg already printed */
free(tmpFilename);
close(fdcurr);

Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit systemd tmpfiles

DESCRIPTION="Rotates, compresses, and mails system logs"
HOMEPAGE="https://github.com/logrotate/logrotate"

if [[ ${PV} == 9999 ]] ; then
EGIT_REPO_URI="https://github.com/logrotate/logrotate"
inherit autotools git-r3
else
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/cgzones.asc
inherit verify-sig

SRC_URI="https://github.com/${PN}/${PN}/releases/download/${PV}/${P}.tar.xz"
SRC_URI+=" verify-sig? ( https://github.com/${PN}/${PN}/releases/download/${PV}/${P}.tar.xz.asc )"

KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"

BDEPEND="verify-sig? ( sec-keys/openpgp-keys-cgzones )"
fi

LICENSE="GPL-2"
SLOT="0"
IUSE="acl +cron selinux"

DEPEND="
>=dev-libs/popt-1.5
acl? ( virtual/acl )
selinux? ( sys-libs/libselinux )
"
RDEPEND="
${DEPEND}
cron? ( virtual/cron )
selinux? ( sec-policy/selinux-logrotate )
"

STATEFILE="${EPREFIX}/var/lib/misc/logrotate.status"
OLDSTATEFILE="${EPREFIX}/var/lib/logrotate.status"

PATCHES=(
"${FILESDIR}"/${PN}-3.15.0-ignore-hidden.patch
"${FILESDIR}"/${P}-tests-locale.patch
"${FILESDIR}"/${P}-tests-selinux.patch
)

move_old_state_file() {
elog "logrotate state file is now located at ${STATEFILE}"
elog "See bug #357275"
if [[ -e "${OLDSTATEFILE}" ]] ; then
elog "Moving your current state file to new location: ${STATEFILE}"
mv -n "${OLDSTATEFILE}" "${STATEFILE}" || die
fi
}

install_cron_file() {
exeinto /etc/cron.daily
newexe "${S}"/examples/logrotate.cron "${PN}"
}

src_prepare() {
default

sed -i -e 's#/usr/sbin/logrotate#/usr/bin/logrotate#' examples/logrotate.{cron,service} || die

[[ ${PV} == 9999 ]] && eautoreconf
}

src_configure() {
econf \
$(use_with acl) \
$(use_with selinux) \
--with-state-file-path="${STATEFILE}"
}

src_install() {
dobin logrotate
doman logrotate.8
dodoc ChangeLog.md

insinto /etc
doins "${FILESDIR}"/logrotate.conf

use cron && install_cron_file

systemd_dounit examples/logrotate.{service,timer}
newtmpfiles "${FILESDIR}"/${PN}.tmpfiles ${PN}.conf

keepdir /etc/logrotate.d
}

pkg_postinst() {
elog
elog "The ${PN} binary is now installed under /usr/bin. Please"
elog "update your links"
elog

move_old_state_file

tmpfiles_process ${PN}.conf

if [[ -z ${REPLACING_VERSIONS} ]] ; then
elog "If you wish to have logrotate e-mail you updates, please"
elog "emerge virtual/mailx and configure logrotate in"
elog "/etc/logrotate.conf appropriately"
elog
elog "Additionally, /etc/logrotate.conf may need to be modified"
elog "for your particular needs. See man logrotate for details."
fi
}
Original file line number Diff line number Diff line change
@@ -1,19 +1,30 @@
# Copyright 1999-2025 Gentoo Authors
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/cgzones.asc
inherit systemd tmpfiles verify-sig
inherit systemd tmpfiles

DESCRIPTION="Rotates, compresses, and mails system logs"
HOMEPAGE="https://github.com/logrotate/logrotate"
SRC_URI="https://github.com/${PN}/${PN}/releases/download/${PV}/${P}.tar.xz"
SRC_URI+=" verify-sig? ( https://github.com/${PN}/${PN}/releases/download/${PV}/${P}.tar.xz.asc )"

if [[ ${PV} == 9999 ]] ; then
EGIT_REPO_URI="https://github.com/logrotate/logrotate"
inherit autotools git-r3
else
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/cgzones.asc
inherit verify-sig

SRC_URI="https://github.com/${PN}/${PN}/releases/download/${PV}/${P}.tar.xz"
SRC_URI+=" verify-sig? ( https://github.com/${PN}/${PN}/releases/download/${PV}/${P}.tar.xz.asc )"

KEYWORDS="~alpha amd64 arm arm64 ~hppa ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86"

BDEPEND="verify-sig? ( sec-keys/openpgp-keys-cgzones )"
fi

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86"
IUSE="acl +cron selinux"

DEPEND="
Expand All @@ -26,7 +37,6 @@ RDEPEND="
cron? ( virtual/cron )
selinux? ( sec-policy/selinux-logrotate )
"
BDEPEND="verify-sig? ( sec-keys/openpgp-keys-cgzones )"

STATEFILE="${EPREFIX}/var/lib/misc/logrotate.status"
OLDSTATEFILE="${EPREFIX}/var/lib/logrotate.status"
Expand All @@ -53,6 +63,8 @@ src_prepare() {
default

sed -i -e 's#/usr/sbin/logrotate#/usr/bin/logrotate#' examples/logrotate.{cron,service} || die

[[ ${PV} == 9999 ]] && eautoreconf
}

src_configure() {
Expand Down
Loading
Loading