diff options
author | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2003-02-24 19:55:24 +0000 |
---|---|---|
committer | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2003-02-24 19:55:24 +0000 |
commit | 687877ff77d3c2c2d236f1a70d2a5e04344eafed (patch) | |
tree | 26b6e3729854affce8fe3d6a6e5d8da723e53c2c /net-p2p/mldonkey-serverspy | |
parent | update to cdpr-1.0.8 (diff) |
New port mldonkey-serverspy version 1.2: MLDonkey Server Spy
broadcasts your whereabouts on the eDonkey network
Notes
Notes:
svn path=/head/; revision=76409
Diffstat (limited to 'net-p2p/mldonkey-serverspy')
-rw-r--r-- | net-p2p/mldonkey-serverspy/Makefile | 70 | ||||
-rw-r--r-- | net-p2p/mldonkey-serverspy/distinfo | 1 | ||||
-rw-r--r-- | net-p2p/mldonkey-serverspy/files/patch-mlservspy.pl | 11 | ||||
-rw-r--r-- | net-p2p/mldonkey-serverspy/files/wrapper.sh | 40 | ||||
-rw-r--r-- | net-p2p/mldonkey-serverspy/pkg-descr | 15 | ||||
-rw-r--r-- | net-p2p/mldonkey-serverspy/pkg-plist | 7 |
6 files changed, 144 insertions, 0 deletions
diff --git a/net-p2p/mldonkey-serverspy/Makefile b/net-p2p/mldonkey-serverspy/Makefile new file mode 100644 index 000000000000..3cd340789f14 --- /dev/null +++ b/net-p2p/mldonkey-serverspy/Makefile @@ -0,0 +1,70 @@ +# New ports collection makefile for: MLDonkey Server Spy +# Date created: Fri Feb 21 14:47:25 UTC 2003 +# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= mldonkey +PORTVERSION= 1.2 +CATEGORIES= net +MASTER_SITES= http://www.moviegalaxy.com.ar/mlservspy/ +PKGNAMESUFFIX= -serverspy +DISTNAME= mlservspy-${PORTVERSION} + +MAINTAINER= lioux@FreeBSD.org +COMMENT= MLDonkey Server Spy broadcasts your whereabouts on the eDonkey network + +RUN_DEPENDS= \ + ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Image/Magick.pm:${PORTSDIR}/graphics/ImageMagick \ + ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/auto/TimeDate:${PORTSDIR}/devel/p5-TimeDate \ + ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/AppConfig.pm:${PORTSDIR}/devel/p5-AppConfig \ + ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Net/FTP.pm:${PORTSDIR}/net/p5-Net + +USE_PERL5= yes +NO_BUILD= yes + +BINARY_NAME= mlservspy.pl +CONFIG_NAME= mlservspy.ini +IMAGE_NAME= mlservspy.jpg +DATA_FILES= mlservspy.ini mlservspy.jpg + +post-patch: +# point to correct perl path + @${PERL} -pi -e \ + 's|/usr/bin/perl|${PERL}|' \ + ${WRKSRC}/${BINARY_NAME} +# comment and change default path +# remove needless spaces in line ends + @${PERL} -pi -e \ + 's|^(path).*$$|#\1=~/.mldonkey-serverspy/|; \ + s|[\s\t]+\n$$|\n|' \ + ${WRKSRC}/mlservspy.ini + +post-configure: + @${SED} \ + -e 's|%%PREFIX%%|${PREFIX}|' \ + -e 's|%%CONFIG%%|${CONFIG_NAME}|' \ + -e 's|%%IMAGE%%|${IMAGE_NAME}|' \ + ${FILESDIR}/wrapper.sh > ${WRKDIR}/wrapper.sh + +do-install: +.ifndef(NOPORTDOCS) + @${MKDIR} ${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX} + @${CHMOD} 0755 ${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX} + @${INSTALL_DATA} ${WRKSRC}/README.txt \ + ${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX} +.endif +# install data files (images, sample configuration, etc) + @${MKDIR} ${PREFIX}/share/${PORTNAME}${PKGNAMESUFFIX} +.for file in ${DATA_FILES} + @${INSTALL_DATA} ${WRKSRC}/${file} \ + ${PREFIX}/share/${PORTNAME}${PKGNAMESUFFIX} +.endfor +# install script + @${INSTALL_SCRIPT} ${WRKSRC}/${BINARY_NAME} \ + ${PREFIX}/bin/${BINARY_NAME}-real + @${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh \ + ${PREFIX}/bin/${BINARY_NAME} + +.include <bsd.port.mk> diff --git a/net-p2p/mldonkey-serverspy/distinfo b/net-p2p/mldonkey-serverspy/distinfo new file mode 100644 index 000000000000..a6ec1124b036 --- /dev/null +++ b/net-p2p/mldonkey-serverspy/distinfo @@ -0,0 +1 @@ +MD5 (mlservspy-1.2.tar.gz) = 73cbdc8a2760f4feb9c0013d009ae0bd diff --git a/net-p2p/mldonkey-serverspy/files/patch-mlservspy.pl b/net-p2p/mldonkey-serverspy/files/patch-mlservspy.pl new file mode 100644 index 000000000000..b59f9ccb6c85 --- /dev/null +++ b/net-p2p/mldonkey-serverspy/files/patch-mlservspy.pl @@ -0,0 +1,11 @@ +--- mlservspy.pl.orig Mon Feb 24 16:16:22 2003 ++++ mlservspy.pl Mon Feb 24 16:16:35 2003 +@@ -36,7 +36,7 @@ + ARGCOUNT => ARGCOUNT_ONE, + }, + 'path' => { +- DEFAULT => "/lab/mlservspy/", ++ DEFAULT => "$ENV{'HOME'}/.mldonkey-serverspy/", + ARGCOUNT => ARGCOUNT_ONE, + }, + 'image_file' => { diff --git a/net-p2p/mldonkey-serverspy/files/wrapper.sh b/net-p2p/mldonkey-serverspy/files/wrapper.sh new file mode 100644 index 000000000000..a47d229bf379 --- /dev/null +++ b/net-p2p/mldonkey-serverspy/files/wrapper.sh @@ -0,0 +1,40 @@ +#!/bin/sh + +PREFIX="%%PREFIX%%" +CONFIG="%%CONFIG%%" +IMAGE="%%IMAGE%%" +PROGRAM="${0}" +DIRNAME=${HOME}/.mldonkey-serverspy + +if [ ! -d ${DIRNAME} ] +then + mkdir -p ${DIRNAME} +fi + +if [ ! -h ${DIRNAME}/${PROGRAM##*/} ] +then + ln -sf ${PREFIX}/bin/${PROGRAM##*/}-real ${DIRNAME}/${PROGRAM##*/} +fi + +if [ ! -f ${DIRNAME}/${IMAGE} -o ! -h ${DIRNAME}/${IMAGE} ] +then + ln -sf ${PREFIX}/share/mldonkey-serverspy/${IMAGE} \ + ${DIRNAME}/${IMAGE} +fi + +if [ ! -f ${DIRNAME}/${CONFIG} ] +then + rm -f ${DIRNAME}/${CONFIG} + cp -f ${PREFIX}/share/mldonkey-serverspy/${CONFIG} \ + ${DIRNAME}/${CONFIG} + + echo Edit the configuration file ${DIRNAME}/${CONFIG} then run ${PROGRAM##*/} again. +else + echo " ${*} " | grep " \-createdironly " || + { + cd ${DIRNAME} && + echo Running under ${DIRNAME} && + exec ./${PROGRAM##*/} "${@}" || + echo PROBLEM. Cannot create directory ${DIRNAME}, make sure you have the proper permissions to create it and try again + } +fi diff --git a/net-p2p/mldonkey-serverspy/pkg-descr b/net-p2p/mldonkey-serverspy/pkg-descr new file mode 100644 index 000000000000..15a5e1921dd9 --- /dev/null +++ b/net-p2p/mldonkey-serverspy/pkg-descr @@ -0,0 +1,15 @@ +[ excerpt from developer's www site] +MLDonkey Server Spy is an application for MLDonkey that broadcasts +your whereabouts on the edonkey network. + +It will detect the server that you are connected to, and place this +information on an image. The image is then uploaded to a Web server +using FTP. It can then be used on Web pages, message boards etc. + +In this way others will be able to see where you are located and +will then be able to connect to the same edonkey server, making it +easier to get the files that you are sharing. The application updates +the image frequently so that the latest information is always shown. + +Author: Rodrigo A. Diaz Leven <bruj0 at moviegalaxy.com.ar> +WWW: http://www.moviegalaxy.com.ar/mlservspy/ diff --git a/net-p2p/mldonkey-serverspy/pkg-plist b/net-p2p/mldonkey-serverspy/pkg-plist new file mode 100644 index 000000000000..0226601f6920 --- /dev/null +++ b/net-p2p/mldonkey-serverspy/pkg-plist @@ -0,0 +1,7 @@ +bin/mlservspy.pl +bin/mlservspy.pl-real +%%PORTDOCS%%share/doc/mldonkey-serverspy/README.txt +share/mldonkey-serverspy/mlservspy.ini +share/mldonkey-serverspy/mlservspy.jpg +@dirrm share/mldonkey-serverspy +%%PORTDOCS%%@dirrm share/doc/mldonkey-serverspy |