diff options
author | Florian Schmaus <flow@gentoo.org> | 2024-02-29 09:23:30 +0100 |
---|---|---|
committer | Florian Schmaus <flow@gentoo.org> | 2024-02-29 09:23:49 +0100 |
commit | 523e062c0dfb4d1f688c552e3962eae7e7038835 (patch) | |
tree | b9c4edc4625fbb9f68c22b7b672ca848aaf5d492 /net-analyzer | |
parent | net-analyzer/greenbone-feed-sync: add 24.1.1 (diff) | |
download | gentoo-523e062c0dfb4d1f688c552e3962eae7e7038835.tar.gz gentoo-523e062c0dfb4d1f688c552e3962eae7e7038835.tar.bz2 gentoo-523e062c0dfb4d1f688c552e3962eae7e7038835.zip |
net-analyzer/greenbone-feed-sync: enable tests, minor style fixes
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'net-analyzer')
-rw-r--r-- | net-analyzer/greenbone-feed-sync/greenbone-feed-sync-24.1.1.ebuild | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/net-analyzer/greenbone-feed-sync/greenbone-feed-sync-24.1.1.ebuild b/net-analyzer/greenbone-feed-sync/greenbone-feed-sync-24.1.1.ebuild index fefd8988d4cf..e354564f0634 100644 --- a/net-analyzer/greenbone-feed-sync/greenbone-feed-sync-24.1.1.ebuild +++ b/net-analyzer/greenbone-feed-sync/greenbone-feed-sync-24.1.1.ebuild @@ -15,7 +15,6 @@ SLOT="0" LICENSE="GPL-3+" KEYWORDS="~amd64" IUSE="cron" -RESTRICT="test" DEPEND=" acct-user/gvm @@ -31,14 +30,17 @@ RDEPEND=" cron? ( virtual/cron ) " +distutils_enable_tests unittest + python_install() { distutils-r1_python_install - #greenbone-feed-sync should not be run as root to avoid changing file permissions + # greenbone-feed-sync should not be run as root to avoid changing file permissions insinto /etc/sudoers.d newins - greenbone-feed-sync <<-EOF gvm ALL = NOPASSWD: /usr/bin/greenbone-feed-sync -EOF + EOF + fperms 0750 /etc/sudoers.d fperms 0440 /etc/sudoers.d/greenbone-feed-sync |