stable x86 version bump; remove non-working versions; new init script, #65245
authorJon Hood <squinky86@gentoo.org>
Mon, 29 Nov 2004 18:45:40 +0000 (18:45 +0000)
committerJon Hood <squinky86@gentoo.org>
Mon, 29 Nov 2004 18:45:40 +0000 (18:45 +0000)
12 files changed:
net-p2p/mldonkey/ChangeLog
net-p2p/mldonkey/Manifest
net-p2p/mldonkey/files/digest-mldonkey-2.5.16-r7 [deleted file]
net-p2p/mldonkey/files/digest-mldonkey-2.5.16-r8 [deleted file]
net-p2p/mldonkey/files/digest-mldonkey-2.5.28 [deleted file]
net-p2p/mldonkey/files/digest-mldonkey-2.5.28-r3 [deleted file]
net-p2p/mldonkey/files/mldonkey.initd
net-p2p/mldonkey/mldonkey-2.5.16-r7.ebuild [deleted file]
net-p2p/mldonkey/mldonkey-2.5.16-r8.ebuild [deleted file]
net-p2p/mldonkey/mldonkey-2.5.16-r9.ebuild
net-p2p/mldonkey/mldonkey-2.5.28-r3.ebuild [deleted file]
net-p2p/mldonkey/mldonkey-2.5.28.ebuild [deleted file]

index b0822b4ef601bd251bdd1fee282a860e8652bcbc..aec69d5075c28827c5aef1ba17f593d9bb1ff13c 100644 (file)
@@ -1,6 +1,14 @@
 # ChangeLog for net-p2p/mldonkey
 # Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/mldonkey/ChangeLog,v 1.76 2004/11/23 20:11:00 squinky86 Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/mldonkey/ChangeLog,v 1.77 2004/11/29 18:45:40 squinky86 Exp $
+
+  29 Nov 2004; Jon Hood <squinky86@gentoo.org> files/mldonkey.initd,
+  -mldonkey-2.5.16-r7.ebuild, -mldonkey-2.5.16-r8.ebuild,
+  mldonkey-2.5.16-r9.ebuild, -mldonkey-2.5.28-r3.ebuild,
+  -mldonkey-2.5.28.ebuild:
+  2.5.16-r9 stable on x86 due to older versions getting banned, new init
+  script from Martin Bays <gentoo_bugz@zugzwang.port5.com>, #65245,
+  cleanup old ebuilds.
 
 *mldonkey-2.5.16-r9 (23 Nov 2004)
 
index 5d103232bd5d9a6b326bc4710f2d3b915054910e..8108687cdcdac15dbb00229fcdcb55e03d169588 100644 (file)
@@ -1,25 +1,17 @@
 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
-MD5 ec3b1156c3f6fd50ec8d16cea3dfa180 mldonkey-2.5.16-r7.ebuild 2651
-MD5 8de6050e9a45b3402fa594d7f55dde3f mldonkey-2.5.16-r9.ebuild 2658
-MD5 68546e950d8557dc131ade95e60b030d mldonkey-2.5.28-r3.ebuild 2801
+MD5 becd7eeea9837b7cc04de3a8bb3c89c6 mldonkey-2.5.16-r9.ebuild 2657
 MD5 8d3ae8cd5f6b471de19912845a21beea mldonkey-2.5.27-r1.ebuild 2756
 MD5 56e7da52446479881edfc5eecde9b926 mldonkey-2.5.21-r2.ebuild 2692
-MD5 2b98f66763bd8905a795eea801eb9027 mldonkey-2.5.16-r8.ebuild 2657
-MD5 1e4ead4905578e6c3e874dd3bd65a953 mldonkey-2.5.28.ebuild 2757
 MD5 0323f0092443c2a79f6cfd060a186d2b mldonkey-2.5.28-r4.ebuild 2801
-MD5 8b1400518b88d08bcc81b5ffa8b122e1 ChangeLog 12778
+MD5 58e171e6811cc045f4e7334f7258308e ChangeLog 13154
 MD5 74e4ceef69a9fc3a7a76299e5f4d2ed8 metadata.xml 307
 MD5 476ec69e79e7c93a7bdaa6cb049c0857 files/mldonkey.confd 836
