aboutsummaryrefslogtreecommitdiff
path: root/net-p2p/mldonkey-serverspy/Makefile
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2003-02-24 19:55:24 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2003-02-24 19:55:24 +0000
commit687877ff77d3c2c2d236f1a70d2a5e04344eafed (patch)
tree26b6e3729854affce8fe3d6a6e5d8da723e53c2c /net-p2p/mldonkey-serverspy/Makefile
parenteb0c5a5e1aadd282238111272a2828d96e6c2b99 (diff)
Notes
Diffstat (limited to 'net-p2p/mldonkey-serverspy/Makefile')
-rw-r--r--net-p2p/mldonkey-serverspy/Makefile70
1 files changed, 70 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>