__SILC_ENABLE_DEBUG=""
AC_PROG_RANLIB
+#ifndef SILC_DIST_TOOLKIT
AC_DISABLE_SHARED
+#endif SILC_DIST_TOOLKIT
AC_PROG_LIBTOOL
# Header checking
without_silcd=true
])
#endif SILC_DIST_TOOLKIT
+#ifdef SILC_DIST_INPLACE
+without_irssi=false
+without_silcd=false
+#endif SILC_DIST_INPLACE
libtoolfix=true
AC_MSG_CHECKING(whether to do libtoolfix)
--- /dev/null
+The SILC Toolkit distribution is dual-licensed distribution. The
+following licenses govern this distribution, and you are free to choose
+either one of the licenses:
+
+ - GNU General Public License, Version 2 (see file GPL)
+ - Revised BSD License (see file BSD)
+
+Choose GNU GPL if your application is also GNU GPL or other similar
+compatible Open Source licensed application.
+
+Choose Revised BSD license if your application is also BSD licensed or
+commercial application.
+
+NOTE: The files under the subdirectory apps/ are only GNU GPL licensed
+example application code. They are not compiled by default in SILC
+Toolkit, and not delivered into the any compiled binary or library. They
+are not dual-licensed code.
+
+Always verify the license from the file you are using.
+
+All code that is included in the compiled libraries (*) are dual-licensed
+and you may freely choose the license you wish to use from the above list.
+
+(*) lib/silcutil/silcconfig.c and lib/silcutil/silcconfig.h files are only
+ GNU GPL licensed. They are not dual licensed.
--- /dev/null
+ The contents of this file are subject to one of the Licenses specified
+ in the COPYING file; You may not use this file except in compliance
+ with the License.
+
+ The software distributed under the License is distributed on an "AS IS"
+ basis, in the hope that it will be useful, but WITHOUT WARRANTY OF ANY
+ KIND, either expressed or implied. See the COPYING file for more
+ information.
define SILC_DIST_INPLACE
# SFTP is undefined in server, so force it here
-#define SILC_DIST_SFTP
+define SILC_DIST_SFTP
pre-hook distdir/pre-run
if test -d $distdir; then
rm -rf `find $distdir -name CVS`
+ rm -rf `find $distdir -name Makefile`
fi
--- /dev/null
+#!/bin/sh
+
+distribution=$1
+dist_version=$2
+package=$3
+distdir=$4
+
+cd doc
+make dist-hook
+rm -rf toolkit
+make toolkit-ref-html
+cp ../lib/doc/*.gif toolkit
+cd ..
+
package silc-toolkit
bug-report silc-devel@lists.silcnet.org
+# Inherits
inherit common
inherit client
inherit server
-define SILC_DIST_TOOLKIT
+# License
+license distdir/TOOLKIT
+include distdir/GPL GPL
+include distdir/BSD BSD
+license-header distdir/GPL-header distdir/TOOLKIT-header
+# Distdefs
+define SILC_DIST_TOOLKIT
# SFTP is undefined in server, so force it here
-#define SILC_DIST_SFTP
+define SILC_DIST_SFTP
+# Includes
include README.CVS
include README.WIN32
include README.MACOSX
include apps/silc
include tutorial
+# Noprocess to optimize packaging and avoid re-licensing of certain files
+noprocess COPYING GPL BSD
+noprocess doc/toolkit/
+noprocess apps/
+noprocess win32/
+noprocess lib/silcutil/silcconfig.[ch]
+
pre-hook distdir/pre-run
post-process-dist-hook distdir/post-process-dist
+pre-dist-hook distdir/pre-dist
post-dist-hook distdir/post-dist
+
fi
dist-hook:
- rm -rf `find $(top_distdir)/doc -name CVS`
$(SILC_TOP_SRCDIR)/scripts/manpages.pl
touch draft-riikonen-silc-spec-08.txt
touch draft-riikonen-silc-pp-09.txt
-mkdir -p $(docdir)
#ifdef SILC_DIST_TOOLKIT
-$(INSTALL_DATA) $(top_srcdir)/doc/CodingStyle $(docdir)/
+ -$(INSTALL_DATA) $(top_srcdir)/GPL $(docdir)/
+ -$(INSTALL_DATA) $(top_srcdir)/BSD $(docdir)/
#endif SILC_DIST_TOOLKIT
-$(INSTALL_DATA) $(top_srcdir)/doc/FAQ $(docdir)/
-$(INSTALL_DATA) $(top_srcdir)/doc/*.txt $(docdir)/
#if defined(HAVE_GETOPT_H) && defined(HAVE_GETOPT)
#include <getopt.h>
#else
+#if defined(HAVE_SILCDEFS_H)
#include "getopti.h"
+#endif /* HAVE_SILCDEFS_H */
#endif
#ifdef SOCKS5
#endif
#ifndef HAVE_REGEX_H
+#if defined(HAVE_SILCDEFS_H)
#include "regexpr.h"
+#endif /* HAVE_SILCDEFS_H */
#else
#include <regex.h>
#endif
libcontrib_la_SOURCES = getopti.c $(STRINGPREP) $(REGEX)
endif
+#ifdef SILC_DIST_TOOLKIT
+if HAVE_REGEX
+REGEXH =
+else
+REGEXH = regexpr.h
+endif
+include_HEADERS = \
+ $(REGEXH) \
+ getopti.h \
+ gunicomp.h \
+ gunidecomp.h \
+ stringprep.h
+#endif SILC_DIST_TOOLKIT
+
EXTRA_DIST = *.c *.h
include $(top_srcdir)/Makefile.defines.in
log = silc_log_get_context(--type);
}
- if (!log)
+ if (!log || !log->fp)
goto end;
found:
# Begin Group "silcmath"\r
\r
# PROP Default_Filter ""\r
-# Begin Group "mpi"\r
-\r
-# PROP Default_Filter ""\r
-# Begin Source File\r
-\r
-SOURCE=..\..\lib\silcmath\mpi\mpi.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\..\lib\silcmath\mpi\mplogic.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\..\lib\silcmath\mpi\mpmontg.c\r
-# End Source File\r
-# End Group\r
# Begin Source File\r
\r
SOURCE=..\..\lib\silcmath\modinv.c\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=..\..\lib\silcmath\mp_mpi.c\r
+SOURCE=..\..\lib\silcmath\mp_tma.c\r
# End Source File\r
# Begin Source File\r
\r
\r
SOURCE=..\..\lib\silcmath\silcprimegen.c\r
# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcmath\tma.c\r
+# End Source File\r
# End Group\r
# Begin Group "silccrypt"\r
\r
# End Group\r
# Begin Group "silcmath No. 1"\r
\r
-# PROP Default_Filter ""\r
-# Begin Group "mpi No. 1"\r
-\r
# PROP Default_Filter ""\r
# Begin Source File\r
\r
-SOURCE=..\..\lib\silcmath\mpi\logtab.h\r
+SOURCE=..\..\lib\silcmath\mp_tma.h\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=..\..\lib\silcmath\mpi\montmulf.h\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE="..\..\lib\silcmath\mpi\mpi-config.h"\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE="..\..\lib\silcmath\mpi\mpi-priv.h"\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\..\lib\silcmath\mpi\mpi.h\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\..\lib\silcmath\mpi\mplogic.h\r
+SOURCE=..\..\lib\silcmath\silcmath.h\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=..\..\lib\silcmath\mpi\mpprime.h\r
+SOURCE=..\..\lib\silcmath\silcmp.h\r
# End Source File\r
-# End Group\r
# Begin Source File\r
\r
-SOURCE=..\..\lib\silcmath\mp_mpi.h\r
+SOURCE=..\..\lib\silcmath\tma.h\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=..\..\lib\silcmath\silcmath.h\r
+SOURCE=..\..\lib\silcmath\tma_class.h\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=..\..\lib\silcmath\silcmp.h\r
+SOURCE=..\..\lib\silcmath\tma_superclass.h\r
# End Source File\r
# End Group\r
# Begin Group "silccrypt No. 1"\r
# Begin Group "silcmath"\r
\r
# PROP Default_Filter ""\r
-# Begin Group "mpi"\r
-\r
-# PROP Default_Filter ""\r
-# Begin Source File\r
-\r
-SOURCE=..\..\lib\silcmath\mpi\mpi.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\..\lib\silcmath\mpi\mplogic.c\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\..\lib\silcmath\mpi\mpmontg.c\r
-# End Source File\r
-# End Group\r
# Begin Source File\r
\r
SOURCE=..\..\lib\silcmath\modinv.c\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=..\..\lib\silcmath\mp_mpi.c\r
+SOURCE=..\..\lib\silcmath\mp_tma.c\r
# End Source File\r
# Begin Source File\r
\r
\r
SOURCE=..\..\lib\silcmath\silcprimegen.c\r
# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\lib\silcmath\tma.c\r
+# End Source File\r
# End Group\r
# Begin Group "silccrypt"\r
\r
# End Group\r
# Begin Group "silcmath No. 1"\r
\r
-# PROP Default_Filter ""\r
-# Begin Group "mpi No. 1"\r
-\r
# PROP Default_Filter ""\r
# Begin Source File\r
\r
-SOURCE=..\..\lib\silcmath\mpi\logtab.h\r
+SOURCE=..\..\lib\silcmath\mp_tma.h\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=..\..\lib\silcmath\mpi\montmulf.h\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE="..\..\lib\silcmath\mpi\mpi-config.h"\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE="..\..\lib\silcmath\mpi\mpi-priv.h"\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\..\lib\silcmath\mpi\mpi.h\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=..\..\lib\silcmath\mpi\mplogic.h\r
+SOURCE=..\..\lib\silcmath\silcmath.h\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=..\..\lib\silcmath\mpi\mpprime.h\r
+SOURCE=..\..\lib\silcmath\silcmp.h\r
# End Source File\r
-# End Group\r
# Begin Source File\r
\r
-SOURCE=..\..\lib\silcmath\mp_mpi.h\r
+SOURCE=..\..\lib\silcmath\tma.h\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=..\..\lib\silcmath\silcmath.h\r
+SOURCE=..\..\lib\silcmath\tma_class.h\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=..\..\lib\silcmath\silcmp.h\r
+SOURCE=..\..\lib\silcmath\tma_superclass.h\r
# End Source File\r
# End Group\r
# Begin Group "silccrypt No. 1"\r