-MD5 dd6c047ee9ad00cddbc438e8ea30641a files/mldonkey.initd 2858
-MD5 0deb6ecb02f1c0e9f66e7aab60c57040 files/digest-mldonkey-2.5.28 69
-MD5 920f9e5989329dba967bff5a111911a7 files/digest-mldonkey-2.5.16-r7 126
-MD5 8a6a83aef1530834a8fa4e64a1b0191b files/digest-mldonkey-2.5.16-r8 129
+MD5 8eb1c3cd8359a02e5bc736805a940e7f files/mldonkey.initd 2996
 MD5 b1c7f6fe232921bb9516c1007f34efd4 files/digest-mldonkey-2.5.16-r9 128
 MD5 f145ba120c09f53b0032ea8b3f930128 files/digest-mldonkey-2.5.21-r2 126
 MD5 6df804eab9a1d919e43d09f42c700b40 files/digest-mldonkey-2.5.27-r1 129
-MD5 40c94b8c0e62bf72f3967cabd710d852 files/digest-mldonkey-2.5.28-r3 129
 MD5 4083205e52db56c9d64c4a67db61cbf2 files/digest-mldonkey-2.5.28-r4 129
 MD5 a929dcdb98bcc52d06066afb45960ea9 files/2.5.28-config.patch 586
 MD5 be0c71929c461b50601e8715706a4a16 files/mldonkey-2.5.21-configure.patch 540
@@ -28,7 +20,7 @@ MD5 be0c71929c461b50601e8715706a4a16 files/mldonkey-2.5.16-configure.patch 540
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.6 (GNU/Linux)
 
-iD8DBQFBo5locAgAdbxYsnERAg6+AJsHCeaE7ynCyl4E1go4x9ltWd609wCePGLZ
-CxqlA3VhNQJa8uhbAJtuzxA=
-=Vjr1
+iD8DBQFBq25hcAgAdbxYsnERAsaRAJ4m6jR59ZpPrkKIyf3GqD5aHv7GvwCbBHwQ
+028AxGxgL0pYRcuD9xPYvW0=
+=Gow5
 -----END PGP SIGNATURE-----
diff --git a/net-p2p/mldonkey/files/digest-mldonkey-2.5.16-r7 b/net-p2p/mldonkey/files/digest-mldonkey-2.5.16-r7
deleted file mode 100644 (file)
index 27addf1..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-MD5 a64121509d6a7bb196fe0b5ce403c60b mldonkey-2.5.16.tar.gz 3214587
-MD5 50fbd2dfebfeb446f44a008607cdbd29 patch_pack16r 194331
diff --git a/net-p2p/mldonkey/files/digest-mldonkey-2.5.16-r8 b/net-p2p/mldonkey/files/digest-mldonkey-2.5.16-r8
deleted file mode 100644 (file)
index 1532a82..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-MD5 a64121509d6a7bb196fe0b5ce403c60b mldonkey-2.5.16.tar.gz 3214587
-MD5 6461994ed244d900e845039bf087b29c patch_pack16t.bz2 45645
diff --git a/net-p2p/mldonkey/files/digest-mldonkey-2.5.28 b/net-p2p/mldonkey/files/digest-mldonkey-2.5.28
deleted file mode 100644 (file)
index 2dd8e24..0000000
+++ /dev/null
@@ -1 +0,0 @@
-MD5 5b5128ec570ec065992db25d9a434285 mldonkey-2.5.28.tar.bz2 2760339
diff --git a/net-p2p/mldonkey/files/digest-mldonkey-2.5.28-r3 b/net-p2p/mldonkey/files/digest-mldonkey-2.5.28-r3
deleted file mode 100644 (file)
index f8b15d3..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-MD5 5b5128ec570ec065992db25d9a434285 mldonkey-2.5.28.tar.bz2 2760339
-MD5 711ae6d0517a9c37876ff7858035dcf9 patch_pack28g.gz 49820
index 696d5f0cbe026c91096686a5957ef083baa49078..5179a7b795dfad74051fe408e27e53ac3c9b58c7 100644 (file)
@@ -55,7 +55,12 @@ stop() {
        wget --spider ${BASE}/submit?q=close_fds -q 
        wget --spider ${BASE}/submit?q=save -q 
        wget --spider ${BASE}/submit?q=kill -q 
-       sleep 10
+       # give it a chance to die:
+       local timeout=10
+       while [ $timeout -gt 0 ] && pgrep -u ${USER} mlnet &>/dev/null; do
+               sleep 1
+               let 'timeout--'
+       done
        start-stop-daemon --oknodo --stop -x /usr/bin/mlnet &>/dev/null
        eend $?
 }
