net-vpn/tor: port to GLEP 81, bug #701212
authorAnthony G. Basile <blueness@gentoo.org>
Fri, 6 Dec 2019 16:12:02 +0000 (11:12 -0500)
committerAnthony G. Basile <blueness@gentoo.org>
Fri, 6 Dec 2019 16:12:22 +0000 (11:12 -0500)
Package-Manager: Portage-2.3.79, Repoman-2.3.16
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
net-vpn/tor/tor-0.4.2.4_rc-r1.ebuild [moved from net-vpn/tor/tor-0.4.2.4_rc.ebuild with 96% similarity]

similarity index 96%
rename from net-vpn/tor/tor-0.4.2.4_rc.ebuild
rename to net-vpn/tor/tor-0.4.2.4_rc-r1.ebuild
index 70dc59c0d810cfc5679ebb4b445363d38585bce1..b4e2fd0c1db8edc2606a18ddecfc2e79ba8befa4 100644 (file)
@@ -30,7 +30,10 @@ DEPEND="
        seccomp? ( sys-libs/libseccomp )
        systemd? ( sys-apps/systemd )
        zstd? ( app-arch/zstd )"
-RDEPEND="${DEPEND}
+RDEPEND="
+       acct-user/tor
+       acct-group/tor
+       ${DEPEND}
        selinux? ( sec-policy/selinux-tor )"
 
 PATCHES=(
@@ -42,11 +45,6 @@ DOCS=()
 
 RESTRICT="!test? ( test )"
 
-pkg_setup() {
-       enewgroup tor
-       enewuser tor -1 -1 /var/lib/tor tor
-}
-
 src_configure() {
        use doc && DOCS+=( README ChangeLog ReleaseNotes doc/HACKING )
        export ac_cv_lib_cap_cap_init=$(usex caps)
@@ -89,5 +87,4 @@ src_install() {
 
        insinto /etc/tor/
        newins "${FILESDIR}"/torrc-r1 torrc
-
 }