summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Hood <squinky86@gentoo.org>2006-04-24 15:17:13 +0000
committerJon Hood <squinky86@gentoo.org>2006-04-24 15:17:13 +0000
commit736ac4ec876d10af4780cd17612a93e2bcb8959b (patch)
treea2faa8b4c843bb322325d01c016675d1f0d5d2df /net-p2p/amule/amule-2.1.0-r1.ebuild
parentAdd ~x86-fbsd keyword. (diff)
downloadgentoo-2-736ac4ec876d10af4780cd17612a93e2bcb8959b.tar.gz
gentoo-2-736ac4ec876d10af4780cd17612a93e2bcb8959b.tar.bz2
gentoo-2-736ac4ec876d10af4780cd17612a93e2bcb8959b.zip
enewuser/newgroup QA issues, bug #131099.
(Portage version: 2.1_pre7-r5)
Diffstat (limited to 'net-p2p/amule/amule-2.1.0-r1.ebuild')
-rw-r--r--net-p2p/amule/amule-2.1.0-r1.ebuild18
1 files changed, 10 insertions, 8 deletions
diff --git a/net-p2p/amule/amule-2.1.0-r1.ebuild b/net-p2p/amule/amule-2.1.0-r1.ebuild
index 40aa56dc1ade..e42944dd6f88 100644
--- a/net-p2p/amule/amule-2.1.0-r1.ebuild
+++ b/net-p2p/amule/amule-2.1.0-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/amule/amule-2.1.0-r1.ebuild,v 1.1 2006/01/13 11:18:44 mkay Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/amule/amule-2.1.0-r1.ebuild,v 1.2 2006/04/24 15:17:13 squinky86 Exp $
inherit eutils flag-o-matic wxwidgets
@@ -58,6 +58,15 @@ pkg_setup() {
fi
}
+pkg_preinst() {
+ if use amuled || use remote; then
+ if ! id p2p >/dev/null; then
+ enewgroup p2p
+ enewuser p2p -1 -1 /home/p2p p2p
+ fi
+ fi
+}
+
src_compile() {
local myconf=""
@@ -98,13 +107,6 @@ src_compile() {
src_install() {
make DESTDIR=${D} install || die
- if use amuled || use remote; then
- if ! id p2p >/dev/null; then
- enewgroup p2p
- enewuser p2p -1 -1 /home/p2p p2p
- fi
- fi
-
if use amuled; then
insinto /etc/conf.d; newins ${FILESDIR}/amuled.confd amuled
exeinto /etc/init.d; newexe ${FILESDIR}/amuled.initd amuled