diff --git a/net-p2p/mldonkey/mldonkey-2.5.16-r7.ebuild b/net-p2p/mldonkey/mldonkey-2.5.16-r7.ebuild
deleted file mode 100644 (file)
index 1b02077..0000000
+++ /dev/null
@@ -1,99 +0,0 @@
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/mldonkey/mldonkey-2.5.16-r7.ebuild,v 1.4 2004/08/10 02:26:39 squinky86 Exp $
-
-inherit eutils
-
-IUSE="gtk"
-
-DESCRIPTION="mldonkey is a new client to access the eDonkey network. It is written in Objective-Caml, and comes with its own GTK GUI, an HTTP interface and a telnet interface."
-HOMEPAGE="http://www.nongnu.org/mldonkey/"
-SRC_URI="http://savannah.nongnu.org/download/${PN}/${P}.tar.gz
-       http://ftp.berlios.de/pub/mldonkey/spiralvoice/patchpacks/patch_pack16r"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="x86 ~ppc ~alpha ~ia64"
-
-RDEPEND="gtk? ( =dev-ml/lablgtk-1* )
-       >=dev-lang/ocaml-3.07
-       dev-lang/perl
-       net-misc/wget"
-
-DEPEND="${RDEPEND}
-       >=sys-devel/autoconf-2.58"
-
-MLUSER="p2p"
-
-src_unpack() {
-       unpack ${P}.tar.gz
-
-       cd ${S}
-       #Don't change this, unless you know what you are doing
-       patch -p0 < ${DISTDIR}/patch_pack16r || die
-       export WANT_AUTOCONF=2.5
-       cd config; autoconf; cd ..
-}
-
-
-src_compile() {
-       use gtk || export GTK_CONFIG="no"
-
-       # the dirs are not (yet) used, but it doesn't hurt to specify them anyway
-       econf \
-               --sysconfdir=/etc/mldonkey \
-               --sharedstatedir=/var/mldonkey \
-               --localstatedir=/var/mldonkey \
-               --enable-batch \
-               --enable-checks \
-               --enable-pthread || die
-
-       emake || die
-}
-
-src_install() {
-       dobin mlnet
-       use gtk && dobin mlchat mlgui mlguistarter mlim mlnet+gui
-       dobin ${FILESDIR}/mldonkey
-
-       dodoc ChangeLog Copying.txt Developers.txt Install.txt
-       cd ${S}/distrib
-       dodoc ChangeLog Authors.txt Bugs.txt Copying.txt Developers.txt Install.txt Readme.txt Todo.txt ed2k_links.txt
-       dohtml FAQ.html
-
-       insinto /usr/share/doc/${PF}/scripts
-       doins kill_mldonkey mldonkey_command mldonkey_previewer
-
-       insinto /usr/share/doc/${PF}/distrib
-       doins directconnect.ini
-
-       cd ${S}/docs
-       dodoc *.txt *.tex *.pdf
-       dohtml *.html
-
-       cd ${S}/docs/developers
-       dodoc *.txt *.tex
-
-       cd ${S}/docs/images
-       insinto /usr/share/doc/${PF}/html/images
-       doins *
-
-       insinto /etc/conf.d; newins ${FILESDIR}/mldonkey.confd mldonkey
-       exeinto /etc/init.d; newexe ${FILESDIR}/mldonkey.initd mldonkey
-}
-
-pkg_preinst() {
-       enewuser ${MLUSER} -1 /bin/bash /home/p2p users
-}
-
-pkg_postinst() {
-       echo
-       einfo "Running \`mldonkey' will start the server inside ~/.mldonkey/"
-       einfo "If you want to start mldonkey in a particular working directory,"
-       einfo "use the \`mlnet' command."
-       einfo "If you want to start mldonkey as a system service, use"
-       einfo "the /etc/init.d/mldonkey script. To control bandwidth, use"
-       einfo "the 'slow' and 'fast' arguments. Be sure to have a look at"
-       einfo "/etc/conf.d/mldonkey also."
-       echo
-}
diff --git a/net-p2p/mldonkey/mldonkey-2.5.16-r8.ebuild b/net-p2p/mldonkey/mldonkey-2.5.16-r8.ebuild
deleted file mode 100644 (file)
index a0c1a1a..0000000
+++ /dev/null
@@ -1,99 +0,0 @@
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/mldonkey/mldonkey-2.5.16-r8.ebuild,v 1.3 2004/08/16 23:38:18 gmsoft Exp $
-
-inherit eutils
-
-IUSE="gtk"
-
-DESCRIPTION="mldonkey is a new client to access the eDonkey network. It is written in Objective-Caml, and comes with its own GTK GUI, an HTTP interface and a telnet interface."
-HOMEPAGE="http://www.nongnu.org/mldonkey/"
-SRC_URI="http://savannah.nongnu.org/download/${PN}/${P}.tar.gz
-       http://ftp.berlios.de/pub/mldonkey/spiralvoice/patchpacks/patch_pack16t.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~x86 ~ppc ~alpha ~ia64 hppa"
-
-RDEPEND="gtk? ( =dev-ml/lablgtk-1* )
-       >=dev-lang/ocaml-3.08
-       dev-lang/perl
-       net-misc/wget"
-
-DEPEND="${RDEPEND}
-       >=sys-devel/autoconf-2.58"
-
-MLUSER="p2p"
-
-src_unpack() {
-       unpack ${P}.tar.gz
-
-       cd ${S}
-       #Don't change this, unless you know what you are doing
-       epatch ${DISTDIR}/patch_pack16t.bz2 || die
-       export WANT_AUTOCONF=2.5
-       cd config; autoconf; cd ..
-}
-
-
-src_compile() {
-       use gtk || export GTK_CONFIG="no"
-
-       # the dirs are not (yet) used, but it doesn't hurt to specify them anyway
-       econf \
-               --sysconfdir=/etc/mldonkey \
-               --sharedstatedir=/var/mldonkey \
-               --localstatedir=/var/mldonkey \
-               --enable-batch \
-               --enable-checks \
-               --enable-pthread || die
-
-       emake || die
-}
-
-src_install() {
-       dobin mlnet
-       use gtk && dobin mlchat mlgui mlguistarter mlim mlnet+gui
-       dobin ${FILESDIR}/mldonkey
-
-       dodoc ChangeLog Copying.txt Developers.txt Install.txt
-       cd ${S}/distrib
-       dodoc ChangeLog Authors.txt Bugs.txt Copying.txt Developers.txt Install.txt Readme.txt Todo.txt ed2k_links.txt
-       dohtml FAQ.html
-
-       insinto /usr/share/doc/${PF}/scripts
-       doins kill_mldonkey mldonkey_command mldonkey_previewer
-
-       insinto /usr/share/doc/${PF}/distrib
-       doins directconnect.ini
-
-       cd ${S}/docs
-       dodoc *.txt *.tex *.pdf
-       dohtml *.html
-
-       cd ${S}/docs/developers
-       dodoc *.txt *.tex
-
-       cd ${S}/docs/images
-       insinto /usr/share/doc/${PF}/html/images
-       doins *
-
-       insinto /etc/conf.d; newins ${FILESDIR}/mldonkey.confd mldonkey
-       exeinto /etc/init.d; newexe ${FILESDIR}/mldonkey.initd mldonkey
-}
-
-pkg_preinst() {
-       enewuser ${MLUSER} -1 /bin/bash /home/p2p users
-}
-
-pkg_postinst() {
-       echo
-       einfo "Running \`mldonkey' will start the server inside ~/.mldonkey/"
-       einfo "If you want to start mldonkey in a particular working directory,"
-       einfo "use the \`mlnet' command."
-       einfo "If you want to start mldonkey as a system service, use"
-       einfo "the /etc/init.d/mldonkey script. To control bandwidth, use"
-       einfo "the 'slow' and 'fast' arguments. Be sure to have a look at"
-       einfo "/etc/conf.d/mldonkey also."
-       echo
-}
index 9c5251dcf3b566b53ddfa21c7c0c35258f5cbd39..786a8c7ff5fda8537594b489c8b1403e1a3dd315 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/mldonkey/mldonkey-2.5.16-r9.ebuild,v 1.1 2004/11/23 20:11:00 squinky86 Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/mldonkey/mldonkey-2.5.16-r9.ebuild,v 1.2 2004/11/29 18:45:40 squinky86 Exp $
 
 inherit eutils
 
