Commit Graph

124 Commits

Author SHA1 Message Date
Brian Cox 207189dafd Update platform macros in platform.h, and use them instead of compiler-defined OS macros. 2016-06-23 23:12:22 -07:00
Brian Cox 9be78c1d1c More dead code removal, this time Win32-isms in logging & sockets. Also start cleaning up OS macros in platform.h. 2016-06-23 14:51:17 -07:00
Brian Cox 3135aaea4f More dead code removal: Remaining MAPI stuff, & integration code for the long-defunct GeoPlex/GMMS. 2016-06-22 23:45:46 -07:00
Brian Cox f15ddfb76c One more install -> installer change, so make install works again 2016-06-22 00:04:05 -07:00
Brian Cox 78fdac5efc Tweak include paths so we're buildable outside of source tree. 2016-06-20 19:49:21 -07:00
Brian Cox a2f9fa4e06 Remove old+unused MAPI stuff 2016-06-19 15:37:44 -07:00
Brian Cox eec52685c4 Delete a few unused source files (package.cpp, userstring.*, fcopropsetimpl.*) to avoid confusion. 2016-06-19 15:13:05 -07:00
Brian Cox e7872f8530 Fix build number in buildnum.txt 2016-06-18 21:13:23 -07:00
Brian Cox 357e84450c Remove unused Win32 resource stuff from siggen 2016-06-18 21:12:57 -07:00
Brian Cox dbe7cae189 Rename 'install' dir to 'installer' so it doesn't confuse make dist, and include it in the make dist bundle. 2016-06-18 20:10:24 -07:00
Brian Cox b7f305aa1c Remove bin & lib dirs from git, since buildsys now creates them as needed. 2016-06-18 14:24:14 -07:00
Brian Cox f41e3e06b6 Use the right 'ar' when cross compiling, instead of always wanting to use default system 'ar'. This happened because autoconf doesn't have a builtin AC_PROG_AR macro, so we have to provide our own. 2016-06-17 20:33:10 -07:00
Brian Cox 0ee24bc84b New platform: MS-DOS/FreeDOS with DJGPP (i586-pc-msdosdjgpp). Detect & handle if sys/socket.h isn't present, which is default for DJGPP. Also handle slightly different struct stat, file type macros, absence of Posix signals. 2016-06-17 19:57:06 -07:00
Brian Cox b951838ff6 Add missing files & directories to 'make dist' 2016-06-16 23:49:41 -07:00
Brian Cox c35477359f Create bin+lib dirs if they don't exist, which gives us a working (if maybe still unpolished) 'make dist', finally. 2016-06-14 23:48:17 -07:00
Brian Cox 2bca7732f2 Buildsys tweak so 'make dist' bundles sha+md5 impls and buildnum.h 2016-06-14 02:15:32 -07:00
Brian Cox 03622ed0f0 Specify headers in makefiles, so 'make dist' knows to include them 2016-06-14 01:15:37 -07:00
Brian Cox 7ad2b52d14 Remove UCS2-related dead code, in the name of clarity 2016-06-13 20:11:13 -07:00
Brian Cox 9a3183a76c Enable unit test files moved from db folder 2016-06-13 18:31:21 -07:00
Brian Cox 7458e86e7e Move remaining *_t.cpp files from db to twtest. (Not added to build yet) 2016-06-13 17:02:09 -07:00
Brian Cox bf0c230404 Use open+readlinkat() to avoid bumping access time on symlinks (where available) 2016-06-13 16:12:19 -07:00
Brian Cox 33f695c435 Use O_NOATIME on directories too, where available, to avoid bumping dir access times during scans. 2016-06-12 18:57:23 -07:00
Brian Cox 669e4c02ea Merge branch 'master' of https://github.com/brc0x0/tripwire-open-source 2016-06-12 17:27:36 -07:00
Brian Cox bb863522f2 [AROS] hide interactive passphrases; delete temp files after use; validate temp dir even if config value isn't set. 2016-06-12 17:27:14 -07:00
Brian Cox 202fd93c9d Better handling of DB errors, in case the DB is at least partly readable. I've only ever seen this happen once, btw, on a machine w/ flaky failing memory. 2016-06-10 11:30:23 -07:00
Brian Cox c7b83c88d8 Add version strings for 'what' command (or 'version' on AROS) 2016-06-09 23:33:22 -07:00
Brian Cox 7d304be407 Use version text from configure script, so we only have to change it in one spot. 2016-06-09 21:49:00 -07:00
Brian Cox e42921d04a Caching & direct i/o stuff for HP-UX, via VX_xxx ioctls. 2016-06-09 18:35:40 -07:00
Brian Cox 3ce7d71749 Enable use of O_NOATIME on GNU/Hurd, via the _GNU_SOURCE macro. 2016-06-07 22:58:19 -07:00
Brian Cox c79a6af7b1 [OSX] Use CommonCrypto md5 & sha1 impls by default, with a --disable-commoncrypto configure option to disable them and use the old builtin impls. 2016-06-07 19:06:10 -07:00
Brian Cox 704829cbd5 Make Iconv optional, controlled by --enable-iconv; set package url & bugreport fields; detect OSX crypto lib (for hashes) but don't actually use it yet. 2016-06-07 01:57:00 -07:00
Brian Cox d9aa52e943 Add config.h.in to touchconfig script 2016-06-06 22:18:48 -07:00
Brian Cox c74198d7e9 Update touchconfig.sh for renamed configure.in -> configure.ac 2016-06-06 22:16:05 -07:00
Brian Cox 48a4392343 Update buildsys to automake 1.15 and fix resulting warnings. This involved an autoreconf -if, and then reverting config.guess and config.sub since they're actually newer than the ones automake wants to install, and they've been customized a bit to detect e.g. MidnightBSD 2016-06-06 19:51:38 -07:00
Brian Cox acddeb3ae2 Don't use broken mblen() on AROS 2016-06-04 00:15:29 -07:00
Brian Cox afd11628fd AROS build fix 2016-06-03 19:07:10 -07:00
Brian Cox 43d2ff1a04 Display multibyte characters properly, and accept them in interactive db update. 2016-06-01 22:08:25 -07:00
Brian Cox 4563812467 Define ICONV_SOURCE_TYPE properly for Minix 2016-05-29 15:25:06 -07:00
Brian Cox 48801a41a7 Add direct i/o for Solaris, via the directio() syscall. 2016-05-25 23:42:26 -07:00
Brian Cox 64a5bab856 Use both POSIX_FADV_SEQUENTIAL & POSIX_FADV_NOREUSE when scanning (if available) since they aren't mutually exclusive. 2016-05-25 12:14:55 -07:00
Brian Cox dbb7a57cdc Merge branch 'master' of https://github.com/brc0x1/tripwire-open-source 2016-05-24 18:50:12 -07:00
Brian Cox 0082db13fa Use O_NOATIME while scanning (if available) to avoid updating file access times. 2016-05-24 18:50:00 -07:00
Brian Cox 9214316bbd Align buffer on page boundary if user enables HASH_DIRECT (formerly DIRECT_IO); let user specify num blocks per read. 2016-05-16 19:32:38 -07:00
Brian Cox 5ffab7f278 Only posix_fadvise() on close if stream is nonnull, since fileno() segfaults (on Linux) if you try that. 2016-05-09 10:34:53 -07:00
Brian Cox 778c397d48 Update 'configure' for libiconv detection; only set HAVE_ICONV_H if header exists *and* an impl we can link with exists. 2016-05-06 23:33:04 -07:00
Brian Cox add9c7f6b9 Add a library check for iconv, since it works now and it doesn't always live in libc. 2016-05-06 21:09:49 -07:00
Brian Cox ec9b4317ca Fix & enable iconv() character conversion, instead of relying on cGoodEnoughConverter everywhere. 2016-05-06 18:47:56 -07:00
Brian Cox b543a36d89 Use posix_fadvise() maybe-correctly; only use O_DIRECT for hashing, if requested; better exception handling in fspropcalc & fsdatasourceiter to prevent errors scanning individual objects from blowing up the whole init/check. 2016-05-06 11:24:24 -07:00
Brian Cox eaca9fcedf Support posix_fadvise() where available; optionally enable O_DIRECT/F_NOCACHE if DIRECT_IO=true in tw.cfg; fix internal naming of update 'secure mode' flag for clarity. 2016-05-05 00:19:56 -07:00
Brian Cox ccf149c978 Bump version to 2.4.3.2 2016-04-25 15:38:14 -07:00