diff --git a/net/sipsak/Makefile b/net/sipsak/Makefile new file mode 100644 index 00000000000..a45efa7e275 --- /dev/null +++ b/net/sipsak/Makefile @@ -0,0 +1,25 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2003/01/16 10:11:30 jakob Exp $ + +COMMENT= "SIP swiss army knife" + +DISTNAME= sipsak-0.7.7 +CATEGORIES= net + +HOMEPAGE= http://sipsak.berlios.de/ +MASTER_SITES= http://download.berlios.de/sipsak/ + +MAINTAINER= Patroklos Argyroudis + +# GPL +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +MAKE_FLAGS= CC='${CC}' CFLAGS="${CFLAGS}" + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/sipsak ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/sipsak.1 ${PREFIX}/man/man1 + +.include diff --git a/net/sipsak/distinfo b/net/sipsak/distinfo new file mode 100644 index 00000000000..91341ba2dab --- /dev/null +++ b/net/sipsak/distinfo @@ -0,0 +1,3 @@ +MD5 (sipsak-0.7.7.tar.gz) = fb0768a197c8bcab9d1ac7bb7ce47105 +RMD160 (sipsak-0.7.7.tar.gz) = c0ab871b47584daaf81c49cad6d5e8d733b75a0a +SHA1 (sipsak-0.7.7.tar.gz) = f394402d72b35f2e2d15bb0c7cb94113d248d528 diff --git a/net/sipsak/patches/patch-Makefile b/net/sipsak/patches/patch-Makefile new file mode 100644 index 00000000000..2ce74e59a94 --- /dev/null +++ b/net/sipsak/patches/patch-Makefile @@ -0,0 +1,71 @@ +# $OpenBSD: patch-Makefile,v 1.1.1.1 2003/01/16 10:11:30 jakob Exp $ +--- Makefile.orig Wed Nov 20 09:54:38 2002 ++++ Makefile Wed Jan 15 22:48:55 2003 +@@ -1,62 +1,13 @@ +-# +-# Basic and crude Makefile... +-# +- +-# Targets to build + PROGS= sipsak +-MANPAGES=sipsak.1 +- +-# Installation directory. By default, go in local. +-# Distributions should probably use /usr/sbin, but they probably know better... +-# Don't forget trailing slash to avoid issues +- +-INSTALL_DIR= /usr/local/bin/ +-INSTALL_MAN= /usr/local/man + +-# ------------ End of config -------------- +- +-CC = gcc + RM = rm -f + +-OS = $(shell uname -s) +- +-RM_CMD = $(RM) *.BAK *.bak *.o ,* *~ *.a *.orig *.rej sipsak.exe +- +-WARNING = -Wall +-DEFS = +- +-FLAGS = $(WARNING) $(DEFS) +- +-ifeq ($(DEFS), -DAUTH) +- LFLAGS = -lssl +- ifeq ($(OS), freebsd) +- LFLAGS+= -lcrypto +- endif +- ifeq ($(OS), netbsd) +- LFLAGS+= -lcrypto +- endif +- ifneq (,$(findstring CYGWIN, $(OS))) +- LFLAGS+= -lcrypto -static +- endif +-endif +- +-all:: $(PROGS) +- +-%: %.o +- $(CC) -o $@ $^ $(LFLAGS) +-%.o: %.c +- $(CC) $(FLAGS) -c $< +- +-sipsak: sipsak.o ++RM_CMD = $(RM) *.BAK *.bak *.o ,* *~ *.a *.rej sipsak.exe + +-auth: +- @make DEFS=-DAUTH ++all: $(PROGS) + +-# So crude but so effective ;-) +-# Less crude thanks to many contributions ;-) +-install:: +- install -m 755 $(PROGS) $(INSTALL_DIR) +- install -m 644 $(MANPAGES) $(INSTALL_MAN)/man1/ ++sipsak: sipsak.c ++ $(CC) $(CFLAGS) -DAUTH sipsak.c -o sipsak -lssl -lcrypto + +-clean:: ++clean: + $(RM_CMD) $(PROGS) diff --git a/net/sipsak/pkg/DESCR b/net/sipsak/pkg/DESCR new file mode 100644 index 00000000000..3c302ac17e3 --- /dev/null +++ b/net/sipsak/pkg/DESCR @@ -0,0 +1,16 @@ +Sipsak is a small command line tool for developers and administrators +of Session Initiation Protocol (SIP) applications. It can be used for +some simple tests on SIP applications and devices. Some of its features +include the following: + +* Sending OPTIONS request. +* Sending text files (which should contain SIP requests). +* Traceroute (see section 11 in RFC3261). +* User location test. +* Flooding test. +* Random character trashed test. +* Interpret and react on response. +* Authentication with qop supported. +* Short notation supported for receiving (not for sending). + +WWW: ${HOMEPAGE} diff --git a/net/sipsak/pkg/PLIST b/net/sipsak/pkg/PLIST new file mode 100644 index 00000000000..83dad0a50f8 --- /dev/null +++ b/net/sipsak/pkg/PLIST @@ -0,0 +1,3 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2003/01/16 10:11:30 jakob Exp $ +bin/sipsak +man/man1/sipsak.1