[Pkg-voip-commits] r5653 - in /misdn-user: ./ branches/ branches/upstream/ branches/upstream/current/ branches/upstream/current/example/ branches/upstream/current/i4lnet/ branches/upstream/current/lib/ branches/upstream/current/suppserv/ branches/upstream/current/voip/

maniac-guest at alioth.debian.org maniac-guest at alioth.debian.org
Sat May 3 08:35:59 UTC 2008


Author: maniac-guest
Date: Sat May  3 08:35:59 2008
New Revision: 5653

URL: http://svn.debian.org/wsvn/pkg-voip/?sc=1&rev=5653
Log:
[svn-inject] Installing original source of misdn-user

Added:
    misdn-user/
    misdn-user/branches/
    misdn-user/branches/upstream/
    misdn-user/branches/upstream/current/
    misdn-user/branches/upstream/current/Makefile
    misdn-user/branches/upstream/current/example/
    misdn-user/branches/upstream/current/example/Makefile
    misdn-user/branches/upstream/current/i4lnet/
    misdn-user/branches/upstream/current/i4lnet/Makefile
    misdn-user/branches/upstream/current/lib/
    misdn-user/branches/upstream/current/lib/Makefile
    misdn-user/branches/upstream/current/suppserv/
    misdn-user/branches/upstream/current/suppserv/Makefile
    misdn-user/branches/upstream/current/voip/
    misdn-user/branches/upstream/current/voip/testlog

