summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2019-05-23 16:29:54 -0400
committerAnthony G. Basile <blueness@gentoo.org>2019-05-23 16:30:07 -0400
commit7bb0251e339579c66670b2532df98d0b396ffb7c (patch)
tree128696b70dd042cfb636a53416a3119dfc28f4e8 /net-misc/ntpsec
parentapp-misc/vifm: take over maintainership. (diff)
downloadgentoo-7bb0251e339579c66670b2532df98d0b396ffb7c.tar.gz
gentoo-7bb0251e339579c66670b2532df98d0b396ffb7c.tar.bz2
gentoo-7bb0251e339579c66670b2532df98d0b396ffb7c.zip
net-misc/ntpsec: fix minor error when USE=-doc
Signed-off-by: Anthony G. Basile <blueness@gentoo.org> Package-Manager: Portage-2.3.62, Repoman-2.3.11
Diffstat (limited to 'net-misc/ntpsec')
-rw-r--r--net-misc/ntpsec/ntpsec-1.1.3.ebuild2
-rw-r--r--net-misc/ntpsec/ntpsec-9999.ebuild3
2 files changed, 4 insertions, 1 deletions
diff --git a/net-misc/ntpsec/ntpsec-1.1.3.ebuild b/net-misc/ntpsec/ntpsec-1.1.3.ebuild
index 9a7db4869a3a..b227382f452e 100644
--- a/net-misc/ntpsec/ntpsec-1.1.3.ebuild
+++ b/net-misc/ntpsec/ntpsec-1.1.3.ebuild
@@ -145,7 +145,7 @@ src_install() {
cp -Rv "${S}"/etc/ntp.d/ "${ED}"/etc/
# move doc files to /usr/share/doc/"${P}"
- mv "${ED}"/usr/share/doc/"${PN}" "${ED}"/usr/share/doc/"${P}"/html
+ use doc && mv -v "${ED}"/usr/share/doc/"${PN}" "${ED}"/usr/share/doc/"${P}"/html
}
pkg_postinst() {
diff --git a/net-misc/ntpsec/ntpsec-9999.ebuild b/net-misc/ntpsec/ntpsec-9999.ebuild
index 446753553564..b227382f452e 100644
--- a/net-misc/ntpsec/ntpsec-9999.ebuild
+++ b/net-misc/ntpsec/ntpsec-9999.ebuild
@@ -143,6 +143,9 @@ src_install() {
# Install the configuration file and sample configuration
cp -v "${FILESDIR}"/ntp.conf "${ED}"/etc/ntp.conf
cp -Rv "${S}"/etc/ntp.d/ "${ED}"/etc/
+
+ # move doc files to /usr/share/doc/"${P}"
+ use doc && mv -v "${ED}"/usr/share/doc/"${PN}" "${ED}"/usr/share/doc/"${P}"/html
}
pkg_postinst() {