aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDavid M. Syzdek <david@syzdek.net>2020-08-23 21:30:39 -0800
committerDavid M. Syzdek <david@syzdek.net>2020-08-23 21:30:39 -0800
commitc76befcc9063fe12d30d239abeb2f350a648b0f1 (patch)
tree73f41b653f09956042edd05629700a3a475e50a6
parentfa715067b7a69c71bca5aae26fa9fbd1c62f0a70 (diff)
downloadotputils-c76befcc9063fe12d30d239abeb2f350a648b0f1.tar.gz
otputils-c76befcc9063fe12d30d239abeb2f350a648b0f1.tar.bz2
otputils-c76befcc9063fe12d30d239abeb2f350a648b0f1.tar.xz
otputils-c76befcc9063fe12d30d239abeb2f350a648b0f1.zip
Adding initial files
-rw-r--r--.gitignore29
-rw-r--r--.gitmodules3
-rw-r--r--AUTHORS.md1
-rw-r--r--COPYING.md30
-rw-r--r--ChangeLog.md8
-rw-r--r--Makefile.am132
-rw-r--r--NEWS.md8
-rw-r--r--README.md100
-rw-r--r--TODO.md6
-rw-r--r--acinclude.m438
-rwxr-xr-xautogen.sh110
-rw-r--r--build-aux/.gitignore9
-rw-r--r--build-aux/git-tar-name.txt1
-rw-r--r--configure.ac190
m---------contrib/bindletools0
-rw-r--r--include/.gitignore3
-rw-r--r--m4/.gitignore14
17 files changed, 682 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..6af318e
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,29 @@
1*~
2*.lo
3*.mode1v3
4*.o
5*.pbxuser
6.DS_Store
7.deps
8.dirstamp
9/ABOUT-NLS
10/INSTALL
11/Makefile
12/Makefile.in
13/build-aux/git-package-version
14/libtool
15/totpknock-*.tar.*
16/totpknock-*.zip
17a.out
18aclocal.m4
19autom4te.cache
20autoscan.log
21build/
22config.h
23config.h.in
24config.log
25config.status
26configure
27configure.scan
28stamp-h1
29xcuserdata
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 0000000..dfc1e22
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,3 @@
1[submodule "contrib/bindletools"]
2 path = contrib/bindletools
3 url = https://github.com/bindle/bindletools.git
diff --git a/AUTHORS.md b/AUTHORS.md
new file mode 100644
index 0000000..0a4a649
--- /dev/null
+++ b/AUTHORS.md
@@ -0,0 +1 @@
David M. Syzdek, david@syzdek.net
diff --git a/COPYING.md b/COPYING.md
new file mode 100644
index 0000000..4b2d316
--- /dev/null
+++ b/COPYING.md
@@ -0,0 +1,30 @@
1
2TOTP Port Knocking Suite
3Copyright (C) 2020 David M. Syzdek <david@syzdek.net>.
4All rights reserved.
5
6Redistribution and use in source and binary forms, with or without
7modification, are permitted provided that the following conditions are
8met:
9
10 * Redistributions of source code must retain the above copyright
11 notice, this list of conditions and the following disclaimer.
12 * Redistributions in binary form must reproduce the above copyright
13 notice, this list of conditions and the following disclaimer in the
14 documentation and/or other materials provided with the distribution.
15 * Neither the name of David M. Syzdek nor the
16 names of its contributors may be used to endorse or promote products
17 derived from this software without specific prior written permission.
18
19THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
20IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
21THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DAVID M. SYZDEK BE LIABLE FOR
23ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29SUCH DAMAGE.
30
diff --git a/ChangeLog.md b/ChangeLog.md
new file mode 100644
index 0000000..38910a2
--- /dev/null
+++ b/ChangeLog.md
@@ -0,0 +1,8 @@
1
2TOTP Port Knocking Suite
3Copyright (C) 2020 David M. Syzdek <david@syzdek.net>.
4All rights reserved.
5
60.0 2020-08-23
7 - starting project (syzdek)
8
diff --git a/Makefile.am b/Makefile.am
new file mode 100644
index 0000000..be36917
--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1,132 @@
1#
2# TOTP Port Knocking Suite
3# Copyright (C) 2020 David M. Syzdek <david@syzdek.net>.
4#
5# @SYZDEK_BSD_LICENSE_START@
6#
7# Redistribution and use in source and binary forms, with or without
8# modification, are permitted provided that the following conditions are
9# met:
10#
11# * Redistributions of source code must retain the above copyright
12# notice, this list of conditions and the following disclaimer.
13# * Redistributions in binary form must reproduce the above copyright
14# notice, this list of conditions and the following disclaimer in the
15# documentation and/or other materials provided with the distribution.
16# * Neither the name of David M. Syzdek nor the
17# names of its contributors may be used to endorse or promote products
18# derived from this software without specific prior written permission.
19#
20# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
21# IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DAVID M SYZDEK BE LIABLE FOR
24# ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30# SUCH DAMAGE.
31#
32# @SYZDEK_BSD_LICENSE_END@
33#
34# @configure_input@
35#
36# Makefile.am - automate compiling on a unix platform
37#
38
39# Sub directories
40SUBDIRS =
41DIST_SUBDIRS =
42
43
44# Global flags
45AM_LIBS =
46AM_LDFLAGS =
47AM_CFLAGS = -O2 $(CFLAGS_WARNINGS)
48AM_CXXFLAGS = -O2 @AM_CXXFLAGS@
49AM_OBJCFLAGS = -O2 @AM_OBJCFLAGS@
50AM_CPPFLAGS = -O2 \
51 -U__TOTPKNOCK_PMARK \
52 -DHAVE_CONFIG_H=1 \
53 -I$(top_builddir)/include \
54 -I$(top_srcdir)/include \
55 -I$(top_srcdir)/src/common \
56 -DSYSCONFDIR="\"$(sysconfdir)\""
57ACLOCAL_AMFLAGS = -I m4 -W all -W error
58AM_MAKEINFOFLAGS = --no-split
59DEFS =
60
61
62# automake targets
63check_PROGRAMS =
64doc_DATA = \
65 AUTHORS.md \
66 ChangeLog.md \
67 COPYING.md \
68 README.md \
69 TODO.md
70include_HEADERS =
71lib_LTLIBRARIES =
72man_MANS =
73info_TEXINFOS =
74noinst_LTLIBRARIES =
75noinst_LIBRARIES =
76noinst_HEADERS =
77noinst_PROGRAMS =
78bin_PROGRAMS =
79bin_SCRIPTS =
80pkgdata_DATA =
81sbin_SCRIPTS =
82sbin_PROGRAMS =
83
84
85# lists
86AM_INSTALLCHECK_STD_OPTIONS_EXEMPT =
87BUILT_SOURCES =
88TESTS =
89XFAIL_TESTS =
90EXTRA_MANS =
91EXTRA_DIST = \
92 $(doc_DATA)
93CLEANFILES = \
94 $(builddir)/a.out $(srcdir)/a.out \
95 $(builddir)/*/a.out $(srcdir)/*/a.out \
96 config.h.in~ $(srcdir)/config.h.in~ \
97 $(man_MANS) \
98 $(pkgdata_DATA) \
99 $(bin_SCRIPTS) \
100 $(sbin_SCRIPTS) \
101 @PACKAGE_TARNAME@-*.tar.* \
102 @PACKAGE_TARNAME@-*.txz \
103 @PACKAGE_TARNAME@-*.zip
104DISTCHECK_CONFIGURE_FLAGS = --enable-strictwarnings
105
106
107# Makefile includes
108GIT_PACKAGE_VERSION_DIR=include
109SUBST_EXPRESSIONS =
110include $(srcdir)/@bindletools_srcdir@/build-aux/makefile-autotools.am
111include $(srcdir)/@bindletools_srcdir@/build-aux/makefile-subst.am
112include $(srcdir)/@bindletools_srcdir@/build-aux/makefile-version.am
113
114
115# custom targets
116.PHONY:
117
118# local targets
119install-exec-local:
120
121install-data-local:
122
123install-data-hook:
124
125uninstall-local:
126
127clean-local:
128
129distclean-local:
130 rm -fR $(srcdir)/autom4te.cache
131
132# end of automake file
diff --git a/NEWS.md b/NEWS.md
new file mode 100644
index 0000000..914f926
--- /dev/null
+++ b/NEWS.md
@@ -0,0 +1,8 @@
1
2TOTP Port Knocking Suite
3Copyright (C) 2020 David M. Syzdek <david@syzdek.net>.
4All rights reserved.
5
62020-08-23
7 - Nothing to report
8
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..f91bfb3
--- /dev/null
+++ b/README.md
@@ -0,0 +1,100 @@
1
2TOTP Port Knocking Suite
3========================
4
5Copyright (C) 2020 David M. Syzdek <david@syzdek.net>.
6All rights reserved.
7
8Redistribution and use in source and binary forms, with or without
9modification, are permitted provided that the following conditions are
10met:
11
12 * Redistributions of source code must retain the above copyright
13 notice, this list of conditions and the following disclaimer.
14 * Redistributions in binary form must reproduce the above copyright
15 notice, this list of conditions and the following disclaimer in the
16 documentation and/or other materials provided with the distribution.
17 * Neither the name of David M. Syzdek nor the
18 names of its contributors may be used to endorse or promote products
19 derived from this software without specific prior written permission.
20
21THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
22IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
23THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
24PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DAVID M. SYZDEK BE LIABLE FOR
25ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
27SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
28CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31SUCH DAMAGE.
32
33
34Table of Contents
35-----------------
36
37 * Overview
38
39
40Source Code
41===========
42
43The source code for this project is maintained using git (http://git-scm.com).
44The following contains information to checkout the source code from the git
45repository.
46
47Browse Source:
48
49 https://github.com/syzdek/totpknock
50
51Git URLs:
52
53 git://github.com/syzdek/totpknock.git
54 https://github.com/syzdek/totpknock.git
55 git@github.com:syzdek/totpknock.git
56
57Downloading Source:
58
59 $ git clone git://github.com/syzdek/totpknock.git
60
61Preparing Source:
62
63 $ cd totpknock
64 $ ./autogen.sh
65
66Git Branches:
67
68 master - Current release of packages.
69 next - changes staged for next release
70 pu - proposed updates for next release
71 xx/yy+ - branch for testing new changes before merging to 'pu' branch
72
73
74Package Maintence Notes
75=======================
76
77This is a collection of notes for developers to use when maintaining this
78package.
79
80New Release Checklist:
81
82 - Switch to 'master' branch in Git repository.
83 - Update version in configure.ac.
84 - Update date and version in ChangeLog.
85 - Commit configure.ac and ChangeLog changes to repository.
86 - Create tag in git repository:
87
88 $ git tag -s v${MAJOR}.${MINOR}
89
90 - Push repository to publishing server:
91
92 $ git push --tags origin master:master next:next pu:pu
93
94Creating Source Distribution Archives:
95
96 $ ./configure
97 $ make update
98 $ make distcheck
99 $ make dist-bzip2
100
diff --git a/TODO.md b/TODO.md
new file mode 100644
index 0000000..d72a533
--- /dev/null
+++ b/TODO.md
@@ -0,0 +1,6 @@
1
2TOTP Port Knocking Suite
3Copyright (C) 2020 David M. Syzdek <david@syzdek.net>.
4All rights reserved.
5
6
diff --git a/acinclude.m4 b/acinclude.m4
new file mode 100644
index 0000000..2e80228
--- /dev/null
+++ b/acinclude.m4
@@ -0,0 +1,38 @@
1#
2# TOTP Port Knocking Suite
3# Copyright (C) 2020 David M. Syzdek <david@syzdek.net>.
4#
5# @SYZDEK_BSD_LICENSE_START@
6#
7# Redistribution and use in source and binary forms, with or without
8# modification, are permitted provided that the following conditions are
9# met:
10#
11# * Redistributions of source code must retain the above copyright
12# notice, this list of conditions and the following disclaimer.
13# * Redistributions in binary form must reproduce the above copyright
14# notice, this list of conditions and the following disclaimer in the
15# documentation and/or other materials provided with the distribution.
16# * Neither the name of David M. Syzdek nor the
17# names of its contributors may be used to endorse or promote products
18# derived from this software without specific prior written permission.
19#
20# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
21# IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DAVID M SYZDEK BE LIABLE FOR
24# ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30# SUCH DAMAGE.
31#
32# @SYZDEK_BSD_LICENSE_END@
33#
34# acinclude.m4 - custom m4 macros used by configure.ac
35#
36
37
38# end of m4 file
diff --git a/autogen.sh b/autogen.sh
new file mode 100755
index 0000000..3136ef9
--- /dev/null
+++ b/autogen.sh
@@ -0,0 +1,110 @@
1#!/bin/sh
2#
3# Bindle Binaries Tools
4# Copyright (c) 2014, 2016 Bindle Binaries
5# All rights reserved.
6#
7# @BINDLE_BINARIES_BSD_LICENSE_START@
8#
9# Redistribution and use in source and binary forms, with or without
10# modification, are permitted provided that the following conditions are
11# met:
12#
13# * Redistributions of source code must retain the above copyright
14# notice, this list of conditions and the following disclaimer.
15# * Redistributions in binary form must reproduce the above copyright
16# notice, this list of conditions and the following disclaimer in the
17# documentation and/or other materials provided with the distribution.
18# * Neither the name of Bindle Binaries nor the
19# names of its contributors may be used to endorse or promote products
20# derived from this software without specific prior written permission.
21#
22# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
23# IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
24# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
25# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BINDLE BINARIES BE LIABLE FOR
26# ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32# SUCH DAMAGE.
33#
34# @BINDLE_BINARIES_BSD_LICENSE_END@
35#
36# autogen.sh - runs GNU Autotools to create build environment
37#
38
39AUTOGENNAME="`basename ${0}`" || exit 1
40SRCDIR="`dirname ${0}`"
41
42
43# check for required programs
44for TEST_PROG in which autoreconf autoscan find git;do
45 which ${TEST_PROG} 2> /dev/null > /dev/null;
46 if test $? -ne 0;then
47 echo "${AUTOGENNAME}: unable to find \"${TEST_PROG}\""
48 exit 1
49 fi
50done
51
52
53# updates git repository
54if test -d ${SRCDIR}/.git || test -f ${SRCDIR}/.git;then
55 cd ${SRCDIR}
56 git submodule init || exit 1
57 git submodule sync || exit 1
58 git submodule update --init --recursive --merge || exit 1
59 cd -
60fi
61
62
63# generates files for bindletools
64if test -x ${SRCDIR}/contrib/bindletools/autogen.sh;then
65 ${SRCDIR}/contrib/bindletools/autogen.sh || exit 1
66fi
67
68
69# symlinks Bindle Tools M4 macros
70if test -f ${SRCDIR}/contrib/bindletools/m4/bindle-gcc.m4;then
71 cd ${SRCDIR}/m4
72 rm -f ./bindle*.m4 || exit 1
73 ln -s ../contrib/bindletools/m4/bindle*.m4 ./
74 cd -
75fi
76
77
78# perform pre-hook
79if test -f ${SRCDIR}/build-aux/autogen-pre-hook.sh;then
80 . ${SRCDIR}/build-aux/autogen-pre-hook.sh
81fi
82
83
84# Performs some useful checks
85autoscan ${SRCDIR} || exit 1
86
87
88# generates/installs autotools files
89autoreconf -v -i -f -Wall \
90 -I m4 \
91 -m \
92 ${SRCDIR} \
93 || exit 1
94
95
96# perform post-hook
97if test -f ${SRCDIR}/build-aux/autogen-post-hook.sh;then
98 . ${SRCDIR}/build-aux/autogen-post-hook.sh
99fi
100
101
102# makes build directory
103mkdir -p ${SRCDIR}/build
104
105
106# add newline to create visual separation
107echo " "
108
109
110# end of script
diff --git a/build-aux/.gitignore b/build-aux/.gitignore
new file mode 100644
index 0000000..a1edfd1
--- /dev/null
+++ b/build-aux/.gitignore
@@ -0,0 +1,9 @@
1/compile
2/config.guess
3/config.sub
4/depcomp
5/install-sh
6/ltmain.sh
7/missing
8/test-driver
9/texinfo.tex
diff --git a/build-aux/git-tar-name.txt b/build-aux/git-tar-name.txt
new file mode 100644
index 0000000..8c0578a
--- /dev/null
+++ b/build-aux/git-tar-name.txt
@@ -0,0 +1 @@
totpknock
diff --git a/configure.ac b/configure.ac
new file mode 100644
index 0000000..7414c09
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,190 @@
1#
2# TOTP Port Knocking Suite
3# Copyright (C) 2020 David M. Syzdek <david@syzdek.net>.
4#
5# @SYZDEK_BSD_LICENSE_START@
6#
7# Redistribution and use in source and binary forms, with or without
8# modification, are permitted provided that the following conditions are
9# met:
10#
11# * Redistributions of source code must retain the above copyright
12# notice, this list of conditions and the following disclaimer.
13# * Redistributions in binary form must reproduce the above copyright
14# notice, this list of conditions and the following disclaimer in the
15# documentation and/or other materials provided with the distribution.
16# * Neither the name of David M. Syzdek nor the
17# names of its contributors may be used to endorse or promote products
18# derived from this software without specific prior written permission.
19#
20# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
21# IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DAVID M SYZDEK BE LIABLE FOR
24# ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30# SUCH DAMAGE.
31#
32# @SYZDEK_BSD_LICENSE_END@
33#
34# configure.in - automate compiling on a unix platform
35#
36
37AC_PREREQ([2.65])
38
39
40AC_COPYRIGHT([Copyright (C) 2020 David M. Syzdek <david@syzdek.net>.])
41AC_REVISION(0.1)
42AC_INIT([TOTP Port Knocking Suite],[0.0],[david@syzdek.net],[totpknock],[https://github.com/syzdek/totpknock/])
43
44
45AC_SUBST([RELEASE_MONTH],["August 2020"])
46
47
48# directory locations
49AC_CONFIG_AUX_DIR([build-aux])
50AC_CONFIG_SRCDIR([build-aux/git-tar-name.txt])
51#AC_CONFIG_LIBOBJ_DIR(compat)
52AC_CONFIG_HEADERS([config.h])
53AC_CONFIG_MACRO_DIR([m4])
54
55
56# determines host type
57AC_CANONICAL_BUILD
58AC_CANONICAL_HOST
59AC_CANONICAL_TARGET
60
61
62# configures for automake
63AM_INIT_AUTOMAKE(gnu std-options subdir-objects foreign)
64
65
66# Compilers
67AC_PROG_CC
68#AC_PROG_OBJC
69AC_PROG_CXX
70AM_PROG_CC_C_O
71AC_PROG_INSTALL
72AC_PROG_MAKE_SET
73AC_USE_SYSTEM_EXTENSIONS # replaces AC_AIX AC_GNU_SOURCE AC_MINIX
74AC_C_BIGENDIAN
75
76
77# Version Info:
78# Current -- the current version number of this API
79# Revision -- the revision of the implementation of the API version
80# Age -- How many seqential past API versions is supported by
81# this implementation
82# Format => Current:Revision:Age
83# Convenience macro:
84# AC_BINDLE_LIBTOOL_VERSION_INFO(current, revision, age)
85AC_BINDLE_LIBTOOL_VERSION_INFO(0, 0, 0)
86
87
88# binary locations
89AC_PATH_PROG([SHELL], sh bash, [AC_MSG_ERROR([missing "sh"])], [$PATH])
90AC_CHECK_TOOLS(AR, ar gar, [AC_MSG_ERROR([missing binutil "ar"])])
91AC_CHECK_TOOLS(LD, ld gld, [AC_MSG_ERROR([missing binutil "ld"])])
92AC_CHECK_TOOLS(NM, nm gnm, [AC_MSG_ERROR([missing binutil "nm"])])
93AC_CHECK_TOOLS(RANLIB, ranlib granlib, [AC_MSG_ERROR([missing binutil "ranlib"])])
94AC_CHECK_TOOLS(STRIP, strip gstrip, [AC_MSG_ERROR([missing binutil "strip"])])
95
96
97# shell programs
98AC_PROG_AWK
99AC_PROG_EGREP
100AC_PROG_FGREP
101AM_PROG_LEX
102AC_PROG_LN_S
103
104
105# check for common functions
106AC_FUNC_FORK
107AC_FUNC_MALLOC
108AC_FUNC_REALLOC
109AC_FUNC_STRERROR_R
110AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
111
112# Type checks
113AC_TYPE_INT8_T
114AC_TYPE_INT16_T
115AC_TYPE_INT32_T
116AC_TYPE_INT64_T
117AC_TYPE_OFF_T
118AC_TYPE_SIZE_T
119AC_TYPE_SSIZE_T
120AC_TYPE_UID_T
121AC_TYPE_UINT8_T
122AC_TYPE_UINT16_T
123AC_TYPE_UINT32_T
124AC_TYPE_UINT64_T
125
126# check for required functions
127AC_CHECK_FUNCS([alarm], [], [AC_MSG_ERROR([missing required functions])])
128AC_CHECK_FUNCS([bzero], [], [AC_MSG_ERROR([missing required functions])])
129AC_CHECK_FUNCS([memset], [], [AC_MSG_ERROR([missing required functions])])
130AC_CHECK_FUNCS([rmdir], [], [AC_MSG_ERROR([missing required functions])])
131AC_CHECK_FUNCS([strcasecmp], [], [AC_MSG_ERROR([missing required functions])])
132AC_CHECK_FUNCS([strdup], [], [AC_MSG_ERROR([missing required functions])])
133AC_CHECK_FUNCS([strerror], [], [AC_MSG_ERROR([missing required functions])])
134AC_CHECK_FUNCS([strtoul], [], [AC_MSG_ERROR([missing required functions])])
135AC_CHECK_FUNCS([strtoumax], [], [AC_MSG_ERROR([missing required functions])])
136
137# check for headers
138AC_CHECK_HEADERS([assert.h], [], [AC_MSG_ERROR([missing required headers])])
139AC_CHECK_HEADERS([ctype.h], [], [AC_MSG_ERROR([missing required headers])])
140AC_CHECK_HEADERS([errno.h], [], [AC_MSG_ERROR([missing required headers])])
141AC_CHECK_HEADERS([fcntl.h], [], [AC_MSG_ERROR([missing required headers])])
142AC_CHECK_HEADERS([features.h], [], [])
143AC_CHECK_HEADERS([getopt.h], [], [AC_MSG_ERROR([missing required headers])])
144AC_CHECK_HEADERS([inttypes.h], [], [AC_MSG_ERROR([missing required headers])])
145AC_CHECK_HEADERS([limits.h], [], [AC_MSG_ERROR([missing required headers])])
146AC_CHECK_HEADERS([stdarg.h], [], [AC_MSG_ERROR([missing required headers])])
147AC_CHECK_HEADERS([stdint.h], [], [AC_MSG_ERROR([missing required headers])])
148AC_CHECK_HEADERS([stdio.h], [], [AC_MSG_ERROR([missing required headers])])
149AC_CHECK_HEADERS([stdlib.h], [], [AC_MSG_ERROR([missing required headers])])
150AC_CHECK_HEADERS([string.h], [], [AC_MSG_ERROR([missing required headers])])
151AC_CHECK_HEADERS([sys/cdefs.h], [], [AC_MSG_ERROR([missing required headers])])
152AC_CHECK_HEADERS([sys/ioctl.h], [], [AC_MSG_ERROR([missing required headers])])
153AC_CHECK_HEADERS([sys/types.h], [], [AC_MSG_ERROR([missing required headers])])
154AC_CHECK_HEADERS([sys/stat.h], [], [AC_MSG_ERROR([missing required headers])])
155AC_CHECK_HEADERS([termios.h], [], [AC_MSG_ERROR([missing required headers])])
156AC_CHECK_HEADERS([time.h], [], [AC_MSG_ERROR([missing required headers])])
157AC_CHECK_HEADERS([unistd.h], [], [AC_MSG_ERROR([missing required headers])])
158
159# GNU Libtool Support
160LT_INIT(dlopen disable-fast-install win32-dll)
161
162
163# initiates bindle tools macros
164AC_BINDLE(contrib/bindletools)
165
166
167# determine PACKAGE_VERSION via Git
168AC_BINDLE_GIT_PACKAGE_VERSION([contrib/bindletools/build-aux/git-package-version.sh])
169
170
171# custom configure options
172AC_BINDLE_ENABLE_WARNINGS
173
174
175# Creates outputs
176AC_CONFIG_FILES([Makefile])
177AC_OUTPUT
178
179
180# Show local config
181AC_MSG_NOTICE([ ])
182AC_MSG_NOTICE([ TOTP Port Knocking Suite $GIT_PACKAGE_VERSION ($GIT_PACKAGE_BUILD)])
183AC_MSG_NOTICE([ ])
184AC_MSG_NOTICE([ Please send suggestions to: $PACKAGE_BUGREPORT])
185AC_MSG_NOTICE([ ])
186AC_MSG_NOTICE([ run 'make all'])
187AC_MSG_NOTICE([ ])
188
189
190# end of configure.ac
diff --git a/contrib/bindletools b/contrib/bindletools
new file mode 160000
Subproject efa8b0398b7a3b3f2f61121fa79ff44f3643489
diff --git a/include/.gitignore b/include/.gitignore
new file mode 100644
index 0000000..27e65f1
--- /dev/null
+++ b/include/.gitignore
@@ -0,0 +1,3 @@
1/git-package-version-prefix.h
2/git-package-version.h
3/git-package-version.txt
diff --git a/m4/.gitignore b/m4/.gitignore
new file mode 100644
index 0000000..2b397df
--- /dev/null
+++ b/m4/.gitignore
@@ -0,0 +1,14 @@
1/bindle-fd-poller.m4
2/bindle-gcc.m4
3/bindle-git.m4
4/bindle-libtool.m4
5/bindle-perl.m4
6/bindle-postgresql.m4
7/bindle-sqlite3.m4
8/bindle-tools.m4
9/bindle-xxd.m4
10/libtool.m4
11/ltoptions.m4
12/ltsugar.m4
13/ltversion.m4
14/lt~obsolete.m4