summaryrefslogtreecommitdiff
path: root/net-p2p
diff options
context:
space:
mode:
authorDaniel Harris <dannyboy@FreeBSD.org>2001-03-04 17:30:32 +0000
committerDaniel Harris <dannyboy@FreeBSD.org>2001-03-04 17:30:32 +0000
commitf1edca2736a0ecedbfeb39ae837fa85907721fe3 (patch)
tree376e0eed7b4efed289615327c052b094366168c5 /net-p2p
parentChange MASTER_SITE and FTP/WWW lines: caos.kun.nl is cmbi.kun.nl now. (diff)
Add hagelslag 0.12.1, a flexible command-line Gnutella
implementation with advanced features. PR: 25098 Submitted by: Johann Visagie <johann@egenetics.com>
Notes
Notes: svn path=/head/; revision=39047
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/hagelslag/Makefile34
-rw-r--r--net-p2p/hagelslag/distinfo1
-rw-r--r--net-p2p/hagelslag/files/patch-Makefile14
-rw-r--r--net-p2p/hagelslag/files/patch-gui-api-c++-Makefile18
-rw-r--r--net-p2p/hagelslag/files/patch-gui-test-Makefile18
-rw-r--r--net-p2p/hagelslag/files/patch-src-Makefile26
-rw-r--r--net-p2p/hagelslag/pkg-comment1
-rw-r--r--net-p2p/hagelslag/pkg-descr12
-rw-r--r--net-p2p/hagelslag/pkg-plist14
9 files changed, 138 insertions, 0 deletions
diff --git a/net-p2p/hagelslag/Makefile b/net-p2p/hagelslag/Makefile
new file mode 100644
index 000000000000..e340e3f82fc1
--- /dev/null
+++ b/net-p2p/hagelslag/Makefile
@@ -0,0 +1,34 @@
+# New ports collection makefile for: hagelslag
+# Date created: 14 February 2001
+# Whom: Johann Visagie <johann@egenetics.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= hagelslag
+PORTVERSION= 0.12.1
+CATEGORIES= net
+MASTER_SITES= http://tiefighter.et.tudelft.nl/hagelslag/ \
+ ftp://tiefighter.et.tudelft.nl/pub/hagelslag/v${PORTVERSION}/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= johann@egenetics.com
+
+BUILD_DEPENDS= makedepend:${PORTSDIR}/devel/makedepend
+
+USE_GMAKE= yes
+MAKEFILES= Makefile gui/Makefile gui-api/Makefile
+HS_DOCDIR= ${PREFIX}/share/doc/${PORTNAME}
+
+post-patch:
+.for mfile in ${MAKEFILES}
+ @ ${PERL} -pi -e 's#make -C#\$${MAKE} -C#' ${WRKSRC}/${mfile}
+.endfor
+
+post-install:
+.if !defined(NOPORTDOCS)
+ @ ${MKDIR} ${HS_DOCDIR}
+ @ ${INSTALL_MAN} ${WRKSRC}/doc/* ${HS_DOCDIR}
+.endif
+
+.include <bsd.port.mk>
diff --git a/net-p2p/hagelslag/distinfo b/net-p2p/hagelslag/distinfo
new file mode 100644
index 000000000000..3cf1bcf016cf
--- /dev/null
+++ b/net-p2p/hagelslag/distinfo
@@ -0,0 +1 @@
+MD5 (hagelslag-0.12.1.tgz) = 65142f58f170f23ee0a6d097cfa11cf9
diff --git a/net-p2p/hagelslag/files/patch-Makefile b/net-p2p/hagelslag/files/patch-Makefile
new file mode 100644
index 000000000000..c28337153865
--- /dev/null
+++ b/net-p2p/hagelslag/files/patch-Makefile
@@ -0,0 +1,14 @@
+--- Makefile.orig Wed Jan 31 20:40:56 2001
++++ Makefile Wed Feb 14 15:05:19 2001
+@@ -4,10 +4,7 @@
+ make -C gui all
+
+ install:
+- cp bin/* /usr/local/bin
+- mkdir ~/.hagelslag
+- cp doc/hosts.txt ~/.hagelslag/hagelslag.hosts
+- @echo remember to copy doc/hosts.txt to ~/.hagelslag/hagelslag.hosts
++ ${BSD_INSTALL_PROGRAM} bin/* ${PREFIX}/bin
+
+
+ gui-all:
diff --git a/net-p2p/hagelslag/files/patch-gui-api-c++-Makefile b/net-p2p/hagelslag/files/patch-gui-api-c++-Makefile
new file mode 100644
index 000000000000..c08e636c1fa7
--- /dev/null
+++ b/net-p2p/hagelslag/files/patch-gui-api-c++-Makefile
@@ -0,0 +1,18 @@
+--- gui-api/c++/Makefile.orig Thu Feb 1 16:28:34 2001
++++ gui-api/c++/Makefile Wed Feb 14 14:43:15 2001
+@@ -1,5 +1,4 @@
+-CXX=g++
+-CXXFLAGS=-Wall -O2 -g
++CXXFLAGS+=-Wall -O2 -g
+
+ H_FILES = List.h DownloadList.h ResultList.h UploadList.h ConnectionList.h \
+ ShareList.h HostList.h OptionList.h StatList.h QueryList.h \
+@@ -24,7 +23,7 @@
+ rm -f *~ *.o *.a *.bak
+
+ depend:
+- makedepend $(CPP_FILES) -Y
++ makedepend $(CPP_FILES)
+
+ count:
+ @echo GUI-API c++
diff --git a/net-p2p/hagelslag/files/patch-gui-test-Makefile b/net-p2p/hagelslag/files/patch-gui-test-Makefile
new file mode 100644
index 000000000000..9229aca6b7b5
--- /dev/null
+++ b/net-p2p/hagelslag/files/patch-gui-test-Makefile
@@ -0,0 +1,18 @@
+--- gui/test/Makefile.orig Thu Feb 1 16:28:43 2001
++++ gui/test/Makefile Wed Feb 14 14:42:42 2001
+@@ -1,5 +1,4 @@
+-CXX=g++
+-CXXFLAGS=-Wall -O2 -g -I../../gui-api/c++
++CXXFLAGS+=-Wall -O2 -g -I../../gui-api/c++
+ LFLAGS= ../../lib/HagelslagInterface.a
+
+ H_FILES = TestGui.h UserTranslator.h ListTranslator.h
+@@ -14,7 +13,7 @@
+ rm -f *~ core *.o testgui *.bak
+
+ depend:
+- makedepend $(CPP_FILES) -Y
++ makedepend $(CPP_FILES) -I../../gui-api/c++/
+
+ testgui: TestGui.h TestGui.cpp $(O_FILES) ../../lib/HagelslagInterface.a
+ $(CXX) $(CXXFLAGS) TestGui.cpp $(O_FILES) $(LFLAGS) -o testgui
diff --git a/net-p2p/hagelslag/files/patch-src-Makefile b/net-p2p/hagelslag/files/patch-src-Makefile
new file mode 100644
index 000000000000..42d7c1830005
--- /dev/null
+++ b/net-p2p/hagelslag/files/patch-src-Makefile
@@ -0,0 +1,26 @@
+--- src/Makefile.orig Thu Feb 1 16:27:37 2001
++++ src/Makefile Wed Feb 14 14:41:23 2001
+@@ -1,5 +1,4 @@
+ # Don't change this...
+-CXX=g++
+ LFLAGS=
+ COMMONFLAGS=-Wall -O2 -g
+ ROUTER_FLAGS=$(COMMONFLAGS) -DROUTER
+@@ -7,7 +6,7 @@
+ CONSOLE_FLAGS=$(COMMONFLAGS) -DCONSOLE
+
+ # Change this instead.
+-CXXFLAGS=$(CONSOLE_FLAGS)
++CXXFLAGS+=$(CONSOLE_FLAGS)
+
+ # Nothing below here should be changed
+
+@@ -70,7 +69,7 @@
+ cp hagelslagd ../bin
+
+ depend:
+- makedepend -Y -- $(CPP_FILES)
++ makedepend -- $(CPP_FILES)
+
+ clean:
+ rm -f hagelslag hagelslagd hagelslagrouter *.o *~ core *.bak
diff --git a/net-p2p/hagelslag/pkg-comment b/net-p2p/hagelslag/pkg-comment
new file mode 100644
index 000000000000..7ba19974a72d
--- /dev/null
+++ b/net-p2p/hagelslag/pkg-comment
@@ -0,0 +1 @@
+A flexible command-line Gnutella implementation with advanced features
diff --git a/net-p2p/hagelslag/pkg-descr b/net-p2p/hagelslag/pkg-descr
new file mode 100644
index 000000000000..e849fdd4e51a
--- /dev/null
+++ b/net-p2p/hagelslag/pkg-descr
@@ -0,0 +1,12 @@
+Hagelslag is a Gnutella servent which emphasises flexibility, stability and
+performance. It boasts several advanced features including flexible
+configuration and operation, and strategies to guard against network flooding
+and spam. It also includes extensive documentation.
+
+Hagelslag currently only has a command-line interface, but it provides a
+(documented) API which may be used to write a GUI.
+
+Author: Fokko Beekhof <lucifer@tiefighter.et.tudelft.nl>
+WWW: http://tiefighter.et.tudelft.nl/hagelslag/
+
+-- Johann Visagie <johann@egenetics.com>
diff --git a/net-p2p/hagelslag/pkg-plist b/net-p2p/hagelslag/pkg-plist
new file mode 100644
index 000000000000..ef328a3dae32
--- /dev/null
+++ b/net-p2p/hagelslag/pkg-plist
@@ -0,0 +1,14 @@
+%%PORTDOCS%%share/doc/hagelslag/Hagelslag-design.txt
+%%PORTDOCS%%share/doc/hagelslag/HagelslagInternal.txt
+%%PORTDOCS%%share/doc/hagelslag/LICENSE
+%%PORTDOCS%%share/doc/hagelslag/ProgrammersManual.txt
+%%PORTDOCS%%share/doc/hagelslag/README
+%%PORTDOCS%%share/doc/hagelslag/TODO
+%%PORTDOCS%%share/doc/hagelslag/UsersManual.txt
+%%PORTDOCS%%share/doc/hagelslag/hagelslag-classes.fig
+%%PORTDOCS%%share/doc/hagelslag/hagelslag-classes.jpg
+%%PORTDOCS%%share/doc/hagelslag/hagelslag-structure.fig
+%%PORTDOCS%%share/doc/hagelslag/hagelslag-structure.jpg
+bin/hagelslag
+bin/testgui
+%%PORTDOCS%%@dirrm share/doc/hagelslag