mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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:
11
mail-filter/postsrsd/files/postsrsd-2.0.11-sysconfdir.patch
Normal file
11
mail-filter/postsrsd/files/postsrsd-2.0.11-sysconfdir.patch
Normal 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"
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user