summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalph Seichter <github@seichter.de>2020-04-05 21:08:31 +0200
committerAndreas K. Hüttel <dilfridge@gentoo.org>2020-04-06 11:08:31 +0300
commitd065f56170bb90807ecbe5693d476c9449fe5110 (patch)
treea74e4c1b472e42df580e5c7cacdecafca69e4e0c /app-antivirus/fangfrisch
parentsci-mathematics/flint: ppc stable wrt bug #716184 (diff)
downloadgentoo-d065f56170bb90807ecbe5693d476c9449fe5110.tar.gz
gentoo-d065f56170bb90807ecbe5693d476c9449fe5110.tar.bz2
gentoo-d065f56170bb90807ecbe5693d476c9449fe5110.zip
app-antivirus/fangfrisch: Enhance post-install message
The post-install message now displays the exact shell commands that should be executed after a fresh installation. This saves the user from having to refer to the official Fangfrisch documentation. Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Ralph Seichter <gentoo@seichter.de> Closes: https://github.com/gentoo/gentoo/pull/15238 Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Diffstat (limited to 'app-antivirus/fangfrisch')
-rw-r--r--app-antivirus/fangfrisch/fangfrisch-1.2.0.ebuild25
1 files changed, 18 insertions, 7 deletions
diff --git a/app-antivirus/fangfrisch/fangfrisch-1.2.0.ebuild b/app-antivirus/fangfrisch/fangfrisch-1.2.0.ebuild
index e00795c2f9d8..96c6bbfecc59 100644
--- a/app-antivirus/fangfrisch/fangfrisch-1.2.0.ebuild
+++ b/app-antivirus/fangfrisch/fangfrisch-1.2.0.ebuild
@@ -11,18 +11,29 @@ inherit distutils-r1 readme.gentoo-r1
DESCRIPTION="Update and verify unofficial Clam Anti-Virus signatures"
HOMEPAGE="https://github.com/rseichter/fangfrisch https://pypi.org/project/fangfrisch/"
SRC_URI="https://github.com/rseichter/fangfrisch/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+MY_CONF="/etc/${PN}.conf"
+MY_DBDIR="/var/lib/${PN}"
DISABLE_AUTOFORMATTING=1
-DOC_CONTENTS="Fresh installations:
+DOC_CONTENTS="See https://rseichter.github.io/fangfrisch/ for the official
+documentation.
-Before enabling /etc/cron.d/${PN} configure Fangfrisch,
-then run the 'initdb' command.
+### Fresh installations:
-Updating from release 1.0.1:
+Modify ${MY_CONF} according to your preferences.
+Assuming you place the database into ${MY_DBDIR}
+(recommended), execute the following commands in a root shell:
-Either create a fresh database or manually delete all existing
-database tables, then run the 'initdb' command.
+mkdir -m 0770 ${MY_DBDIR}
+chgrp clamav ${MY_DBDIR}
+sudo -u clamav -- fangfrisch -c ${MY_CONF} initdb
+
+You can now enable /etc/cron.d/${PN} for periodic updates.
-See https://rseichter.github.io/fangfrisch/ for more information."
+### Alternative: Updating from release 1.0.1:
+
+Either create a fresh database or manually delete all existing
+database tables, then run the initdb command as shown above."
LICENSE="GPL-3+"
SLOT="0"