From de5946033f04a81a47e956955e7cc7d263daae79 Mon Sep 17 00:00:00 2001 From: ayuayuayu Date: Mon, 11 Jul 2022 09:47:28 +0000 Subject: [PATCH] specify docdir, mandir for stubby Signed-off-by: ayuayuayu --- .../getdns/files/getdns-1.7.0-stubby-docdir.patch | 13 +++++++++++++ net-dns/getdns/getdns-1.7.0-r1.ebuild | 1 + 2 files changed, 14 insertions(+) create mode 100644 net-dns/getdns/files/getdns-1.7.0-stubby-docdir.patch diff --git a/net-dns/getdns/files/getdns-1.7.0-stubby-docdir.patch b/net-dns/getdns/files/getdns-1.7.0-stubby-docdir.patch new file mode 100644 index 00000000..e5743f43 --- /dev/null +++ b/net-dns/getdns/files/getdns-1.7.0-stubby-docdir.patch @@ -0,0 +1,13 @@ +--- a/stubby/CMakeLists.txt ++++ b/stubby/CMakeLists.txt +@@ -187,8 +187,8 @@ install(TARGETS stubby RUNTIME DESTINATI + if (ENABLE_WINDOWS_SERVICE) + install(TARGETS stubres LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) + endif () +-install(FILES ${CMAKE_CURRENT_BINARY_DIR}/stubby.1 DESTINATION share/man/man1) +-install(FILES AUTHORS COPYING ChangeLog NEWS README.md DESTINATION share/doc/stubby) ++install(FILES ${CMAKE_CURRENT_BINARY_DIR}/stubby.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1) ++install(FILES AUTHORS COPYING ChangeLog NEWS README.md DESTINATION ${CMAKE_INSTALL_DOCDIR}/stubby) + + # Ensure the file gets CRLF line endings on Windows. + file(GENERATE OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/stubby.yml INPUT ${CMAKE_CURRENT_SOURCE_DIR}/stubby.yml.example) diff --git a/net-dns/getdns/getdns-1.7.0-r1.ebuild b/net-dns/getdns/getdns-1.7.0-r1.ebuild index 85df2006..a12642db 100644 --- a/net-dns/getdns/getdns-1.7.0-r1.ebuild +++ b/net-dns/getdns/getdns-1.7.0-r1.ebuild @@ -54,6 +54,7 @@ BDEPEND=" PATCHES=( "${FILESDIR}/${PN}-1.4.2-stubby.service.patch" "${FILESDIR}/${PN}-1.7.0-docdir.patch" + "${FILESDIR}/${PN}-1.7.0-stubby-docdir.patch" ) src_configure() { -- 2.35.1