- Update to 2.5.28.1
- Add rc script [1] PR: ports/82467 Submitted by: Jose M Rodriguez <josemi@freebsd.jazztel.es> Approved by: Holger Lamm <holger@e-gitt.net> (maintainer) [1] Submitted by: hq via maintainer
This commit is contained in:
parent
440676eb15
commit
a783900c29
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=137957
12 changed files with 214 additions and 76 deletions
|
@ -6,28 +6,23 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
PORTNAME= mldonkey
|
PORTNAME= mldonkey
|
||||||
PORTVERSION= 2.5.23
|
PORTVERSION= 2.5.28.1
|
||||||
CATEGORIES+= net
|
CATEGORIES+= net
|
||||||
MASTER_SITES= ${MASTER_SITE_SAVANNAH}
|
MASTER_SITES= ${MASTER_SITE_SAVANNAH}
|
||||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||||
DISTNAME= ${PORTNAME}-${DOWNLOADVERSION}
|
|
||||||
|
|
||||||
PATCH_SITES= http://www.schraegerpunkt.de/
|
|
||||||
PATCHFILES= mldonkey-${DOWNLOADVERSION}-${PORTVERSION:C/.+\.//}.patch.gz
|
|
||||||
|
|
||||||
MAINTAINER?= holger@e-gitt.net
|
MAINTAINER?= holger@e-gitt.net
|
||||||
COMMENT?= A OCAML client for multiple peer-to-peer networks
|
COMMENT?= A OCAML client for multiple peer-to-peer networks
|
||||||
|
|
||||||
BUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml \
|
BUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml
|
||||||
autoconf213:${PORTSDIR}/devel/autoconf213
|
|
||||||
|
|
||||||
DOWNLOADVERSION=2.5.22
|
CONFLICTS= mldonkey-devel-[0-9]*
|
||||||
|
|
||||||
CONFLICTS= mldonkey-devel-[0-9]* mldonkey-{core,gui}-devel-[0.9]*
|
|
||||||
|
|
||||||
|
USE_BZIP2= yes
|
||||||
|
WANT_AUTOCONF_VER= 259
|
||||||
|
USE_REINPLACE= yes
|
||||||
GNU_CONFIGURE= yes
|
GNU_CONFIGURE= yes
|
||||||
CONFIGURE_ARGS= --enable-pthread --enable-ocamlver=3
|
CONFIGURE_ARGS= --enable-pthread --enable-ocamlver=3
|
||||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${DOWNLOADVERSION}
|
|
||||||
USE_GMAKE= yes
|
USE_GMAKE= yes
|
||||||
ALL_TARGET= depend opt
|
ALL_TARGET= depend opt
|
||||||
|
|
||||||
|
@ -38,9 +33,16 @@ ALL_TARGET= depend opt
|
||||||
# have no 'without-' flag
|
# have no 'without-' flag
|
||||||
CONFIGURE_ARGS+=--disable-gui
|
CONFIGURE_ARGS+=--disable-gui
|
||||||
PLIST_SUB+= CORE="" GUI="@comment " GUICORE="@comment "
|
PLIST_SUB+= CORE="" GUI="@comment " GUICORE="@comment "
|
||||||
|
CONFLICTS+= mldonkey-core-devel-[0.9]* mldonkey-core-stable-[0.9]* \
|
||||||
|
mldonkey-[0-9]*
|
||||||
PKGNAMESUFFIX= -core
|
PKGNAMESUFFIX= -core
|
||||||
.else
|
.else
|
||||||
PLIST_SUB+= GUI=""
|
PLIST_SUB+= GUI=""
|
||||||
|
CONFLICTS+= mldonkey-gui-devel-[0.9]*
|
||||||
|
.if !defined(WITHOUT_CORE)
|
||||||
|
CONFLICTS+= mldonkey-[0-9]*
|
||||||
|
USE_RC_SUBR= yes
|
||||||
|
.endif
|
||||||
BUILD_DEPENDS+= lablgtk:${PORTSDIR}/x11-toolkits/ocaml-lablgtk \
|
BUILD_DEPENDS+= lablgtk:${PORTSDIR}/x11-toolkits/ocaml-lablgtk \
|
||||||
${LOCALBASE}/lib/ocaml/jabbr.cma:${PORTSDIR}/net/ocaml-jabbr
|
${LOCALBASE}/lib/ocaml/jabbr.cma:${PORTSDIR}/net/ocaml-jabbr
|
||||||
# we don't need lablgtk as RUN dependency, but we need gtk+glib
|
# we don't need lablgtk as RUN dependency, but we need gtk+glib
|
||||||
|
@ -55,6 +57,8 @@ PLIST_SUB+= CORE="" GUICORE=""
|
||||||
|
|
||||||
DOCFILES= Authors.txt Bugs.txt ChangeLog Developers.txt FAQ.html \
|
DOCFILES= Authors.txt Bugs.txt ChangeLog Developers.txt FAQ.html \
|
||||||
Install.txt Readme.txt Todo.txt ed2k_links.txt
|
Install.txt Readme.txt Todo.txt ed2k_links.txt
|
||||||
|
PORTDOCS= ${DOCFILES}
|
||||||
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
||||||
|
|
||||||
.include <bsd.port.pre.mk>
|
.include <bsd.port.pre.mk>
|
||||||
|
|
||||||
|
@ -68,14 +72,26 @@ pre-configure:
|
||||||
@cd ${WRKSRC}/config && ${AUTOCONF}
|
@cd ${WRKSRC}/config && ${AUTOCONF}
|
||||||
|
|
||||||
post-patch:
|
post-patch:
|
||||||
|
.ifndef(WITHOUT_CORE)
|
||||||
|
@${SED} -e "s|%%PREFIX%%|${PREFIX}|g ; s|%%RC_SUBR%%|${RC_SUBR}|g ; s|%%LOCALBASE%%|${LOCALBASE}|g" ${FILESDIR}/mlnet.sh > \
|
||||||
|
${WRKDIR}/mlnet.sh
|
||||||
@${SED} -e "s|%%PREFIX%%|${PREFIX}|" ${FILESDIR}/wrapper.sh > \
|
@${SED} -e "s|%%PREFIX%%|${PREFIX}|" ${FILESDIR}/wrapper.sh > \
|
||||||
${WRKDIR}/wrapper.sh
|
${WRKDIR}/wrapper.sh
|
||||||
|
.endif
|
||||||
|
${REINPLACE_CMD} -E \
|
||||||
|
-e 's|%%AUTOCONF%%|${AUTOCONF}|' \
|
||||||
|
${BUILD_WRKSRC}/config/Makefile.in
|
||||||
|
|
||||||
|
post-build:
|
||||||
|
@${SED} -e 's,%%DOCSDIR%%,${DOCSDIR},' \
|
||||||
|
< ${.CURDIR}/pkg-message > ${PKGMESSAGE}
|
||||||
|
|
||||||
do-install:
|
do-install:
|
||||||
.ifndef(WITHOUT_CORE)
|
.ifndef(WITHOUT_CORE)
|
||||||
@${INSTALL_PROGRAM} ${WRKSRC}/mlnet ${PREFIX}/bin/mlnet-real
|
@${INSTALL_PROGRAM} ${WRKSRC}/mlnet ${PREFIX}/bin/mlnet-real
|
||||||
@${INSTALL_SCRIPT} ${FILESDIR}/kill_mldonkey ${PREFIX}/bin
|
@${INSTALL_SCRIPT} ${FILESDIR}/kill_mldonkey ${PREFIX}/bin
|
||||||
@${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${PREFIX}/bin/mlnet
|
@${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${PREFIX}/bin/mlnet
|
||||||
|
@${INSTALL_SCRIPT} ${WRKDIR}/mlnet.sh ${PREFIX}/etc/rc.d
|
||||||
.endif
|
.endif
|
||||||
.ifndef(WITHOUT_GUI)
|
.ifndef(WITHOUT_GUI)
|
||||||
@${INSTALL_PROGRAM} ${WRKSRC}/mlchat ${PREFIX}/bin
|
@${INSTALL_PROGRAM} ${WRKSRC}/mlchat ${PREFIX}/bin
|
||||||
|
|
|
@ -1,4 +1,2 @@
|
||||||
MD5 (mldonkey-2.5.22.tar.gz) = 958ffb63dbcfcb0f6e48788774dfbb42
|
MD5 (mldonkey-2.5.28.1.tar.bz2) = 4f24b2e1eeac4b54151ca2473ade45ec
|
||||||
SIZE (mldonkey-2.5.22.tar.gz) = 3474104
|
SIZE (mldonkey-2.5.28.1.tar.bz2) = 2791684
|
||||||
MD5 (mldonkey-2.5.22-23.patch.gz) = 091c77f0dd29be7443ac62e99cc41dc0
|
|
||||||
SIZE (mldonkey-2.5.22-23.patch.gz) = 88210
|
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
|
# $FreeBSD$
|
||||||
|
|
||||||
# Copyright (c) 2003
|
# Copyright (c) 2003
|
||||||
# Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
|
# Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
|
||||||
# Holger Lamm <holger@e-gitt.net>
|
# Holger Lamm <holger@e-gitt.net>
|
||||||
|
@ -26,26 +29,26 @@
|
||||||
# SUCH DAMAGE.
|
# SUCH DAMAGE.
|
||||||
#
|
#
|
||||||
|
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Add Username and password here
|
# Add Username and password here
|
||||||
# like this:
|
# like this:
|
||||||
#
|
#
|
||||||
HTTPUSER="you"
|
#MLNETUSER="admin"
|
||||||
HTTPPASS="yourpassword"
|
#MLNETPASS=""
|
||||||
|
#MLNETHOST="127.0.0.1"
|
||||||
# Add location and port of mldonkey core
|
#MLNETPORT="4080"
|
||||||
HTTPURL="127.0.0.1:4080"
|
|
||||||
|
|
||||||
# internal configuration
|
# internal configuration
|
||||||
HTTP_COMMAND="/usr/bin/fetch"
|
HTTP_COMMAND="/usr/bin/fetch"
|
||||||
HTTP_COMMAND_ARGS="-1 -q -s"
|
HTTP_COMMAND_ARGS="-1 -q -s -o /dev/null"
|
||||||
|
|
||||||
if [ -n "${HTTPUSER}" -a -n "${HTTPPASS}" ]
|
if [ -n "${MLNETPASS}" ]; then
|
||||||
then
|
export HTTP_AUTH=basic:*:${MLNETUSER:-admin}:${MLNETPASS}
|
||||||
export HTTP_AUTH=basic:*:${HTTPUSER}:${HTTPPASS}
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
${HTTP_COMMAND} ${HTTP_COMMAND_ARGS} "http://${HTTPURL}/submit?q=kill"
|
exec > /dev/null 2>&1
|
||||||
|
|
||||||
|
${HTTP_COMMAND} ${HTTP_COMMAND_ARGS} \
|
||||||
|
"http://${MLNETHOST:-127.0.0.1}:${MLNETPORT:-4080}/submit?q=kill" \
|
||||||
|
2>&1 > /dev/null
|
||||||
|
|
||||||
|
|
61
net-p2p/mldonkey/files/mlnet.sh
Normal file
61
net-p2p/mldonkey/files/mlnet.sh
Normal file
|
@ -0,0 +1,61 @@
|
||||||
|
#!/bin/sh
|
||||||
|
# $FreeBSD$
|
||||||
|
|
||||||
|
# PROVIDE: mlnet
|
||||||
|
# REQUIRE: LOGIN
|
||||||
|
# KEYWORD: FreeBSD shutdown
|
||||||
|
|
||||||
|
mlnet_enable=${mlnet_enable:-"NO"}
|
||||||
|
mlnet_http_port=${mlnet_http_port:-"4080"}
|
||||||
|
mlnet_logfile=${mlnet_logfile:-"/var/log/mlnet"}
|
||||||
|
|
||||||
|
. %%RC_SUBR%%
|
||||||
|
|
||||||
|
name=mlnet
|
||||||
|
rcvar=`set_rcvar`
|
||||||
|
command="%%PREFIX%%/bin/${name}"
|
||||||
|
start_cmd="${name}_start"
|
||||||
|
stop_cmd="${name}_stop"
|
||||||
|
|
||||||
|
mlnet_conf="%%PREFIX%%/etc/mlnet.conf"
|
||||||
|
required_files="${mlnet_conf}"
|
||||||
|
mlnet_user=${mlnet_user:-"mlnet"}
|
||||||
|
|
||||||
|
if [ -r ${mlnet_conf} ] ; then
|
||||||
|
. ${mlnet_conf}
|
||||||
|
fi
|
||||||
|
|
||||||
|
mlnet_url="http://"
|
||||||
|
if [ -n "${mlnet_http_user}" -a -n "${mlnet_http_password}" ] ; then
|
||||||
|
mlnet_url="${mlnet_url}${mlnet_http_user}:${mlnet_http_password}@"
|
||||||
|
fi
|
||||||
|
mlnet_url="${mlnet_url}localhost:${mlnet_http_port}"
|
||||||
|
|
||||||
|
mlnet_start() {
|
||||||
|
if checkyesno mlnet_enable ; then
|
||||||
|
echo -n " mlnet"
|
||||||
|
su ${mlnet_user} -c "${command} \
|
||||||
|
${mlnet_flags} \
|
||||||
|
-daemon \
|
||||||
|
-http_port ${mlnet_http_port}" \
|
||||||
|
>>${mlnet_logfile} 2>&1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
mlnet_stop() {
|
||||||
|
if checkyesno mlnet_enable ; then
|
||||||
|
echo -n " mlnet"
|
||||||
|
%%LOCALBASE%%/bin/wget --spider -q \
|
||||||
|
"${mlnet_url}/submit?q=close_fds" \
|
||||||
|
>>${mlnet_logfile} 2>&1
|
||||||
|
%%LOCALBASE%%/bin/wget --spider -q \
|
||||||
|
"${mlnet_url}/submit?q=save" \
|
||||||
|
>>${mlnet_logfile} 2>&1
|
||||||
|
%%LOCALBASE%%/bin/wget --spider -q \
|
||||||
|
"${mlnet_url}/submit?q=kill" \
|
||||||
|
>>${mlnet_logfile} 2>&1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
load_rc_config ${name}
|
||||||
|
run_rc_command "$1"
|
|
@ -1,7 +1,7 @@
|
||||||
ATTENTIONATTENTION:
|
ATTENTIONATTENTION:
|
||||||
|
|
||||||
- If you want to know how to use mldonkey, read "INSTALL" or
|
- If you want to know how to use mldonkey, read "INSTALL" or
|
||||||
"FAQ.html" in the port docs (/usr/local/share/doc/mldonkey)
|
"FAQ.html" in the port docs (%%DOCSDIR%%)
|
||||||
|
|
||||||
- It is not a bad idea to install mplayer. You will be able
|
- It is not a bad idea to install mplayer. You will be able
|
||||||
to preview half-downloaded files (if you have the beginning).
|
to preview half-downloaded files (if you have the beginning).
|
||||||
|
|
|
@ -1,19 +1,10 @@
|
||||||
%%CORE%%bin/kill_mldonkey
|
%%CORE%%bin/kill_mldonkey
|
||||||
%%CORE%%bin/mlnet
|
%%CORE%%bin/mlnet
|
||||||
%%CORE%%bin/mlnet-real
|
%%CORE%%bin/mlnet-real
|
||||||
|
%%CORE%%etc/rc.d/mlnet.sh
|
||||||
%%GUICORE%%bin/mlguistarter
|
%%GUICORE%%bin/mlguistarter
|
||||||
%%GUICORE%%bin/mldonkey_previewer
|
%%GUICORE%%bin/mldonkey_previewer
|
||||||
%%GUICORE%%bin/mlnet+gui
|
%%GUICORE%%bin/mlnet+gui
|
||||||
%%GUI%%bin/mlchat
|
%%GUI%%bin/mlchat
|
||||||
%%GUI%%bin/mlgui
|
%%GUI%%bin/mlgui
|
||||||
%%GUI%%bin/mlim
|
%%GUI%%bin/mlim
|
||||||
%%PORTDOCS%%share/doc/mldonkey/Authors.txt
|
|
||||||
%%PORTDOCS%%share/doc/mldonkey/Bugs.txt
|
|
||||||
%%PORTDOCS%%share/doc/mldonkey/ChangeLog
|
|
||||||
%%PORTDOCS%%share/doc/mldonkey/Developers.txt
|
|
||||||
%%PORTDOCS%%share/doc/mldonkey/FAQ.html
|
|
||||||
%%PORTDOCS%%share/doc/mldonkey/Install.txt
|
|
||||||
%%PORTDOCS%%share/doc/mldonkey/Readme.txt
|
|
||||||
%%PORTDOCS%%share/doc/mldonkey/Todo.txt
|
|
||||||
%%PORTDOCS%%share/doc/mldonkey/ed2k_links.txt
|
|
||||||
%%PORTDOCS%%@dirrm share/doc/mldonkey
|
|
||||||
|
|
|
@ -6,28 +6,23 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
PORTNAME= mldonkey
|
PORTNAME= mldonkey
|
||||||
PORTVERSION= 2.5.23
|
PORTVERSION= 2.5.28.1
|
||||||
CATEGORIES+= net
|
CATEGORIES+= net
|
||||||
MASTER_SITES= ${MASTER_SITE_SAVANNAH}
|
MASTER_SITES= ${MASTER_SITE_SAVANNAH}
|
||||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||||
DISTNAME= ${PORTNAME}-${DOWNLOADVERSION}
|
|
||||||
|
|
||||||
PATCH_SITES= http://www.schraegerpunkt.de/
|
|
||||||
PATCHFILES= mldonkey-${DOWNLOADVERSION}-${PORTVERSION:C/.+\.//}.patch.gz
|
|
||||||
|
|
||||||
MAINTAINER?= holger@e-gitt.net
|
MAINTAINER?= holger@e-gitt.net
|
||||||
COMMENT?= A OCAML client for multiple peer-to-peer networks
|
COMMENT?= A OCAML client for multiple peer-to-peer networks
|
||||||
|
|
||||||
BUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml \
|
BUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml
|
||||||
autoconf213:${PORTSDIR}/devel/autoconf213
|
|
||||||
|
|
||||||
DOWNLOADVERSION=2.5.22
|
CONFLICTS= mldonkey-devel-[0-9]*
|
||||||
|
|
||||||
CONFLICTS= mldonkey-devel-[0-9]* mldonkey-{core,gui}-devel-[0.9]*
|
|
||||||
|
|
||||||
|
USE_BZIP2= yes
|
||||||
|
WANT_AUTOCONF_VER= 259
|
||||||
|
USE_REINPLACE= yes
|
||||||
GNU_CONFIGURE= yes
|
GNU_CONFIGURE= yes
|
||||||
CONFIGURE_ARGS= --enable-pthread --enable-ocamlver=3
|
CONFIGURE_ARGS= --enable-pthread --enable-ocamlver=3
|
||||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${DOWNLOADVERSION}
|
|
||||||
USE_GMAKE= yes
|
USE_GMAKE= yes
|
||||||
ALL_TARGET= depend opt
|
ALL_TARGET= depend opt
|
||||||
|
|
||||||
|
@ -38,9 +33,16 @@ ALL_TARGET= depend opt
|
||||||
# have no 'without-' flag
|
# have no 'without-' flag
|
||||||
CONFIGURE_ARGS+=--disable-gui
|
CONFIGURE_ARGS+=--disable-gui
|
||||||
PLIST_SUB+= CORE="" GUI="@comment " GUICORE="@comment "
|
PLIST_SUB+= CORE="" GUI="@comment " GUICORE="@comment "
|
||||||
|
CONFLICTS+= mldonkey-core-devel-[0.9]* mldonkey-core-stable-[0.9]* \
|
||||||
|
mldonkey-[0-9]*
|
||||||
PKGNAMESUFFIX= -core
|
PKGNAMESUFFIX= -core
|
||||||
.else
|
.else
|
||||||
PLIST_SUB+= GUI=""
|
PLIST_SUB+= GUI=""
|
||||||
|
CONFLICTS+= mldonkey-gui-devel-[0.9]*
|
||||||
|
.if !defined(WITHOUT_CORE)
|
||||||
|
CONFLICTS+= mldonkey-[0-9]*
|
||||||
|
USE_RC_SUBR= yes
|
||||||
|
.endif
|
||||||
BUILD_DEPENDS+= lablgtk:${PORTSDIR}/x11-toolkits/ocaml-lablgtk \
|
BUILD_DEPENDS+= lablgtk:${PORTSDIR}/x11-toolkits/ocaml-lablgtk \
|
||||||
${LOCALBASE}/lib/ocaml/jabbr.cma:${PORTSDIR}/net/ocaml-jabbr
|
${LOCALBASE}/lib/ocaml/jabbr.cma:${PORTSDIR}/net/ocaml-jabbr
|
||||||
# we don't need lablgtk as RUN dependency, but we need gtk+glib
|
# we don't need lablgtk as RUN dependency, but we need gtk+glib
|
||||||
|
@ -55,6 +57,8 @@ PLIST_SUB+= CORE="" GUICORE=""
|
||||||
|
|
||||||
DOCFILES= Authors.txt Bugs.txt ChangeLog Developers.txt FAQ.html \
|
DOCFILES= Authors.txt Bugs.txt ChangeLog Developers.txt FAQ.html \
|
||||||
Install.txt Readme.txt Todo.txt ed2k_links.txt
|
Install.txt Readme.txt Todo.txt ed2k_links.txt
|
||||||
|
PORTDOCS= ${DOCFILES}
|
||||||
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
||||||
|
|
||||||
.include <bsd.port.pre.mk>
|
.include <bsd.port.pre.mk>
|
||||||
|
|
||||||
|
@ -68,14 +72,26 @@ pre-configure:
|
||||||
@cd ${WRKSRC}/config && ${AUTOCONF}
|
@cd ${WRKSRC}/config && ${AUTOCONF}
|
||||||
|
|
||||||
post-patch:
|
post-patch:
|
||||||
|
.ifndef(WITHOUT_CORE)
|
||||||
|
@${SED} -e "s|%%PREFIX%%|${PREFIX}|g ; s|%%RC_SUBR%%|${RC_SUBR}|g ; s|%%LOCALBASE%%|${LOCALBASE}|g" ${FILESDIR}/mlnet.sh > \
|
||||||
|
${WRKDIR}/mlnet.sh
|
||||||
@${SED} -e "s|%%PREFIX%%|${PREFIX}|" ${FILESDIR}/wrapper.sh > \
|
@${SED} -e "s|%%PREFIX%%|${PREFIX}|" ${FILESDIR}/wrapper.sh > \
|
||||||
${WRKDIR}/wrapper.sh
|
${WRKDIR}/wrapper.sh
|
||||||
|
.endif
|
||||||
|
${REINPLACE_CMD} -E \
|
||||||
|
-e 's|%%AUTOCONF%%|${AUTOCONF}|' \
|
||||||
|
${BUILD_WRKSRC}/config/Makefile.in
|
||||||
|
|
||||||
|
post-build:
|
||||||
|
@${SED} -e 's,%%DOCSDIR%%,${DOCSDIR},' \
|
||||||
|
< ${.CURDIR}/pkg-message > ${PKGMESSAGE}
|
||||||
|
|
||||||
do-install:
|
do-install:
|
||||||
.ifndef(WITHOUT_CORE)
|
.ifndef(WITHOUT_CORE)
|
||||||
@${INSTALL_PROGRAM} ${WRKSRC}/mlnet ${PREFIX}/bin/mlnet-real
|
@${INSTALL_PROGRAM} ${WRKSRC}/mlnet ${PREFIX}/bin/mlnet-real
|
||||||
@${INSTALL_SCRIPT} ${FILESDIR}/kill_mldonkey ${PREFIX}/bin
|
@${INSTALL_SCRIPT} ${FILESDIR}/kill_mldonkey ${PREFIX}/bin
|
||||||
@${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${PREFIX}/bin/mlnet
|
@${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${PREFIX}/bin/mlnet
|
||||||
|
@${INSTALL_SCRIPT} ${WRKDIR}/mlnet.sh ${PREFIX}/etc/rc.d
|
||||||
.endif
|
.endif
|
||||||
.ifndef(WITHOUT_GUI)
|
.ifndef(WITHOUT_GUI)
|
||||||
@${INSTALL_PROGRAM} ${WRKSRC}/mlchat ${PREFIX}/bin
|
@${INSTALL_PROGRAM} ${WRKSRC}/mlchat ${PREFIX}/bin
|
||||||
|
|
|
@ -1,4 +1,2 @@
|
||||||
MD5 (mldonkey-2.5.22.tar.gz) = 958ffb63dbcfcb0f6e48788774dfbb42
|
MD5 (mldonkey-2.5.28.1.tar.bz2) = 4f24b2e1eeac4b54151ca2473ade45ec
|
||||||
SIZE (mldonkey-2.5.22.tar.gz) = 3474104
|
SIZE (mldonkey-2.5.28.1.tar.bz2) = 2791684
|
||||||
MD5 (mldonkey-2.5.22-23.patch.gz) = 091c77f0dd29be7443ac62e99cc41dc0
|
|
||||||
SIZE (mldonkey-2.5.22-23.patch.gz) = 88210
|
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
|
# $FreeBSD$
|
||||||
|
|
||||||
# Copyright (c) 2003
|
# Copyright (c) 2003
|
||||||
# Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
|
# Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
|
||||||
# Holger Lamm <holger@e-gitt.net>
|
# Holger Lamm <holger@e-gitt.net>
|
||||||
|
@ -26,26 +29,26 @@
|
||||||
# SUCH DAMAGE.
|
# SUCH DAMAGE.
|
||||||
#
|
#
|
||||||
|
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Add Username and password here
|
# Add Username and password here
|
||||||
# like this:
|
# like this:
|
||||||
#
|
#
|
||||||
HTTPUSER="you"
|
#MLNETUSER="admin"
|
||||||
HTTPPASS="yourpassword"
|
#MLNETPASS=""
|
||||||
|
#MLNETHOST="127.0.0.1"
|
||||||
# Add location and port of mldonkey core
|
#MLNETPORT="4080"
|
||||||
HTTPURL="127.0.0.1:4080"
|
|
||||||
|
|
||||||
# internal configuration
|
# internal configuration
|
||||||
HTTP_COMMAND="/usr/bin/fetch"
|
HTTP_COMMAND="/usr/bin/fetch"
|
||||||
HTTP_COMMAND_ARGS="-1 -q -s"
|
HTTP_COMMAND_ARGS="-1 -q -s -o /dev/null"
|
||||||
|
|
||||||
if [ -n "${HTTPUSER}" -a -n "${HTTPPASS}" ]
|
if [ -n "${MLNETPASS}" ]; then
|
||||||
then
|
export HTTP_AUTH=basic:*:${MLNETUSER:-admin}:${MLNETPASS}
|
||||||
export HTTP_AUTH=basic:*:${HTTPUSER}:${HTTPPASS}
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
${HTTP_COMMAND} ${HTTP_COMMAND_ARGS} "http://${HTTPURL}/submit?q=kill"
|
exec > /dev/null 2>&1
|
||||||
|
|
||||||
|
${HTTP_COMMAND} ${HTTP_COMMAND_ARGS} \
|
||||||
|
"http://${MLNETHOST:-127.0.0.1}:${MLNETPORT:-4080}/submit?q=kill" \
|
||||||
|
2>&1 > /dev/null
|
||||||
|
|
||||||
|
|
61
net/mldonkey/files/mlnet.sh
Normal file
61
net/mldonkey/files/mlnet.sh
Normal file
|
@ -0,0 +1,61 @@
|
||||||
|
#!/bin/sh
|
||||||
|
# $FreeBSD$
|
||||||
|
|
||||||
|
# PROVIDE: mlnet
|
||||||
|
# REQUIRE: LOGIN
|
||||||
|
# KEYWORD: FreeBSD shutdown
|
||||||
|
|
||||||
|
mlnet_enable=${mlnet_enable:-"NO"}
|
||||||
|
mlnet_http_port=${mlnet_http_port:-"4080"}
|
||||||
|
mlnet_logfile=${mlnet_logfile:-"/var/log/mlnet"}
|
||||||
|
|
||||||
|
. %%RC_SUBR%%
|
||||||
|
|
||||||
|
name=mlnet
|
||||||
|
rcvar=`set_rcvar`
|
||||||
|
command="%%PREFIX%%/bin/${name}"
|
||||||
|
start_cmd="${name}_start"
|
||||||
|
stop_cmd="${name}_stop"
|
||||||
|
|
||||||
|
mlnet_conf="%%PREFIX%%/etc/mlnet.conf"
|
||||||
|
required_files="${mlnet_conf}"
|
||||||
|
mlnet_user=${mlnet_user:-"mlnet"}
|
||||||
|
|
||||||
|
if [ -r ${mlnet_conf} ] ; then
|
||||||
|
. ${mlnet_conf}
|
||||||
|
fi
|
||||||
|
|
||||||
|
mlnet_url="http://"
|
||||||
|
if [ -n "${mlnet_http_user}" -a -n "${mlnet_http_password}" ] ; then
|
||||||
|
mlnet_url="${mlnet_url}${mlnet_http_user}:${mlnet_http_password}@"
|
||||||
|
fi
|
||||||
|
mlnet_url="${mlnet_url}localhost:${mlnet_http_port}"
|
||||||
|
|
||||||
|
mlnet_start() {
|
||||||
|
if checkyesno mlnet_enable ; then
|
||||||
|
echo -n " mlnet"
|
||||||
|
su ${mlnet_user} -c "${command} \
|
||||||
|
${mlnet_flags} \
|
||||||
|
-daemon \
|
||||||
|
-http_port ${mlnet_http_port}" \
|
||||||
|
>>${mlnet_logfile} 2>&1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
mlnet_stop() {
|
||||||
|
if checkyesno mlnet_enable ; then
|
||||||
|
echo -n " mlnet"
|
||||||
|
%%LOCALBASE%%/bin/wget --spider -q \
|
||||||
|
"${mlnet_url}/submit?q=close_fds" \
|
||||||
|
>>${mlnet_logfile} 2>&1
|
||||||
|
%%LOCALBASE%%/bin/wget --spider -q \
|
||||||
|
"${mlnet_url}/submit?q=save" \
|
||||||
|
>>${mlnet_logfile} 2>&1
|
||||||
|
%%LOCALBASE%%/bin/wget --spider -q \
|
||||||
|
"${mlnet_url}/submit?q=kill" \
|
||||||
|
>>${mlnet_logfile} 2>&1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
load_rc_config ${name}
|
||||||
|
run_rc_command "$1"
|
|
@ -1,7 +1,7 @@
|
||||||
ATTENTIONATTENTION:
|
ATTENTIONATTENTION:
|
||||||
|
|
||||||
- If you want to know how to use mldonkey, read "INSTALL" or
|
- If you want to know how to use mldonkey, read "INSTALL" or
|
||||||
"FAQ.html" in the port docs (/usr/local/share/doc/mldonkey)
|
"FAQ.html" in the port docs (%%DOCSDIR%%)
|
||||||
|
|
||||||
- It is not a bad idea to install mplayer. You will be able
|
- It is not a bad idea to install mplayer. You will be able
|
||||||
to preview half-downloaded files (if you have the beginning).
|
to preview half-downloaded files (if you have the beginning).
|
||||||
|
|
|
@ -1,19 +1,10 @@
|
||||||
%%CORE%%bin/kill_mldonkey
|
%%CORE%%bin/kill_mldonkey
|
||||||
%%CORE%%bin/mlnet
|
%%CORE%%bin/mlnet
|
||||||
%%CORE%%bin/mlnet-real
|
%%CORE%%bin/mlnet-real
|
||||||
|
%%CORE%%etc/rc.d/mlnet.sh
|
||||||
%%GUICORE%%bin/mlguistarter
|
%%GUICORE%%bin/mlguistarter
|
||||||
%%GUICORE%%bin/mldonkey_previewer
|
%%GUICORE%%bin/mldonkey_previewer
|
||||||
%%GUICORE%%bin/mlnet+gui
|
%%GUICORE%%bin/mlnet+gui
|
||||||
%%GUI%%bin/mlchat
|
%%GUI%%bin/mlchat
|
||||||
%%GUI%%bin/mlgui
|
%%GUI%%bin/mlgui
|
||||||
%%GUI%%bin/mlim
|
%%GUI%%bin/mlim
|
||||||
%%PORTDOCS%%share/doc/mldonkey/Authors.txt
|
|
||||||
%%PORTDOCS%%share/doc/mldonkey/Bugs.txt
|
|
||||||
%%PORTDOCS%%share/doc/mldonkey/ChangeLog
|
|
||||||
%%PORTDOCS%%share/doc/mldonkey/Developers.txt
|
|
||||||
%%PORTDOCS%%share/doc/mldonkey/FAQ.html
|
|
||||||
%%PORTDOCS%%share/doc/mldonkey/Install.txt
|
|
||||||
%%PORTDOCS%%share/doc/mldonkey/Readme.txt
|
|
||||||
%%PORTDOCS%%share/doc/mldonkey/Todo.txt
|
|
||||||
%%PORTDOCS%%share/doc/mldonkey/ed2k_links.txt
|
|
||||||
%%PORTDOCS%%@dirrm share/doc/mldonkey
|
|
||||||
|
|
Loading…
Reference in a new issue