Skip to content

Commit 55d07c8

Browse files
authored
change mode to 0644 for logrotate (#956)
1 parent 6f710e3 commit 55d07c8

File tree

1 file changed

+61
-0
lines changed

1 file changed

+61
-0
lines changed
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Copyright 1999-2022 Gentoo Authors
2+
# Distributed under the terms of the GNU General Public License v2
3+
4+
EAPI=8
5+
6+
inherit meson
7+
8+
DESCRIPTION="Simple, reliable, scalable backup solution to postgres"
9+
HOMEPAGE="https://pgbackrest.org/"
10+
SRC_URI="https://github.com/${PN}/${PN}/archive/release/${PV}.tar.gz -> ${P}.tar.gz"
11+
12+
LICENSE="MIT"
13+
KEYWORDS="~amd64 ~x86"
14+
15+
SLOT="0"
16+
17+
# Docs depend on XML::Checker::Parser. Skip for now
18+
#IUSE="doc"
19+
20+
DEPEND="
21+
acct-group/postgres
22+
acct-user/postgres
23+
>=dev-db/postgresql-9.0:=
24+
sys-libs/zlib
25+
app-arch/lz4
26+
app-arch/bzip2
27+
dev-libs/openssl
28+
dev-libs/libxml2
29+
net-libs/libssh2
30+
>=app-arch/zstd-1.0
31+
"
32+
33+
RDEPEND="${DEPEND}"
34+
35+
BDEPEND="
36+
dev-libs/libyaml
37+
>=dev-build/meson-0.47
38+
"
39+
40+
S="${WORKDIR}/${PN}-release-${PV}"
41+
42+
src_install() {
43+
meson_src_install
44+
# install base configuration
45+
dodir /etc/"${PN}"
46+
insinto /etc/"${PN}"
47+
insopts -o postgres -g postgres
48+
doins "${FILESDIR}"/pgbackrest.conf
49+
# user postgres should exist implicitly by dev-db/postgresql
50+
diropts -m 0775 -g postgres
51+
keepdir /var/log/"${PN}"
52+
# async wal archiving requires a spooler directory
53+
keepdir /var/spool/"${PN}"
54+
55+
insopts -m 0644 -o root -g root
56+
insinto /etc/logrotate.d
57+
newins "${FILESDIR}/${PN}.logrotate" ${PN}
58+
59+
newinitd "${FILESDIR}/${PN}.initd" ${PN}
60+
newconfd "${FILESDIR}/${PN}.confd" ${PN}
61+
}

0 commit comments

Comments
 (0)