Skip to content

Commit

Permalink
fixed doc install
Browse files Browse the repository at this point in the history
  • Loading branch information
LordVan committed Apr 12, 2018
1 parent 9d4bc57 commit a40176b
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions app-antivirus/clamav/clamav-0.100.0.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ SRC_URI="https://www.clamav.net/downloads/production/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris"
IUSE="bzip2 clamdtop iconv ipv6 libressl milter metadata-analysis-api selinux static-libs system-libmspack test uclibc"
IUSE="bzip2 doc clamdtop iconv ipv6 libressl milter metadata-analysis-api selinux static-libs system-libmspack test uclibc"

CDEPEND="bzip2? ( app-arch/bzip2 )
clamdtop? ( sys-libs/ncurses:0 )
Expand All @@ -36,7 +36,9 @@ DEPEND="${CDEPEND}
RDEPEND="${CDEPEND}
selinux? ( sec-policy/selinux-clamav )"

DOCS=( AUTHORS BUGS ChangeLog FAQ INSTALL NEWS README UPGRADE )
DOCS=( docs/clamdoc.pdf docs/phishsigs_howto.pdf docs/signatures.pdf )
HTML_DOCS=( docs/html )

PATCHES=(
"${FILESDIR}/${P}_autotools.patch"
)
Expand Down Expand Up @@ -119,7 +121,7 @@ src_install() {
if use milter ; then
# MilterSocket one to include ' /' because there is a 2nd line for
# inet: which we want to leave
dodoc "${FILESDIR}"/clamav-milter.README.gentoo
##dodoc "${FILESDIR}"/clamav-milter.README.gentoo
sed -i -e "s:^\(Example\):\# \1:" \
-e "s:.*\(PidFile\) .*:\1 ${EPREFIX}/var/run/clamav/clamav-milter.pid:" \
-e "s+^\#\(ClamdSocket\) .*+\1 unix:${EPREFIX}/var/run/clamav/clamd.sock+" \
Expand All @@ -136,6 +138,11 @@ src_install() {
systemd_newunit "${FILESDIR}/clamav-milter.service-r1" clamav-milter.service
fi

if use doc; then
einstalldocs
doman docs/man/*.[1-8]
fi

for i in clamd freshclam clamav-milter
do
[[ -f "${D}"/etc/"${i}".conf.sample ]] && mv "${D}"/etc/"${i}".conf{.sample,}
Expand Down

0 comments on commit a40176b

Please sign in to comment.