diff --git a/mail-filter/postsrsd/files/postsrsd-2.0.11-sysconfdir.patch b/mail-filter/postsrsd/files/postsrsd-2.0.11-sysconfdir.patch new file mode 100644 index 0000000000000..0c2d92fdda841 --- /dev/null +++ b/mail-filter/postsrsd/files/postsrsd-2.0.11-sysconfdir.patch @@ -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" diff --git a/mail-filter/postsrsd/postsrsd-2.0.11-r1.ebuild b/mail-filter/postsrsd/postsrsd-2.0.11-r1.ebuild index bb695c72f474d..665bbb403e5ff 100644 --- a/mail-filter/postsrsd/postsrsd-2.0.11-r1.ebuild +++ b/mail-filter/postsrsd/postsrsd-2.0.11-r1.ebuild @@ -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