commit:     76e22a87d129c55a397f9356effd6f0ab0a009a2
Author:     Julien Roy <julien <AT> jroy <DOT> ca>
AuthorDate: Mon Apr 18 02:22:48 2022 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Mon Apr 18 02:24:02 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=76e22a87

app-crypt/tang: Removed systemd USE flag

Signed-off-by: Julien Roy <julien <AT> jroy.ca>

 app-crypt/tang/tang-11.ebuild | 21 +++++++--------------
 1 file changed, 7 insertions(+), 14 deletions(-)

diff --git a/app-crypt/tang/tang-11.ebuild b/app-crypt/tang/tang-11.ebuild
index 94b1883d7..5bf2f8ce2 100644
--- a/app-crypt/tang/tang-11.ebuild
+++ b/app-crypt/tang/tang-11.ebuild
@@ -12,7 +12,7 @@ 
SRC_URI="https://github.com/latchset/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 LICENSE="GPL-3"
 SLOT="0"
 KEYWORDS="~amd64"
-IUSE="systemd"
+IUSE=""
 
 DEPEND="acct-user/tang
        app-text/asciidoc
@@ -31,22 +31,15 @@ src_install(){
        fowners tang:tang /var/db/tang
        fperms 770 /var/db/tang
 
-       if use systemd; then
-               insinto /usr/lib/systemd/system
-               doins ${FILESDIR}/tangd.service
-       fi
+       insinto /usr/lib/systemd/system
+       doins ${FILESDIR}/tangd.service
 }
 
 pkg_postinst(){
        einfo "By default, tang runs on port 8888 and listens on address 
0.0.0.0"
        einfo "It also stores JWKs in /var/db/tang."
-       if use systemd; then
-               einfo "If you want to change this, modify 
/usr/lib/systemd/system/tangd.service directly."
-       else
-               einfo "If you want to change this, modify /etc/init.d/tangd 
directly."
-       fi
-
-       if use systemd; then
-               systemctl daemon-reload
-       fi
+       einfo "If you want to change this, modify /etc/init.d/tangd or"
+       einfo "/usr/lib/systemd/system/tangd.service directly."
+
+       systemctl daemon-reload || die
 }

Reply via email to