mail-filter/postsrsd: Install postsrsd.conf in /etc

... instead of moving it later.

Signed-off-by: Ulrich Müller <ulm@gentoo.org>
This commit is contained in:
Ulrich Müller
2025-06-26 20:17:03 +02:00
parent e96083c42d
commit c1af609e3f
2 changed files with 12 additions and 4 deletions

View File

@@ -0,0 +1,11 @@
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -362,7 +362,7 @@
install(TARGETS postsrsd RUNTIME DESTINATION ${CMAKE_INSTALL_SBINDIR})
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.conf"
- DESTINATION "${CMAKE_INSTALL_DATADIR}/doc/${PROJECT_NAME}"
+ DESTINATION "${CMAKE_INSTALL_FULL_SYSCONFDIR}"
)
if(INSTALL_SYSTEMD_SERVICE)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.service"

View File

@@ -25,7 +25,7 @@ DEPEND="
CHROOT_DIR="${EPREFIX}/var/lib/postsrsd"
PATCHES=(
"${FILESDIR}"/${PN}-2.0.11-docdir.patch
"${FILESDIR}"/${PN}-2.0.11-sysconfdir.patch
)
DOCS=( README.rst CHANGELOG.rst )
@@ -59,9 +59,6 @@ src_install() {
newconfd "${FILESDIR}"/postsrsd-2.0.11.confd postsrsd
keepdir "${CHROOT_DIR}"
# Move the example config file to /etc
mv "${ED}/usr/share/doc/${PF}/${PN}.conf" "${ED}/etc/" || die
local DOC_CONTENTS="When updating from version 1.x:
\n\nNote that most configuration options can no longer be set from the
command line, therefore we cannot define them in OpenRC's conf.d file