SIP swiss army knife; from Patroklos Argyroudis

This commit is contained in:
jakob 2003-01-16 10:11:30 +00:00
parent cc8787330b
commit 69413fc550
5 changed files with 118 additions and 0 deletions

25
net/sipsak/Makefile Normal file
View File

@ -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 <argp@ieee.org>
# 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 <bsd.port.mk>

3
net/sipsak/distinfo Normal file
View File

@ -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

View File

@ -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)

16
net/sipsak/pkg/DESCR Normal file
View File

@ -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}

3
net/sipsak/pkg/PLIST Normal file
View File

@ -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