Skip site navigation (1)Skip section navigation (2)
Date:      11 Nov 2003 14:10:03 +0100
From:      Ganael LAPLANCHE <ganael.laplanche@martymac.com>
To:        freebsd-ports@freebsd.org
Subject:   New port : aMule - Another eMule client - how to submit
Message-ID:  <1068556203.5202.13.camel@odie>

next in thread | raw e-mail | index | archive | help

--=-qEOdU/PbkTzgUYJT7MQf
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi !

This is my very first port for FreeBSD. I tried twice to send it with
send-pr a few days ago. I *has* been sent, but unfortunately, I can't
see it appear on the page listing the ports waiting for being included
in FreeBSD :

http://www.freebsd.org/cgi/query-pr-summary.cgi?category=3Dports

I've read the porter's handbook and can't understand why it isn't listed
in here... Could someone help me ?

He is the port (adapted from xmule port - including necessary patches -
see http://amule.sourceforge.net/phpBB2/viewtopic.php?t=3D132), maybe
there is a pb I haven't seen... ? Maybe it doesn't work on other machine
than mine (I've tested it only on my machine)... I don't know. If
someone could send me a feedback, it would be very great !

-------------- amule-1.1.2.shar begins ------------------------------
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	amule
#	amule/README.html
#	amule/pkg-descr
#	amule/pkg-plist
#	amule/distinfo
#	amule/Makefile
#	amule/pkg-message
#
echo c - amule
mkdir -p amule > /dev/null 2>&1
echo x - amule/README.html
sed 's/^X//' >amule/README.html << 'END-of-amule/README.html'
X<!DOCTYPE html PUBLIC "-//IETF//DTD HTML 2.0//EN">
X
X<html>
X  <head>
X    <title>The FreeBSD Ports Collection (net/amule)</title>
X  </head>
X
X  <body>
X    <h1>The FreeBSD Ports Collection (net/amule)</h1>
X    <hr>
X
X    <p>You are now in the directory for the port "net/amule".</p>
X
X    <p>The package name of this port is "aMule-1.1.2".</p>
X
X    <p>This is the one-line description for this port:</p>
X    <hr>
X
X    <p>
XaNOTHER eMule P2P Client
X    </p>
X    <hr>
X
X    <p>Please read the "<a href=3D"pkg-descr">description file</a>" for a
X    longer description and/or visit the <a
href=3D"http://sourceforge.net/projects/amule/">web site</a> for futher
informations.</p>
X
X    <p>If needed, you may contact the <a href=3D
X    "mailto:ports@FreeBSD.org">maintainer</a> of this port or the port
<a href=3D
X    "mailto:ports@FreeBSD.org">mailing-list</a>.</p>
X
X    <p>This port requires package(s) "" to build.</p>
X
X    <p>This port requires package(s) "" to run.</p>
X
X    <p>Go to the <a href=3D"../../README.html">top of the ports tree</a>
for
X    a summary on how to use the ports collection.</p>
X    <hr>
X
X    <p><a href=3D"../README.html">Go up one level</a> | <a href=3D
X    "../../README.html">Go to top of ports tree</a></p>
X  </body>
X</html>
X
END-of-amule/README.html
echo x - amule/pkg-descr
sed 's/^X//' >amule/pkg-descr << 'END-of-amule/pkg-descr'
X[ from README ]
X
XThis program is a multiplatform fork of
X xMule client using wxWindows class library.
X
XWWW: http://sourceforge.net/projects/amule/
END-of-amule/pkg-descr
echo x - amule/pkg-plist
sed 's/^X//' >amule/pkg-plist << 'END-of-amule/pkg-plist'
Xbin/amule
Xbin/aMule-ed2k-handler
Xshare/gnome/applications/amule.desktop
Xshare/gnome/pixmaps/amule.xpm
Xshare/locale/de/LC_MESSAGES/amule.mo
Xshare/locale/ee/LC_MESSAGES/amule.mo
Xshare/locale/es/LC_MESSAGES/amule.mo
Xshare/locale/es_MX/LC_MESSAGES/amule.mo
Xshare/locale/fr/LC_MESSAGES/amule.mo
Xshare/locale/it/LC_MESSAGES/amule.mo
Xshare/locale/ko/LC_MESSAGES/amule.mo
Xshare/locale/pl/LC_MESSAGES/amule.mo
Xshare/locale/tr/LC_MESSAGES/amule.mo
X@unexec rmdir %D/share/locale/de/LC_MESSAGES 2>/dev/null || true
X@unexec rmdir %D/share/locale/de 2>/dev/null || true
X@unexec rmdir %D/share/locale/ee/LC_MESSAGES 2>/dev/null || true
X@unexec rmdir %D/share/locale/ee 2>/dev/null || true
X@unexec rmdir %D/share/locale/es/LC_MESSAGES 2>/dev/null || true
X@unexec rmdir %D/share/locale/es 2>/dev/null || true
X@unexec rmdir %D/share/locale/es_MX/LC_MESSAGES 2>/dev/null || true
X@unexec rmdir %D/share/locale/es_MX 2>/dev/null || true
X@unexec rmdir %D/share/locale/fr/LC_MESSAGES 2>/dev/null || true
X@unexec rmdir %D/share/locale/fr 2>/dev/null || true
X@unexec rmdir %D/share/locale/it/LC_MESSAGES 2>/dev/null || true
X@unexec rmdir %D/share/locale/it 2>/dev/null || true
X@unexec rmdir %D/share/locale/ko/LC_MESSAGES 2>/dev/null || true
X@unexec rmdir %D/share/locale/ko 2>/dev/null || true
X@unexec rmdir %D/share/locale/pl/LC_MESSAGES 2>/dev/null || true
X@unexec rmdir %D/share/locale/pl 2>/dev/null || true
X@unexec rmdir %D/share/locale/tr/LC_MESSAGES 2>/dev/null || true
X@unexec rmdir %D/share/locale/tr 2>/dev/null || true
X@unexec rmdir %D/share/pixmaps 2>/dev/null || true
END-of-amule/pkg-plist
echo x - amule/distinfo
sed 's/^X//' >amule/distinfo << 'END-of-amule/distinfo'
XMD5 (aMule-1.1.2.tar.gz) =3D caf7805d1000360ca84db9d05ec587d0
END-of-amule/distinfo
echo x - amule/Makefile
sed 's/^X//' >amule/Makefile << 'END-of-amule/Makefile'
X# New ports collection makefile for:	amule
X# Date created:		Wed Nov 05 09:30:00 UTC 2003
X# Whom:			Ganael LAPLANCHE <ganael.laplanche@martymac.com>
X#
X# $FreeBSD$
X#
X
X# Based on xmule's port
X
XPORTNAME=3D	aMule
XPORTVERSION=3D	1.1.2
XCATEGORIES=3D	net
XMASTER_SITES=3D		${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=3D	amule
X
XMAINTAINER=3D	ports@FreeBSD.org
XCOMMENT=3D	aNOTHER eMule P2P Client
X
XLIB_DEPENDS=3D	intl.5:${PORTSDIR}/devel/gettext:install \
X		expat.4:${PORTSDIR}/textproc/expat2:install \
X		wx_gtk-2.4.0:${PORTSDIR}/x11-toolkits/wxgtk-devel:install
XRUN_DEPENDS=3D	wget:${PORTSDIR}/ftp/wget:install
X
XUSE_X_PREFIX=3D	yes
XUSE_GNOME=3D	gnomehier \
X		gnomehack \
X		gnomeprefix
X# Gtk12 or gtk2 will be added here depending on what is detected at the
end of this script
X
XUSE_REINPLACE=3D	yes
X
XUSE_GMAKE=3D	yes
XGNU_CONFIGURE=3D	yes
XCONFIGURE_ARGS=3D	--without-included-gettext \
X		--with-libintl-prefix=3D${LOCALBASE} \
X		--with-libiconv-prefix=3D${LOCALBASE} \
X		--with-wx-config=3D${WX_CONFIG} \
X		--enable-optimise
XCONFIGURE_ENV=3D	CPPFLAGS=3D"${CPPFLAGS} -I${LOCALBASE}/include
${PTHREAD_CFLAGS}" \
X		LDFLAGS=3D"${LDFLAGS} -L${LOCALBASE}/lib ${PTHREAD_LIBS}"
X
XWX_CONFIG?=3D	${X11BASE}/bin/wx-config
X
Xpost-extract:
X# Create Makefile.in's
X	@echo "******************"
X	@echo "Running autogen.sh"
X	@cd ${WRKSRC} && sh autogen.sh
X	@echo "autogen.sh : done."
X	@echo "******************"
X
Xpost-patch:
X# Patches
X	@echo "******************************************"
X	@echo "Applying SysTray.cpp and gsocket.c patches"
X	@${REINPLACE_CMD} -E \
X		-e '/\#include\ \<net\/if\.h\>/{x;s/^/\#include\
\<netinet\/in\.h\>/;x;G;}' \
X		${WRKSRC}/src/SysTray.cpp
X	@${REINPLACE_CMD} -E \
X		-e '/\#include\ <netinet\/in\.h\>/{x;s/^/\#define\ MSG_NOSIGNAL\
0x4000/;x;G;}' \
X		${WRKSRC}/src/gsocket.c
X	@echo "patches : done."
X	@echo "******************************************"
X
Xpre-configure:
X# Do not install a generic named ed2k binary
X	@echo "******************************"
X	@echo "Applying Makefile.in's patches"
X	@${REINPLACE_CMD} -E \
X		-e 's/^(bin_PROGRAMS.+)amule ed2k/bin_PROGRAMS\ \=3D\ amule/' \
X		${WRKSRC}/src/Makefile.in
X	@${REINPLACE_CMD} -E \
X		-e 's/^(bin_PROGRAMS.+)ed2k.+\([A-Z]+\)/\1/' \
X		${WRKSRC}/src/Makefile.in
X	@echo "patches : done."
X	@echo "******************************"
X
Xpost-configure:
X# Patch for po's Makefile
X	@echo "****************************"
X	@echo "Applying po's Makefile patch"
X	@${REINPLACE_CMD} -E \
X		-e 's/^(PACKAGE\ +\=3D\ +)/PACKAGE\ \=3D\ amule/' \
X		${WRKSRC}/po/Makefile
X	@echo "patch : done."
X	@echo "****************************"
X
Xpost-build:
X# Build the generic named ed2k binary
X# It will installed in an adhoc fashion
X	@cd ${BUILD_WRKSRC}/src && ${SETENV} ${MAKE_ENV} ${GMAKE}
${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ed2k
X
Xpost-install:
X# Do not install a generic named ed2k binary
X# Install it under a more specific name
X	@${INSTALL_PROGRAM} ${WRKSRC}/src/ed2k \
X		${PREFIX}/bin/${PORTNAME}-ed2k-handler
X
X# Displays the pkg-message file
X	@cat pkg-message
X
X.include <bsd.port.pre.mk>
X
X.if exists(${WX_CONFIG})
X# detect if wxgtk was linked against gtk1 or gtk2
XDECISION_GTK_1_OR_2!=3D ${WX_CONFIG} --static --libs
X.else
XDECISION_GTK_1_OR_2=3D ""
X.endif
X
X.if ${DECISION_GTK_1_OR_2:M*glib-2.0} !=3D ""
XUSE_GNOME+=3D gtk20
X.else
XUSE_GNOME+=3D gtk12
X.endif
X
X.include <bsd.port.post.mk>
END-of-amule/Makefile
echo x - amule/pkg-message
sed 's/^X//' >amule/pkg-message << 'END-of-amule/pkg-message'
X
X#############################################
X  Amule is now ready !
X
X  http://www.sourceforge.net/projects/amule
X  http://amule.sourceforge.net
X#############################################
X
END-of-amule/pkg-message
exit
-------------- amule-1.1.2.shar ends ------------------------------

Many thanks,
Regards,

Gana=EBl LAPLANCHE.
martymac@martymac.com




--=-qEOdU/PbkTzgUYJT7MQf
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQA/sN+rLzBy5e6bP6sRAvF6AJ4jzBi4AHTQur+FRedzH34AV6atpACggq10
vg9JxkhIOAR3SDcjXIL3UBo=
=QNVT
-----END PGP SIGNATURE-----

--=-qEOdU/PbkTzgUYJT7MQf--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1068556203.5202.13.camel>