summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-p2p/amule/amule-2.0.1-r2.ebuild')
-rw-r--r--net-p2p/amule/amule-2.0.1-r2.ebuild20
1 files changed, 11 insertions, 9 deletions
diff --git a/net-p2p/amule/amule-2.0.1-r2.ebuild b/net-p2p/amule/amule-2.0.1-r2.ebuild
index 468970e40f6e..37710da50449 100644
--- a/net-p2p/amule/amule-2.0.1-r2.ebuild
+++ b/net-p2p/amule/amule-2.0.1-r2.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2005 Gentoo Foundation
+# 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.0.1-r2.ebuild,v 1.2 2005/09/20 17:24:52 mkay Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/amule/amule-2.0.1-r2.ebuild,v 1.3 2006/04/24 15:17:13 squinky86 Exp $
inherit eutils flag-o-matic wxwidgets
@@ -34,6 +34,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_unpack() {
unpack ${A}
cd ${S}
@@ -70,13 +79,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