net-vpn/tor: also port older versions to GLEP 81
authorAnthony G. Basile <blueness@gentoo.org>
Sun, 8 Dec 2019 16:44:32 +0000 (11:44 -0500)
committerAnthony G. Basile <blueness@gentoo.org>
Sun, 8 Dec 2019 16:44:32 +0000 (11:44 -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.1.6-r1.ebuild [moved from net-vpn/tor/tor-0.4.1.6.ebuild with 96% similarity]

similarity index 96%
rename from net-vpn/tor/tor-0.4.1.6.ebuild
rename to net-vpn/tor/tor-0.4.1.6-r1.ebuild
index e2fbeea8b40c6c3b936d93b8bb08a3d12515c39f..548a309eebce72aebb7396c55499adb011549645 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)
@@ -87,5 +85,4 @@ src_install() {
 
        insinto /etc/tor/
        newins "${FILESDIR}"/torrc-r1 torrc
-
 }