diff options
| author | David M. Syzdek <david@syzdek.net> | 2020-08-23 21:30:39 -0800 |
|---|---|---|
| committer | David M. Syzdek <david@syzdek.net> | 2020-08-23 21:30:39 -0800 |
| commit | c76befcc9063fe12d30d239abeb2f350a648b0f1 (patch) | |
| tree | 73f41b653f09956042edd05629700a3a475e50a6 | |
| parent | fa715067b7a69c71bca5aae26fa9fbd1c62f0a70 (diff) | |
| download | otputils-c76befcc9063fe12d30d239abeb2f350a648b0f1.tar.gz otputils-c76befcc9063fe12d30d239abeb2f350a648b0f1.tar.bz2 otputils-c76befcc9063fe12d30d239abeb2f350a648b0f1.tar.xz otputils-c76befcc9063fe12d30d239abeb2f350a648b0f1.zip | |
Adding initial files
| -rw-r--r-- | .gitignore | 29 | ||||
| -rw-r--r-- | .gitmodules | 3 | ||||
| -rw-r--r-- | AUTHORS.md | 1 | ||||
| -rw-r--r-- | COPYING.md | 30 | ||||
| -rw-r--r-- | ChangeLog.md | 8 | ||||
| -rw-r--r-- | Makefile.am | 132 | ||||
| -rw-r--r-- | NEWS.md | 8 | ||||
| -rw-r--r-- | README.md | 100 | ||||
| -rw-r--r-- | TODO.md | 6 | ||||
| -rw-r--r-- | acinclude.m4 | 38 | ||||
| -rwxr-xr-x | autogen.sh | 110 | ||||
| -rw-r--r-- | build-aux/.gitignore | 9 | ||||
| -rw-r--r-- | build-aux/git-tar-name.txt | 1 | ||||
| -rw-r--r-- | configure.ac | 190 | ||||
| m--------- | contrib/bindletools | 0 | ||||
| -rw-r--r-- | include/.gitignore | 3 | ||||
| -rw-r--r-- | m4/.gitignore | 14 |
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 | ||
| 17 | a.out | ||
| 18 | aclocal.m4 | ||
| 19 | autom4te.cache | ||
| 20 | autoscan.log | ||
| 21 | build/ | ||
| 22 | config.h | ||
| 23 | config.h.in | ||
| 24 | config.log | ||
| 25 | config.status | ||
| 26 | configure | ||
| 27 | configure.scan | ||
| 28 | stamp-h1 | ||
| 29 | xcuserdata | ||
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 | |||
| 2 | TOTP Port Knocking Suite | ||
| 3 | Copyright (C) 2020 David M. Syzdek <david@syzdek.net>. | ||
| 4 | All rights reserved. | ||
| 5 | |||
| 6 | Redistribution and use in source and binary forms, with or without | ||
| 7 | modification, are permitted provided that the following conditions are | ||
| 8 | met: | ||
| 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 | |||
| 19 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS | ||
| 20 | IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, | ||
| 21 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 22 | PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DAVID M. SYZDEK BE LIABLE FOR | ||
| 23 | ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
| 24 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | ||
| 25 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER | ||
| 26 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
| 27 | LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
| 28 | OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
| 29 | SUCH 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 | |||
| 2 | TOTP Port Knocking Suite | ||
| 3 | Copyright (C) 2020 David M. Syzdek <david@syzdek.net>. | ||
| 4 | All rights reserved. | ||
| 5 | |||
| 6 | 0.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 | ||
| 40 | SUBDIRS = | ||
| 41 | DIST_SUBDIRS = | ||
| 42 | |||
| 43 | |||
| 44 | # Global flags | ||
| 45 | AM_LIBS = | ||
| 46 | AM_LDFLAGS = | ||
| 47 | AM_CFLAGS = -O2 $(CFLAGS_WARNINGS) | ||
| 48 | AM_CXXFLAGS = -O2 @AM_CXXFLAGS@ | ||
| 49 | AM_OBJCFLAGS = -O2 @AM_OBJCFLAGS@ | ||
| 50 | AM_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)\"" | ||
| 57 | ACLOCAL_AMFLAGS = -I m4 -W all -W error | ||
| 58 | AM_MAKEINFOFLAGS = --no-split | ||
| 59 | DEFS = | ||
| 60 | |||
| 61 | |||
| 62 | # automake targets | ||
| 63 | check_PROGRAMS = | ||
| 64 | doc_DATA = \ | ||
| 65 | AUTHORS.md \ | ||
| 66 | ChangeLog.md \ | ||
| 67 | COPYING.md \ | ||
| 68 | README.md \ | ||
| 69 | TODO.md | ||
| 70 | include_HEADERS = | ||
| 71 | lib_LTLIBRARIES = | ||
| 72 | man_MANS = | ||
| 73 | info_TEXINFOS = | ||
| 74 | noinst_LTLIBRARIES = | ||
| 75 | noinst_LIBRARIES = | ||
| 76 | noinst_HEADERS = | ||
| 77 | noinst_PROGRAMS = | ||
| 78 | bin_PROGRAMS = | ||
| 79 | bin_SCRIPTS = | ||
| 80 | pkgdata_DATA = | ||
| 81 | sbin_SCRIPTS = | ||
| 82 | sbin_PROGRAMS = | ||
| 83 | |||
| 84 | |||
| 85 | # lists | ||
| 86 | AM_INSTALLCHECK_STD_OPTIONS_EXEMPT = | ||
| 87 | BUILT_SOURCES = | ||
| 88 | TESTS = | ||
| 89 | XFAIL_TESTS = | ||
| 90 | EXTRA_MANS = | ||
| 91 | EXTRA_DIST = \ | ||
| 92 | $(doc_DATA) | ||
| 93 | CLEANFILES = \ | ||
| 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 | ||
| 104 | DISTCHECK_CONFIGURE_FLAGS = --enable-strictwarnings | ||
| 105 | |||
| 106 | |||
| 107 | # Makefile includes | ||
| 108 | GIT_PACKAGE_VERSION_DIR=include | ||
| 109 | SUBST_EXPRESSIONS = | ||
| 110 | include $(srcdir)/@bindletools_srcdir@/build-aux/makefile-autotools.am | ||
| 111 | include $(srcdir)/@bindletools_srcdir@/build-aux/makefile-subst.am | ||
| 112 | include $(srcdir)/@bindletools_srcdir@/build-aux/makefile-version.am | ||
| 113 | |||
| 114 | |||
| 115 | # custom targets | ||
| 116 | .PHONY: | ||
| 117 | |||
| 118 | # local targets | ||
| 119 | install-exec-local: | ||
| 120 | |||
| 121 | install-data-local: | ||
| 122 | |||
| 123 | install-data-hook: | ||
| 124 | |||
| 125 | uninstall-local: | ||
| 126 | |||
| 127 | clean-local: | ||
| 128 | |||
| 129 | distclean-local: | ||
| 130 | rm -fR $(srcdir)/autom4te.cache | ||
| 131 | |||
| 132 | # end of automake file | ||
| @@ -0,0 +1,8 @@ | |||
| 1 | |||
| 2 | TOTP Port Knocking Suite | ||
| 3 | Copyright (C) 2020 David M. Syzdek <david@syzdek.net>. | ||
| 4 | All rights reserved. | ||
| 5 | |||
| 6 | 2020-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 | |||
| 2 | TOTP Port Knocking Suite | ||
| 3 | ======================== | ||
| 4 | |||
| 5 | Copyright (C) 2020 David M. Syzdek <david@syzdek.net>. | ||
| 6 | All rights reserved. | ||
| 7 | |||
| 8 | Redistribution and use in source and binary forms, with or without | ||
| 9 | modification, are permitted provided that the following conditions are | ||
| 10 | met: | ||
| 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 | |||
| 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS | ||
| 22 | IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, | ||
| 23 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 24 | PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DAVID M. SYZDEK BE LIABLE FOR | ||
| 25 | ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
| 26 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | ||
| 27 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER | ||
| 28 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
| 29 | LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
| 30 | OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
| 31 | SUCH DAMAGE. | ||
| 32 | |||
| 33 | |||
| 34 | Table of Contents | ||
| 35 | ----------------- | ||
| 36 | |||
| 37 | * Overview | ||
| 38 | |||
| 39 | |||
| 40 | Source Code | ||
| 41 | =========== | ||
| 42 | |||
| 43 | The source code for this project is maintained using git (http://git-scm.com). | ||
| 44 | The following contains information to checkout the source code from the git | ||
| 45 | repository. | ||
| 46 | |||
| 47 | Browse Source: | ||
| 48 | |||
| 49 | https://github.com/syzdek/totpknock | ||
| 50 | |||
| 51 | Git URLs: | ||
| 52 | |||
| 53 | git://github.com/syzdek/totpknock.git | ||
| 54 | https://github.com/syzdek/totpknock.git | ||
| 55 | git@github.com:syzdek/totpknock.git | ||
| 56 | |||
| 57 | Downloading Source: | ||
| 58 | |||
| 59 | $ git clone git://github.com/syzdek/totpknock.git | ||
| 60 | |||
| 61 | Preparing Source: | ||
| 62 | |||
| 63 | $ cd totpknock | ||
| 64 | $ ./autogen.sh | ||
| 65 | |||
| 66 | Git 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 | |||
| 74 | Package Maintence Notes | ||
| 75 | ======================= | ||
| 76 | |||
| 77 | This is a collection of notes for developers to use when maintaining this | ||
| 78 | package. | ||
| 79 | |||
| 80 | New 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 | |||
| 94 | Creating Source Distribution Archives: | ||
| 95 | |||
| 96 | $ ./configure | ||
| 97 | $ make update | ||
| 98 | $ make distcheck | ||
| 99 | $ make dist-bzip2 | ||
| 100 | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | |||
| 2 | TOTP Port Knocking Suite | ||
| 3 | Copyright (C) 2020 David M. Syzdek <david@syzdek.net>. | ||
| 4 | All 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 | |||
| 39 | AUTOGENNAME="`basename ${0}`" || exit 1 | ||
| 40 | SRCDIR="`dirname ${0}`" | ||
| 41 | |||
| 42 | |||
| 43 | # check for required programs | ||
| 44 | for 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 | ||
| 50 | done | ||
| 51 | |||
| 52 | |||
| 53 | # updates git repository | ||
| 54 | if 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 - | ||
| 60 | fi | ||
| 61 | |||
| 62 | |||
| 63 | # generates files for bindletools | ||
| 64 | if test -x ${SRCDIR}/contrib/bindletools/autogen.sh;then | ||
| 65 | ${SRCDIR}/contrib/bindletools/autogen.sh || exit 1 | ||
| 66 | fi | ||
| 67 | |||
| 68 | |||
| 69 | # symlinks Bindle Tools M4 macros | ||
| 70 | if 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 - | ||
| 75 | fi | ||
| 76 | |||
| 77 | |||
| 78 | # perform pre-hook | ||
| 79 | if test -f ${SRCDIR}/build-aux/autogen-pre-hook.sh;then | ||
| 80 | . ${SRCDIR}/build-aux/autogen-pre-hook.sh | ||
| 81 | fi | ||
| 82 | |||
| 83 | |||
| 84 | # Performs some useful checks | ||
| 85 | autoscan ${SRCDIR} || exit 1 | ||
| 86 | |||
| 87 | |||
| 88 | # generates/installs autotools files | ||
| 89 | autoreconf -v -i -f -Wall \ | ||
| 90 | -I m4 \ | ||
| 91 | -m \ | ||
| 92 | ${SRCDIR} \ | ||
| 93 | || exit 1 | ||
| 94 | |||
| 95 | |||
| 96 | # perform post-hook | ||
| 97 | if test -f ${SRCDIR}/build-aux/autogen-post-hook.sh;then | ||
| 98 | . ${SRCDIR}/build-aux/autogen-post-hook.sh | ||
| 99 | fi | ||
| 100 | |||
| 101 | |||
| 102 | # makes build directory | ||
| 103 | mkdir -p ${SRCDIR}/build | ||
| 104 | |||
| 105 | |||
| 106 | # add newline to create visual separation | ||
| 107 | echo " " | ||
| 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 | |||
| 37 | AC_PREREQ([2.65]) | ||
| 38 | |||
| 39 | |||
| 40 | AC_COPYRIGHT([Copyright (C) 2020 David M. Syzdek <david@syzdek.net>.]) | ||
| 41 | AC_REVISION(0.1) | ||
| 42 | AC_INIT([TOTP Port Knocking Suite],[0.0],[david@syzdek.net],[totpknock],[https://github.com/syzdek/totpknock/]) | ||
| 43 | |||
| 44 | |||
| 45 | AC_SUBST([RELEASE_MONTH],["August 2020"]) | ||
| 46 | |||
| 47 | |||
| 48 | # directory locations | ||
| 49 | AC_CONFIG_AUX_DIR([build-aux]) | ||
| 50 | AC_CONFIG_SRCDIR([build-aux/git-tar-name.txt]) | ||
| 51 | #AC_CONFIG_LIBOBJ_DIR(compat) | ||
| 52 | AC_CONFIG_HEADERS([config.h]) | ||
| 53 | AC_CONFIG_MACRO_DIR([m4]) | ||
| 54 | |||
| 55 | |||
| 56 | # determines host type | ||
| 57 | AC_CANONICAL_BUILD | ||
| 58 | AC_CANONICAL_HOST | ||
| 59 | AC_CANONICAL_TARGET | ||
| 60 | |||
| 61 | |||
| 62 | # configures for automake | ||
| 63 | AM_INIT_AUTOMAKE(gnu std-options subdir-objects foreign) | ||
| 64 | |||
| 65 | |||
| 66 | # Compilers | ||
| 67 | AC_PROG_CC | ||
| 68 | #AC_PROG_OBJC | ||
| 69 | AC_PROG_CXX | ||
| 70 | AM_PROG_CC_C_O | ||
| 71 | AC_PROG_INSTALL | ||
| 72 | AC_PROG_MAKE_SET | ||
| 73 | AC_USE_SYSTEM_EXTENSIONS # replaces AC_AIX AC_GNU_SOURCE AC_MINIX | ||
| 74 | AC_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) | ||
| 85 | AC_BINDLE_LIBTOOL_VERSION_INFO(0, 0, 0) | ||
| 86 | |||
| 87 | |||
| 88 | # binary locations | ||
| 89 | AC_PATH_PROG([SHELL], sh bash, [AC_MSG_ERROR([missing "sh"])], [$PATH]) | ||
| 90 | AC_CHECK_TOOLS(AR, ar gar, [AC_MSG_ERROR([missing binutil "ar"])]) | ||
| 91 | AC_CHECK_TOOLS(LD, ld gld, [AC_MSG_ERROR([missing binutil "ld"])]) | ||
| 92 | AC_CHECK_TOOLS(NM, nm gnm, [AC_MSG_ERROR([missing binutil "nm"])]) | ||
| 93 | AC_CHECK_TOOLS(RANLIB, ranlib granlib, [AC_MSG_ERROR([missing binutil "ranlib"])]) | ||
| 94 | AC_CHECK_TOOLS(STRIP, strip gstrip, [AC_MSG_ERROR([missing binutil "strip"])]) | ||
| 95 | |||
| 96 | |||
| 97 | # shell programs | ||
| 98 | AC_PROG_AWK | ||
| 99 | AC_PROG_EGREP | ||
| 100 | AC_PROG_FGREP | ||
| 101 | AM_PROG_LEX | ||
| 102 | AC_PROG_LN_S | ||
| 103 | |||
| 104 | |||
| 105 | # check for common functions | ||
| 106 | AC_FUNC_FORK | ||
| 107 | AC_FUNC_MALLOC | ||
| 108 | AC_FUNC_REALLOC | ||
| 109 | AC_FUNC_STRERROR_R | ||
| 110 | AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK | ||
| 111 | |||
| 112 | # Type checks | ||
| 113 | AC_TYPE_INT8_T | ||
| 114 | AC_TYPE_INT16_T | ||
| 115 | AC_TYPE_INT32_T | ||
| 116 | AC_TYPE_INT64_T | ||
| 117 | AC_TYPE_OFF_T | ||
| 118 | AC_TYPE_SIZE_T | ||
| 119 | AC_TYPE_SSIZE_T | ||
| 120 | AC_TYPE_UID_T | ||
| 121 | AC_TYPE_UINT8_T | ||
| 122 | AC_TYPE_UINT16_T | ||
| 123 | AC_TYPE_UINT32_T | ||
| 124 | AC_TYPE_UINT64_T | ||
| 125 | |||
| 126 | # check for required functions | ||
| 127 | AC_CHECK_FUNCS([alarm], [], [AC_MSG_ERROR([missing required functions])]) | ||
| 128 | AC_CHECK_FUNCS([bzero], [], [AC_MSG_ERROR([missing required functions])]) | ||
| 129 | AC_CHECK_FUNCS([memset], [], [AC_MSG_ERROR([missing required functions])]) | ||
| 130 | AC_CHECK_FUNCS([rmdir], [], [AC_MSG_ERROR([missing required functions])]) | ||
| 131 | AC_CHECK_FUNCS([strcasecmp], [], [AC_MSG_ERROR([missing required functions])]) | ||
| 132 | AC_CHECK_FUNCS([strdup], [], [AC_MSG_ERROR([missing required functions])]) | ||
| 133 | AC_CHECK_FUNCS([strerror], [], [AC_MSG_ERROR([missing required functions])]) | ||
| 134 | AC_CHECK_FUNCS([strtoul], [], [AC_MSG_ERROR([missing required functions])]) | ||
| 135 | AC_CHECK_FUNCS([strtoumax], [], [AC_MSG_ERROR([missing required functions])]) | ||
| 136 | |||
| 137 | # check for headers | ||
| 138 | AC_CHECK_HEADERS([assert.h], [], [AC_MSG_ERROR([missing required headers])]) | ||
| 139 | AC_CHECK_HEADERS([ctype.h], [], [AC_MSG_ERROR([missing required headers])]) | ||
| 140 | AC_CHECK_HEADERS([errno.h], [], [AC_MSG_ERROR([missing required headers])]) | ||
| 141 | AC_CHECK_HEADERS([fcntl.h], [], [AC_MSG_ERROR([missing required headers])]) | ||
| 142 | AC_CHECK_HEADERS([features.h], [], []) | ||
| 143 | AC_CHECK_HEADERS([getopt.h], [], [AC_MSG_ERROR([missing required headers])]) | ||
| 144 | AC_CHECK_HEADERS([inttypes.h], [], [AC_MSG_ERROR([missing required headers])]) | ||
| 145 | AC_CHECK_HEADERS([limits.h], [], [AC_MSG_ERROR([missing required headers])]) | ||
| 146 | AC_CHECK_HEADERS([stdarg.h], [], [AC_MSG_ERROR([missing required headers])]) | ||
| 147 | AC_CHECK_HEADERS([stdint.h], [], [AC_MSG_ERROR([missing required headers])]) | ||
| 148 | AC_CHECK_HEADERS([stdio.h], [], [AC_MSG_ERROR([missing required headers])]) | ||
| 149 | AC_CHECK_HEADERS([stdlib.h], [], [AC_MSG_ERROR([missing required headers])]) | ||
| 150 | AC_CHECK_HEADERS([string.h], [], [AC_MSG_ERROR([missing required headers])]) | ||
| 151 | AC_CHECK_HEADERS([sys/cdefs.h], [], [AC_MSG_ERROR([missing required headers])]) | ||
| 152 | AC_CHECK_HEADERS([sys/ioctl.h], [], [AC_MSG_ERROR([missing required headers])]) | ||
| 153 | AC_CHECK_HEADERS([sys/types.h], [], [AC_MSG_ERROR([missing required headers])]) | ||
| 154 | AC_CHECK_HEADERS([sys/stat.h], [], [AC_MSG_ERROR([missing required headers])]) | ||
| 155 | AC_CHECK_HEADERS([termios.h], [], [AC_MSG_ERROR([missing required headers])]) | ||
| 156 | AC_CHECK_HEADERS([time.h], [], [AC_MSG_ERROR([missing required headers])]) | ||
| 157 | AC_CHECK_HEADERS([unistd.h], [], [AC_MSG_ERROR([missing required headers])]) | ||
| 158 | |||
| 159 | # GNU Libtool Support | ||
| 160 | LT_INIT(dlopen disable-fast-install win32-dll) | ||
| 161 | |||
| 162 | |||
| 163 | # initiates bindle tools macros | ||
| 164 | AC_BINDLE(contrib/bindletools) | ||
| 165 | |||
| 166 | |||
| 167 | # determine PACKAGE_VERSION via Git | ||
| 168 | AC_BINDLE_GIT_PACKAGE_VERSION([contrib/bindletools/build-aux/git-package-version.sh]) | ||
| 169 | |||
| 170 | |||
| 171 | # custom configure options | ||
| 172 | AC_BINDLE_ENABLE_WARNINGS | ||
| 173 | |||
| 174 | |||
| 175 | # Creates outputs | ||
| 176 | AC_CONFIG_FILES([Makefile]) | ||
| 177 | AC_OUTPUT | ||
| 178 | |||
| 179 | |||
| 180 | # Show local config | ||
| 181 | AC_MSG_NOTICE([ ]) | ||
| 182 | AC_MSG_NOTICE([ TOTP Port Knocking Suite $GIT_PACKAGE_VERSION ($GIT_PACKAGE_BUILD)]) | ||
| 183 | AC_MSG_NOTICE([ ]) | ||
| 184 | AC_MSG_NOTICE([ Please send suggestions to: $PACKAGE_BUGREPORT]) | ||
| 185 | AC_MSG_NOTICE([ ]) | ||
| 186 | AC_MSG_NOTICE([ run 'make all']) | ||
| 187 | AC_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 | ||
