public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Conrad Kostecki" <conikost@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/rt/
Date: Fri, 13 May 2022 22:50:23 +0000 (UTC)	[thread overview]
Message-ID: <1652482196.480ea096393f2fe727ba247d555ea85911baadc3.conikost@gentoo> (raw)

commit:     480ea096393f2fe727ba247d555ea85911baadc3
Author:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Sat Apr  2 11:38:16 2022 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Fri May 13 22:49:56 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=480ea096

www-apps/rt: migrate to glep-81

Closes: https://bugs.gentoo.org/781527
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/24865
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 .../rt/{rt-4.4.4-r1.ebuild => rt-4.4.4-r2.ebuild}  | 54 +++-------------------
 1 file changed, 6 insertions(+), 48 deletions(-)

diff --git a/www-apps/rt/rt-4.4.4-r1.ebuild b/www-apps/rt/rt-4.4.4-r2.ebuild
similarity index 83%
rename from www-apps/rt/rt-4.4.4-r1.ebuild
rename to www-apps/rt/rt-4.4.4-r2.ebuild
index 8f0b49e9cc7a..efcf278b94c6 100644
--- a/www-apps/rt/rt-4.4.4-r1.ebuild
+++ b/www-apps/rt/rt-4.4.4-r2.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
 
-inherit webapp depend.apache user
+inherit webapp depend.apache
 
 DESCRIPTION="RT is an enterprise-grade ticketing system"
 HOMEPAGE="https://www.bestpractical.com/rt/"
@@ -17,8 +17,9 @@ REQUIRED_USE="^^ ( mysql postgres )"
 RESTRICT="test"
 
 DEPEND="
+	acct-group/rt
+	acct-user/rt
 	>=dev-lang/perl-5.10.1
-
 	>=dev-perl/Apache-Session-1.53
 	>=dev-perl/CGI-4
 	>=dev-perl/CSS-Squish-0.06
@@ -141,46 +142,6 @@ RDEPEND="${DEPEND}
 
 need_httpd_cgi
 
-add_user_rt() {
-	# add new user
-	# suexec2 requires uid >= 1000; enewuser is of no help here
-	# From: Mike Frysinger <vapier@gentoo.org>
-	# Date: Fri, 17 Jun 2005 08:41:44 -0400
-	# i'd pick a 5 digit # if i were you
-
-	local euser="rt"
-
-	# first check if username rt exists
-	if [[ ${euser} == $(egetent passwd "${euser}" | cut -d: -f1) ]] ; then
-		# check uid
-		rt_uid=$(egetent passwd "${euser}" | cut -d: -f3)
-		if $(expr ${rt_uid} '<' 1000 > /dev/null); then
-			ewarn "uid of user rt is less than 1000. suexec2 will not work."
-			ewarn "If you want to use FastCGI, please delete the user 'rt'"
-			ewarn "from your system and re-emerge www-apps/rt"
-		fi
-		return 0 # all is well
-	fi
-
-	# add user
-	# stolen from enewuser
-	local pwrange euid
-
-	pwrange=$(seq 10001 11001)
-	for euid in ${pwrange} ; do
-		[[ -z $(egetent passwd ${euid}) ]] && break
-	done
-	if [[ ${euid} == "11001" ]]; then
-		# she gets around, doesn't she?
-		die "No available uid's found"
-	fi
-
-	elog " - Userid: ${euid}"
-
-	enewuser rt ${euid} -1 /dev/null rt
-	return 0
-}
-
 pkg_setup() {
 	webapp_pkg_setup
 
@@ -189,16 +150,13 @@ pkg_setup() {
 	ewarn "make sure to read the related upgrade documentation in"
 	ewarn "${ROOT}usr/share/doc/${PF}."
 	ewarn
-
-	enewgroup rt
-	add_user_rt || die "Could not add user"
 }
 
 src_prepare() {
 	# add Gentoo-specific layout
 	cat "${FILESDIR}"/config.layout-gentoo >> config.layout
-	sed -e "s|PREFIX|${ED}/${MY_HOSTROOTDIR}/${PF}|g" \
-		-e "s|HTMLDIR|${ED}/${MY_HTDOCSDIR}|g" \
+	sed -e "s|PREFIX|${EPREFIX}/${MY_HOSTROOTDIR}/${PF}|g" \
+		-e "s|HTMLDIR|${EPREFIX}/${MY_HTDOCSDIR}|g" \
 		-e 's|/\+|/|g' \
 		-i ./config.layout || die 'config sed failed'
 


             reply	other threads:[~2022-05-13 22:50 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-13 22:50 Conrad Kostecki [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-07-04 22:19 [gentoo-commits] repo/gentoo:master commit in: www-apps/rt/ Andreas K. Hüttel
2024-10-01 16:23 Arthur Zamarin
2024-07-21  0:31 Sam James
2022-11-23 14:08 Jakov Smolić
2022-10-29 10:23 Jakov Smolić
2021-06-03 19:13 Andreas K. Hüttel
2021-04-16 11:23 Sam James
2020-05-11 11:43 Aaron W. Swenson
2019-08-02 10:10 Aaron W. Swenson
2019-08-02 10:10 Aaron W. Swenson
2019-03-07 16:53 Aaron W. Swenson
2018-01-26 17:03 Aaron Swenson
2017-10-29 19:18 Jonas Stein
2017-10-24  7:11 Kent Fredric
2017-10-03 22:03 Patrice Clement
2016-09-20 19:22 Aaron Swenson
2016-09-12 12:08 Kent Fredric
2016-08-02 11:54 Kent Fredric
2016-04-26 20:03 Andreas Hüttel
2016-04-26 20:03 Andreas Hüttel
2016-04-23 17:31 Andreas Hüttel
2016-03-10 23:10 Andreas Hüttel
2016-03-09 20:48 Andreas Hüttel
2016-02-29 15:36 Patrice Clement
2016-02-29 15:36 Patrice Clement
2015-11-18 18:02 Aaron Swenson
2015-11-18 18:01 Aaron Swenson
2015-09-11 22:29 Andreas Hüttel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1652482196.480ea096393f2fe727ba247d555ea85911baadc3.conikost@gentoo \
    --to=conikost@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox