commit:     fdeb9da6081bf27bc85796f9dc7e19f3a6064cec
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Thu Nov 24 12:21:08 2022 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Thu Nov 24 12:21:08 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fdeb9da6

net-misc/radvd: [QA] fix readme.gentoo-r1.eclass handling

Signed-off-by: David Seifert <soap <AT> gentoo.org>

 net-misc/radvd/radvd-2.19-r5.ebuild | 32 +++++++++++++++-----------------
 1 file changed, 15 insertions(+), 17 deletions(-)

diff --git a/net-misc/radvd/radvd-2.19-r5.ebuild 
b/net-misc/radvd/radvd-2.19-r5.ebuild
index 339fa3d60deb..fd3d71930125 100644
--- a/net-misc/radvd/radvd-2.19-r5.ebuild
+++ b/net-misc/radvd/radvd-2.19-r5.ebuild
@@ -15,19 +15,15 @@ KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv 
~sparc ~x86"
 IUSE="selinux test"
 RESTRICT="!test? ( test )"
 
-BDEPEND="virtual/pkgconfig"
-DEPEND="
+BDEPEND="
        sys-devel/bison
        sys-devel/flex
-       test? ( dev-libs/check )
-"
+       virtual/pkgconfig"
+DEPEND="test? ( dev-libs/check )"
 RDEPEND="
        acct-group/radvd
        acct-user/radvd
-       selinux? ( sec-policy/selinux-radvd )
-"
-
-DOCS=( CHANGES README TODO radvd.conf.example )
+       selinux? ( sec-policy/selinux-radvd )"
 
 PATCHES=(
        "${FILESDIR}"/${P}-musl-include.patch
@@ -52,23 +48,25 @@ src_compile() {
 }
 
 src_install() {
+       HTML_DOCS=( INTRO.html )
        default
-
-       docinto html
-       dodoc INTRO.html
+       dodoc radvd.conf.example
 
        newinitd "${FILESDIR}"/${PN}-2.15.init ${PN}
        newconfd "${FILESDIR}"/${PN}.conf ${PN}
 
        systemd_dounit "${FILESDIR}"/${PN}.service
 
-       readme.gentoo_create_doc
-}
-
-DISABLE_AUTOFORMATTING=1
-DOC_CONTENTS="Please create a configuration file ${ROOT}/etc/radvd.conf.
-See ${ROOT}/usr/share/doc/${PF} for an example.
+       DISABLE_AUTOFORMATTING=1
+       local DOC_CONTENTS="Please create a configuration file 
${EPREFIX}/etc/radvd.conf.
+See ${EPREFIX}/usr/share/doc/${PF} for an example.
 
 grsecurity users should allow a specific group to read /proc
 and add the radvd user to that group, otherwise radvd may
 segfault on startup."
+       readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+       readme.gentoo_print_elog
+}

Reply via email to