@@ -13,7 +13,7 @@ SRC_URI="http://savannah.nongnu.org/download/${PN}/${P}.tar.gz
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~x86 ~ppc ~alpha ~ia64 hppa"
+KEYWORDS="x86 ~ppc ~alpha ~ia64 hppa"
 
 RDEPEND="gtk? ( =dev-ml/lablgtk-1* )
        >=dev-lang/ocaml-3.08
diff --git a/net-p2p/mldonkey/mldonkey-2.5.28-r3.ebuild b/net-p2p/mldonkey/mldonkey-2.5.28-r3.ebuild
deleted file mode 100644 (file)
index 7338035..0000000
+++ /dev/null
@@ -1,101 +0,0 @@
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/mldonkey/mldonkey-2.5.28-r3.ebuild,v 1.1 2004/10/18 19:20:39 squinky86 Exp $
-
-inherit eutils
-
-IUSE="gtk gtk2"
-
-PATCHPACK="patch_pack28g.gz"
-
-DESCRIPTION="mldonkey is a new client to access the eDonkey network. It is written in Objective-Caml, and comes with its own GTK GUI, an HTTP interface and a telnet interface."
-HOMEPAGE="http://www.nongnu.org/mldonkey/"
-SRC_URI="http://download.berlios.de/pub/mldonkey/spiralvoice/cvs/${P}.tar.bz2
-       http://download.berlios.de/pub/mldonkey/spiralvoice/patchpacks/${PATCHPACK}"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~x86 ~ppc ~alpha ~ia64 ~amd64"
-
-RDEPEND=">=dev-lang/ocaml-3.08
-       dev-lang/perl
-       net-misc/wget
-       gtk? ( !gtk2? ( =dev-ml/lablgtk-1.2.7* ) )
-       gtk? ( gtk2? ( >=dev-ml/lablgtk-2.4 ) )"
-
-DEPEND="${RDEPEND}
-       >=sys-devel/autoconf-2.58"
-
-MLUSER="p2p"
-
-src_unpack() {
-       unpack ${P}.tar.bz2
-       cd ${S}
-       epatch ${DISTDIR}/${PATCHPACK}
-       use gtk || epatch ${FILESDIR}/${PV}-config.patch
-       export WANT_AUTOCONF=2.5
-       cd config; autoconf; cd ..
-}
-
-src_compile() {
-       use gtk || export GTK_CONFIG="no"
-
-       # the dirs are not (yet) used, but it doesn't hurt to specify them anyway
-       econf \
-               --sysconfdir=/etc/mldonkey \
-               --sharedstatedir=/var/mldonkey \
-               --localstatedir=/var/mldonkey \
-               --enable-batch \
-               --enable-checks \
-               --enable-pthread \
-               `use_enable gtk2` || die
-       export OCAMLRUNPARAM="l=256M"
-       emake || die
-}
-
-src_install() {
-       dobin mlnet
-       use gtk && dobin mlchat mlgui mlguistarter mlim mlnet+gui
-       dobin ${FILESDIR}/mldonkey
-
-       dodoc ChangeLog Copying.txt Developers.txt Install.txt
-       cd ${S}/distrib
-       dodoc ChangeLog Authors.txt Bugs.txt Copying.txt Developers.txt Install.txt Readme.txt Todo.txt ed2k_links.txt
-       dohtml FAQ.html
-
-       insinto /usr/share/doc/${PF}/scripts
-       doins kill_mldonkey mldonkey_command mldonkey_previewer
-
-       insinto /usr/share/doc/${PF}/distrib
-       doins directconnect.ini
-
-       cd ${S}/docs
-       dodoc *.txt *.tex *.pdf
-       dohtml *.html
-
-       cd ${S}/docs/developers
-       dodoc *.txt *.tex
-
-       cd ${S}/docs/images
-       insinto /usr/share/doc/${PF}/html/images
-       doins *
-
-       insinto /etc/conf.d; newins ${FILESDIR}/mldonkey.confd mldonkey
-       exeinto /etc/init.d; newexe ${FILESDIR}/mldonkey.initd mldonkey
-}
-
-pkg_preinst() {
-       enewuser ${MLUSER} -1 /bin/bash /home/p2p users
-}
-
-pkg_postinst() {
-       echo
-       einfo "Running \`mldonkey' will start the server inside ~/.mldonkey/"
-       einfo "If you want to start mldonkey in a particular working directory,"
-       einfo "use the \`mlnet' command."
-       einfo "If you want to start mldonkey as a system service, use"
-       einfo "the /etc/init.d/mldonkey script. To control bandwidth, use"
-       einfo "the 'slow' and 'fast' arguments. Be sure to have a look at"
-       einfo "/etc/conf.d/mldonkey also."
-       echo
-}
diff --git a/net-p2p/mldonkey/mldonkey-2.5.28.ebuild b/net-p2p/mldonkey/mldonkey-2.5.28.ebuild
deleted file mode 100644 (file)
index 78fceb1..0000000
+++ /dev/null
@@ -1,101 +0,0 @@
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/mldonkey/mldonkey-2.5.28.ebuild,v 1.5 2004/09/24 23:56:14 squinky86 Exp $
-
-inherit eutils
-
-IUSE="gtk gtk2"
-
-#PATCHPACK="patch_pack28a.gz"
-
-DESCRIPTION="mldonkey is a new client to access the eDonkey network. It is written in Objective-Caml, and comes with its own GTK GUI, an HTTP interface and a telnet interface."
-HOMEPAGE="http://www.nongnu.org/mldonkey/"
-SRC_URI="mirror://gentoo/${P}.tar.bz2"
-#      http://ftp.berlios.de/pub/mldonkey/spiralvoice/patchpacks/${PATCHPACK}"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~x86 ~ppc ~alpha ~ia64 ~amd64"
-
-RDEPEND=">=dev-lang/ocaml-3.08
-       dev-lang/perl
-       net-misc/wget
-       gtk? ( !gtk2? ( =dev-ml/lablgtk-1.2.7* ) )
-       gtk? ( gtk2? ( >=dev-ml/lablgtk-2.4 ) )"
-
-DEPEND="${RDEPEND}
-       >=sys-devel/autoconf-2.58"
-
-MLUSER="p2p"
-
-src_unpack() {
-       unpack ${P}.tar.bz2
-       cd ${S}
-#      epatch ${DISTDIR}/${PATCHPACK}
-       use gtk || epatch ${FILESDIR}/${PV}-config.patch
-       export WANT_AUTOCONF=2.5
-       cd config; autoconf; cd ..
-}
-
-src_compile() {
-       use gtk || export GTK_CONFIG="no"
-
-       # the dirs are not (yet) used, but it doesn't hurt to specify them anyway
-       econf \
-               --sysconfdir=/etc/mldonkey \
-               --sharedstatedir=/var/mldonkey \
-               --localstatedir=/var/mldonkey \
-               --enable-batch \
-               --enable-checks \
-               --enable-pthread \
-               `use_enable gtk2` || die
-       export OCAMLRUNPARAM="l=256M"
-       emake || die
-}
-
-src_install() {
-       dobin mlnet
-       use gtk && dobin mlchat mlgui mlguistarter mlim mlnet+gui
-       dobin ${FILESDIR}/mldonkey
-
-       dodoc ChangeLog Copying.txt Developers.txt Install.txt
-       cd ${S}/distrib
-       dodoc ChangeLog Authors.txt Bugs.txt Copying.txt Developers.txt Install.txt Readme.txt Todo.txt ed2k_links.txt
-       dohtml FAQ.html
-
-       insinto /usr/share/doc/${PF}/scripts
-       doins kill_mldonkey mldonkey_command mldonkey_previewer
-
-       insinto /usr/share/doc/${PF}/distrib
-       doins directconnect.ini
-
-       cd ${S}/docs
-       dodoc *.txt *.tex *.pdf
-       dohtml *.html
-
-       cd ${S}/docs/developers
-       dodoc *.txt *.tex
-
-       cd ${S}/docs/images
-       insinto /usr/share/doc/${PF}/html/images
-       doins *
-
-       insinto /etc/conf.d; newins ${FILESDIR}/mldonkey.confd mldonkey
-       exeinto /etc/init.d; newexe ${FILESDIR}/mldonkey.initd mldonkey
-}
-
-pkg_preinst() {
-       enewuser ${MLUSER} -1 /bin/bash /home/p2p users
-}
-
-pkg_postinst() {
-       echo
-       einfo "Running \`mldonkey' will start the server inside ~/.mldonkey/"
-       einfo "If you want to start mldonkey in a particular working directory,"
-       einfo "use the \`mlnet' command."
-       einfo "If you want to start mldonkey as a system service, use"
-       einfo "the /etc/init.d/mldonkey script. To control bandwidth, use"
-       einfo "the 'slow' and 'fast' arguments. Be sure to have a look at"
-       einfo "/etc/conf.d/mldonkey also."
-       echo
-}