Added: misdn-user/branches/upstream/current/Makefile
URL: http://svn.debian.org/wsvn/pkg-voip/misdn-user/branches/upstream/current/Makefile?rev=5653&op=file
==============================================================================
--- misdn-user/branches/upstream/current/Makefile (added)
+++ misdn-user/branches/upstream/current/Makefile Sat May  3 08:35:59 2008
@@ -1,0 +1,133 @@
+
+MAJOR=1
+MINOR=1
+SUBMINOR=6
+
+#
+# Set this to your local copy of mISDN
+#
+MISDNDIR := /usr/src/mqueue/mISDN
+
+PWD=$(shell pwd)
+#
+# Change this to create an install prefix for the shared libs, programms and
+# includes
+#
+INSTALL_PREFIX := /
+export INSTALL_PREFIX
+
+MISDNINCLUDEDIR := $(MISDNDIR)/include
+export MISDNINCLUDEDIR
+
+mISDN_DIR := $(PWD)
+export mISDN_DIR
+
+INCLUDEDIR := $(mISDN_DIR)/include
+export INCLUDEDIR
+
+LIBDIR=/usr/lib
+export LIBDIR
+
+CFLAGS:= -g -Wall -I $(INCLUDEDIR) -I $(MISDNINCLUDEDIR)
+CFLAGS+= -D CLOSE_REPORT=1
+
+#disable this if your system does not support PIC (position independent code)
+ifeq ($(shell uname -m),x86_64)
+CFLAGS         += -fPIC
+endif
+
+export CFLAGS
+
+mISDNLIB	:= $(PWD)/lib/libmISDN.a
+mISDNNETLIB	:= $(PWD)/i4lnet/libmisdnnet.a
+export mISDNLIB
+export mISDNNETLIB
+
+SUBDIRS := lib example
+
+SUBDIRS += $(shell if test -d i4lnet ; then echo i4lnet; fi)
+SUBDIRS += $(shell if test -d tenovis ; then echo tenovis; fi)
+SUBDIRS += $(shell if test -d voip ; then echo voip; fi)
+SUBDIRS += $(shell if test -d suppserv ; then echo suppserv; fi)
+SUBDIRS += $(shell if test -d debugtool ; then echo debugtool; fi)
+
+LIBS := lib/libmISDN.a
+
+all: test_misdn_includes
+	$(MAKE) TARGET=$@ subdirs
+
+
+install_path:
+	mkdir -p $(INSTALL_PREFIX)/usr/bin/
+	mkdir -p $(INSTALL_PREFIX)/usr/include/mISDNuser/
+	mkdir -p $(INSTALL_PREFIX)/$(LIBDIR)
+
+
+install: install_path all
+	$(MAKE) TARGET=install subdirs
+	cp include/*.h $(INSTALL_PREFIX)/usr/include/mISDNuser/
+
+
+subdirs:
+	set -e; for i in $(SUBDIRS) ; do $(MAKE) -C $$i $(TARGET); done
+
+clean:  
+	$(MAKE) TARGET=$@ subdirs
+	rm -f *.o *~ DEADJOE $(INCLUDEDIR)/*~ $(INCLUDEDIR)/DEADJOE
+
+distclean: clean
+	$(MAKE) TARGET=$@ subdirs
+	rm -f *.o *~ testlog
+
+MAINDIR := $(shell basename $(PWD))
+ARCHIVDIR = /usr/src/packages/SOURCES
+ARCHIVOPT := -v
+# VERSION := $(shell date +"%Y%m%d")
+VERSION := 20030423
+
+ARCHIVNAME := $(ARCHIVDIR)/$(MAINDIR)-$(VERSION).tar.bz2
+
+archiv: distclean
+	cd ../; tar c $(ARCHIVOPT) -f - $(MAINDIR) | bzip2 > $(ARCHIVNAME)
+
+basearchiv: ARCHIVOPT += --exclude i4lnet --exclude voip --exclude tenovis
+basearchiv: ARCHIVNAME := $(ARCHIVDIR)/$(MAINDIR)_base-$(VERSION).tar.bz2
+basearchiv: archiv
+
+mainarchiv: ARCHIVOPT += --exclude voip --exclude tenovis
+mainarchiv: ARCHIVNAME := $(ARCHIVDIR)/$(MAINDIR)_main-$(VERSION).tar.bz2
+mainarchiv: archiv
+
+tenovisarchiv: ARCHIVOPT += --exclude voip --exclude i4lnet
+tenovisarchiv: ARCHIVNAME := $(ARCHIVDIR)/$(MAINDIR)_tenovis-$(VERSION).tar.bz2
+tenovisarchiv: archiv
+
+voiparchiv: ARCHIVOPT += --exclude tenovis
+voiparchiv: ARCHIVNAME := $(ARCHIVDIR)/$(MAINDIR)_voip-$(VERSION).tar.bz2
+voiparchiv: archiv
+
+
+test_misdn_includes:
+	@if ! echo "#include <linux/mISDNif.h>" | gcc -I$(MISDNINCLUDEDIR) -C -E - >/dev/null ; then echo -e "\n\nYou either don't seem to have installed mISDN properly\nor you haven't set the MISDNDIR variable in this very Makefile.\n\nPlease either install mISDN or set the MISDNDIR properly\n"; exit 1; fi
+
+
+VERSION:
+	echo $(MAJOR)_$(MINOR)_$(SUBMINOR) > VERSION
+
+snapshot: clean
+	DIR=mISDNuser-$$(date +"20%y_%m_%d") ; \
+	echo $$(date +"20%y_%m_%d" | sed -e "s/\//_/g") > VERSION ; \
+	mkdir -p /tmp/$$DIR ; \
+	cp -a * /tmp/$$DIR ; \
+	cd /tmp/; \
+	tar czf $$DIR.tar.gz $$DIR
+
+release: clean
+	DIR=mISDNuser-$(MAJOR)_$(MINOR)_$(SUBMINOR) ; \
+	echo $(MAJOR)_$(MINOR)_$(SUBMINOR) > VERSION ; \
+	mkdir -p /tmp/$$DIR ; \
+	cp -a * /tmp/$$DIR ; \
+	cd /tmp/; \
+	tar czf $$DIR.tar.gz $$DIR
+
+.PHONY: VERSION clean

Added: misdn-user/branches/upstream/current/example/Makefile
URL: http://svn.debian.org/wsvn/pkg-voip/misdn-user/branches/upstream/current/example/Makefile?rev=5653&op=file
==============================================================================
--- misdn-user/branches/upstream/current/example/Makefile (added)
+++ misdn-user/branches/upstream/current/example/Makefile Sat May  3 08:35:59 2008
@@ -1,0 +1,52 @@
+LIBINCL	:= $(INCLUDEDIR)/mISDNlib.h
+PROGS	:= testcon testcon_l2 testlayer3 loadfirm sendhwctrl testlayer1 misdnportinfo
+# PROGS   := testcon testnet loadfirm logger
+
+all: $(PROGS)
+
+install:
+	for i in $(PROGS) ; do \
+		install -m 755 $$i $(INSTALL_PREFIX)/usr/bin ;\
+	done
+
+misdnportinfo: misdnportinfo.o $(mISDNLIB)
+
+testcon: testcon.o $(mISDNLIB)
+
+testlayer3: testlayer3.o $(mISDNLIB)
+
+testnet: testnet.o $(mISDNLIB)
+
+testcon_l2: testcon_l2.o $(mISDNLIB)
+
+loadfirm: loadfirm.o $(mISDNLIB)
+
+sendhwctrl: sendhwctrl.o $(mISDNLIB)
+
+testlayer1: testlayer1.o $(mISDNLIB)
+
+logger: logger.o $(mISDNLIB)
+
+misdnportinfo.o : misdnportinfo.c $(LIBINCL)
+
+
+testcon.o : testcon.c ../include/l3dss1.h $(LIBINCL)
+
+testlayer3.o : testlayer3.c ../include/l3dss1.h $(LIBINCL)
+
+testnet.o : testnet.c ../include/l3dss1.h $(LIBINCL)
+
+testcon_l2.o : testcon_l2.c ../include/l3dss1.h $(LIBINCL)
+
+loadfirm.o: loadfirm.c $(LIBINCL)
+
+sendhwctrl.o: sendhwctrl.c $(LIBINCL)
+
+logger.o: logger.c $(LIBINCL)
+
+
+clean:
+	rm -f *.o *~ DEADJOE
+
+distclean: clean
+	rm -f *.a $(PROGS)

Added: misdn-user/branches/upstream/current/i4lnet/Makefile
URL: http://svn.debian.org/wsvn/pkg-voip/misdn-user/branches/upstream/current/i4lnet/Makefile?rev=5653&op=file
==============================================================================
--- misdn-user/branches/upstream/current/i4lnet/Makefile (added)
+++ misdn-user/branches/upstream/current/i4lnet/Makefile Sat May  3 08:35:59 2008
@@ -1,0 +1,70 @@
+CC = gcc
+AR = ar
+RANLIB = ranlib
+
+all: libisdnnet.a libisdnnet_pic.a libisdnnet.so
+
+install:
+	install -m 644 libisdnnet.a $(INSTALL_PREFIX)/usr/lib
+	install -m 644 libisdnnet_pic.a $(INSTALL_PREFIX)/usr/lib
+	install -m 644 libisdnnet.so $(INSTALL_PREFIX)/usr/lib
+	cp *.h $(INSTALL_PREFIX)/usr/include/mISDNuser/
+
+ISDNNET_OBJ = net_if.o isdn_debug.o isdn_msg.o fsm.o net_l2.o tei.o net_l3.o \
+		manager.o tone.o bchannel.o g711.o
+ISDNNET_PICOBJ = $(ISDNNET_OBJ:%.o=%.lo)
+
+ifeq ($(shell uname -m),x86_64)
+CFLAGS         += -fPIC
+endif
+
+
+libisdnnet_pic.a: $(ISDNNET_PICOBJ)
+	$(AR) cru $@ $^
+	$(RANLIB) $@
+
+libisdnnet.a: $(ISDNNET_OBJ)
+	$(AR) cru $@ $^
+	$(RANLIB) $@
+
+libisdnnet.so: $(ISDNNET_OBJ)
+	$(CC) $(CFLAGS) -shared -Xlinker -x -o $@ $^
+
+.c.o:
+	$(CC) $(CFLAGS) -o $@ -c $<
+
+.c.lo:
+	$(CC) $(CFLAGS) -fPIC -o $@ -c $<
+
+isdn_msg.o isdn_msg.lo: isdn_msg.c $(INCLUDEDIR)/isdn_msg.h $(INCLUDEDIR)/isdn_net.h
+
+isdn_debug.o isdn_debug.lo: isdn_debug.c $(INCLUDEDIR)/isdn_debug.h
+
+net_l2.o net_l2.lo: net_l2.c net_l2.h $(INCLUDEDIR)/isdn_net.h fsm.h
+
+fsm.o fsm.lo: fsm.c fsm.h $(INCLUDEDIR)/isdn_net.h
+
+tei.o tei.lo: tei.c net_l2.h $(INCLUDEDIR)/isdn_net.h
+
+net_l3.o net_l3.lo: net_l3.c $(INCLUDEDIR)/isdn_net.h net_l3.h
+
+manager.o manager.lo: manager.c $(INCLUDEDIR)/isdn_net.h $(INCLUDEDIR)/bchannel.h
+
+net_if.o net_if.lo: net_if.c $(INCLUDEDIR)/isdn_net.h
+
+tone.o tone.lo: tone.c $(INCLUDEDIR)/tone.h $(INCLUDEDIR)/bchannel.h \
+	$(INCLUDEDIR)/isdn_net.h $(INCLUDEDIR)/ibuffer.h
+
+bchannel.o bchannel.lo: bchannel.c $(INCLUDEDIR)/isdn_net.h $(INCLUDEDIR)/tone.h \
+	$(INCLUDEDIR)/bchannel.h net_l3.h $(INCLUDEDIR)/ibuffer.h
+
+g711.o g711.lo: g711.c $(INCLUDEDIR)/g711.h
+
+clean:
+	rm -f *.o *.lo *~ DEADJOE 
+	rm -f libisdnnet.a libisdnnet_pic.a libisdnnet.so
+
+distclean: clean
+	rm -f *.a
+
+.SUFFIXES: .lo

Added: misdn-user/branches/upstream/current/lib/Makefile
URL: http://svn.debian.org/wsvn/pkg-voip/misdn-user/branches/upstream/current/lib/Makefile?rev=5653&op=file
==============================================================================
--- misdn-user/branches/upstream/current/lib/Makefile (added)
+++ misdn-user/branches/upstream/current/lib/Makefile Sat May  3 08:35:59 2008
@@ -1,0 +1,48 @@
+CC = gcc
+AR = ar
+RANLIB = ranlib
+
+all: libmISDN.a libmISDN_pic.a libmISDN.so
+
+install:
+	install -m 644 libmISDN.so $(INSTALL_PREFIX)/usr/lib
+	install -m 644 libmISDN_pic.a $(INSTALL_PREFIX)/usr/lib
+	install -m 644 libmISDN.a $(INSTALL_PREFIX)/usr/lib
+
+LIBMISDN_OBJS = device.o layer.o stack.o status.o
+LIBMISDN_PICOBJS = $(LIBMISDN_OBJS:%.o=%.lo)
+
+ifeq ($(shell uname -m),x86_64)
+CFLAGS         += -fPIC
+endif
+
+libmISDN_pic.a: $(LIBMISDN_PICOBJS)
+	$(AR) cru $@ $^
+	$(RANLIB) $@
+
+libmISDN.a: $(LIBMISDN_OBJS)
+	$(AR) cru $@ $^
+	$(RANLIB) $@
+
+libmISDN.so: $(LIBMISDN_OBJS)
+	$(CC) $(CFLAGS) -shared -Xlinker -x -o $@ $^
+
+.c.o:
+	$(CC) $(CFLAGS) -o $@ -c $<
+
+.c.lo:
+	$(CC) $(CFLAGS) -fPIC -o $@ -c $<
+
+device.o device.lo: device.c ../include/mISDNlib.h
+layer.o layer.lo: layer.c ../include/mISDNlib.h
+stack.o stack.lo: stack.c ../include/mISDNlib.h
+status.o status.lo: status.c ../include/mISDNlib.h 
+
+clean:
+	rm -f libmISDN.a libMISDN_pic.a libmISDN.so
+	rm -f *.o *.lo *~ DEADJOE
+
+distclean: clean
+	rm -f *.a
+ 
+.SUFFIXES: .lo

Added: misdn-user/branches/upstream/current/suppserv/Makefile
URL: http://svn.debian.org/wsvn/pkg-voip/misdn-user/branches/upstream/current/suppserv/Makefile?rev=5653&op=file
==============================================================================
--- misdn-user/branches/upstream/current/suppserv/Makefile (added)
+++ misdn-user/branches/upstream/current/suppserv/Makefile Sat May  3 08:35:59 2008
@@ -1,0 +1,45 @@
+CC = gcc
+AR = ar
+RANLIB = ranlib
+
+#CFLAGS += -DASN1_DEBUG
+
+SUPPSERV_OBJ = asn1.o asn1_enc.o asn1_generic.o asn1_aoc.o asn1_basic_service.o asn1_comp.o asn1_diversion.o asn1_address.o fac.o
+SUPPSERV_PICOBJ = $(SUPPSERV_OBJ:%.o=%.lo)
+
+all: libsuppserv.a libsuppserv_pic.a libsuppserv.so
+
+main: $(SUPPSERVOBJ)
+
+install:
+	install -m 644 libsuppserv.a $(INSTALL_PREFIX)/usr/lib
+	install -m 644 libsuppserv_pic.a $(INSTALL_PREFIX)/usr/lib
+	install -m 644 libsuppserv.so $(INSTALL_PREFIX)/usr/lib
+	cp *.h $(INSTALL_PREFIX)/usr/include/mISDNuser/
+
+libsuppserv_pic.a: $(SUPPSERV_PICOBJ)
+	$(AR) cru $@ $<
+	$(RANLIB) $@
+
+libsuppserv.a: $(SUPPSERV_OBJ)
+	$(AR) cru $@ $<
+	$(RANLIB) $@
+
+libsuppserv.so: $(SUPPSERV_OBJ)
+	$(CC) -shared -Xlinker -x -o $@ $^
+
+
+.c.o:
+	$(CC) $(CFLAGS) -o $@ -c $<
+
+.c.lo:
+	$(CC) $(CFLAGS) -fPIC -o $@ -c $<
+
+clean:
+	rm -f *.o *.lo *~ DEADJOE *.so
+	rm -f libsuppserv.a libsuppserv_pic.a
+
+distclean: clean
+	rm -f *.a
+
+.SUFFIXES: .lo

Added: misdn-user/branches/upstream/current/voip/testlog
URL: http://svn.debian.org/wsvn/pkg-voip/misdn-user/branches/upstream/current/voip/testlog?rev=5653&op=file
==============================================================================
--- misdn-user/branches/upstream/current/voip/testlog (added)
+++ misdn-user/branches/upstream/current/voip/testlog Sat May  3 08:35:59 2008
@@ -1,0 +1,3 @@
+debug_init: debug_mask = 0
+debug_init: debug_mask = 0
+debug_close: debug channel now closed




More information about the Pkg-voip-commits mailing list