diff options
author | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2005-01-16 05:07:44 +0000 |
---|---|---|
committer | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2005-01-16 05:07:44 +0000 |
commit | 30a485e20d88ff1c13132efee6d710a45b7def57 (patch) | |
tree | 89bd8655410834677a41bb6a9c2f029c1b2f78e1 /net | |
parent | Remove file that shouldn't have been added. (diff) |
New port minder version 1.1: A small network application for automatic
maintenance of peer lists
Notes
Notes:
svn path=/head/; revision=126547
Diffstat (limited to 'net')
-rw-r--r-- | net/Makefile | 1 | ||||
-rw-r--r-- | net/minder/Makefile | 58 | ||||
-rw-r--r-- | net/minder/distinfo | 2 | ||||
-rw-r--r-- | net/minder/files/patch-Makefile | 20 | ||||
-rw-r--r-- | net/minder/files/patch-MyTcpSocket.cpp | 11 | ||||
-rw-r--r-- | net/minder/pkg-descr | 20 |
6 files changed, 112 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile index 42be8b138e71..d44f22da6018 100644 --- a/net/Makefile +++ b/net/Makefile @@ -347,6 +347,7 @@ SUBDIR += merlinmon SUBDIR += mgen SUBDIR += micq + SUBDIR += minder SUBDIR += minisapserver SUBDIR += mldonkey SUBDIR += mldonkey-core diff --git a/net/minder/Makefile b/net/minder/Makefile new file mode 100644 index 000000000000..564930ccd05b --- /dev/null +++ b/net/minder/Makefile @@ -0,0 +1,58 @@ +# New ports collection makefile for: minder +# Date created: Sun Jan 16 01:16:28 UTC 2005 +# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= minder +PORTVERSION= 1.1 +CATEGORIES= net +MASTER_SITES= http://www.alhem.net/project/minder/ + +MAINTAINER= lioux@FreeBSD.org +COMMENT= A small network application for automatic maintenance of peer lists + +BUILD_DEPENDS= ${LOCALBASE}/lib/libSockets.a:${PORTSDIR}/net/Sockets + +USE_GMAKE= yes +USE_OPENSSL= yes +WITH_OPENSSL_BASE= yes +MAKE_ENV= CXX="${CXX}" +USE_REINPLACE= yes + +# ssl support +CFLAGS+= ${PTHREAD_CFLAGS} -DHAVE_OPENSSL + +PLIST_DIRS= \ + %%EXAMPLESDIR%% +PLIST_FILES= \ + bin/${PORTNAME} \ + %%EXAMPLESDIR%%/minder.cfg + +post-patch: +# CXX safeness +# CXXFLAGS safeness +# SSL include safeness + @${REINPLACE_CMD} -E \ + -e 's|-O2||' \ + -e 's|g\+\+|${CXX}|' \ + -e 's|^INCLUDE.+$$|INCLUDE=-I${OPENSSLINC} -I${LOCALBASE}/include/Sockets|' \ + -e 's|^LIBS.+$$|LIBS=-L${OPENSSLLIB} ${PTHREAD_LIBS} -L${LOCALBASE}/lib \\|' \ + ${BUILD_WRKSRC}/${MAKEFILE} + @${REINPLACE_CMD} -E \ + -e 's|\(__sighandler_t\)||' \ + ${WRKSRC}/minder.cpp + +do-install: + @${MKDIR} ${EXAMPLESDIR} + @${INSTALL_DATA} ${WRKSRC}/minder.cfg ${EXAMPLESDIR} + +.include <bsd.port.pre.mk> + +.if ${OSVERSION} < 500000 +IGNORE= FreeBSD prior to 500000 does not support uuid(3) required\ + for building +.endif + +.include <bsd.port.post.mk> diff --git a/net/minder/distinfo b/net/minder/distinfo new file mode 100644 index 000000000000..370d5e7df823 --- /dev/null +++ b/net/minder/distinfo @@ -0,0 +1,2 @@ +MD5 (minder-1.1.tar.gz) = acc19c86e65fb48b98cb8863b53a0297 +SIZE (minder-1.1.tar.gz) = 5772 diff --git a/net/minder/files/patch-Makefile b/net/minder/files/patch-Makefile new file mode 100644 index 000000000000..3092f680b7d7 --- /dev/null +++ b/net/minder/files/patch-Makefile @@ -0,0 +1,20 @@ +--- Makefile.orig Sat Jan 15 23:23:22 2005 ++++ Makefile Sat Jan 15 23:27:38 2005 +@@ -4,7 +4,7 @@ + CFLAGS = -Wall -g -O2 $(INCLUDE) -MD + CPPFLAGS = $(CFLAGS) + LIBS = -L/usr/devel/lib -lSockets \ +- -lssl -lcrypto -luuid -lpthread ++ -lSockets -lssl -lcrypto + + PROGS = minder + all: $(PROGS) +@@ -19,7 +19,7 @@ + rm -f *.o *~ *.d slask $(PROGS) + + install: all +- install --strip $(PROGS) /usr/local/bin ++ @${BSD_INSTALL_PROGRAM} $(PROGS) /usr/local/bin + + -include *.d + diff --git a/net/minder/files/patch-MyTcpSocket.cpp b/net/minder/files/patch-MyTcpSocket.cpp new file mode 100644 index 000000000000..3acce5a73dcd --- /dev/null +++ b/net/minder/files/patch-MyTcpSocket.cpp @@ -0,0 +1,11 @@ +--- MyTcpSocket.cpp.orig Sun Jan 16 01:07:56 2005 ++++ MyTcpSocket.cpp Sun Jan 16 01:09:39 2005 +@@ -85,7 +85,7 @@ + + // we ignore whatever ip the minion sends us + // we only use the ip from the connection endpoint +- ipaddr_t ip2 = GetRemoteIP(); ++ ipaddr_t ip2 = GetRemoteIP4(); + DEB( printf("Incoming: id '%s' %s:%d cmd '%s'\n",id.c_str(),GetRemoteAddress().c_str(),port,cmd.c_str());) + if (cmd == "Goodbye") + { diff --git a/net/minder/pkg-descr b/net/minder/pkg-descr new file mode 100644 index 000000000000..39c481e41ada --- /dev/null +++ b/net/minder/pkg-descr @@ -0,0 +1,20 @@ +[ excerpt from developer's web site ] + +The minder is a small network application for automatic maintenance +of peer lists. The application accepts connections from other network +entities ("minions") and returns a list of other identitical minions. + +When a minion contacts the minder, the minion supplies its type, +network port and address, and its unique node identification. + +The framework for building a minion is included in the C++ Sockets +Library. The framework consists of classes representing connections +between minion-minder and minion-minion, and also a controller class +for them both. + +The minder itself is also built with the C++ Sockets Library as its +foundation. + +WWW: http://www.alhem.net/project/minder/index.html + +-- lioux@FreeBSD.org |