Commit 4b320bbe authored by smorlat's avatar smorlat

a lot of cleanups (old deprecated files removed)

git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@583 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
parent d1b0f8aa
......@@ -111,7 +111,7 @@ zip:
cp -f $(top_srcdir)/COPYING $(INSTALLDIR_WITH_PREFIX)/.
cd $(INSTALLDIR_WITH_PREFIX) && zip -r $(ZIPFILE) *
setup.exe: zip
filelist: zip
cd $(INSTALLDIR_WITH_PREFIX) && \
rm -f $(PACKAGE_WIN32_FILELIST) && \
for file in `find` ; do \
......@@ -120,6 +120,8 @@ setup.exe: zip
>> $(PACKAGE_WIN32_FILELIST) ;\
fi \
done
setup.exe: filelist
cp $(ISS_SCRIPT) $(INSTALLDIR_WITH_PREFIX)/.
cd $(INSTALLDIR_WITH_PREFIX) && \
$(ISCC) $(ISS_SCRIPT)
......
#!/usr/bin/make -f
# This script "automatically" builds some binary distribution of linphone :
# debian packages (sid) and familiar (arm-linux/ipaq) packages.
# generation of rpms can be added in the future.
# it can be invoked in the following way:
# ./build.mk debs LINPHONE=<path to linphone's tar.gz>
# ./build.mk all LINPHONE=<path to linphone's tar.gz> GLIB=<path to glib>2.2's tar.gz>
# LIBOSIP=<path to libosip's tar.gz>
#
ARMROOT=/armbuild
ARMTOOLCHAIN=/usr/local/arm/3.2.3/bin
all: check debs ipks
clean:
rm -f *.stamp
rm -rf build-debs
rm -rf build-ipks
check:
@if test -n "${LD_PRELOAD}" ; then echo "ERROR: LD_PRELOAD is set !!"; exit 1;fi
ipks: ipkg-tools.stamp libosip.ipk linphone.ipk clean
ipkg-tools.stamp:
if which ipkg-build ; then echo "Found ipkg-build." ;\
else echo "** ERROR ** Cannot find ipkg-build"; exit 1; fi
if test -e $(ARMTOOLCHAIN)/arm-linux-gcc ; then \
echo "arm toolchain seems ok.";\
else echo "** ERROR ** Cannot find arm toolchain."; exit 1; fi
touch ipkg-tools.stamp
glib.ipk : glib.stamp linphone-sources-ipk.stamp
rm -rf build-ipks/glib*
cp $(GLIB) build-ipks/.
export CONFIG_SITE=`pwd`/build-ipks/ipaq-config.site && \
cd build-ipks && tar -xvzf glib*.tar.gz && rm -f glib*.tar.gz && cd glib* && \
./configure --prefix=$(ARMROOT)/usr --host=arm-linux --with-gnu-ld --disable-static \
&& make AM_CFLAGS=-DSSIZE_MAX=0xffffffff && make install && \
make install prefix=`pwd`$(ARMROOT)/usr
echo "Building .ipk file..."
cd build-ipks/glib*$(ARMROOT) && mkdir CONTROL && cd CONTROL && \
cp ../../../linphone*/ipkg/glib.control control && \
cd ../.. && rm -rf armbuild/usr/include
cd build-ipks/glib* && ipkg-build -o root -g root armbuild/
cp build-ipks/glib*/*.ipk .
libosip.ipk : libosip.stamp linphone-sources-ipk.stamp
rm -rf build-ipks/libosip*
cp $(LIBOSIP) build-ipks/
export CONFIG_SITE=`pwd`/build-ipks/ipaq-config.site && \
cd build-ipks && tar -xvzf libosip*.tar.gz && rm -f libosip*.tar.gz && cd libosip* && \
./configure --prefix=$(ARMROOT)/usr --host=arm-linux --with-gnu-ld --disable-static \
&& make && make install && make install prefix=`pwd`$(ARMROOT)/usr
echo "Building .ipk file..."
cd build-ipks/libosip*$(ARMROOT) && mkdir CONTROL && cd CONTROL && \
cp ../../../linphone*/ipkg/libosip.control control &&\
cd ../.. && rm -rf armbuild/usr/include
cd build-ipks/libosip* && ipkg-build -o root -g root armbuild/
cp build-ipks/libosip*/*.ipk .
linphone.ipk : linphone.stamp linphone-sources-ipk.stamp
export CONFIG_SITE=`pwd`/build-ipks/ipaq-config.site && \
cd build-ipks/linphone* && export PKG_CONFIG_PATH=$(ARMROOT)/usr/lib/pkgconfig &&\
./configure --prefix=$(ARMROOT)/usr --with-realprefix=/usr --host=arm-linux \
--with-gnu-ld --disable-static --disable-gnome_ui --disable-glib --with-osip=$(ARMROOT)/usr \
--disable-ogg --disable-rtcp && make && make install prefix=`pwd`$(ARMROOT)/usr
echo "Building .ipk file..."
cd build-ipks/linphone*$(ARMROOT) && mkdir -p CONTROL && cd CONTROL && \
cp -f ../../ipkg/linphone.control control &&\
cd ../.. && rm -rf armbuild/usr/include armbuild/usr/share/gtk-doc \
&& cd armbuild/usr/share/sounds/linphone/rings && \
rm -f rock.wav sweet.wav bigben.wav toy.wav tapping.wav synth.wav && cd - \
cd build-ipks/linphone* && ipkg-build -o root -g root armbuild/
cp -f build-ipks/linphone*/*.ipk .
build-ipks.stamp:
-@touch $(ARMROOT)/dummy
@if test -e $(ARMROOT)/dummy ; \
then echo "armroot is fine: $(ARMROOT)"; \
else \
echo "** ERROR: you need to create a $(ARMROOT) directory readable and writeable by the user running this build script.";\
exit 1;\
fi
rm -f $(ARMROOT)/dummy
touch build-ipks.stamp
mkdir build-ipks
linphone-sources-ipk.stamp: linphone.stamp build-ipks.stamp
cp $(LINPHONE) build-ipks/.
cd build-ipks && tar -xvzf linphone*.tar.gz && cp linphone*/ipkg/ipaq-config.site . \
&& rm -f linphone*.tar.gz
touch linphone-sources-ipk.stamp
debs: linphone.stamp clean
rm -f linphone.stamp
rm -rf build-debs
mkdir build-debs
cp $(LINPHONE) build-debs/.
cd build-debs && tar -xvzf *.tar.gz && cd linphone* && dpkg-buildpackage -rfakeroot
cp build-debs/*.deb .
linphone.stamp:
@if test -n "$(LINPHONE)" ; \
then echo "linphone source is $(LINPHONE)" ; \
touch linphone.stamp; \
else \
echo "No linphone source found." ; \
exit 1; \
fi
libosip.stamp:
@if test -n "$(LIBOSIP)" ; \
then echo "libosip source is $(LIBOSIP)" ; \
touch libosip.stamp; \
else \
echo "No libosip source found." ; \
exit 1; \
fi
glib.stamp:
@if test -n "$(GLIB)" ; \
then echo "glib source is $(GLIB)" ; \
else \
echo "No glib source found." ; \
exit -1; \
fi
@if which glib-genmarshal ; \
then \
echo "native glib-2.2 found on build host." ; \
touch glib.stamp ;\
else \
echo "** ERROR ** You need a working glib>2.2 on the build machine to be able to crosscompile it for arm." ;\
echo "** ERROR ** Please install a glib on this machine."; exit 1; \
fi
EXTRA_DIST= copyright dirs manpage.sgml.ex rules \
control docs manpage.1.ex menu watch.ex changelog
changelog: changelog.stamp
echo -n -e "linphone (">changelog
echo -n -e $(VERSION)>>changelog
echo -n -e "-1) unstable; urgency=low\n\n">>changelog
echo -n -e " * New Release.\n\n">>changelog
echo -n -e " -- Simon Morlat <simon.morlat@linphone.org> ">>changelog
date -R >>changelog
touch changelog.stamp
changelog.stamp:
touch changelog.stamp
Source: linphone
Section: sound
Priority: optional
Maintainer: Uwe Steinmann <uwe@steinmann.cx>
Build-Depends: debhelper (>> 3.0.0), libosip0-dev (>= 0.9.6), libasound2-dev (>=0.9.4)
Standards-Version: 3.5.2
Package: linphone
Architecture: any
Depends: ${shlibs:Depends}, libosip0 (>= 0.9.6), libspeex1, libasound2 (>=0.9.4)
Description: A sip phone
Linphone is a web phone: it let you phone to your friends anywhere in the
whole world, freely, simply by using the internet. It is compatible with the
well known SIP protocol.
This package was debianized by Uwe Steinmann <uwe@steinmann.cx> on
Thu, 28 Feb 2002 08:29:57 +0100.
It was downloaded from http://www.linphone.org
Upstream Author(s): Simon Morlat <simon.morlat@linphone.org>
Copyright:
GPL
.\" Hey, EMACS: -*- nroff -*-
.\" First parameter, NAME, should be all caps
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
.\" other parameters are allowed: see man(7), man(1)
.TH LINPHONE SECTION "February 28, 2002"
.\" Please adjust this date whenever revising the manpage.
.\"
.\" Some roff macros, for reference:
.\" .nh disable hyphenation
.\" .hy enable hyphenation
.\" .ad l left justify
.\" .ad b justify to both left and right margins
.\" .nf disable filling
.\" .fi enable filling
.\" .br insert line break
.\" .sp <n> insert n+1 empty lines
.\" for manpage-specific macros, see man(7)
.SH NAME
linphone \- program to do something
.SH SYNOPSIS
.B linphone
.RI [ options ] " files" ...
.br
.B bar
.RI [ options ] " files" ...
.SH DESCRIPTION
This manual page documents briefly the
.B linphone
and
.B bar
commands.
This manual page was written for the Debian distribution
because the original program does not have a manual page.
Instead, it has documentation in the GNU Info format; see below.
.PP
.\" TeX users may be more comfortable with the \fB<whatever>\fP and
.\" \fI<whatever>\fP escape sequences to invode bold face and italics,
.\" respectively.
\fBlinphone\fP is a program that...
.SH OPTIONS
These programs follow the usual GNU command line syntax, with long
options starting with two dashes (`-').
A summary of options is included below.
For a complete description, see the Info files.
.TP
.B \-h, \-\-help
Show summary of options.
.TP
.B \-v, \-\-version
Show version of program.
.SH SEE ALSO
.BR bar (1),
.BR baz (1).
.br
The programs are documented fully by
.IR "The Rise and Fall of a Fooish Bar" ,
available via the Info system.
.SH AUTHOR
This manual page was written by Uwe Steinmann <uwe@steinmann.cx>,
for the Debian GNU/Linux system (but may be used by others).
<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
<!-- Process this file with docbook-to-man to generate an nroff manual
page: `docbook-to-man manpage.sgml > manpage.1'. You may view
the manual page with: `docbook-to-man manpage.sgml | nroff -man |
less'. A typical entry in a Makefile or Makefile.am is:
manpage.1: manpage.sgml
docbook-to-man $< > $@
The docbook-to-man binary is found in the docbook-to-man package.
Please remember that if you create the nroff version in one of the
debian/rules file targets (such as build), you will need to include
docbook-to-man in your Build-Depends control field.
-->
<!-- Fill in your name for FIRSTNAME and SURNAME. -->
<!ENTITY dhfirstname "<firstname>FIRSTNAME</firstname>">
<!ENTITY dhsurname "<surname>SURNAME</surname>">
<!-- Please adjust the date whenever revising the manpage. -->
<!ENTITY dhdate "<date>February 28, 2002</date>">
<!-- SECTION should be 1-8, maybe w/ subsection other parameters are
allowed: see man(7), man(1). -->
<!ENTITY dhsection "<manvolnum>SECTION</manvolnum>">
<!ENTITY dhemail "<email>uwe@steinmann.cx</email>">
<!ENTITY dhusername "Uwe Steinmann">
<!ENTITY dhucpackage "<refentrytitle>LINPHONE</refentrytitle>">
<!ENTITY dhpackage "linphone">
<!ENTITY debian "<productname>Debian</productname>">
<!ENTITY gnu "<acronym>GNU</acronym>">
]>
<refentry>
<refentryinfo>
<address>
&dhemail;
</address>
<author>
&dhfirstname;
&dhsurname;
</author>
<copyright>
<year>2001</year>
<holder>&dhusername;</holder>
</copyright>
&dhdate;
</refentryinfo>
<refmeta>
&dhucpackage;
&dhsection;
</refmeta>
<refnamediv>
<refname>&dhpackage;</refname>
<refpurpose>program to do something</refpurpose>
</refnamediv>
<refsynopsisdiv>
<cmdsynopsis>
<command>&dhpackage;</command>
<arg><option>-e <replaceable>this</replaceable></option></arg>
<arg><option>--example <replaceable>that</replaceable></option></arg>
</cmdsynopsis>
</refsynopsisdiv>
<refsect1>
<title>DESCRIPTION</title>
<para>This manual page documents briefly the
<command>&dhpackage;</command> and <command>bar</command>
commands.</para>
<para>This manual page was written for the &debian; distribution
because the original program does not have a manual page.
Instead, it has documentation in the &gnu;
<application>Info</application> format; see below.</para>
<para><command>&dhpackage;</command> is a program that...</para>
</refsect1>
<refsect1>
<title>OPTIONS</title>
<para>These programs follow the usual GNU command line syntax,
with long options starting with two dashes (`-'). A summary of
options is included below. For a complete description, see the
<application>Info</application> files.</para>
<variablelist>
<varlistentry>
<term><option>-h</option>
<option>--help</option>
</term>
<listitem>
<para>Show summary of options.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-v</option>
<option>--version</option>
</term>
<listitem>
<para>Show version of program.</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1>
<title>SEE ALSO</title>
<para>bar (1), baz (1).</para>
<para>The programs are documented fully by <citetitle>The Rise and
Fall of a Fooish Bar</citetitle> available via the
<application>Info</application> system.</para>
</refsect1>
<refsect1>
<title>AUTHOR</title>
<para>This manual page was written by &dhusername; &dhemail; for
the &debian; system (but may be used by others). Permission is
granted to copy, distribute and/or modify this document under
the terms of the <acronym>GNU</acronym> Free Documentation
License, Version 1.1 or any later version published by the Free
Software Foundation; with no Invariant Sections, no Front-Cover
Texts and no Back-Cover Texts.</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:2
sgml-indent-data:t
sgml-parent-document:nil
sgml-default-dtd-file:nil
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
-->
?package(linphone):needs=X11 section=Apps/Net \
title="Linphone" command="/usr/bin/linphone" hints="Telephony"\
icon="/usr/share/pixmaps/linphone/linphone2.xpm"
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# This is the debhelper compatibility version to use.
export DH_COMPAT=3
# These are used for cross-compiling and for saving the configure script
# from having to guess our platform (since we know it already)
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
CFLAGS += -g
endif
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
INSTALL_PROGRAM += -s
endif
configure: configure-stamp
configure-stamp:
dh_testdir
# Add here commands to configure the package.
./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --disable-static --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --sysconfdir=/etc
touch configure-stamp
build: build-stamp
build-stamp: configure-stamp
dh_testdir
# Add here commands to compile the package.
$(MAKE)
#/usr/bin/docbook-to-man debian/linphone.sgml > linphone.1
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
# Add here commands to clean up after the build process.
-make clean
-make distclean
-test -r /usr/share/misc/config.sub && \
-cp -f /usr/share/misc/config.sub config.sub
-test -r /usr/share/misc/config.guess && \
-cp -f /usr/share/misc/config.guess config.guess
dh_clean
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
# Add here commands to install the package into debian/linphone.
$(MAKE) install PIXDESTDIR=$(CURDIR)/debian/linphone prefix=$(CURDIR)/debian/linphone/usr sysconfdir=$(CURDIR)/debian/linphone/etc
# remove speex libs, in order to not to conflict with speex debian package.
rm -f $(CURDIR)/debian/linphone/usr/lib/libspeex* \
$(CURDIR)/debian/linphone/usr/bin/speex* \
$(CURDIR)/debian/linphone/usr/include/speex* \
$(CURDIR)/debian/linphone/usr/share/man/man1/speex*
# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.
# Build architecture-dependent files here.
binary-arch: build install
dh_testdir
dh_testroot
# dh_installdebconf
dh_installdocs
dh_installexamples
dh_installmenu
# dh_installlogrotate
# dh_installemacsen
# dh_installpam
# dh_installmime
# dh_installinit
dh_installcron
dh_installman
dh_installinfo
# dh_undocumented
dh_installchangelogs ChangeLog
dh_link
dh_strip
dh_compress
dh_fixperms
# dh_makeshlibs
dh_installdeb
# dh_perl
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure
# Example watch control file for uscan
# Rename this file to "watch" and then you can run the "uscan" command
# to check for upstream updates and more.
# Site Directory Pattern Version Script
sunsite.unc.edu /pub/Linux/Incoming linphone-(.*)\.tar\.gz debian uupdate
.deps
.libs
Makefile
Makefile.in
*.lo
*.la
noinst_LTLIBRARIES = libeXosip.la
AM_CFLAGS = $(EXOSIP_CFLAGS)
libeXosip_la_SOURCES = eXosip.c \
jrequest.c jresponse.c jcallback.c jdialog.c udp.c \
jcall.c jreg.c jfreinds.c jidentity.c eXutils.c \
jnotify.c jsubscribers.c jsubscribe.c jevents.c \
sdp_offans.c misc.c eXosip2.h \
jpipe.c jpipe.h jauth.c jpublish.c \
eXosip.h eXosip_cfg.h
libeXosip_la_LIBADD = $(EXOSIP_LIBS)
INCLUDES = -I$(top_srcdir)
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
<
/*
eXosip - This is the eXtended osip library.
Copyright (C) 2002, 2003 Aymeric MOIZARD - jack@atosc.org
eXosip is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
eXosip is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifdef ENABLE_MPATROL
#include <mpatrol.h>
#endif
#ifndef __EXOSIP_CFG_H__
#define __EXOSIP_CFG_H__
/**
* @defgroup eXosip_cfg eXosip Configuration Management
* @ingroup eXosip
* @{
*/
#ifdef __cplusplus
extern "C"
{
#endif
typedef struct jfriend_t jfriend_t;
struct jfriend_t {
int f_id;
char *f_nick;
char *f_home;
char *f_work;
char *f_email;
char *f_e164;
jfriend_t *next;
jfriend_t *parent;
};
typedef struct jidentity_t jidentity_t;
struct jidentity_t {
int i_id;
char *i_identity;
char *i_registrar;
char *i_realm;
char *i_userid;
char *i_pwd;
jidentity_t *next;
jidentity_t *parent;
};
typedef struct jsubscriber_t jsubscriber_t;
struct jsubscriber_t {
int s_id;
char *s_nick;
char *s_uri;
char *s_allow;
jsubscriber_t *next;
jsubscriber_t *parent;
};
jfriend_t *jfriend_get(void);
void jfriend_remove(jfriend_t *fr);
jsubscriber_t *jsubscriber_get(void);
jidentity_t *jidentity_get(void);
int jfriend_load(void);
void jfriend_unload(void);
void jfriend_add(char *nickname, char *home,
char *work, char *email, char *e164);
char *jfriend_get_home(int fid);
int jsubscriber_load(void);
void jsubscriber_unload(void);
void subscribers_add(char *nickname, char *uri, int black_list);
char *jsubscriber_get_uri(int fid);
int jidentity_load(void);
void jidentity_unload(void);
void identitys_add(char *identity, char *registrar, char *realm,
char *userid, char *password);
char *jidentity_get_identity(int fid);
char *jidentity_get_registrar(int fid);