[60] | 1 | #
|
---|
| 2 | # Copyright Rainer Wichmann (2006)
|
---|
| 3 | #
|
---|
| 4 | # License Information:
|
---|
| 5 | # This program is free software; you can redistribute it and/or modify
|
---|
| 6 | # it under the terms of the GNU General Public License as published by
|
---|
| 7 | # the Free Software Foundation; either version 2 of the License, or
|
---|
| 8 | # (at your option) any later version.
|
---|
| 9 | #
|
---|
[1] | 10 | # This program is distributed in the hope that it will be useful,
|
---|
[60] | 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
| 13 | # GNU General Public License for more details.
|
---|
| 14 | #
|
---|
| 15 | # You should have received a copy of the GNU General Public License
|
---|
| 16 | # along with this program; if not, write to the Free Software
|
---|
| 17 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
---|
[1] | 18 |
|
---|
[60] | 19 |
|
---|
[1] | 20 | # --- boiler-plate stuff ---
|
---|
| 21 | #
|
---|
| 22 | SHELL = /bin/sh
|
---|
| 23 |
|
---|
| 24 | srcdir = @srcdir@
|
---|
| 25 | srcsrc = @srcdir@/src
|
---|
| 26 | srcinc = @srcdir@/include
|
---|
| 27 | top_srcdir = @top_srcdir@
|
---|
| 28 |
|
---|
| 29 | # Don't use VPATH - it's a portability mess
|
---|
| 30 | #
|
---|
| 31 | # VPATH = $(top_srcdir)/src
|
---|
| 32 |
|
---|
| 33 | prefix = @prefix@
|
---|
| 34 | exec_prefix = @exec_prefix@
|
---|
| 35 |
|
---|
| 36 | sbindir = @sbindir@
|
---|
| 37 | sysconfdir = @sysconfdir@
|
---|
| 38 | localstatedir = @localstatedir@
|
---|
| 39 | mandir = @mandir@
|
---|
[170] | 40 | datarootdir = @datarootdir@
|
---|
[302] | 41 | mytmpdir = @mytmpdir@
|
---|
[1] | 42 |
|
---|
| 43 | configfile = @myconffile@
|
---|
| 44 | mydatafile = @mydatafile@
|
---|
| 45 | mylockfile = @mylockfile@
|
---|
| 46 | mylogfile = @mylogfile@
|
---|
| 47 |
|
---|
| 48 | mydatadir = @mydataroot@
|
---|
| 49 | mylogdir = @mylogdir@
|
---|
| 50 | mylockdir = @mylockdir@
|
---|
| 51 |
|
---|
| 52 | selectconfig = @selectconfig@
|
---|
| 53 |
|
---|
| 54 | top_builddir = .
|
---|
| 55 |
|
---|
| 56 | INSTALL = @INSTALL@
|
---|
| 57 | INSTALL_PROGRAM = @INSTALL@ -s -m 700
|
---|
| 58 | INSTALL_SHELL = @INSTALL@ -m 700
|
---|
| 59 | INSTALL_DATA = @INSTALL@ -m 600
|
---|
| 60 | INSTALL_MAN = @INSTALL@ -m 644
|
---|
| 61 | INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
---|
| 62 | INSTALL_NAME = @install_name@
|
---|
| 63 | INSTALL_DSYS = @INSTALL@ -m 755
|
---|
| 64 |
|
---|
| 65 | PACKAGE = @PACKAGE@
|
---|
| 66 | VERSION = @VERSION@
|
---|
[245] | 67 | BUILD_NUM = 1
|
---|
[1] | 68 |
|
---|
[245] | 69 | DEFAULT_MAINTAINER = Nobody Nowhere <nobody@example.com>
|
---|
| 70 |
|
---|
[1] | 71 | VFLAG = @mytclient@
|
---|
| 72 | SETPWD = @setpwd_prg@
|
---|
| 73 | STEGIN = @stegin_prg@
|
---|
| 74 | SAMHAIN = @sh_main_prg@
|
---|
| 75 | YULECTL = @yulectl_prg@
|
---|
[481] | 76 | SADMIN = @samhainadmin_prg@
|
---|
[1] | 77 | XOR_CODE = @xor_code@
|
---|
[18] | 78 | TIGER_SRC = @tiger_src@
|
---|
[1] | 79 |
|
---|
| 80 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
---|
| 81 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
---|
| 82 |
|
---|
| 83 |
|
---|
| 84 | CC = @CC@
|
---|
[98] | 85 | BUILD_CC = @BUILD_CC@
|
---|
[18] | 86 | # DBGDEF = -pg -DSH_PROFILE=1
|
---|
[1] | 87 | DBGDEF = @mydebugdef@
|
---|
| 88 | DEFS = $(DBGDEF) @DEFS@ -I. -I$(top_srcdir)/include
|
---|
| 89 | CPPFLAGS = @CPPFLAGS@
|
---|
| 90 | LDFLAGS = @LDFLAGS@
|
---|
| 91 | LIBS_TRY = @LIBS@
|
---|
| 92 | LIBS_SOCK = @sh_libsocket@
|
---|
| 93 | LIBS_KVM = @sh_libkvm@
|
---|
| 94 | CFLAGS = @CFLAGS@
|
---|
[68] | 95 | CUTEST =
|
---|
| 96 | COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(CUTEST)
|
---|
[1] | 97 | LINK = $(CC) $(DBGDEF) -O $(LDFLAGS) -o $@
|
---|
| 98 |
|
---|
| 99 | DESTDIR =
|
---|
| 100 |
|
---|
| 101 | TAR = tar
|
---|
| 102 | GZIP = --best
|
---|
| 103 |
|
---|
| 104 | # For creating a packed client
|
---|
| 105 | #
|
---|
| 106 | CLIENTPASSWD =
|
---|
| 107 |
|
---|
| 108 | .SUFFIXES: # Delete the default suffixes
|
---|
| 109 |
|
---|
| 110 | #
|
---|
| 111 | # --- Files -------
|
---|
| 112 | #
|
---|
| 113 |
|
---|
| 114 |
|
---|
| 115 | HEADERS = samhain.h sh_unix.h sh_utils.h sh_error.h sh_error_min.h sh_files.h \
|
---|
[214] | 116 | sh_getopt.h sh_readconf.h sh_tiger.h sh_hash.h \
|
---|
[215] | 117 | sh_mail.h sh_mail_int.h sh_nmail.h sh_filter.h \
|
---|
[481] | 118 | sh_mem.h sh_entropy.h sh_xfer.h sh_modules.h sh_utmp.h \
|
---|
| 119 | sh_suidchk.h sh_srp.h sh_fifo.h sh_html.h sh_tools.h \
|
---|
[1] | 120 | sh_gpg.h sh_cat.h sh_calls.h sh_extern.h sh_database.h sh_trace.h \
|
---|
| 121 | sh_schedule.h bignum.h trustfile.h slib.h zAVLTree.h \
|
---|
| 122 | lzoconf.h minilzo.h rijndael-alg-fst.h rijndael-api-fst.h \
|
---|
| 123 | rijndael-boxes-fst.h sh_socket.h sh_ignore.h sh_prelude.h \
|
---|
[68] | 124 | sh_mounts.h sh_userfiles.h sh_static.h sh_prelink.h \
|
---|
[183] | 125 | sh_processcheck.h sh_portcheck.h sh_pthread.h sh_string.h \
|
---|
[265] | 126 | sh_log_check.h sh_log_evalrule.h sh_log_correlate.h \
|
---|
[310] | 127 | sh_log_mark.h sh_log_repeat.h sh_inotify.h sh_registry.h sh_ipvx.h \
|
---|
[481] | 128 | sh_restrict.h sh_sub.h sh_fInotify.h sh_checksum.h \
|
---|
| 129 | sh_dbIO.h sh_dbIO_int.h sh_guid.h sh_dbCheck.h sh_dbCreate.h \
|
---|
[534] | 130 | sh_sem.h sh_subuid.h
|
---|
[1] | 131 |
|
---|
| 132 |
|
---|
| 133 | SOURCES = $(srcsrc)/samhain.c $(srcsrc)/sh_unix.c \
|
---|
| 134 | $(srcsrc)/sh_utils.c $(srcsrc)/sh_error.c \
|
---|
| 135 | $(srcsrc)/sh_files.c $(srcsrc)/sh_getopt.c \
|
---|
| 136 | $(srcsrc)/sh_readconf.c $(srcsrc)/sh_tiger0.c \
|
---|
| 137 | $(srcsrc)/sh_tiger1.c $(srcsrc)/sh_tiger2.c \
|
---|
| 138 | $(srcsrc)/sh_tiger1_64.c $(srcsrc)/sh_tiger2_64.c \
|
---|
[214] | 139 | $(srcsrc)/sh_hash.c $(srcsrc)/sh_mail.c $(srcsrc)/sh_nmail.c \
|
---|
[1] | 140 | $(srcsrc)/sh_mem.c $(srcsrc)/sh_entropy.c \
|
---|
[481] | 141 | $(srcsrc)/sh_xfer_client.c $(srcsrc)/sh_xfer_server.c \
|
---|
| 142 | $(srcsrc)/sh_xfer_syslog.c $(srcsrc)/sh_modules.c \
|
---|
| 143 | $(srcsrc)/sh_utmp.c $(srcsrc)/sh_login_track.c \
|
---|
[1] | 144 | $(srcsrc)/sh_suidchk.c $(srcsrc)/sh_srp.c \
|
---|
| 145 | $(srcsrc)/sh_fifo.c $(srcsrc)/sh_tools.c \
|
---|
| 146 | $(srcsrc)/sh_html.c $(srcsrc)/sh_gpg.c \
|
---|
| 147 | $(srcsrc)/sh_cat.c $(srcsrc)/sh_calls.c \
|
---|
| 148 | $(srcsrc)/sh_extern.c $(srcsrc)/sh_database.c \
|
---|
| 149 | $(srcsrc)/sh_err_log.c $(srcsrc)/sh_err_console.c \
|
---|
| 150 | $(srcsrc)/sh_err_syslog.c $(srcsrc)/sh_schedule.c \
|
---|
| 151 | $(srcsrc)/bignum.c $(srcsrc)/mkhdr.c \
|
---|
| 152 | $(srcsrc)/samhain_setpwd.c $(srcsrc)/samhain_stealth.c \
|
---|
| 153 | $(srcsrc)/encode.c $(srcsrc)/sstrip.c \
|
---|
| 154 | $(srcsrc)/trustfile.c $(srcsrc)/exepack.c \
|
---|
| 155 | $(srcsrc)/exepack_fill.c $(srcsrc)/exepack_mkdata.c \
|
---|
| 156 | $(srcsrc)/minilzo.c $(srcsrc)/slib.c \
|
---|
| 157 | $(srcsrc)/rijndael-alg-fst.c $(srcsrc)/rijndael-api-fst.c \
|
---|
| 158 | $(srcsrc)/zAVLTree.c $(srcsrc)/bignum.c \
|
---|
| 159 | $(srcsrc)/sh_socket.c $(srcsrc)/sh_ignore.c \
|
---|
| 160 | $(srcsrc)/yulectl.c $(srcsrc)/sh_mounts.c \
|
---|
| 161 | $(srcsrc)/sh_userfiles.c $(srcsrc)/sh_prelude.c \
|
---|
| 162 | $(srcsrc)/sh_prelink.c $(srcsrc)/sh_static.c \
|
---|
[180] | 163 | $(srcsrc)/sh_portcheck.c $(srcsrc)/sh_port2proc.c\
|
---|
[215] | 164 | $(srcsrc)/sh_processcheck.c $(srcsrc)/sh_filter.c \
|
---|
[171] | 165 | $(srcsrc)/sh_pthread.c $(srcsrc)/sh_string.c \
|
---|
[183] | 166 | $(srcsrc)/sh_log_parse_syslog.c $(srcsrc)/sh_log_parse_pacct.c \
|
---|
[275] | 167 | $(srcsrc)/sh_log_parse_samba.c $(srcsrc)/sh_log_parse_generic.c \
|
---|
[183] | 168 | $(srcsrc)/sh_log_parse_apache.c $(srcsrc)/sh_log_evalrule.c \
|
---|
[265] | 169 | $(srcsrc)/sh_log_correlate.c $(srcsrc)/sh_log_mark.c \
|
---|
[183] | 170 | $(srcsrc)/sh_log_check.c $(srcsrc)/dnmalloc.c \
|
---|
[265] | 171 | $(srcsrc)/sh_inotify.c $(srcsrc)/sh_log_repeat.c \
|
---|
[294] | 172 | $(srcsrc)/sh_audit.c $(srcsrc)/sh_registry.c \
|
---|
[315] | 173 | $(srcsrc)/sh_ipvx.c $(srcsrc)/sh_restrict.c \
|
---|
[481] | 174 | $(srcsrc)/sh_filetype.c $(srcsrc)/sh_sub.c $(srcsrc)/sh_fInotify.c \
|
---|
| 175 | $(srcsrc)/sh_checksum.c $(srcsrc)/sh_guid.c $(srcsrc)/sh_sem.c \
|
---|
| 176 | $(srcsrc)/sh_dbIO.c $(srcsrc)/sh_dbCheck.c $(srcsrc)/sh_dbCreate.c \
|
---|
[534] | 177 | $(srcsrc)/sh_subuid.c \
|
---|
[367] | 178 | $(srcsrc)/t-test1.c
|
---|
[1] | 179 |
|
---|
[18] | 180 | OBJECTS = sh_files.o sh_tiger0.o sh_tiger2.o sh_tiger2_64.o \
|
---|
| 181 | samhain.o sh_unix.o sh_utils.o sh_error.o \
|
---|
[215] | 182 | sh_getopt.o sh_readconf.o sh_filter.o \
|
---|
[279] | 183 | sh_hash.o sh_mail.o sh_nmail.o sh_mem.o sh_login_track.o \
|
---|
[481] | 184 | sh_entropy.o sh_modules.o sh_utmp.o \
|
---|
| 185 | sh_xfer_client.o sh_xfer_server.o sh_xfer_syslog.o \
|
---|
[1] | 186 | sh_suidchk.o sh_srp.o sh_fifo.o sh_tools.o sh_html.o sh_gpg.o \
|
---|
| 187 | sh_cat.o sh_calls.o sh_extern.o sh_database.o sh_err_log.o \
|
---|
| 188 | sh_err_console.o sh_err_syslog.o sh_schedule.o bignum.o \
|
---|
| 189 | trustfile.o rijndael-alg-fst.o rijndael-api-fst.o slib.o \
|
---|
| 190 | zAVLTree.o sh_socket.o sh_ignore.o sh_prelude.o \
|
---|
[18] | 191 | sh_mounts.o sh_userfiles.o sh_prelink.o sh_static.o \
|
---|
[181] | 192 | sh_processcheck.o sh_portcheck.o sh_port2proc.o \
|
---|
[183] | 193 | sh_log_parse_syslog.o sh_log_parse_pacct.o sh_log_parse_apache.o \
|
---|
[185] | 194 | sh_log_parse_samba.o sh_log_evalrule.o sh_log_check.o \
|
---|
[275] | 195 | sh_log_parse_generic.o \
|
---|
[265] | 196 | sh_log_correlate.o sh_log_mark.o sh_log_repeat.o \
|
---|
[294] | 197 | sh_pthread.o sh_string.o sh_inotify.o dnmalloc.o \
|
---|
[315] | 198 | sh_audit.o sh_registry.o sh_ipvx.o sh_restrict.o \
|
---|
[481] | 199 | sh_filetype.o sh_sub.o sh_fInotify.o sh_checksum.o \
|
---|
[534] | 200 | sh_guid.o sh_sem.o sh_dbIO.o sh_dbCheck.o sh_dbCreate.o \
|
---|
| 201 | sh_subuid.o
|
---|
[1] | 202 |
|
---|
| 203 |
|
---|
| 204 | TESTSUITE = test.sh testcompile.sh testhash.sh testtiger.txt \
|
---|
| 205 | testtimesrv.sh \
|
---|
[68] | 206 | testext.sh testrc_1ext.in test_ext.c.in testrun_1d.sh \
|
---|
[23] | 207 | testrun_1.sh testrun_1a.sh testrun_1b.sh testrun_1c.sh testrc_1 \
|
---|
[1] | 208 | testrun_2.sh testrun_2a.sh testrun_2b.sh testrc_2.in \
|
---|
| 209 | testrun_2c.sh testrun_2d.sh
|
---|
| 210 |
|
---|
| 211 | DIST_COMMON = README COPYING LICENSE samhain.jpg \
|
---|
| 212 | samhainrc.linux samhainrc.solaris samhainrc.freebsd samhainrc.aix5.2.0 \
|
---|
[57] | 213 | samhainrc.netbsd yulerc.template \
|
---|
[1] | 214 | Install.sh
|
---|
| 215 |
|
---|
| 216 | DIST_NEEDED = Makefile.in deploy.sh.in samhain-install.sh.in \
|
---|
| 217 | samhain.spec.in rules.deb.in rules.deb-light.in samhain.spec hp_ux.psf.in \
|
---|
| 218 | stealth_template.jpg \
|
---|
| 219 | config.guess config.h.in stamp-h.in config.sub configure \
|
---|
| 220 | configure.ac acconfig.h aclocal.m4 install-sh missing mkinstalldirs \
|
---|
| 221 | c_random.sh c_bits.sh depend.sum depend.dep stamp-hdep
|
---|
| 222 |
|
---|
| 223 | DISTFILES = $(DIST_COMMON) $(DIST_NEEDED) \
|
---|
| 224 | src include man scripts init docs sql_init test dsys
|
---|
| 225 |
|
---|
[481] | 226 | PROGRAMS = $(SETPWD) $(STEGIN) $(SAMHAIN) $(YULECTL) $(SADMIN)
|
---|
[1] | 227 |
|
---|
| 228 | #----------------------------------------------------------
|
---|
| 229 | #
|
---|
| 230 | # the first target is the default one
|
---|
| 231 | #
|
---|
| 232 | #----------------------------------------------------------
|
---|
| 233 |
|
---|
[481] | 234 | all: $(top_srcdir)/depend.sum $(SETPWD) $(STEGIN) $(SAMHAIN) $(YULECTL) sstrip
|
---|
[1] | 235 |
|
---|
| 236 |
|
---|
| 237 | #----------------------------------------------------------
|
---|
| 238 | #
|
---|
| 239 | # rules for automatic updating of configuration information
|
---|
| 240 | # after changing the configuration files
|
---|
| 241 | #
|
---|
| 242 | #----------------------------------------------------------
|
---|
| 243 |
|
---|
| 244 | $(top_srcdir)/configure: $(top_srcdir)/configure.ac $(top_srcdir)/aclocal.m4
|
---|
| 245 | cd $(srcdir) && autoconf
|
---|
| 246 |
|
---|
| 247 | # autoheader might not change config.h.in, so touch a stamp file.
|
---|
| 248 | $(top_srcdir)/config.h.in: $(top_srcdir)/stamp-h.in
|
---|
| 249 | touch $(top_srcdir)/config.h.in
|
---|
| 250 |
|
---|
| 251 | $(top_srcdir)/stamp-h.in: $(top_srcdir)/configure.ac $(top_srcdir)/aclocal.m4
|
---|
| 252 | cd $(top_srcdir) && autoheader
|
---|
| 253 | echo timestamp > $(top_srcdir)/stamp-h.in
|
---|
| 254 |
|
---|
| 255 | config.h: stamp-h
|
---|
| 256 | @sleep 1; \
|
---|
| 257 | touch config.h
|
---|
| 258 |
|
---|
| 259 | stamp-h: $(top_srcdir)/config.h.in config.status
|
---|
| 260 | ./config.status
|
---|
| 261 |
|
---|
| 262 | Makefile: $(top_srcdir)/Makefile.in config.status
|
---|
| 263 | ./config.status
|
---|
| 264 |
|
---|
| 265 | samhain-install.sh: $(top_srcdir)/samhain-install.sh.in config.status
|
---|
| 266 | ./config.status
|
---|
| 267 |
|
---|
| 268 | config.status: $(top_srcdir)/configure
|
---|
| 269 | ./config.status --recheck
|
---|
| 270 |
|
---|
| 271 | #----------------------------------------------------------
|
---|
| 272 | #
|
---|
| 273 | # rules for automatic dependency tracking
|
---|
| 274 | #
|
---|
| 275 | #----------------------------------------------------------
|
---|
| 276 |
|
---|
| 277 |
|
---|
| 278 | depend-gen: $(srcsrc)/depend-gen.c
|
---|
[98] | 279 | @echo "$(BUILD_CC) -I. -o depend-gen $(srcsrc)/depend-gen.c"; \
|
---|
| 280 | $(BUILD_CC) -I. -o depend-gen $(srcsrc)/depend-gen.c 2>/dev/null || \
|
---|
[1] | 281 | echo "failed to compile ... hope depend.dep is ok"
|
---|
| 282 |
|
---|
| 283 | # redo if sources change
|
---|
| 284 | #
|
---|
| 285 | $(top_srcdir)/depend.dep: depend-gen $(SOURCES)
|
---|
| 286 | @echo "update depend.dep ..."; \
|
---|
| 287 | test -f $(srcdir)/depend.dep || echo > $(srcdir)/depend.dep; \
|
---|
| 288 | if test -f depend-gen; then \
|
---|
| 289 | failfiles=""; \
|
---|
[481] | 290 | for ff in $(SOURCES); do \
|
---|
[1] | 291 | ./depend-gen -i '$$(srcinc)/' -o $(top_srcdir)/depend.dep $$ff || \
|
---|
| 292 | failfiles="$${failfiles} $$ff"; \
|
---|
| 293 | done; \
|
---|
| 294 | if test x"$${failfiles}" != x; then \
|
---|
| 295 | echo "--------------------------------------------------------";\
|
---|
| 296 | echo " depend-gen failed to update depend.dep. You can safely"; \
|
---|
| 297 | echo " ignore this error, unless you have modified the source"; \
|
---|
| 298 | echo " files and changed their dependencies."; \
|
---|
| 299 | echo "--------------------------------------------------------";\
|
---|
| 300 | else \
|
---|
| 301 | echo $(srcsrc) > $(top_srcdir)/stamp-dep; \
|
---|
| 302 | fi; \
|
---|
| 303 | else \
|
---|
| 304 | echo "depend-gen not found ... depend.dep not modified"; \
|
---|
| 305 | fi
|
---|
| 306 |
|
---|
| 307 | # only updated if depencies change
|
---|
| 308 | #
|
---|
| 309 | $(top_srcdir)/depend.sum: $(top_srcdir)/depend.dep
|
---|
| 310 | @if test -f depend-gen; then \
|
---|
| 311 | nsum=`./depend-gen -c $(top_srcdir)/depend.dep|awk '{print $$1}'`; \
|
---|
| 312 | osum=`cat $(top_srcdir)/depend.sum 2>/dev/null`; \
|
---|
| 313 | if test "x$$osum" != "x$$nsum"; then \
|
---|
| 314 | echo "update $(top_srcdir)/depend.sum ..."; \
|
---|
| 315 | echo $$nsum > $(top_srcdir)/depend.sum; \
|
---|
| 316 | echo timestamp > $(top_srcdir)/stamp-hdep; \
|
---|
| 317 | fi; \
|
---|
| 318 | fi;
|
---|
| 319 |
|
---|
[95] | 320 | $(top_srcdir)/stamp-hdep:
|
---|
| 321 | touch $(top_srcdir)/stamp-hdep && touch $(top_srcdir)/Makefile.in
|
---|
| 322 |
|
---|
[1] | 323 | $(top_srcdir)/Makefile.in: $(top_srcdir)/stamp-hdep
|
---|
| 324 | @echo "update Makefile.in ..."; \
|
---|
| 325 | echo "cp Makefile.in Makefile.in.bak"; \
|
---|
| 326 | cp $(top_srcdir)/Makefile.in $(top_srcdir)/Makefile.in.bak; \
|
---|
| 327 | if test -f depend-gen; then \
|
---|
| 328 | failfiles=""; \
|
---|
[481] | 329 | for ff in $(SOURCES); do \
|
---|
[1] | 330 | ./depend-gen -i '$$(srcinc)/' -o $(top_srcdir)/Makefile.in $$ff || \
|
---|
| 331 | failfiles="$${failfiles} $$ff"; \
|
---|
| 332 | done; \
|
---|
| 333 | if test x"$${failfiles}" != x; then \
|
---|
| 334 | echo "--------------------------------------------------------";\
|
---|
| 335 | echo " depend-gen failed to update Makefile.in. You can safely"; \
|
---|
| 336 | echo " ignore this error, unless you have modified the source"; \
|
---|
| 337 | echo " files and changed their dependencies."; \
|
---|
| 338 | echo "--------------------------------------------------------";\
|
---|
| 339 | else \
|
---|
| 340 | echo $(srcsrc) > $(top_srcdir)/stamp-dep; \
|
---|
| 341 | fi; \
|
---|
| 342 | fi
|
---|
| 343 |
|
---|
| 344 | # do it manually
|
---|
| 345 | #
|
---|
| 346 | depend: depend-gen
|
---|
| 347 | @echo "update Makefile.in ..."; \
|
---|
[481] | 348 | for ff in $(SOURCES); do \
|
---|
[1] | 349 | ./depend-gen -i '$$(srcinc)/' -o $(top_srcdir)/Makefile.in $$ff; \
|
---|
| 350 | echo $(srcsrc) > $(top_srcdir)/stamp-dep; \
|
---|
| 351 | done
|
---|
| 352 |
|
---|
| 353 |
|
---|
| 354 | #----------------------------------------------------------
|
---|
| 355 | #
|
---|
| 356 | # CLEAN rules
|
---|
| 357 | #
|
---|
| 358 | #----------------------------------------------------------
|
---|
| 359 |
|
---|
| 360 |
|
---|
| 361 | # everything created by make
|
---|
| 362 | #
|
---|
| 363 |
|
---|
[481] | 364 | CLEANFILES = encode config_xor.h depend-gen \
|
---|
[19] | 365 | internal.h sh_MK.h trustfile sstrip samhain mkhdr encode cutest \
|
---|
[481] | 366 | yule samhain_setpwd samhain_stealth samhainrc yulectl
|
---|
[1] | 367 |
|
---|
| 368 | clean:
|
---|
| 369 | -rm -f core *.o
|
---|
| 370 | @-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
|
---|
| 371 |
|
---|
| 372 |
|
---|
| 373 | # everything created by (./configure && make)
|
---|
| 374 | #
|
---|
| 375 |
|
---|
| 376 | DISTCLEANFILES = Makefile samhain.spec sh_gpg_checksum.h sh_gpg_fp.h \
|
---|
[548] | 377 | init/samhain.startLinux init/samhain.startGentoo init/samhain.startSystemd \
|
---|
[1] | 378 | init/samhain.startLSB init/samhain.startFreeBSD \
|
---|
| 379 | init/samhain.startSolaris init/samhain.startHPUX \
|
---|
[71] | 380 | init/samhain.startIRIX init/samhain.startMACOSX \
|
---|
[1] | 381 | deploy.sh sh_MK.h samhain-install.sh sh_gpg_chksum.h sh_gpg_fp.h \
|
---|
[481] | 382 | rules.deb rules.deb-light src/CuTestMain.c \
|
---|
[1] | 383 | scripts/samhainadmin.pl scripts/check_samhain.pl \
|
---|
[481] | 384 | scripts/samhain.ebuild scripts/samhain.ebuild-light \
|
---|
| 385 | scripts/yuleadmin.pl scripts/logrotate \
|
---|
| 386 | scripts/redhat_i386.client.spec scripts/samhain.spec hp_ux.psf
|
---|
[1] | 387 |
|
---|
| 388 | TESTCLEANFILES = samhain.build samhain.new yule.html \
|
---|
[170] | 389 | test_ext test_ext.c test_ext.res testhash.tmp \
|
---|
[171] | 390 | testrc1.signed testrc_1ext testrc_2 testrc_2.signed \
|
---|
| 391 | test_dnmalloc
|
---|
[1] | 392 |
|
---|
| 393 | distclean: clean
|
---|
| 394 | -rm -f config.status config.log configure.lineno config.h config.cache
|
---|
| 395 | @-test -z "$(TESTCLEANFILES)" || rm -f $(TESTCLEANFILES)
|
---|
| 396 | @-test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
|
---|
| 397 |
|
---|
| 398 |
|
---|
| 399 | #----------------------------------------------------------
|
---|
| 400 | #
|
---|
| 401 | # TEST rules
|
---|
| 402 | #
|
---|
| 403 | #----------------------------------------------------------
|
---|
| 404 |
|
---|
| 405 | test14: test
|
---|
| 406 | @cd test && TOP_SRCDIR=$(top_srcdir) && \
|
---|
| 407 | export TOP_SRCDIR && ./test.sh 14 `hostname -f`
|
---|
| 408 |
|
---|
| 409 | test13: test
|
---|
| 410 | @cd test && TOP_SRCDIR=$(top_srcdir) && \
|
---|
| 411 | export TOP_SRCDIR && ./test.sh 13 `hostname -f`
|
---|
| 412 |
|
---|
| 413 | test12: test
|
---|
| 414 | @cd test && TOP_SRCDIR=$(top_srcdir) && \
|
---|
| 415 | export TOP_SRCDIR && ./test.sh 12 `hostname -f`
|
---|
| 416 |
|
---|
| 417 | test11: test
|
---|
| 418 | @cd test && TOP_SRCDIR=$(top_srcdir) && \
|
---|
| 419 | export TOP_SRCDIR && ./test.sh 11 `hostname -f`
|
---|
| 420 |
|
---|
| 421 | test10: test
|
---|
| 422 | @cd test && TOP_SRCDIR=$(top_srcdir) && \
|
---|
| 423 | export TOP_SRCDIR && ./test.sh 10 `hostname -f`
|
---|
| 424 |
|
---|
| 425 | test7: test
|
---|
| 426 | @cd test && TOP_SRCDIR=$(top_srcdir) && \
|
---|
| 427 | export TOP_SRCDIR && ./test.sh 7
|
---|
| 428 |
|
---|
| 429 | test6: test
|
---|
| 430 | @cd test && TOP_SRCDIR=$(top_srcdir) && \
|
---|
| 431 | export TOP_SRCDIR && ./test.sh 6
|
---|
| 432 |
|
---|
| 433 | test5: test
|
---|
| 434 | @cd test && TOP_SRCDIR=$(top_srcdir) && \
|
---|
| 435 | export TOP_SRCDIR && ./test.sh 5
|
---|
| 436 |
|
---|
| 437 | test4: test
|
---|
| 438 | @cd test && TOP_SRCDIR=$(top_srcdir) && \
|
---|
| 439 | export TOP_SRCDIR && ./test.sh 4
|
---|
| 440 |
|
---|
| 441 | test3: test
|
---|
| 442 | @cd test && TOP_SRCDIR=$(top_srcdir) && \
|
---|
| 443 | export TOP_SRCDIR && ./test.sh 3
|
---|
| 444 |
|
---|
| 445 | test2: test
|
---|
| 446 | @cd test && TOP_SRCDIR=$(top_srcdir) && \
|
---|
| 447 | export TOP_SRCDIR && ./test.sh 2
|
---|
| 448 |
|
---|
| 449 | test1: test
|
---|
| 450 | @cd test && TOP_SRCDIR=$(top_srcdir) && \
|
---|
| 451 | export TOP_SRCDIR && ./test.sh 1
|
---|
| 452 |
|
---|
| 453 | test:
|
---|
| 454 | @if test -f test; then \
|
---|
| 455 | :; \
|
---|
| 456 | else \
|
---|
| 457 | cp -pr $(top_srcdir)/test .; \
|
---|
| 458 | cat $(top_srcdir)/test/test.sh | \
|
---|
| 459 | sed 's%XXXSRCXXX%$(top_srcdir)%' > test/test.sh; \
|
---|
| 460 | chmod +x test/test.sh; \
|
---|
| 461 | fi
|
---|
| 462 |
|
---|
[171] | 463 | test_dnmalloc: $(srcsrc)/t-test1.c dnmalloc.o
|
---|
| 464 | $(COMPILE) $(VFLAG) -o t-test1.o -c $(srcsrc)/t-test1.c; \
|
---|
| 465 | $(LINK) t-test1.o dnmalloc.o $(LIBS_TRY)
|
---|
| 466 |
|
---|
| 467 |
|
---|
[1] | 468 | #----------------------------------------------------------
|
---|
| 469 | #
|
---|
| 470 | # INSTALL rules
|
---|
| 471 | #
|
---|
| 472 | #----------------------------------------------------------
|
---|
| 473 |
|
---|
[481] | 474 | install: install-program install-man install-data
|
---|
[1] | 475 | @echo; \
|
---|
| 476 | echo " You can use 'samhain-install.sh uninstall' for uninstalling"; \
|
---|
| 477 | echo " i.e. you might consider saving that script for future use";\
|
---|
| 478 | echo; \
|
---|
| 479 | echo " Use 'make install-boot' if you want @install_name@ to start on system boot"; \
|
---|
| 480 | echo
|
---|
| 481 |
|
---|
[481] | 482 | install-light: install-program install-data
|
---|
[1] | 483 | @echo; \
|
---|
| 484 | echo " You can use 'samhain-install.sh uninstall' for uninstalling"; \
|
---|
| 485 | echo " i.e. you might consider saving that script for future use";\
|
---|
| 486 | echo; \
|
---|
| 487 | echo " Use 'make install-boot' if you want @install_name@ to start on system boot"; \
|
---|
| 488 | echo
|
---|
| 489 |
|
---|
[481] | 490 | purge: uninstall-program uninstall-man
|
---|
[1] | 491 | @echo "./samhain-install.sh --destdir=$(DESTDIR) --force --verbose uninstall-data"; \
|
---|
| 492 | ./samhain-install.sh --destdir=$(DESTDIR) --force --verbose uninstall-data
|
---|
| 493 |
|
---|
| 494 | remove: uninstall
|
---|
| 495 |
|
---|
[481] | 496 | uninstall: uninstall-program uninstall-man uninstall-data
|
---|
[1] | 497 | @echo; \
|
---|
| 498 | echo " Use 'make purge' if you also want to uninstall the configuration file"; \
|
---|
| 499 | echo " Use 'make uninstall-boot' to uninstall the runlevel scripts"; \
|
---|
| 500 | echo
|
---|
| 501 |
|
---|
| 502 | #
|
---|
| 503 | # --- boot ---
|
---|
| 504 | #
|
---|
| 505 | install-boot: samhain-install.sh
|
---|
| 506 | ./samhain-install.sh --destdir=$(DESTDIR) --express --verbose install-boot
|
---|
| 507 |
|
---|
| 508 |
|
---|
| 509 | uninstall-boot: samhain-install.sh
|
---|
| 510 | ./samhain-install.sh --destdir=$(DESTDIR) --express --verbose uninstall-boot
|
---|
| 511 |
|
---|
| 512 | #
|
---|
| 513 | # --- program ---
|
---|
| 514 | #
|
---|
| 515 |
|
---|
| 516 |
|
---|
| 517 | install-program: $(PROGRAMS) sstrip
|
---|
| 518 | @$(mkinstalldirs) $(DESTDIR)$(sbindir)
|
---|
[302] | 519 | @if test x$(mytmpdir) != x; then \
|
---|
| 520 | $(mkinstalldirs) $(DESTDIR)$(mytmpdir); \
|
---|
| 521 | fi
|
---|
[1] | 522 | @list='$(PROGRAMS)'; for p in $$list; do \
|
---|
| 523 | if test -f $$p; then \
|
---|
[481] | 524 | target=$(DESTDIR)$(sbindir)/`echo $$p|sed 's%samhain%@install_name@%'|sed 's%yule%@install_name@%'|sed 's%.*/%%'`; \
|
---|
| 525 | extension=`echo $$target|sed 's%.*\.%%'`; \
|
---|
| 526 | if test x$$extension = x; then \
|
---|
| 527 | echo " $(INSTALL_PROGRAM) $$p $$target"; \
|
---|
| 528 | $(INSTALL_PROGRAM) $$p $$target; \
|
---|
| 529 | chmod 0700 $$target; \
|
---|
| 530 | echo " ./sstrip $$target"; \
|
---|
| 531 | ./sstrip $$target; \
|
---|
| 532 | else \
|
---|
| 533 | echo " $(INSTALL_SHELL) $$p $$target"; \
|
---|
| 534 | $(INSTALL_SHELL) $$p $$target; \
|
---|
| 535 | chmod 0700 $$target; \
|
---|
| 536 | fi; \
|
---|
[1] | 537 | else :; fi; \
|
---|
| 538 | done
|
---|
| 539 |
|
---|
| 540 | uninstall-program:
|
---|
| 541 | @echo "./samhain-install.sh --destdir=$(DESTDIR) --express --verbose uninstall-program";\
|
---|
| 542 | ./samhain-install.sh --destdir=$(DESTDIR) --express --verbose uninstall-program
|
---|
| 543 |
|
---|
| 544 |
|
---|
| 545 | #
|
---|
| 546 | # -- data files
|
---|
| 547 | #
|
---|
| 548 |
|
---|
| 549 | install-user:
|
---|
| 550 | @if test "x@need_user_install@" = x1; then \
|
---|
| 551 | echo "./samhain-install.sh --destdir=$(DESTDIR) --express --verbose install-user @myident@"; \
|
---|
| 552 | ./samhain-install.sh --destdir=$(DESTDIR) --express --verbose install-user @myident@; \
|
---|
| 553 | fi
|
---|
| 554 | @if test x"$(VFLAG)" = "x-DSH_WITH_SERVER"; then \
|
---|
| 555 | echo " chown root $(DESTDIR)$(mydatadir)"; \
|
---|
| 556 | chown root $(DESTDIR)$(mydatadir); \
|
---|
| 557 | echo " chmod 755 $(DESTDIR)$(mydatadir)"; \
|
---|
| 558 | chmod 755 $(DESTDIR)$(mydatadir); \
|
---|
| 559 | echo " chown @myident@ $(DESTDIR)$(configfile)"; \
|
---|
| 560 | chown @myident@ $(DESTDIR)$(configfile); \
|
---|
| 561 | if test x"$(mylogdir)" = "x/var/log"; then \
|
---|
| 562 | if test x"@myident@" = xroot; then \
|
---|
| 563 | :; \
|
---|
| 564 | else \
|
---|
| 565 | echo; \
|
---|
| 566 | echo " ----------------------------------------------------------------"; \
|
---|
| 567 | echo " Directory $(mylogdir) (log file) looks like a system directory."; \
|
---|
| 568 | echo " You may run into problems (need write access for user @myident@)."; \
|
---|
| 569 | echo " ----------------------------------------------------------------"; \
|
---|
| 570 | echo; \
|
---|
| 571 | fi; \
|
---|
| 572 | else \
|
---|
| 573 | echo " chown @myident@ $(DESTDIR)$(mylogdir)"; \
|
---|
| 574 | chown @myident@ $(DESTDIR)$(mylogdir); \
|
---|
| 575 | fi; \
|
---|
| 576 | fi
|
---|
| 577 |
|
---|
| 578 | install-data: trustfile
|
---|
| 579 | @$(mkinstalldirs) $(DESTDIR)$(sysconfdir)
|
---|
| 580 | @$(mkinstalldirs) $(DESTDIR)$(mylockdir)
|
---|
| 581 | @$(mkinstalldirs) $(DESTDIR)$(mylogdir)
|
---|
[518] | 582 | @if test -d $(DESTDIR)$(mydatadir); then \
|
---|
| 583 | :; \
|
---|
| 584 | else \
|
---|
| 585 | $(mkinstalldirs) $(DESTDIR)$(mydatadir); \
|
---|
| 586 | chmod 755 $(DESTDIR)$(mydatadir); \
|
---|
| 587 | fi
|
---|
[1] | 588 | @if test -f samhainrc.$(selectconfig); then \
|
---|
| 589 | :; \
|
---|
| 590 | else \
|
---|
| 591 | if test -f $(srcdir)/samhainrc.$(selectconfig); then \
|
---|
| 592 | cp $(srcdir)/samhainrc.$(selectconfig) . ; \
|
---|
| 593 | fi; \
|
---|
| 594 | fi; \
|
---|
| 595 | if test -f yulerc; then \
|
---|
| 596 | :; \
|
---|
| 597 | else \
|
---|
| 598 | if test -f $(srcdir)/yulerc.template; then \
|
---|
| 599 | cp $(srcdir)/yulerc.template yulerc; \
|
---|
| 600 | fi; \
|
---|
| 601 | fi; \
|
---|
| 602 | if test -f stealth_template.jpg; then \
|
---|
| 603 | :; \
|
---|
| 604 | else \
|
---|
| 605 | if test -f $(srcdir)/stealth_template.jpg; then \
|
---|
| 606 | cp $(srcdir)/stealth_template.jpg . ; \
|
---|
| 607 | fi; \
|
---|
| 608 | fi
|
---|
[412] | 609 | @if test -d /etc/logrotate.d; then \
|
---|
[414] | 610 | if test ! -d $(DESTDIR)/etc/logrotate.d; then \
|
---|
| 611 | $(mkinstalldirs) $(DESTDIR)/etc/logrotate.d; \
|
---|
| 612 | fi; \
|
---|
| 613 | if test ! -f $(DESTDIR)/etc/logrotate.d/@install_name@; then \
|
---|
| 614 | if test -w $(DESTDIR)/etc/logrotate.d; then \
|
---|
| 615 | cp $(srcdir)/scripts/logrotate $(DESTDIR)/etc/logrotate.d/@install_name@; \
|
---|
| 616 | else \
|
---|
| 617 | echo "$(DESTDIR)/etc/logrotate.d not writable"; \
|
---|
| 618 | fi; \
|
---|
[412] | 619 | else \
|
---|
[414] | 620 | echo "$(DESTDIR)/etc/logrotate.d/@install_name@ exists, not overwriting"; \
|
---|
[412] | 621 | fi; \
|
---|
| 622 | fi
|
---|
[1] | 623 | @echo "./samhain-install.sh --destdir=$(DESTDIR) --express --verbose install-data"; \
|
---|
| 624 | ./samhain-install.sh --destdir=$(DESTDIR) --express --verbose install-data || \
|
---|
| 625 | echo " ERROR: Failed to install the configuration file to $(DESTDIR)$(configfile). You need to install the configuration file manually."
|
---|
| 626 | @if test x"$(VFLAG)" = "x-DSH_WITH_SERVER"; then \
|
---|
| 627 | echo;\
|
---|
| 628 | echo " -----------------------------------------------------";\
|
---|
| 629 | echo " The server will run as user @myident@ if started with";\
|
---|
| 630 | echo " root privileges, otherwise as the user of the parent ";\
|
---|
| 631 | echo " process (use --enable-identity=USER to change).";\
|
---|
| 632 | echo;\
|
---|
| 633 | echo " You may want to use: make install-user";\
|
---|
| 634 | echo;\
|
---|
| 635 | echo " - to add the user @myident@ (if not existing already)";\
|
---|
| 636 | echo " - to chown the data directory $(mydatadir)";\
|
---|
| 637 | echo " - to chown the log file directory $(mylogdir)";\
|
---|
| 638 | echo " - to chown the configuration file $(configfile)";\
|
---|
| 639 | echo " -----------------------------------------------------";\
|
---|
| 640 | else \
|
---|
| 641 | if test "x@need_user_install@" = x1; then \
|
---|
| 642 | echo;\
|
---|
| 643 | echo " -----------------------------------------------------";\
|
---|
| 644 | echo " You may want to use: make install-user";\
|
---|
| 645 | echo;\
|
---|
| 646 | echo " - to add the user @myident@ (if not existing already)";\
|
---|
| 647 | echo " -----------------------------------------------------";\
|
---|
| 648 | fi; \
|
---|
| 649 | fi
|
---|
| 650 |
|
---|
| 651 | uninstall-data:
|
---|
| 652 | @echo "./samhain-install.sh --destdir=$(DESTDIR) --express --verbose uninstall-data"; \
|
---|
| 653 | ./samhain-install.sh --destdir=$(DESTDIR) --express --verbose uninstall-data
|
---|
| 654 |
|
---|
| 655 | #
|
---|
| 656 | # -- man files
|
---|
| 657 | #
|
---|
| 658 |
|
---|
| 659 | install-man:
|
---|
| 660 | $(mkinstalldirs) $(DESTDIR)$(mandir)/man8
|
---|
| 661 | $(mkinstalldirs) $(DESTDIR)$(mandir)/man5
|
---|
| 662 | @if test -f $(top_srcdir)/man/samhain.8 ; then \
|
---|
| 663 | echo " $(INSTALL_MAN) $(top_srcdir)/man/samhain.8 $(DESTDIR)$(mandir)/man8/@install_name@.8"; \
|
---|
| 664 | $(INSTALL_MAN) $(top_srcdir)/man/samhain.8 $(DESTDIR)$(mandir)/man8/@install_name@.8; \
|
---|
| 665 | fi
|
---|
| 666 | @if test -f $(top_srcdir)/man/samhainrc.5 ; then \
|
---|
| 667 | echo " $(INSTALL_MAN) $(top_srcdir)/man/samhainrc.5 $(DESTDIR)$(mandir)/man5/@install_name@rc.5"; \
|
---|
| 668 | $(INSTALL_MAN) $(top_srcdir)/man/samhainrc.5 $(DESTDIR)$(mandir)/man5/@install_name@rc.5; \
|
---|
| 669 | fi
|
---|
| 670 |
|
---|
| 671 | uninstall-man:
|
---|
| 672 | @echo "./samhain-install.sh --destdir=$(DESTDIR) --express --verbose uninstall-man";\
|
---|
| 673 | ./samhain-install.sh --destdir=$(DESTDIR) --express --verbose uninstall-man
|
---|
| 674 |
|
---|
| 675 |
|
---|
| 676 | #----------------------------------------------------------
|
---|
| 677 | #
|
---|
| 678 | # BUILD rules
|
---|
| 679 | #
|
---|
| 680 | #----------------------------------------------------------
|
---|
| 681 |
|
---|
| 682 | run: run-light
|
---|
| 683 |
|
---|
| 684 | run-light: all
|
---|
| 685 | @echo "Building $(PACKAGE)-$(VERSION).run"; \
|
---|
| 686 | STAGE=$(PACKAGE)-$(VERSION); \
|
---|
| 687 | mkdir $$STAGE; \
|
---|
| 688 | if test x"$$?" != x0; then \
|
---|
| 689 | echo "ERROR ... mkdir $$STAGE failed"; \
|
---|
| 690 | exit 1; \
|
---|
| 691 | fi; \
|
---|
[40] | 692 | $(MAKE) DESTDIR=$$STAGE install-light; \
|
---|
[1] | 693 | rm -f $$STAGE/@sbindir@/@install_name@_stealth; \
|
---|
| 694 | echo "#! /bin/sh" > $$STAGE/setup.sh; \
|
---|
[302] | 695 | if test x$(mytmpdir) != x; then \
|
---|
| 696 | echo "./mkinstalldirs @mytmpdir@ || exit 1" >> $$STAGE/setup.sh; \
|
---|
| 697 | fi; \
|
---|
[1] | 698 | echo "./mkinstalldirs @sbindir@ || exit 1" >> $$STAGE/setup.sh; \
|
---|
| 699 | echo "./mkinstalldirs @sysconfdir@ || exit 1" >> $$STAGE/setup.sh; \
|
---|
| 700 | echo "./mkinstalldirs @mylockdir@ || exit 1" >> $$STAGE/setup.sh; \
|
---|
| 701 | echo "./mkinstalldirs @mylogdir@ || exit 1" >> $$STAGE/setup.sh; \
|
---|
| 702 | echo "./mkinstalldirs @mydataroot@ || exit 1" >> $$STAGE/setup.sh; \
|
---|
| 703 | echo "chmod 700 @mydataroot@ || exit 1" >> $$STAGE/setup.sh; \
|
---|
| 704 | temp=`echo $(sbindir) | sed s,^/,,`; \
|
---|
| 705 | echo "chown root $$temp/*" >> $$STAGE/setup.sh; \
|
---|
| 706 | echo "cp -p $$temp/* $(sbindir) || exit 1" >> $$STAGE/setup.sh; \
|
---|
| 707 | temp=`echo $(sysconfdir) | sed s,^/,,`; \
|
---|
| 708 | echo "chown root $$temp/*" >> $$STAGE/setup.sh; \
|
---|
| 709 | configfile=`echo @myconffile@ | sed 's%^REQ_FROM_SERVER%%'`; \
|
---|
| 710 | echo "test -f $$configfile || cp -p $$temp/* $$configfile" >> $$STAGE/setup.sh; \
|
---|
[71] | 711 | echo "./samhain-install.sh --express --verbose install-boot || echo 'Cannot install init script'" >> $$STAGE/setup.sh; \
|
---|
[1] | 712 | cp $(top_srcdir)/mkinstalldirs $$STAGE/; \
|
---|
| 713 | cp $(top_srcdir)/install-sh $$STAGE/; \
|
---|
| 714 | cp ./samhain-install.sh $$STAGE/; \
|
---|
| 715 | cp -r init/ $$STAGE/; \
|
---|
| 716 | chmod +x $$STAGE/setup.sh; \
|
---|
| 717 | chmod +x $$STAGE/samhain-install.sh; \
|
---|
| 718 | chmod +x $$STAGE/mkinstalldirs; \
|
---|
| 719 | chmod +x $$STAGE/install-sh; \
|
---|
| 720 | $(top_srcdir)/scripts/makeself/makeself.sh --header $(top_srcdir)/scripts/makeself/makeself-header.sh --nocomp --nomd5 --notemp $$STAGE $(PACKAGE)-$(VERSION).run "$(PACKAGE)_$(VERSION)_self_extracting_installer" ./setup.sh && \
|
---|
| 721 | rm -r $(PACKAGE)-$(VERSION)
|
---|
| 722 |
|
---|
| 723 | emerge-prepare: dist
|
---|
| 724 | @echo "Building $(PACKAGE)-$(VERSION)"; \
|
---|
| 725 | test -f /etc/make.globals && . /etc/make.globals; \
|
---|
| 726 | test -f /etc/make.conf && . /etc/make.conf; \
|
---|
| 727 | echo "$(INSTALL_MAN) $(PACKAGE)-$(VERSION).tar.gz $${DISTDIR}/@install_name@-$(VERSION).tar.gz"; \
|
---|
| 728 | $(INSTALL_MAN) $(PACKAGE)-$(VERSION).tar.gz $${DISTDIR}/@install_name@-$(VERSION).tar.gz; \
|
---|
| 729 | if test "x$${PORTDIR_OVERLAY}" = "x"; then \
|
---|
| 730 | COPY_TO="$${PORTDIR}"; \
|
---|
| 731 | else \
|
---|
| 732 | COPY_TO="$${PORTDIR_OVERLAY}"; \
|
---|
| 733 | fi; \
|
---|
| 734 | $(mkinstalldirs) $${COPY_TO}/app-admin/@install_name@; \
|
---|
| 735 | echo "$(INSTALL_MAN) scripts/samhain.ebuild $${COPY_TO}/app-admin/@install_name@/@install_name@-$(VERSION).ebuild";\
|
---|
| 736 | $(INSTALL_MAN) scripts/samhain.ebuild $${COPY_TO}/app-admin/@install_name@/@install_name@-$(VERSION).ebuild; \
|
---|
| 737 | test -f $${COPY_TO}/app-admin/@install_name@/files/digest-@install_name@-$(VERSION) && rm $${COPY_TO}/app-admin/@install_name@/files/digest-@install_name@-$(VERSION);\
|
---|
| 738 | ebuild $${COPY_TO}/app-admin/@install_name@/@install_name@-$(VERSION).ebuild digest;
|
---|
| 739 |
|
---|
| 740 | emerge-prepare-light: dist
|
---|
| 741 | @echo "Building $(PACKAGE)-$(VERSION)"; \
|
---|
| 742 | test -f /etc/make.globals && . /etc/make.globals; \
|
---|
| 743 | test -f /etc/make.conf && . /etc/make.conf; \
|
---|
| 744 | echo "$(INSTALL_MAN) $(PACKAGE)-$(VERSION).tar.gz $${DISTDIR}/@install_name@-$(VERSION).tar.gz"; \
|
---|
| 745 | $(INSTALL_MAN) $(PACKAGE)-$(VERSION).tar.gz $${DISTDIR}/@install_name@-$(VERSION).tar.gz; \
|
---|
| 746 | if test "x$${PORTDIR_OVERLAY}" = "x"; then \
|
---|
| 747 | COPY_TO="$${PORTDIR}"; \
|
---|
| 748 | else \
|
---|
| 749 | COPY_TO="$${PORTDIR_OVERLAY}"; \
|
---|
| 750 | fi; \
|
---|
| 751 | $(mkinstalldirs) $${COPY_TO}/app-admin/@install_name@; \
|
---|
| 752 | echo "$(INSTALL_MAN) scripts/samhain.ebuild-light $${COPY_TO}/app-admin/@install_name@/@install_name@-$(VERSION).ebuild";\
|
---|
| 753 | $(INSTALL_MAN) scripts/samhain.ebuild-light $${COPY_TO}/app-admin/@install_name@/@install_name@-$(VERSION).ebuild; \
|
---|
| 754 | test -f $${COPY_TO}/app-admin/@install_name@/files/digest-@install_name@-$(VERSION) && rm $${COPY_TO}/app-admin/@install_name@/files/digest-@install_name@-$(VERSION);\
|
---|
| 755 | ebuild $${COPY_TO}/app-admin/@install_name@/@install_name@-$(VERSION).ebuild digest;
|
---|
| 756 |
|
---|
| 757 |
|
---|
| 758 | tbz2: emerge-prepare
|
---|
| 759 | @emerge --buildpkgonly @install_name@; \
|
---|
| 760 | test -f /etc/make.globals && . /etc/make.globals; \
|
---|
| 761 | test -f /etc/make.conf && . /etc/make.conf; \
|
---|
| 762 | echo; \
|
---|
| 763 | echo "@install_name@-$(VERSION).tbz2 should be in $${PKGDIR}/All"; \
|
---|
| 764 | if test -f $${PKGDIR}/All/@install_name@-$(VERSION).tbz2; then \
|
---|
| 765 | echo "Package $${PKGDIR}/All/@install_name@-$(VERSION).tbz2 built."; \
|
---|
| 766 | mv $${PKGDIR}/All/@install_name@-$(VERSION).tbz2 $(PACKAGE)-$(VERSION).tbz2; \
|
---|
| 767 | rm -f $${PKGDIR}/app-admin/@install_name@-$(VERSION).tbz2; \
|
---|
| 768 | rm -rf $${PORTAGE_TMPDIR}/portage/@install_name@-$(VERSION); \
|
---|
| 769 | else \
|
---|
| 770 | echo "Error ... cannot find package."; \
|
---|
| 771 | exit 1; \
|
---|
| 772 | fi; \
|
---|
| 773 | echo
|
---|
| 774 |
|
---|
| 775 | tbz2-light: emerge-prepare-light
|
---|
| 776 | @emerge --buildpkgonly @install_name@; \
|
---|
| 777 | test -f /etc/make.globals && . /etc/make.globals; \
|
---|
| 778 | test -f /etc/make.conf && . /etc/make.conf; \
|
---|
| 779 | echo; \
|
---|
| 780 | if test -f $${PKGDIR}/All/@install_name@-$(VERSION).tbz2; then \
|
---|
| 781 | echo "Package $${PKGDIR}/All/@install_name@-$(VERSION).tbz2 built."; \
|
---|
| 782 | mv $${PKGDIR}/All/@install_name@-$(VERSION).tbz2 $(PACKAGE)-$(VERSION).tbz2; \
|
---|
| 783 | rm -f $${PKGDIR}/app-admin/@install_name@-$(VERSION).tbz2; \
|
---|
| 784 | rm -rf $${PORTAGE_TMPDIR}/portage/@install_name@-$(VERSION); \
|
---|
| 785 | else \
|
---|
| 786 | echo "Error ... cannot find package."; \
|
---|
| 787 | exit 1; \
|
---|
| 788 | fi; \
|
---|
| 789 | echo
|
---|
| 790 |
|
---|
| 791 | emerge:
|
---|
| 792 | emerge $(PACKAGE);
|
---|
| 793 |
|
---|
| 794 | deb-light:
|
---|
| 795 | @echo "creating subdirectory debian"; \
|
---|
| 796 | mkdir -p debian; \
|
---|
| 797 | cp rules.deb-light debian/rules; \
|
---|
| 798 | chmod +x debian/rules; \
|
---|
| 799 | echo $(sbindir) | sed s,^/,, > debian/dirs; \
|
---|
[302] | 800 | if test x$(mytmpdir) != x; then \
|
---|
| 801 | echo $(mytmpdir) | sed s,^/,, >> debian/dirs; \
|
---|
| 802 | fi; \
|
---|
[1] | 803 | echo $(sysconfdir) | sed s,^/,, >> debian/dirs; \
|
---|
| 804 | echo etc/init.d >> debian/dirs; \
|
---|
[548] | 805 | echo lib/systemd/system >> debian/dirs; \
|
---|
[1] | 806 | echo $(mydatadir) | sed s,^/,, >> debian/dirs; \
|
---|
| 807 | echo $(mylogdir) | sed s,^/,, >> debian/dirs; \
|
---|
| 808 | echo $(mylockdir) | sed s,^/,, >> debian/dirs; \
|
---|
| 809 | $(MAKE) deb-run
|
---|
| 810 |
|
---|
| 811 | deb:
|
---|
| 812 | @echo "creating subdirectory debian"; \
|
---|
| 813 | mkdir -p debian; \
|
---|
| 814 | cp rules.deb debian/rules; \
|
---|
| 815 | chmod +x debian/rules; \
|
---|
| 816 | echo $(sbindir) | sed s,^/,, > debian/dirs; \
|
---|
[302] | 817 | if test x$(mytmpdir) != x; then \
|
---|
| 818 | echo $(mytmpdir) | sed s,^/,, >> debian/dirs; \
|
---|
| 819 | fi; \
|
---|
[1] | 820 | echo $(sysconfdir) | sed s,^/,, >> debian/dirs; \
|
---|
| 821 | echo etc/init.d >> debian/dirs; \
|
---|
[548] | 822 | echo lib/systemd/system >> debian/dirs; \
|
---|
[1] | 823 | echo $(mydatadir) | sed s,^/,, >> debian/dirs; \
|
---|
| 824 | echo $(mylogdir) | sed s,^/,, >> debian/dirs; \
|
---|
| 825 | echo $(mylockdir) | sed s,^/,, >> debian/dirs; \
|
---|
| 826 | echo $(mandir)/man5 | sed s,^/,, >> debian/dirs; \
|
---|
| 827 | echo $(mandir)/man8 | sed s,^/,, >> debian/dirs; \
|
---|
| 828 | echo usr/share/doc/$(PACKAGE) >> debian/dirs; \
|
---|
| 829 | echo $(top_srcdir)/README > debian/docs; \
|
---|
| 830 | echo $(top_srcdir)/test/testtiger.txt >> debian/docs; \
|
---|
| 831 | echo $(srcsrc)/simple-bignum.tar.bz2 >> debian/docs; \
|
---|
| 832 | echo $(top_srcdir)/scripts/head.html >> debian/docs; \
|
---|
| 833 | echo $(top_srcdir)/scripts/foot.html >> debian/docs; \
|
---|
| 834 | echo $(top_srcdir)/samhain.jpg >> debian/docs; \
|
---|
| 835 | echo $(top_srcdir)/docs/BUGS >> debian/docs; \
|
---|
| 836 | echo $(top_srcdir)/docs/HOWTO-client+server.html >> debian/docs; \
|
---|
| 837 | echo $(top_srcdir)/docs/HOWTO-samhain+GnuPG.html >> debian/docs; \
|
---|
[481] | 838 | echo $(top_srcdir)/docs/MANUAL-2_4.html.tar >> debian/docs; \
|
---|
| 839 | echo $(top_srcdir)/docs/MANUAL-2_4.pdf >> debian/docs; \
|
---|
[1] | 840 | echo $(top_srcdir)/docs/README.gcc_bug >> debian/docs; \
|
---|
| 841 | echo $(top_srcdir)/docs/README.LZO >> debian/docs; \
|
---|
| 842 | echo $(top_srcdir)/docs/README.sstrip >> debian/docs; \
|
---|
| 843 | echo $(top_srcdir)/docs/README.UPGRADE >> debian/docs; \
|
---|
| 844 | echo $(top_srcdir)/docs/README.win2K >> debian/docs; \
|
---|
| 845 | $(MAKE) deb-run
|
---|
| 846 |
|
---|
| 847 | deb-run:
|
---|
[68] | 848 | @maintainer=`gpg --list-secret-keys | grep 'uid ' | cut -d" " -f 5- | sed 's/^ *//' | sed q1`;\
|
---|
[1] | 849 | if test "x$$maintainer" = x; then \
|
---|
[245] | 850 | maintainer="$(DEFAULT_MAINTAINER)"; \
|
---|
[1] | 851 | fi; \
|
---|
[531] | 852 | codename=`lsb_release -a 2>/dev/null | grep Codename | cut -f 2`; \
|
---|
| 853 | if test "x$$codename" = x; then \
|
---|
| 854 | codename="stable"; \
|
---|
| 855 | fi; \
|
---|
| 856 | echo "$(PACKAGE) ($(VERSION)-$(BUILD_NUM)) $$codename; urgency=low" > debian/changelog; \
|
---|
[1] | 857 | echo >> debian/changelog; \
|
---|
| 858 | echo " * Initial release." >> debian/changelog; \
|
---|
| 859 | echo >> debian/changelog; \
|
---|
| 860 | echo " -- $$maintainer `date -R`" >> debian/changelog; \
|
---|
| 861 | echo >> debian/changelog; \
|
---|
| 862 | echo "Local variables:" >> debian/changelog; \
|
---|
| 863 | echo "mode: debian-changelog" >> debian/changelog; \
|
---|
| 864 | echo "End:" >> debian/changelog; \
|
---|
| 865 | cp $(top_srcdir)/COPYING debian/copyright; \
|
---|
[531] | 866 | echo "9" > debian/compat; \
|
---|
| 867 | echo "Nothing to see here." > debian/README.debian; \
|
---|
[1] | 868 | echo "Document: @install_name@-manual" > debian/@install_name@.doc-base; \
|
---|
| 869 | echo "Title: @install_name@ Manual" >> debian/@install_name@.doc-base; \
|
---|
| 870 | echo "Author: Rainer Wichmann" >> debian/@install_name@.doc-base; \
|
---|
| 871 | echo "Abstract: This manual describes what @install_name@ is" >> debian/@install_name@.doc-base; \
|
---|
| 872 | echo " and how it can be used to check the file integrity of your" >> debian/@install_name@.doc-base; \
|
---|
| 873 | echo " server." >> debian/@install_name@.doc-base; \
|
---|
[209] | 874 | echo "Section: System/Security" >> debian/@install_name@.doc-base; \
|
---|
[1] | 875 | echo >> debian/@install_name@.doc-base; \
|
---|
| 876 | echo >> debian/@install_name@.doc-base; \
|
---|
| 877 | echo "Format: Postscript" >> debian/@install_name@.doc-base; \
|
---|
[209] | 878 | echo "Files: /usr/share/doc/@install_name@/manual.pdf.gz" >> debian/@install_name@.doc-base; \
|
---|
[1] | 879 | echo >> debian/@install_name@.doc-base; \
|
---|
| 880 | echo "Format: HTML" >> debian/@install_name@.doc-base; \
|
---|
| 881 | echo "Index: /usr/share/doc/@install_name@/manual.html/index.html" >> debian/@install_name@.doc-base; \
|
---|
| 882 | echo "Files: /usr/share/doc/@install_name@/manual.html/*.html" >> debian/@install_name@.doc-base; \
|
---|
[65] | 883 | if test -f /usr/lib/lsb/install_initd; then \
|
---|
| 884 | cp init/samhain.startLSB debian/@install_name@.init; \
|
---|
| 885 | else \
|
---|
| 886 | cp init/samhain.startLinux debian/@install_name@.init; \
|
---|
| 887 | fi; \
|
---|
[1] | 888 | echo "Source: samhain" > debian/control; \
|
---|
| 889 | echo "Section: admin" >> debian/control; \
|
---|
| 890 | echo "Priority: optional" >> debian/control; \
|
---|
| 891 | echo "Maintainer: $$maintainer" >> debian/control; \
|
---|
| 892 | echo "Standards-Version: 3.2.1" >> debian/control; \
|
---|
| 893 | echo >> debian/control; \
|
---|
| 894 | echo "Package: @install_name@" >> debian/control; \
|
---|
| 895 | echo "Architecture: any" >> debian/control; \
|
---|
[531] | 896 | echo "Depends: \$${shlibs:Depends}, \$${misc:Depends}" >> debian/control; \
|
---|
[1] | 897 | echo "Description: File integrity checker" >> debian/control; \
|
---|
| 898 | echo " A file integrity checker" >> debian/control; \
|
---|
| 899 | echo "running debuild -us -uc"; \
|
---|
[425] | 900 | debuild --preserve-envvar=PASSWORD -us -uc -b; \
|
---|
[1] | 901 | DEBFILE=`find ../ -follow -maxdepth 1 -cnewer ./debian/control 2>/dev/null | grep '@install_name@_$(VERSION)' | grep '\.deb'`; \
|
---|
| 902 | if test x"$$DEBFILE" = x; then \
|
---|
| 903 | echo "Error ... cannot find package file"; \
|
---|
| 904 | exit 1; \
|
---|
| 905 | else \
|
---|
| 906 | echo "Package $$DEBFILE built."; \
|
---|
[245] | 907 | cp $$DEBFILE ./$(PACKAGE)-$(VERSION)-$(BUILD_NUM).deb; \
|
---|
[531] | 908 | ln --backup=numbered -fs ./$(PACKAGE)-$(VERSION)-$(BUILD_NUM).deb ./$(PACKAGE)-$(VERSION).deb; \
|
---|
[1] | 909 | fi; \
|
---|
| 910 | echo
|
---|
| 911 |
|
---|
| 912 | #
|
---|
| 913 | # Check samhain.spec
|
---|
| 914 | #
|
---|
| 915 | rpmspec-full:
|
---|
| 916 | @grep 'install-light' samhain.spec >/dev/null 2>&1; \
|
---|
| 917 | if test x"$$?" = "x0"; then \
|
---|
| 918 | echo "Your samhain.spec is from rpm-light. Please run"; \
|
---|
| 919 | echo " .config.status to re-create the original samhain.spec"; \
|
---|
| 920 | exit 1; \
|
---|
| 921 | fi
|
---|
| 922 |
|
---|
| 923 | # when editing the spec file, make an additional blank after 'make'
|
---|
| 924 | # to avoid that it matches on a second processing
|
---|
| 925 | #
|
---|
| 926 | rpmspec-light: samhain.spec
|
---|
| 927 | @echo "Stripping docs from samhain.spec"; \
|
---|
[415] | 928 | cat samhain.spec | sed 's,make DESTDIR=$${RPM_BUILD_ROOT} install,make DESTDIR=$${RPM_BUILD_ROOT} install-light,' | sed s,shkeep=yes,shkeep=no, | sed s,%doc.*,, | sed '/logrotate/! { s,%attr.*,, }' > samhain.spec-light; \
|
---|
[1] | 929 | mv samhain.spec-light samhain.spec
|
---|
| 930 |
|
---|
| 931 | rpm-light: rpmspec-light distrpm
|
---|
| 932 | rpmbuild -ta ./$(PACKAGE)-$(VERSION).tar.gz;
|
---|
[58] | 933 | @RPMTOP=`cat ~/.rpmmacros 2>/dev/null | grep '%_topdir' | awk '{ print $$2}'`; \
|
---|
[532] | 934 | if test x"$$RPMTOP" = x; then \
|
---|
| 935 | try_RPMTOP=`echo $${HOME}/rpmbuild`; \
|
---|
| 936 | else \
|
---|
| 937 | if test ! -d "$${try_RPMTOP}"; then \
|
---|
| 938 | try_RPMTOP=`echo $${HOME}/rpmbuild`; \
|
---|
| 939 | fi; \
|
---|
| 940 | fi; \
|
---|
| 941 | if test -d "$${try_RPMTOP}"; then \
|
---|
| 942 | RPMTOP="$${try_RPMTOP}"; \
|
---|
| 943 | else \
|
---|
[528] | 944 | RPMTOP=/usr/src; \
|
---|
[495] | 945 | fi; \
|
---|
[58] | 946 | echo "Searching the RPM package below $$RPMTOP ..."; \
|
---|
| 947 | RPMFILE=`find $$RPMTOP -follow -maxdepth 4 -cnewer ./samhain.spec 2>/dev/null | grep '@install_name@-$(VERSION)' | grep '\.rpm' | grep -v '\.src\.'`; \
|
---|
[1] | 948 | echo; \
|
---|
| 949 | if test x"$$RPMFILE" = x; then \
|
---|
| 950 | echo "Error ... cannot find package file"; \
|
---|
| 951 | exit 1; \
|
---|
| 952 | else \
|
---|
| 953 | echo "Package $$RPMFILE built."; \
|
---|
[58] | 954 | echo "Copying it to ./$(PACKAGE)-$(VERSION).rpm"; \
|
---|
[1] | 955 | cp $$RPMFILE ./$(PACKAGE)-$(VERSION).rpm; \
|
---|
| 956 | fi; \
|
---|
| 957 | echo
|
---|
| 958 |
|
---|
| 959 | rpm: rpmspec-full distrpm
|
---|
| 960 | rpmbuild -ta ./$(PACKAGE)-$(VERSION).tar.gz;
|
---|
[58] | 961 | @RPMTOP=`cat ~/.rpmmacros 2>/dev/null | grep '%_topdir' | awk '{ print $$2}'`; \
|
---|
[532] | 962 | if test x"$$RPMTOP" = x; then \
|
---|
| 963 | try_RPMTOP=`echo $${HOME}/rpmbuild`; \
|
---|
| 964 | else \
|
---|
| 965 | if test ! -d "$${try_RPMTOP}"; then \
|
---|
| 966 | try_RPMTOP=`echo $${HOME}/rpmbuild`; \
|
---|
| 967 | fi; \
|
---|
| 968 | fi; \
|
---|
| 969 | if test -d "$${try_RPMTOP}"; then \
|
---|
| 970 | RPMTOP="$${try_RPMTOP}"; \
|
---|
| 971 | else \
|
---|
[528] | 972 | RPMTOP=/usr/src; \
|
---|
[461] | 973 | fi; \
|
---|
[58] | 974 | echo "Searching the RPM package below $$RPMTOP ..."; \
|
---|
| 975 | RPMFILE=`find $$RPMTOP -follow -maxdepth 4 -cnewer ./samhain.spec 2>/dev/null | grep '@install_name@-$(VERSION)' | grep '\.rpm' | grep -v '\.src\.'`; \
|
---|
[1] | 976 | echo; \
|
---|
| 977 | if test x"$$RPMFILE" = x; then \
|
---|
| 978 | echo "Error ... cannot find package file"; \
|
---|
| 979 | exit 1; \
|
---|
| 980 | else \
|
---|
| 981 | echo "Package $$RPMFILE built."; \
|
---|
[58] | 982 | echo "Copying it to ./$(PACKAGE)-$(VERSION).rpm"; \
|
---|
[1] | 983 | cp $$RPMFILE ./$(PACKAGE)-$(VERSION).rpm; \
|
---|
| 984 | fi; \
|
---|
| 985 | echo
|
---|
| 986 |
|
---|
| 987 | srpm-dist: rpmspec-full samhain.spec
|
---|
| 988 | @cat samhain.spec | \
|
---|
| 989 | sed s%\-\-with\-base=.*\,[0123456789]*%% | \
|
---|
| 990 | sed s%\'\'%% > samhain.spec.m; \
|
---|
| 991 | mv samhain.spec.m samhain.spec
|
---|
| 992 | $(MAKE) distrpm
|
---|
| 993 | rpmbuild -ts ./$(PACKAGE)-$(VERSION).tar.gz
|
---|
| 994 |
|
---|
| 995 |
|
---|
| 996 | srpm: rpmspec-full distrpm
|
---|
| 997 | rpmbuild -ts ./$(PACKAGE)-$(VERSION).tar.gz
|
---|
| 998 |
|
---|
| 999 | solaris-pkg-light: all
|
---|
| 1000 | @STAGE=/tmp/samhain-pkg-staging; \
|
---|
| 1001 | mkdir $$STAGE; \
|
---|
| 1002 | if test x"$$?" != x0; then \
|
---|
| 1003 | echo "ERROR ... mkdir $$STAGE failed"; \
|
---|
| 1004 | exit 1; \
|
---|
| 1005 | fi; \
|
---|
[40] | 1006 | $(MAKE) DESTDIR=$$STAGE install-light;
|
---|
[1] | 1007 | $(MAKE) solaris-pkg-finish
|
---|
| 1008 |
|
---|
| 1009 | solaris-pkg: all
|
---|
| 1010 | @STAGE=/tmp/samhain-pkg-staging; \
|
---|
| 1011 | mkdir $$STAGE; \
|
---|
| 1012 | if test x"$$?" != x0; then \
|
---|
| 1013 | echo "ERROR ... mkdir $$STAGE failed"; \
|
---|
| 1014 | exit 1; \
|
---|
| 1015 | fi; \
|
---|
[40] | 1016 | $(MAKE) DESTDIR=$$STAGE install;
|
---|
[1] | 1017 | $(MAKE) solaris-pkg-finish
|
---|
| 1018 |
|
---|
| 1019 | solaris-pkg-finish:
|
---|
| 1020 | @STAGE=/tmp/samhain-pkg-staging; \
|
---|
| 1021 | $(mkinstalldirs) $$STAGE/etc/init.d; \
|
---|
| 1022 | $(INSTALL_SHELL) init/samhain.startSolaris $$STAGE/etc/init.d/@install_name@; \
|
---|
| 1023 | (echo 'i pkginfo'; pkgproto $$STAGE=/ ) >prototype; \
|
---|
| 1024 | user=`id | sed s,uid=[0123456789]*\(,, | sed s,\).*,,`; \
|
---|
| 1025 | group=`id | sed s,.*gid=[0123456789]*\(,, | sed s,\).*,,`; \
|
---|
[40] | 1026 | cat prototype | grep -v 'none / ' | \
|
---|
[1] | 1027 | sed s,$$user\ $$group,root\ sys,g > prototype.1; \
|
---|
[44] | 1028 | rm -f prototype.2; \
|
---|
| 1029 | while read line; do \
|
---|
| 1030 | echo "$${line}" | egrep '^d none' >/dev/null 2>&1; \
|
---|
| 1031 | if [ $$? = 0 ]; then \
|
---|
| 1032 | dir=`echo "$${line}" | awk '{ print $$3 }'`; \
|
---|
| 1033 | if [ -d "$$dir" ]; then \
|
---|
| 1034 | echo "d none $${dir} ? ? ?" >> prototype.2; \
|
---|
| 1035 | else \
|
---|
| 1036 | echo "$${line}" >> prototype.2; \
|
---|
| 1037 | fi; \
|
---|
| 1038 | else \
|
---|
| 1039 | echo "$${line}" >> prototype.2; \
|
---|
| 1040 | fi; \
|
---|
| 1041 | done < prototype.1; \
|
---|
| 1042 | rm -f prototype && rm prototype.1 && mv prototype.2 prototype; \
|
---|
[1] | 1043 | echo "d none /etc/rc0.d ? ? ?" >> prototype; \
|
---|
| 1044 | echo "d none /etc/rc1.d ? ? ?" >> prototype; \
|
---|
| 1045 | echo "d none /etc/rc3.d ? ? ?" >> prototype; \
|
---|
| 1046 | echo "l none /etc/rc3.d/S99@install_name@=/etc/init.d/@install_name@" >> prototype; \
|
---|
| 1047 | echo "l none /etc/rc0.d/K10@install_name@=/etc/init.d/@install_name@" >> prototype; \
|
---|
| 1048 | echo "l none /etc/rc1.d/K10@install_name@=/etc/init.d/@install_name@" >> prototype; \
|
---|
| 1049 | ARCH=`uname -p`; \
|
---|
[101] | 1050 | PSTAMP=`date '+%c%y%m%d%H%M%S'`; \
|
---|
[1] | 1051 | echo "PKG=@install_name@" > pkginfo; \
|
---|
| 1052 | echo "NAME=file integrity check" >> pkginfo; \
|
---|
| 1053 | echo "VERSION=$(VERSION)" >> pkginfo; \
|
---|
| 1054 | echo "CATEGORY=system" >> pkginfo; \
|
---|
| 1055 | echo "CLASSES=none" >> pkginfo; \
|
---|
| 1056 | echo "VENDOR=http://la-samhna.de/samhain" >> pkginfo; \
|
---|
| 1057 | echo "EMAIL=support@la-samhna.de" >> pkginfo; \
|
---|
| 1058 | echo "ARCH=$$ARCH" >> pkginfo; \
|
---|
| 1059 | echo "PSTAMP=$$PSTAMP" >> pkginfo; \
|
---|
| 1060 | pkgmk -o; \
|
---|
| 1061 | pkgtrans -s /var/spool/pkg /tmp/samhain-pkg-staging/@install_name@.pkg @install_name@; \
|
---|
| 1062 | if test -f /tmp/samhain-pkg-staging/@install_name@.pkg; then \
|
---|
| 1063 | echo; \
|
---|
| 1064 | cp /tmp/samhain-pkg-staging/@install_name@.pkg $(PACKAGE)-$(VERSION).pkg; \
|
---|
[40] | 1065 | echo "Package $(PACKAGE)-$(VERSION).pkg is ready for installation"; \
|
---|
[44] | 1066 | echo "to install, use: pkgadd -n -d $(PACKAGE)-$(VERSION).pkg all"; \
|
---|
[1] | 1067 | echo; \
|
---|
[40] | 1068 | rm -rf /var/spool/pkg/@install_name@ /tmp/samhain-pkg-staging; \
|
---|
[1] | 1069 | else \
|
---|
| 1070 | echo; \
|
---|
[126] | 1071 | echo "**************************************************************"; \
|
---|
[1] | 1072 | echo "Error ... cannot find /tmp/samhain-pkg-staging/@install_name@.pkg."; \
|
---|
| 1073 | echo "Keeping /var/spool/pkg/@install_name@ /tmp/samhain-pkg-staging"; \
|
---|
[126] | 1074 | if test -d /var/spool/pkg; then \
|
---|
| 1075 | echo "**************************************************************"; \
|
---|
| 1076 | else \
|
---|
| 1077 | echo "************** /var/spool/pkg is missing *********************"; \
|
---|
| 1078 | fi; \
|
---|
[1] | 1079 | echo; \
|
---|
| 1080 | exit 1; \
|
---|
| 1081 | fi
|
---|
| 1082 |
|
---|
| 1083 | depot-prep: all
|
---|
| 1084 | STAGE=/tmp/samhain-pkg-staging; \
|
---|
| 1085 | mkdir $$STAGE; \
|
---|
| 1086 | if test x"$$?" != x0; then \
|
---|
| 1087 | echo "ERROR ... mkdir $$STAGE failed"; \
|
---|
| 1088 | exit 1; \
|
---|
| 1089 | fi; \
|
---|
[40] | 1090 | $(MAKE) DESTDIR=$$STAGE install; \
|
---|
| 1091 | $(MAKE) DESTDIR=$$STAGE install-boot; \
|
---|
[1] | 1092 | cp hp_ux.psf $$STAGE; \
|
---|
| 1093 | mkdir $$STAGE/sc; \
|
---|
| 1094 | echo "#!/sbin/sh" > $$STAGE/sc/configure; \
|
---|
| 1095 | echo "PATH=\$$SW_PATH; export PATH" >> $$STAGE/sc/configure; \
|
---|
| 1096 | echo "chmod 555 /sbin/init.d/samhain; chown bin:bin /sbin/init.d/@install_name@; (cd /sbin; ln -f -s /sbin/init.d/@install_name@ rc2.d/S900@install_name@; ln -f -s /sbin/init.d/@install_name@ rc1.d/K100@install_name@; )" >> $$STAGE/sc/configure; \
|
---|
| 1097 | chmod +x $$STAGE/sc/configure; \
|
---|
| 1098 | echo "#!/sbin/sh" > $$STAGE/sc/unconfigure; \
|
---|
| 1099 | echo "PATH=\$$SW_PATH; export PATH" >> $$STAGE/sc/unconfigure; \
|
---|
| 1100 | echo "rm -f /sbin/rc2.d/S900@install_name@; rm -f /sbin/rc1.d/K100@install_name@" >> $$STAGE/sc/unconfigure; \
|
---|
| 1101 | chmod +x $$STAGE/sc/unconfigure; \
|
---|
| 1102 | echo "#!/sbin/sh" > $$STAGE/sc/preremove; \
|
---|
| 1103 | echo "PATH=\$$SW_PATH; export PATH" >> $$STAGE/sc/preremove; \
|
---|
| 1104 | echo "/sbin/init.d/@install_name@ stop" >> $$STAGE/sc/preremove; \
|
---|
| 1105 | echo "exit 0" >> $$STAGE/sc/preremove; \
|
---|
| 1106 | chmod +x $$STAGE/sc/preremove;
|
---|
| 1107 |
|
---|
| 1108 | depot: depot-prep
|
---|
| 1109 | (cd /tmp/samhain-pkg-staging && /usr/sbin/swpackage -v -s ./hp_ux.psf -x media_type=tape @ $(PACKAGE)-$(VERSION).depot)
|
---|
| 1110 | cp /tmp/samhain-pkg-staging/$(PACKAGE)-$(VERSION).depot .
|
---|
| 1111 | rm -rf /tmp/samhain-pkg-staging
|
---|
| 1112 |
|
---|
| 1113 | depot-light: depot
|
---|
| 1114 |
|
---|
| 1115 | #---------------------------------------------------------------
|
---|
| 1116 |
|
---|
| 1117 |
|
---|
| 1118 | trustfile: $(srcsrc)/trustfile.c config.h
|
---|
| 1119 | $(COMPILE) $(VFLAG) -DSH_IDENT=\"@myident@\" -DTRUST_MAIN -DSL_ALWAYS_TRUSTED=@mytrust@ -o trustfile $(srcsrc)/trustfile.c
|
---|
| 1120 |
|
---|
| 1121 | sh_MK.h: config.h
|
---|
| 1122 | @echo "creating sh_MK.h"; \
|
---|
| 1123 | echo "#ifndef SH_MK_H" > sh_MK.h; \
|
---|
| 1124 | echo "#define SH_MK_H" >> sh_MK.h; \
|
---|
| 1125 | $(top_srcdir)/c_bits.sh @my_key_1@ MKB >> sh_MK.h; \
|
---|
| 1126 | $(top_srcdir)/c_bits.sh @my_key_2@ MKA >> sh_MK.h; \
|
---|
| 1127 | $(top_srcdir)/c_bits.sh @my_key_3@ MKC >> sh_MK.h; \
|
---|
| 1128 | $(top_srcdir)/c_bits.sh @my_key_4@ MKD >> sh_MK.h; \
|
---|
| 1129 | echo "#endif" >> sh_MK.h
|
---|
| 1130 |
|
---|
| 1131 |
|
---|
| 1132 | sstrip: $(srcsrc)/sstrip.c Makefile
|
---|
[98] | 1133 | $(BUILD_CC) -I. -o sstrip $(srcsrc)/sstrip.c
|
---|
[1] | 1134 |
|
---|
| 1135 | encode: $(srcsrc)/encode.c Makefile
|
---|
[98] | 1136 | $(BUILD_CC) -I. -o encode $(srcsrc)/encode.c
|
---|
[1] | 1137 |
|
---|
| 1138 | config_xor.h: config.h encode
|
---|
| 1139 | @echo 'encode $(XOR_CODE) config.h'; \
|
---|
| 1140 | ./encode $(XOR_CODE) config.h; \
|
---|
| 1141 | mv x_config.h config_xor.h
|
---|
| 1142 |
|
---|
| 1143 |
|
---|
[481] | 1144 | $(OBJECTS): encode internal.h config_xor.h
|
---|
[1] | 1145 | @echo "./encode $(XOR_CODE) $(srcsrc)/`echo $@ |sed 's%\.o$$%%'`.c --> x_`echo $@ |sed 's%\.o$$%%'`.c"; \
|
---|
| 1146 | ./encode $(XOR_CODE) $(srcsrc)/`echo $@ |sed 's%\.o$$%%'`.c; \
|
---|
| 1147 | echo "$(COMPILE) $(VFLAG) -o `echo $@ |sed 's%.*/%%'` -c x_`echo $@ |sed 's%\.o$$%%'`.c"; \
|
---|
[378] | 1148 | $(COMPILE) $(VFLAG) -o `echo $@ |sed 's%.*/%%'` -c x_`echo $@ |sed 's%\.o$$%%'`.c && \
|
---|
[1] | 1149 | rm x_`echo $@ |sed 's%\.o$$%%'`.c
|
---|
| 1150 |
|
---|
[18] | 1151 | sh_tiger_i.o: $(srcsrc)/$(TIGER_SRC) Makefile config_xor.h
|
---|
| 1152 | @echo "$(COMPILE) $(VFLAG) -o sh_tiger_i.o -c $(srcsrc)/$(TIGER_SRC)";\
|
---|
| 1153 | $(COMPILE) $(VFLAG) -o sh_tiger_i.o -c $(srcsrc)/$(TIGER_SRC);
|
---|
| 1154 |
|
---|
[1] | 1155 | samhain_setpwd: encode config_xor.h $(srcsrc)/samhain_setpwd.c
|
---|
| 1156 | @echo '$(COMPILE) -o samhain_setpwd $(srcsrc)/samhain_setpwd.c'; \
|
---|
| 1157 | ./encode $(XOR_CODE) $(srcsrc)/samhain_setpwd.c; \
|
---|
| 1158 | $(COMPILE) -o samhain_setpwd x_samhain_setpwd.c; \
|
---|
| 1159 | rm x_samhain_setpwd.c
|
---|
| 1160 |
|
---|
| 1161 | samhain_stealth: encode config_xor.h $(srcsrc)/samhain_stealth.c
|
---|
| 1162 | @echo '$(COMPILE) -o samhain_stealth $(srcsrc)/samhain_stealth.c'; \
|
---|
| 1163 | ./encode $(XOR_CODE) $(srcsrc)/samhain_stealth.c; \
|
---|
| 1164 | $(COMPILE) -o samhain_stealth x_samhain_stealth.c; \
|
---|
| 1165 | rm x_samhain_stealth.c
|
---|
| 1166 |
|
---|
| 1167 | yulectl: encode config_xor.h $(srcsrc)/yulectl.c
|
---|
| 1168 | @echo '$(COMPILE) -o yulectl $(srcsrc)/yulectl.c $(LIBS_SOCK)'; \
|
---|
| 1169 | ./encode $(XOR_CODE) $(srcsrc)/yulectl.c; \
|
---|
| 1170 | $(COMPILE) -o yulectl x_yulectl.c $(LIBS_SOCK); \
|
---|
| 1171 | rm x_yulectl.c
|
---|
| 1172 |
|
---|
[18] | 1173 | $(SAMHAIN): internal.h $(OBJECTS) sh_tiger_i.o
|
---|
[1] | 1174 | @-rm -f $(SAMHAIN)
|
---|
[18] | 1175 | @echo "$(LINK) sh_tiger_i.o $(OBJECTS) $(LIBS_TRY)"; \
|
---|
| 1176 | $(LINK) sh_tiger_i.o $(OBJECTS) $(LIBS_TRY)
|
---|
[1] | 1177 |
|
---|
| 1178 |
|
---|
[18] | 1179 | CUTEST_SOURCES = $(srcsrc)/cutest_sh_tools.c \
|
---|
[23] | 1180 | $(srcsrc)/cutest_sh_utils.c \
|
---|
[25] | 1181 | $(srcsrc)/cutest_sh_unix.c \
|
---|
[23] | 1182 | $(srcsrc)/cutest_slib.c \
|
---|
[18] | 1183 | $(srcsrc)/cutest_zAVLTree.c \
|
---|
[34] | 1184 | $(srcsrc)/cutest_sh_hash.c \
|
---|
[18] | 1185 | $(srcsrc)/cutest_sh_tiger0.c
|
---|
[1] | 1186 |
|
---|
[23] | 1187 | CUTEST_OBJECTS = cutest_sh_tools.o \
|
---|
| 1188 | cutest_sh_utils.o \
|
---|
[25] | 1189 | cutest_sh_unix.o \
|
---|
[23] | 1190 | cutest_slib.o \
|
---|
| 1191 | cutest_zAVLTree.o \
|
---|
[34] | 1192 | cutest_sh_hash.o \
|
---|
[23] | 1193 | cutest_sh_tiger0.o
|
---|
[18] | 1194 |
|
---|
[170] | 1195 | $(CUTEST_OBJECTS): $(CUTEST_SOURCES) config_xor.h internal.h
|
---|
[18] | 1196 | @echo "./encode $(XOR_CODE) $(srcsrc)/`echo $@ |sed 's%\.o$$%%'`.c --> x_`echo $@ |sed 's%\.o$$%%'`.c"; \
|
---|
| 1197 | ./encode $(XOR_CODE) $(srcsrc)/`echo $@ |sed 's%\.o$$%%'`.c; \
|
---|
| 1198 | echo "$(COMPILE) $(VFLAG) -o `echo $@ |sed 's%.*/%%'` -c x_`echo $@ |sed 's%\.o$$%%'`.c"; \
|
---|
| 1199 | $(COMPILE) $(VFLAG) -o `echo $@ |sed 's%.*/%%'` -c x_`echo $@ |sed 's%\.o$$%%'`.c; \
|
---|
| 1200 | rm x_`echo $@ |sed 's%\.o$$%%'`.c
|
---|
| 1201 |
|
---|
[68] | 1202 |
|
---|
| 1203 | cutest: $(SOURCES) $(CUTEST_SOURCES)
|
---|
| 1204 | @$(MAKE) CUTEST='-DSH_CUTEST=1' intcutest
|
---|
| 1205 |
|
---|
[257] | 1206 | $(srcsrc)/CuTestMain.c: $(SOURCES) $(CUTEST_SOURCES) $(srcsrc)/make-tests.sh
|
---|
| 1207 | cd $(srcsrc)/ && ./make-tests.sh >CuTestMain.c;
|
---|
| 1208 |
|
---|
| 1209 | intcutest: internal.h $(OBJECTS) $(CUTEST_OBJECTS) sh_tiger_i.o $(srcsrc)/CuTestMain.c
|
---|
[18] | 1210 | @$(COMPILE) -o CuTestMain.o -c $(srcsrc)/CuTestMain.c; \
|
---|
| 1211 | $(COMPILE) -o CuTest.o -c $(srcsrc)/CuTest.c; \
|
---|
| 1212 | rm -f samhain.o; \
|
---|
| 1213 | ./encode $(XOR_CODE) $(srcsrc)/samhain.c; \
|
---|
[68] | 1214 | $(COMPILE) $(VFLAG) -o samhain.o -c x_samhain.c; \
|
---|
[18] | 1215 | rm x_samhain.c; \
|
---|
| 1216 | $(LINK) sh_tiger_i.o $(CUTEST_OBJECTS) CuTestMain.o CuTest.o $(OBJECTS) $(LIBS_TRY); \
|
---|
[68] | 1217 | test -f ./intcutest && mv ./intcutest ./cutest; \
|
---|
[18] | 1218 | ./cutest
|
---|
| 1219 |
|
---|
[171] | 1220 | runcutest:
|
---|
| 1221 | gdb ./cutest
|
---|
| 1222 |
|
---|
[1] | 1223 |
|
---|
| 1224 | # For bignum
|
---|
| 1225 | internal.h: mkhdr
|
---|
| 1226 | @sleep 1; \
|
---|
| 1227 | ./mkhdr
|
---|
| 1228 |
|
---|
| 1229 | bignum.o: internal.h
|
---|
| 1230 |
|
---|
[170] | 1231 |
|
---|
[1] | 1232 | # If your compiler can't handle long identifiers (> 6 chars), move the `#' to
|
---|
| 1233 | # the other line.
|
---|
| 1234 |
|
---|
| 1235 | mkhdr: $(srcsrc)/mkhdr.c config.h
|
---|
[98] | 1236 | @echo "$(BUILD_CC) -I. -o mkhdr $(srcsrc)/mkhdr.c"; \
|
---|
[1] | 1237 | sleep 1; \
|
---|
[98] | 1238 | $(BUILD_CC) -I. -o mkhdr $(srcsrc)/mkhdr.c
|
---|
[1] | 1239 |
|
---|
| 1240 | # $(COMPILE) -DBIG_SHORT_NAMES -o mkhdr $(srcdir)/mkhdr.c
|
---|
| 1241 |
|
---|
| 1242 | #----------------------------------------------------------
|
---|
| 1243 | #
|
---|
| 1244 | # EXE PACKER rules
|
---|
| 1245 | #
|
---|
| 1246 | #----------------------------------------------------------
|
---|
| 1247 |
|
---|
| 1248 | minilzo.o: $(srcsrc)/minilzo.c $(srcinc)/lzoconf.h $(srcinc)/minilzo.h config.h
|
---|
| 1249 | @echo "$(COMPILE) -DMINILZO_HAVE_CONFIG_H -o minilzo.o -c $(srcsrc)/minilzo.c"; \
|
---|
| 1250 | $(COMPILE) -DMINILZO_HAVE_CONFIG_H -o minilzo.o -c $(srcsrc)/minilzo.c
|
---|
| 1251 |
|
---|
| 1252 | exepack_mkdata: $(srcsrc)/exepack_mkdata.c $(srcinc)/lzoconf.h $(srcinc)/minilzo.h minilzo.o
|
---|
| 1253 | @echo "$(COMPILE) -o exepack_mkdata.o -c $(srcsrc)/exepack_mkdata.c"; \
|
---|
| 1254 | $(COMPILE) -o exepack_mkdata.o -c $(srcsrc)/exepack_mkdata.c; \
|
---|
| 1255 | echo "$(LINK) exepack_mkdata.o minilzo.o"; \
|
---|
| 1256 | $(LINK) exepack_mkdata.o minilzo.o
|
---|
| 1257 |
|
---|
| 1258 | #
|
---|
| 1259 | # prepare the data to be packed
|
---|
| 1260 | #
|
---|
| 1261 | exepack.data: $(SAMHAIN) exepack_mkdata sstrip
|
---|
| 1262 | @echo "cp ./$(SAMHAIN) ./samhain.pk.data"; \
|
---|
| 1263 | cp ./$(SAMHAIN) ./samhain.pk.data; \
|
---|
| 1264 | echo "strip ./samhain.pk.data"; \
|
---|
| 1265 | strip ./samhain.pk.data > /dev/null 2>&1 || echo "... is already stripped"; \
|
---|
| 1266 | echo "./sstrip ./samhain.pk.data"; \
|
---|
| 1267 | ./sstrip ./samhain.pk.data > /dev/null 2>&1 || echo "sstrip returned false"; \
|
---|
| 1268 | echo "./exepack_mkdata ./samhain.pk.data ./exepack.data 0"; \
|
---|
| 1269 | ./exepack_mkdata ./samhain.pk.data ./exepack.data 0; \
|
---|
| 1270 | echo "rm -f ./samhain.pk.data"; \
|
---|
| 1271 | rm -f ./samhain.pk.data;
|
---|
| 1272 |
|
---|
| 1273 | exepack: $(srcsrc)/exepack.c minilzo.o exepack.data
|
---|
| 1274 | @echo "$(COMPILE) -o exepack.o -c $(srcsrc)/exepack.c"; \
|
---|
| 1275 | $(COMPILE) -o exepack.o -c $(srcsrc)/exepack.c; \
|
---|
| 1276 | echo "$(LINK) exepack.o minilzo.o"; \
|
---|
| 1277 | $(LINK) exepack.o minilzo.o;
|
---|
| 1278 |
|
---|
| 1279 | #
|
---|
| 1280 | # this program fills the data section with the binary
|
---|
| 1281 | #
|
---|
| 1282 | exepack_fill: $(srcsrc)/exepack_fill.c minilzo.o exepack
|
---|
| 1283 | @echo "$(COMPILE) -o exepack_fill.o -c $(srcsrc)/exepack_fill.c"; \
|
---|
| 1284 | $(COMPILE) -o exepack_fill.o -c $(srcsrc)/exepack_fill.c; \
|
---|
| 1285 | echo "$(LINK) exepack_fill.o minilzo.o"; \
|
---|
| 1286 | $(LINK) exepack_fill.o minilzo.o
|
---|
| 1287 |
|
---|
| 1288 | samhain.pk: $(SAMHAIN) exepack exepack_fill sstrip
|
---|
| 1289 | @echo "cp ./$(SAMHAIN) ./samhain.pk.data"; \
|
---|
| 1290 | cp ./$(SAMHAIN) ./samhain.pk.data; \
|
---|
| 1291 | echo "strip ./samhain.pk.data"; \
|
---|
| 1292 | strip ./samhain.pk.data > /dev/null 2>&1 || echo "... is already stripped"; \
|
---|
| 1293 | echo "./sstrip ./samhain.pk.data"; \
|
---|
| 1294 | ./sstrip ./samhain.pk.data > /dev/null 2>&1 || echo "sstrip returned false"; \
|
---|
| 1295 | test -f exepack.out && rm exepack.out; \
|
---|
| 1296 | echo "./exepack_fill exepack samhain.pk.data exepack.out"; \
|
---|
| 1297 | ./exepack_fill exepack samhain.pk.data exepack.out; \
|
---|
| 1298 | chmod +x exepack.out; \
|
---|
| 1299 | echo "strip exepack.out"; \
|
---|
| 1300 | strip exepack.out > /dev/null 2>&1 || echo "... is already stripped"; \
|
---|
| 1301 | ./sstrip exepack.out > /dev/null 2>&1 || echo "sstrip returned false"; \
|
---|
| 1302 | echo "mv exepack.out samhain.pk"; \
|
---|
| 1303 | rm -f samhain.pk; mv exepack.out samhain.pk
|
---|
| 1304 |
|
---|
| 1305 | samhain-packed: $(SAMHAIN) samhain_setpwd
|
---|
| 1306 | @echo "samhain_setpwd samhain new $(CLIENTPASSWD)"; \
|
---|
| 1307 | samhain_setpwd samhain new $(CLIENTPASSWD); \
|
---|
| 1308 | echo "rm -f samhain; mv samhain.new samhain"; \
|
---|
| 1309 | rm -f samhain; mv samhain.new samhain; \
|
---|
| 1310 | $(MAKE) samhain.pk; \
|
---|
| 1311 | echo "rm -f samhain; mv samhain.pk samhain"; \
|
---|
| 1312 | rm -f samhain; mv samhain.pk samhain
|
---|
| 1313 |
|
---|
| 1314 | #----------------------------------------------------------
|
---|
| 1315 | #
|
---|
| 1316 | # DEPLOY rules
|
---|
| 1317 | #
|
---|
| 1318 | #----------------------------------------------------------
|
---|
| 1319 |
|
---|
| 1320 | uninstall-deploy:
|
---|
| 1321 | rm -rf $(mydatadir)/profiles/source
|
---|
| 1322 | rm -rf $(mydatadir)/profiles/archpkg
|
---|
| 1323 | rm -rf $(mydatadir)/profiles/libexec
|
---|
| 1324 | rm -rf $(mydatadir)/profiles/tmp
|
---|
| 1325 | rm -rf $(mydatadir)/profiles/private
|
---|
| 1326 | @if test -f $(sbindir)/deploy.sh; then \
|
---|
| 1327 | old_deploy=`grep 'VERSION2' $(sbindir)/deploy.sh >/dev/null 2>&1 || echo old`; \
|
---|
| 1328 | if test x"$$old_deploy" = xold; then \
|
---|
| 1329 | echo "rm -f $(sbindir)/deploy2.sh"; \
|
---|
| 1330 | rm -f $(sbindir)/deploy2.sh; \
|
---|
| 1331 | else \
|
---|
| 1332 | echo "rm -f $(sbindir)/deploy.sh"; \
|
---|
| 1333 | rm -f $(sbindir)/deploy.sh; \
|
---|
| 1334 | fi; \
|
---|
| 1335 | fi
|
---|
| 1336 |
|
---|
| 1337 | EXECFILES= comCHECKSRC comDOWNLOAD comBUILD comCLEAN comINSTALL \
|
---|
| 1338 | funcDIALOG funcEXE funcPRINT funcSETUP funcBUILD funcINSTALL \
|
---|
| 1339 | funcDB comUNINSTALL \
|
---|
| 1340 | preinstall postinstall initscript
|
---|
| 1341 |
|
---|
| 1342 | # $(mydatadir)/profiles/
|
---|
| 1343 | # |
|
---|
| 1344 | # |
|
---|
| 1345 | # |-- source -------------> (tarballs)
|
---|
| 1346 | # |
|
---|
| 1347 | # |-- configs ------------> (default configs)
|
---|
| 1348 | # |
|
---|
| 1349 | # |-- archpkg
|
---|
| 1350 | # | |
|
---|
| 1351 | # | |-- architecture -> (package, setup script)
|
---|
| 1352 | # |
|
---|
| 1353 | # |-- hosts
|
---|
| 1354 | # | |
|
---|
| 1355 | # | |-- hostname -----> (config)
|
---|
| 1356 | # |
|
---|
| 1357 | # |-- libexec ------------> (scripts)
|
---|
| 1358 | # |
|
---|
| 1359 | # |-- private ------------> (gpg key)
|
---|
| 1360 | # |
|
---|
| 1361 | # |-- tmp
|
---|
| 1362 | #
|
---|
| 1363 | install-deploy: deploy.sh samhain_stealth
|
---|
| 1364 | @echo "Creating directory tree under $(mydatadir)/profiles/"; \
|
---|
| 1365 | $(mkinstalldirs) $(sbindir); \
|
---|
| 1366 | $(mkinstalldirs) $(mydatadir)/profiles/source; \
|
---|
| 1367 | $(mkinstalldirs) $(mydatadir)/profiles/configs; \
|
---|
| 1368 | $(mkinstalldirs) $(mydatadir)/profiles/archpkg/debian_i386; \
|
---|
| 1369 | $(mkinstalldirs) $(mydatadir)/profiles/archpkg/gentoo_i386; \
|
---|
| 1370 | $(mkinstalldirs) $(mydatadir)/profiles/archpkg/redhat_i386; \
|
---|
| 1371 | $(mkinstalldirs) $(mydatadir)/profiles/archpkg/linux_i386; \
|
---|
| 1372 | $(mkinstalldirs) $(mydatadir)/profiles/archpkg/freebsd_i386;\
|
---|
| 1373 | $(mkinstalldirs) $(mydatadir)/profiles/archpkg/solaris; \
|
---|
| 1374 | $(mkinstalldirs) $(mydatadir)/profiles/archpkg/aix; \
|
---|
| 1375 | $(mkinstalldirs) $(mydatadir)/profiles/hosts; \
|
---|
| 1376 | $(mkinstalldirs) $(mydatadir)/profiles/libexec; \
|
---|
| 1377 | $(mkinstalldirs) $(mydatadir)/profiles/private; \
|
---|
| 1378 | $(mkinstalldirs) $(mydatadir)/profiles/tmp; \
|
---|
| 1379 | if test -f $(srcdir)/../$(PACKAGE)-$(VERSION).tar.gz.asc; then \
|
---|
| 1380 | if test -f $(srcdir)/../$(PACKAGE)-$(VERSION).tar.gz; then \
|
---|
| 1381 | echo "Installing source tarball"; \
|
---|
| 1382 | $(INSTALL_DATA) $(srcdir)/../$(PACKAGE)-$(VERSION).tar.gz.asc \
|
---|
| 1383 | $(mydatadir)/profiles/source/$(PACKAGE)-$(VERSION).tar.gz.asc; \
|
---|
| 1384 | $(INSTALL_DATA) $(srcdir)/../$(PACKAGE)-$(VERSION).tar.gz \
|
---|
| 1385 | $(mydatadir)/profiles/source/$(PACKAGE)-$(VERSION).tar.gz; \
|
---|
| 1386 | fi; \
|
---|
| 1387 | fi; \
|
---|
| 1388 | echo "Installing default configs"; \
|
---|
| 1389 | test -f $(mydatadir)/profiles/configs/freebsd_i386.samhainrc || \
|
---|
| 1390 | $(INSTALL_DATA) $(srcdir)/samhainrc.freebsd \
|
---|
| 1391 | $(mydatadir)/profiles/configs/freebsd_i386.samhainrc; \
|
---|
| 1392 | test -f $(mydatadir)/profiles/configs/debian_i386.samhainrc || \
|
---|
| 1393 | $(INSTALL_DATA) $(srcdir)/samhainrc.linux \
|
---|
| 1394 | $(mydatadir)/profiles/configs/debian_i386.samhainrc; \
|
---|
| 1395 | test -f $(mydatadir)/profiles/configs/gentoo_i386.samhainrc || \
|
---|
| 1396 | $(INSTALL_DATA) $(srcdir)/samhainrc.linux \
|
---|
| 1397 | $(mydatadir)/profiles/configs/gentoo_i386.samhainrc; \
|
---|
| 1398 | test -f $(mydatadir)/profiles/configs/redhat_i386.samhainrc || \
|
---|
| 1399 | $(INSTALL_DATA) $(srcdir)/samhainrc.linux \
|
---|
| 1400 | $(mydatadir)/profiles/configs/redhat_i386.samhainrc; \
|
---|
| 1401 | test -f $(mydatadir)/profiles/configs/linux_i386.samhainrc || \
|
---|
| 1402 | $(INSTALL_DATA) $(srcdir)/samhainrc.linux \
|
---|
| 1403 | $(mydatadir)/profiles/configs/linux_i386.samhainrc; \
|
---|
| 1404 | test -f $(mydatadir)/profiles/configs/solaris.samhainrc || \
|
---|
| 1405 | $(INSTALL_DATA) $(srcdir)/samhainrc.solaris \
|
---|
| 1406 | $(mydatadir)/profiles/configs/solaris.samhainrc; \
|
---|
| 1407 | test -f $(mydatadir)/profiles/configs/aix.samhainrc || \
|
---|
| 1408 | $(INSTALL_DATA) $(srcdir)/samhainrc.aix5.2.0 \
|
---|
| 1409 | $(mydatadir)/profiles/configs/aix.samhainrc; \
|
---|
| 1410 | if test -f $(mydatadir)/profiles/configs/generic.configure; then \
|
---|
| 1411 | :; \
|
---|
| 1412 | else \
|
---|
| 1413 | SH_FQDN_SYSTEM=`uname -n`; \
|
---|
| 1414 | SH_FQDN_DOMAIN=`grep -i domain /etc/resolv.conf |grep -v "\#" |awk '{print $$2}' |head -1`; \
|
---|
| 1415 | if test -n "$${SH_FQDN_SYSTEM}" -a -n "$${SH_FQDN_DOMAIN}"; then \
|
---|
| 1416 | sh_thishost="$${SH_FQDN_SYSTEM}.$${SH_FQDN_DOMAIN}"; \
|
---|
| 1417 | else \
|
---|
| 1418 | sh_thishost="FQDN_MISSING"; \
|
---|
| 1419 | fi; \
|
---|
| 1420 | outfile=$(mydatadir)/profiles/configs/generic.configure; \
|
---|
| 1421 | echo "'--enable-network=client'" > $$outfile; \
|
---|
| 1422 | echo "'--with-logserver=$${sh_thishost}'" >> $$outfile; \
|
---|
| 1423 | echo "'--with-data-file=REQ_FROM_SERVER/var/lib/samhain/samhain_file'" >> $$outfile; \
|
---|
| 1424 | echo "'--with-config-file=REQ_FROM_SERVER/etc/samhainrc'" >> $$outfile; \
|
---|
| 1425 | echo "'--enable-base=@mykeybase@'" >> $$outfile; \
|
---|
| 1426 | fi; \
|
---|
| 1427 | $(INSTALL_SHELL) $(srcdir)/mkinstalldirs \
|
---|
| 1428 | $(mydatadir)/profiles/libexec; \
|
---|
| 1429 | $(INSTALL_SHELL) $(srcdir)/install-sh \
|
---|
| 1430 | $(mydatadir)/profiles/libexec; \
|
---|
| 1431 | for ff in $(EXECFILES); do \
|
---|
| 1432 | test -f $(srcdir)/dsys/$$ff && $(INSTALL_SHELL) $(srcdir)/dsys/$$ff \
|
---|
| 1433 | $(mydatadir)/profiles/libexec; \
|
---|
| 1434 | done; \
|
---|
| 1435 | $(INSTALL_SHELL) samhain_stealth $(mydatadir)/profiles/libexec; \
|
---|
| 1436 | test -f $(srcdir)/dsys/0F571F6C.asc && $(INSTALL_DATA) $(srcdir)/dsys/0F571F6C.asc \
|
---|
| 1437 | $(mydatadir)/profiles/private; \
|
---|
| 1438 | convert +compress $(srcdir)/stealth_template.jpg stealth_template.ps >/dev/null || \
|
---|
| 1439 | { echo "*"; echo "* 'convert' not found or not working, not installing"; echo "* $(mydatadir)/profiles/private/stealth_template.ps"; echo "* (only required for installing packages built with --enable-stealth)"; echo "*"; }; \
|
---|
| 1440 | if test -f stealth_template.ps; then \
|
---|
| 1441 | if test -f $(mydatadir)/profiles/private/stealth_template.ps; then \
|
---|
| 1442 | :; \
|
---|
| 1443 | else \
|
---|
| 1444 | $(INSTALL_DATA) stealth_template.ps $(mydatadir)/profiles/private; \
|
---|
| 1445 | fi; \
|
---|
| 1446 | fi; \
|
---|
| 1447 | if test -f $(sbindir)/deploy.sh; then \
|
---|
| 1448 | old_deploy=`grep 'VERSION2' $(sbindir)/deploy.sh >/dev/null 2>&1 || echo old`; \
|
---|
| 1449 | if test x"$$old_deploy" = xold; then \
|
---|
| 1450 | echo "*"; echo "* Version 1 of deploy.sh found"; echo "*"; \
|
---|
| 1451 | echo "* Installing $(sbindir)/deploy2.sh"; echo "*"; \
|
---|
| 1452 | $(INSTALL_SHELL) deploy.sh $(sbindir)/deploy2.sh; \
|
---|
| 1453 | else \
|
---|
| 1454 | echo "Installing $(sbindir)/deploy.sh"; \
|
---|
| 1455 | $(INSTALL_SHELL) deploy.sh $(sbindir)/deploy.sh; \
|
---|
| 1456 | fi; \
|
---|
| 1457 | else \
|
---|
| 1458 | echo "Installing $(sbindir)/deploy.sh"; \
|
---|
| 1459 | $(INSTALL_SHELL) deploy.sh $(sbindir)/deploy.sh; \
|
---|
| 1460 | fi
|
---|
| 1461 |
|
---|
| 1462 |
|
---|
| 1463 | #----------------------------------------------------------
|
---|
| 1464 | #
|
---|
| 1465 | # DISTRIBUTION rules
|
---|
| 1466 | #
|
---|
| 1467 | #----------------------------------------------------------
|
---|
| 1468 |
|
---|
| 1469 | distdir = $(PACKAGE)-$(VERSION)
|
---|
| 1470 | top_distdir = $(distdir)
|
---|
| 1471 |
|
---|
| 1472 | # This target untars the dist file and tries a VPATH configuration. Then
|
---|
| 1473 | # it guarantees that the distribution is self-contained by making another
|
---|
| 1474 | # tarfile.
|
---|
| 1475 |
|
---|
| 1476 | #
|
---|
| 1477 | # 1) make distribution tarfile
|
---|
| 1478 | # 2) unpack the tarfile into distdir
|
---|
| 1479 | # 3) create build and install directories
|
---|
| 1480 | # 4) do the build in the build dir, with sources from distdir
|
---|
| 1481 | # 5) check (there are no subdirs, thus does nothing)
|
---|
| 1482 | # 6) install
|
---|
| 1483 | # 7) installcheck (equal to check, does nothing)
|
---|
| 1484 | #
|
---|
| 1485 | distcheck: dist
|
---|
| 1486 | -rm -rf $(distdir)
|
---|
| 1487 | GZIP=$(GZIP) $(TAR) zxf $(distdir).tar.gz
|
---|
| 1488 | mkdir $(distdir)/=build
|
---|
| 1489 | mkdir $(distdir)/=inst
|
---|
| 1490 | dc_install_base=`cd $(distdir)/=inst && pwd`; \
|
---|
| 1491 | cd $(distdir)/=build \
|
---|
| 1492 | && ../configure --srcdir=.. --prefix=$$dc_install_base \
|
---|
| 1493 | && $(MAKE) \
|
---|
| 1494 | && $(MAKE) install
|
---|
| 1495 | -rm -rf $(distdir)
|
---|
| 1496 | -rm -f $(distdir).tar.gz.asc
|
---|
| 1497 | @gpg -a --detach-sign $(distdir).tar.gz; \
|
---|
| 1498 | $(TAR) chof $(distdir).tar $(distdir).tar.gz $(distdir).tar.gz.asc; \
|
---|
| 1499 | rm -f $(distdir).tar.gz; \
|
---|
| 1500 | rm -f $(distdir).tar.gz.asc; \
|
---|
| 1501 | gzip --best $(distdir).tar
|
---|
| 1502 | mv $(distdir).tar.gz $(PACKAGE)_signed-$(VERSION).tar.gz
|
---|
| 1503 | @echo "========================"; \
|
---|
| 1504 | echo "$(PACKAGE)_signed-$(VERSION).tar.gz is ready for distribution"; \
|
---|
| 1505 | echo "========================"
|
---|
| 1506 |
|
---|
| 1507 | #
|
---|
| 1508 | # create a tarfile for the distibution
|
---|
| 1509 | #
|
---|
| 1510 | distrpm: distdirrpm
|
---|
| 1511 | -chmod -R a+r $(distdir)
|
---|
| 1512 | -rm -rf $(distdir).tar.gz
|
---|
| 1513 | -rm -rf $(distdir).tar
|
---|
| 1514 | $(TAR) chof $(distdir).tar $(distdir)
|
---|
| 1515 | gzip -c --best $(distdir).tar > $(distdir).tar.gz
|
---|
| 1516 | -rm -rf $(distdir)
|
---|
| 1517 |
|
---|
| 1518 | dist: distdir
|
---|
| 1519 | -chmod -R a+r $(distdir)
|
---|
| 1520 | -rm -rf $(distdir).tar.gz
|
---|
| 1521 | -rm -rf $(distdir).tar
|
---|
| 1522 | $(TAR) chof $(distdir).tar $(distdir)
|
---|
| 1523 | gzip -c --best $(distdir).tar > $(distdir).tar.gz
|
---|
| 1524 | -rm -rf $(distdir)
|
---|
| 1525 |
|
---|
| 1526 | #
|
---|
| 1527 | # create a tarfile for the distibution
|
---|
| 1528 | #
|
---|
| 1529 | dist-sign: distdir
|
---|
| 1530 | -rm -f $(distdir)/scripts/samhain.ebuild
|
---|
| 1531 | -rm -f $(distdir)/scripts/samhain.ebuild-light
|
---|
| 1532 | -chmod -R a+r $(distdir)
|
---|
| 1533 | -rm -rf $(distdir).tar.gz
|
---|
| 1534 | -rm -rf $(distdir).tar
|
---|
| 1535 | $(TAR) chof $(distdir).tar $(distdir)
|
---|
| 1536 | gzip --best $(distdir).tar
|
---|
| 1537 | -rm -rf $(distdir)
|
---|
| 1538 | -rm -f $(distdir).tar.gz.asc
|
---|
| 1539 | gpg -a --detach-sign $(distdir).tar.gz
|
---|
| 1540 | $(TAR) chof $(distdir).tar $(distdir).tar.gz $(distdir).tar.gz.asc
|
---|
| 1541 | -rm -f $(distdir).tar.gz
|
---|
| 1542 | -rm -f $(distdir).tar.gz.asc
|
---|
| 1543 | gzip --best $(distdir).tar
|
---|
| 1544 | mv $(distdir).tar.gz $(PACKAGE)_signed-$(VERSION).tar.gz
|
---|
| 1545 |
|
---|
| 1546 |
|
---|
| 1547 | #
|
---|
| 1548 | # same as dist
|
---|
| 1549 | #
|
---|
| 1550 | dist-all: distdir
|
---|
| 1551 | -chmod -R a+r $(distdir)
|
---|
| 1552 | GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir)
|
---|
| 1553 | -rm -rf $(distdir)
|
---|
| 1554 |
|
---|
| 1555 | #
|
---|
| 1556 | # create distribution directory and copy files into it
|
---|
| 1557 | #
|
---|
| 1558 | INITFILES=samhain.startIRIX samhain.startFreeBSD samhain.startSolaris \
|
---|
[71] | 1559 | samhain.startLSB samhain.startGentoo samhain.startLinux samhain.startHPUX \
|
---|
[100] | 1560 | samhain.startIRIX samhain.startMACOSX
|
---|
[1] | 1561 |
|
---|
[414] | 1562 | SCRIPTFILES=redhat_i386.client.spec check_samhain.pl samhainadmin.pl \
|
---|
[412] | 1563 | yuleadmin.pl samhain.ebuild samhain.ebuild-light samhain.spec
|
---|
[1] | 1564 |
|
---|
| 1565 | distdir: distfilecheck
|
---|
| 1566 | -rm -f $(top_srcdir)/init/*~
|
---|
[412] | 1567 | -rm -f $(top_srcdir)/sql_init/*~
|
---|
[1] | 1568 | -rm -f $(top_srcdir)/dsys/*~
|
---|
| 1569 | -rm -f $(top_srcdir)/docs/*~
|
---|
| 1570 | -rm -f $(top_srcdir)/include/*~
|
---|
| 1571 | -rm -f $(top_srcdir)/src/*~
|
---|
| 1572 | -rm -f $(top_srcdir)/test/*~
|
---|
| 1573 | -rm -f $(top_srcdir)/scripts/*~
|
---|
| 1574 | (cd $(top_srcdir)/init && rm -f $(INITFILES))
|
---|
| 1575 | -rm -rf $(distdir)
|
---|
| 1576 | mkdir $(distdir)
|
---|
| 1577 | -chmod 777 $(distdir)
|
---|
[481] | 1578 | cp scripts/samhain.spec $(distdir)/samhain.spec; \
|
---|
| 1579 | (cd $(top_srcdir)/scripts && rm -f $(SCRIPTFILES))
|
---|
[1] | 1580 | @for file in $(DISTFILES); do \
|
---|
| 1581 | d=$(top_srcdir); \
|
---|
| 1582 | if test -f $$d/$$file || test -d $$d/$$file; then \
|
---|
| 1583 | cp -pr $$d/$$file $(distdir)/$$file; \
|
---|
| 1584 | fi; \
|
---|
| 1585 | done; \
|
---|
| 1586 | rm -f $(distdir)/scripts/*.spec
|
---|
| 1587 |
|
---|
| 1588 | #
|
---|
| 1589 | # as distdir, but don't copy spec file from scripts
|
---|
| 1590 | #
|
---|
| 1591 | distdirrpm: distfilecheck
|
---|
| 1592 | -rm -rf $(distdir)
|
---|
| 1593 | mkdir $(distdir)
|
---|
| 1594 | -chmod 777 $(distdir)
|
---|
| 1595 | @if test -f ./samhain.spec; then \
|
---|
| 1596 | :; \
|
---|
| 1597 | else \
|
---|
| 1598 | echo "Error: ./samhain.spec not found, please run configure"; \
|
---|
| 1599 | exit 1; \
|
---|
| 1600 | fi
|
---|
| 1601 | @cp -p samhain.spec $(distdir)/samhain.spec; \
|
---|
| 1602 | for file in $(DISTFILES); do \
|
---|
| 1603 | d=$(top_srcdir); \
|
---|
| 1604 | if test -f $$d/$$file || test -d $$d/$$file; then \
|
---|
| 1605 | if test x"$$file" = "xsamhain.spec"; then \
|
---|
| 1606 | :; \
|
---|
| 1607 | else \
|
---|
| 1608 | cp -pr $$d/$$file $(distdir)/$$file; \
|
---|
| 1609 | fi; \
|
---|
| 1610 | fi; \
|
---|
| 1611 | done; \
|
---|
| 1612 | rm -f $(distdir)/scripts/*.spec
|
---|
| 1613 |
|
---|
| 1614 |
|
---|
| 1615 | distfilecheck: $(top_srcdir)/config.h.in $(top_srcdir)/depend.sum
|
---|
| 1616 | @for file in $(DISTFILES); do \
|
---|
| 1617 | d=$(top_srcdir); \
|
---|
| 1618 | if test -f $$d/$$file || test -d $$d/$$file; then \
|
---|
| 1619 | : \
|
---|
| 1620 | else \
|
---|
| 1621 | echo "File not found: $$d/$$file"; \
|
---|
| 1622 | fi; \
|
---|
| 1623 | done
|
---|
| 1624 | @for file in $(SOURCES); do \
|
---|
| 1625 | if test -f $$file; then \
|
---|
| 1626 | : \
|
---|
| 1627 | else \
|
---|
| 1628 | echo "File not found: $$file"; \
|
---|
| 1629 | fi; \
|
---|
| 1630 | done
|
---|
| 1631 |
|
---|
| 1632 |
|
---|
| 1633 | # DO NOT DELETE THIS LINE
|
---|
| 1634 |
|
---|
| 1635 |
|
---|
[481] | 1636 | samhain.o: $(srcsrc)/samhain.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_pthread.h $(srcinc)/sh_utils.h $(srcinc)/sh_error.h $(srcinc)/sh_unix.h $(srcinc)/sh_files.h $(srcinc)/sh_getopt.h $(srcinc)/sh_readconf.h $(srcinc)/sh_hash.h $(srcinc)/sh_dbIO.h $(srcinc)/sh_restrict.h $(srcinc)/sh_nmail.h $(srcinc)/sh_tiger.h $(srcinc)/sh_gpg.h $(srcinc)/sh_mem.h $(srcinc)/sh_xfer.h $(srcinc)/sh_tools.h $(srcinc)/sh_hash.h $(srcinc)/sh_extern.h $(srcinc)/sh_modules.h $(srcinc)/sh_ignore.h $(srcinc)/sh_prelink.h $(srcinc)/sh_sem.h sh_MK.h $(srcinc)/sh_schedule.h
|
---|
[534] | 1637 | sh_unix.o: $(srcsrc)/sh_unix.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_error.h $(srcinc)/sh_unix.h $(srcinc)/sh_utils.h $(srcinc)/sh_mem.h $(srcinc)/sh_hash.h $(srcinc)/sh_tools.h $(srcinc)/sh_restrict.h $(srcinc)/sh_ipvx.h $(srcinc)/sh_tiger.h $(srcinc)/sh_prelink.h $(srcinc)/sh_pthread.h $(srcinc)/sh_sem.h $(srcinc)/sh_static.h $(srcinc)/sh_prelude.h $(srcinc)/zAVLTree.h $(srcinc)/sh_subuid.h $(srcinc)/sh_ignore.h
|
---|
[138] | 1638 | sh_utils.o: $(srcsrc)/sh_utils.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_error.h $(srcinc)/sh_utils.h $(srcinc)/sh_unix.h $(srcinc)/sh_tiger.h $(srcinc)/sh_entropy.h $(srcinc)/sh_pthread.h
|
---|
[481] | 1639 | sh_error.o: $(srcsrc)/sh_error.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_cat.h $(srcinc)/sh_database.h $(srcinc)/sh_error.h $(srcinc)/sh_utils.h $(srcinc)/sh_unix.h $(srcinc)/sh_tiger.h $(srcinc)/sh_nmail.h $(srcinc)/sh_xfer.h $(srcinc)/sh_prelude.h $(srcinc)/sh_pthread.h $(srcinc)/sh_tools.h $(srcinc)/sh_extern.h $(srcinc)/sh_checksum.h
|
---|
| 1640 | sh_files.o: $(srcsrc)/sh_files.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_pthread.h $(srcinc)/sh_error.h $(srcinc)/sh_utils.h $(srcinc)/sh_unix.h $(srcinc)/sh_files.h $(srcinc)/sh_tiger.h $(srcinc)/sh_hash.h $(srcinc)/sh_ignore.h $(srcinc)/sh_inotify.h $(srcinc)/zAVLTree.h $(srcinc)/sh_dbIO.h $(srcinc)/CuTest.h
|
---|
| 1641 | sh_getopt.o: $(srcsrc)/sh_getopt.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_error.h $(srcinc)/sh_getopt.h $(srcinc)/sh_unix.h $(srcinc)/sh_files.h $(srcinc)/sh_utils.h $(srcinc)/sh_mail.h $(srcinc)/sh_xfer.h $(srcinc)/sh_hash.h $(srcinc)/sh_dbIO.h $(srcinc)/sh_dbCheck.h $(srcinc)/sh_dbCreate.h $(srcinc)/sh_sem.h $(srcinc)/sh_extern.h
|
---|
| 1642 | sh_readconf.o: $(srcsrc)/sh_readconf.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_calls.h $(srcinc)/sh_error.h $(srcinc)/sh_extern.h $(srcinc)/sh_unix.h $(srcinc)/sh_files.h $(srcinc)/sh_xfer.h $(srcinc)/sh_gpg.h $(srcinc)/sh_hash.h $(srcinc)/sh_dbIO.h $(srcinc)/sh_ignore.h $(srcinc)/sh_database.h $(srcinc)/sh_mail.h $(srcinc)/sh_modules.h $(srcinc)/sh_nmail.h $(srcinc)/sh_prelink.h $(srcinc)/sh_prelude.h $(srcinc)/sh_tiger.h $(srcinc)/sh_tools.h $(srcinc)/sh_utils.h $(srcinc)/sh_restrict.h $(srcinc)/sh_socket.h
|
---|
[444] | 1643 | sh_tiger0.o: $(srcsrc)/sh_tiger0.c Makefile config_xor.h $(srcinc)/sh_tiger.h $(srcinc)/sh_unix.h $(srcinc)/sh_error.h $(srcinc)/sh_utils.h $(srcinc)/sh_pthread.h $(srcinc)/sh_string.h $(srcinc)/sh_checksum.h
|
---|
[1] | 1644 | sh_tiger1.o: $(srcsrc)/sh_tiger1.c Makefile config_xor.h
|
---|
| 1645 | sh_tiger2.o: $(srcsrc)/sh_tiger2.c Makefile config_xor.h
|
---|
| 1646 | sh_tiger1_64.o: $(srcsrc)/sh_tiger1_64.c Makefile config_xor.h
|
---|
| 1647 | sh_tiger2_64.o: $(srcsrc)/sh_tiger2_64.c Makefile config_xor.h
|
---|
[481] | 1648 | sh_hash.o: $(srcsrc)/sh_hash.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_utils.h $(srcinc)/sh_unix.h $(srcinc)/sh_dbIO_int.h $(srcinc)/sh_dbIO.h $(srcinc)/sh_hash.h $(srcinc)/sh_error.h $(srcinc)/sh_tiger.h $(srcinc)/sh_gpg.h $(srcinc)/sh_unix.h $(srcinc)/sh_files.h $(srcinc)/sh_ignore.h $(srcinc)/sh_pthread.h $(srcinc)/sh_xfer.h $(srcinc)/sh_hash.h $(srcinc)/sh_checksum.h
|
---|
[295] | 1649 | sh_mail.o: $(srcsrc)/sh_mail.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_error.h $(srcinc)/sh_unix.h $(srcinc)/sh_tiger.h $(srcinc)/sh_mail.h $(srcinc)/sh_utils.h $(srcinc)/sh_fifo.h $(srcinc)/sh_tools.h $(srcinc)/sh_pthread.h $(srcinc)/sh_filter.h $(srcinc)/sh_mail_int.h $(srcinc)/sh_nmail.h $(srcinc)/sh_ipvx.h $(srcinc)/sh_static.h $(srcinc)/sh_tools.h
|
---|
[138] | 1650 | sh_mem.o: $(srcsrc)/sh_mem.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_error.h $(srcinc)/sh_utils.h $(srcinc)/sh_mem.h $(srcinc)/sh_pthread.h
|
---|
[147] | 1651 | sh_entropy.o: $(srcsrc)/sh_entropy.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_utils.h $(srcinc)/sh_unix.h $(srcinc)/sh_tiger.h $(srcinc)/sh_calls.h $(srcinc)/sh_pthread.h $(srcinc)/sh_static.h $(srcinc)/sh_pthread.h $(srcinc)/CuTest.h
|
---|
[295] | 1652 | sh_forward.o: $(srcsrc)/sh_forward.c Makefile config_xor.h $(srcinc)/sh_ipvx.h $(srcinc)/samhain.h $(srcinc)/sh_tiger.h $(srcinc)/sh_utils.h $(srcinc)/sh_unix.h $(srcinc)/sh_forward.h $(srcinc)/sh_srp.h $(srcinc)/sh_fifo.h $(srcinc)/sh_tools.h $(srcinc)/sh_entropy.h $(srcinc)/sh_html.h $(srcinc)/sh_nmail.h $(srcinc)/sh_socket.h $(srcinc)/sh_static.h $(srcinc)/rijndael-api-fst.h $(srcinc)/sh_readconf.h $(srcinc)/zAVLTree.h $(srcinc)/sh_extern.h
|
---|
[481] | 1653 | sh_modules.o: $(srcsrc)/sh_modules.c Makefile config_xor.h $(srcinc)/sh_modules.h $(srcinc)/sh_pthread.h $(srcinc)/sh_utmp.h $(srcinc)/sh_mounts.h $(srcinc)/sh_userfiles.h $(srcinc)/sh_suidchk.h $(srcinc)/sh_processcheck.h $(srcinc)/sh_portcheck.h $(srcinc)/sh_logmon.h $(srcinc)/sh_registry.h $(srcinc)/sh_fInotify.h
|
---|
[259] | 1654 | sh_utmp.o: $(srcsrc)/sh_utmp.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_utils.h $(srcinc)/sh_error.h $(srcinc)/sh_modules.h $(srcinc)/sh_utmp.h $(srcinc)/sh_pthread.h $(srcinc)/sh_inotify.h
|
---|
[138] | 1655 | sh_kern.o: $(srcsrc)/sh_kern.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_pthread.h $(srcinc)/sh_utils.h $(srcinc)/sh_error.h $(srcinc)/sh_modules.h $(srcinc)/sh_kern.h sh_ks_xor.h $(srcinc)/sh_unix.h $(srcinc)/sh_hash.h
|
---|
[481] | 1656 | sh_suidchk.o: $(srcsrc)/sh_suidchk.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_pthread.h $(srcinc)/sh_utils.h $(srcinc)/sh_error.h $(srcinc)/sh_modules.h $(srcinc)/sh_suidchk.h $(srcinc)/sh_hash.h $(srcinc)/sh_dbIO.h $(srcinc)/sh_unix.h $(srcinc)/sh_files.h $(srcinc)/sh_schedule.h $(srcinc)/sh_calls.h $(srcinc)/zAVLTree.h
|
---|
[225] | 1657 | sh_srp.o: $(srcsrc)/sh_srp.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_tiger.h $(srcinc)/sh_mem.h $(srcinc)/sh_utils.h $(srcinc)/sh_srp.h $(srcinc)/bignum.h $(srcinc)/CuTest.h
|
---|
[481] | 1658 | sh_fifo.o: $(srcsrc)/sh_fifo.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_mem.h $(srcinc)/sh_unix.h $(srcinc)/sh_utils.h $(srcinc)/sh_string.h $(srcinc)/sh_fifo.h $(srcinc)/CuTest.h
|
---|
[295] | 1659 | sh_tools.o: $(srcsrc)/sh_tools.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_mem.h $(srcinc)/sh_error.h $(srcinc)/sh_tools.h $(srcinc)/sh_utils.h $(srcinc)/sh_tiger.h $(srcinc)/sh_static.h $(srcinc)/sh_pthread.h $(srcinc)/sh_ipvx.h $(srcinc)/rijndael-api-fst.h $(srcinc)/rijndael-api-fst.h
|
---|
[481] | 1660 | sh_html.o: $(srcsrc)/sh_html.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_xfer.h $(srcinc)/sh_error.h $(srcinc)/sh_unix.h $(srcinc)/sh_utils.h $(srcinc)/sh_html.h $(srcinc)/zAVLTree.h
|
---|
| 1661 | sh_gpg.o: $(srcsrc)/sh_gpg.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_utils.h $(srcinc)/sh_error.h $(srcinc)/sh_tiger.h $(srcinc)/sh_static.h $(srcinc)/sh_gpg.h
|
---|
[1] | 1662 | sh_cat.o: $(srcsrc)/sh_cat.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_error.h $(srcinc)/sh_cat.h
|
---|
[544] | 1663 | sh_calls.o: $(srcsrc)/sh_calls.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_error.h $(srcinc)/sh_ipvx.h $(srcinc)/sh_sub.h $(srcinc)/sh_utils.h
|
---|
[215] | 1664 | sh_extern.o: $(srcsrc)/sh_extern.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_utils.h $(srcinc)/sh_unix.h $(srcinc)/sh_tiger.h $(srcinc)/sh_extern.h $(srcinc)/sh_calls.h $(srcinc)/sh_filter.h $(srcinc)/sh_static.h
|
---|
[1] | 1665 | sh_database.o: $(srcsrc)/sh_database.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_cat.h $(srcinc)/sh_error.h $(srcinc)/sh_utils.h
|
---|
| 1666 | sh_err_log.o: $(srcsrc)/sh_err_log.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_error.h $(srcinc)/sh_utils.h $(srcinc)/sh_tiger.h
|
---|
[481] | 1667 | sh_err_console.o: $(srcsrc)/sh_err_console.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_error.h $(srcinc)/sh_utils.h $(srcinc)/sh_sem.h
|
---|
[1] | 1668 | sh_err_syslog.o: $(srcsrc)/sh_err_syslog.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_error.h
|
---|
[481] | 1669 | sh_schedule.o: $(srcsrc)/sh_schedule.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_mem.h $(srcinc)/sh_error_min.h $(srcinc)/sh_schedule.h
|
---|
[1] | 1670 | bignum.o: $(srcsrc)/bignum.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/bignum.h
|
---|
| 1671 | mkhdr.o: $(srcsrc)/mkhdr.c Makefile config.h
|
---|
| 1672 | samhain_setpwd.o: $(srcsrc)/samhain_setpwd.c Makefile config_xor.h
|
---|
| 1673 | samhain_stealth.o: $(srcsrc)/samhain_stealth.c Makefile config_xor.h
|
---|
| 1674 | encode.o: $(srcsrc)/encode.c Makefile
|
---|
[48] | 1675 | sstrip.o: $(srcsrc)/sstrip.c Makefile config.h
|
---|
[546] | 1676 | trustfile.o: $(srcsrc)/trustfile.c Makefile config_xor.h $(srcinc)/sh_calls.h $(srcinc)/slib.h $(srcinc)/sh_static.h $(srcinc)/sh_pthread.h
|
---|
[1] | 1677 | exepack.o: $(srcsrc)/exepack.c Makefile config.h $(srcinc)/minilzo.h $(srcinc)/exepack.data
|
---|
| 1678 | exepack_fill.o: $(srcsrc)/exepack_fill.c Makefile config.h config.h $(srcinc)/minilzo.h
|
---|
| 1679 | exepack_mkdata.o: $(srcsrc)/exepack_mkdata.c Makefile config.h $(srcinc)/minilzo.h
|
---|
| 1680 | minilzo.o: $(srcsrc)/minilzo.c Makefile $(srcinc)/minilzo.h
|
---|
[167] | 1681 | slib.o: $(srcsrc)/slib.c Makefile config_xor.h $(srcinc)/slib.h $(srcinc)/sh_calls.h $(srcinc)/sh_static.h $(srcinc)/sh_pthread.h $(srcinc)/sh_string.h $(srcinc)/sh_mem.h
|
---|
[481] | 1682 | rijndael-alg-fst.o: $(srcsrc)/rijndael-alg-fst.c Makefile config_xor.h $(srcinc)/rijndael-alg-fst.h
|
---|
[230] | 1683 | rijndael-api-fst.o: $(srcsrc)/rijndael-api-fst.c Makefile config_xor.h $(srcinc)/rijndael-api-fst.h
|
---|
[1] | 1684 | zAVLTree.o: $(srcsrc)/zAVLTree.c Makefile $(srcinc)/zAVLTree.h
|
---|
[481] | 1685 | sh_socket.o: $(srcsrc)/sh_socket.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_socket.h $(srcinc)/sh_error.h $(srcinc)/sh_unix.h $(srcinc)/sh_calls.h $(srcinc)/sh_guid.h $(srcinc)/sh_fifo.h $(srcinc)/sh_utils.h $(srcinc)/sh_utils.h $(srcinc)/zAVLTree.h $(srcinc)/sh_html.h $(srcinc)/sh_tools.h $(srcinc)/CuTest.h
|
---|
[335] | 1686 | sh_ignore.o: $(srcsrc)/sh_ignore.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_mem.h $(srcinc)/sh_error.h $(srcinc)/CuTest.h
|
---|
[1] | 1687 | yulectl.o: $(srcsrc)/yulectl.c Makefile config_xor.h
|
---|
| 1688 | sh_mounts.o: $(srcsrc)/sh_mounts.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_utils.h $(srcinc)/sh_error.h $(srcinc)/sh_modules.h $(srcinc)/sh_mounts.h
|
---|
[138] | 1689 | sh_userfiles.o: $(srcsrc)/sh_userfiles.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_modules.h $(srcinc)/sh_userfiles.h $(srcinc)/sh_utils.h $(srcinc)/sh_schedule.h $(srcinc)/sh_error.h $(srcinc)/sh_hash.h $(srcinc)/sh_files.h $(srcinc)/sh_static.h $(srcinc)/sh_pthread.h
|
---|
| 1690 | sh_prelude.o: $(srcsrc)/sh_prelude.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_cat.h $(srcinc)/sh_error_min.h $(srcinc)/sh_prelude.h $(srcinc)/sh_static.h
|
---|
[1] | 1691 | kern_head.o: $(srcsrc)/kern_head.c Makefile config.h $(srcinc)/kern_head.h $(srcinc)/kern_head.h
|
---|
| 1692 | sh_prelink.o: $(srcsrc)/sh_prelink.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_tiger.h $(srcinc)/sh_extern.h $(srcinc)/sh_utils.h $(srcinc)/sh_unix.h
|
---|
[138] | 1693 | sh_static.o: $(srcsrc)/sh_static.c Makefile config_xor.h $(srcinc)/sh_pthread.h
|
---|
[18] | 1694 | sh_async.o: $(srcsrc)/sh_async.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_calls.h $(srcinc)/sh_error.h
|
---|
[143] | 1695 | sh_processcheck.o: $(srcsrc)/sh_processcheck.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_modules.h $(srcinc)/sh_processcheck.h $(srcinc)/sh_utils.h $(srcinc)/sh_error.h $(srcinc)/sh_extern.h $(srcinc)/sh_calls.h $(srcinc)/sh_pthread.h $(srcinc)/CuTest.h
|
---|
[295] | 1696 | sh_portcheck.o: $(srcsrc)/sh_portcheck.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_error.h $(srcinc)/sh_mem.h $(srcinc)/sh_calls.h $(srcinc)/sh_utils.h $(srcinc)/sh_modules.h $(srcinc)/sh_static.h $(srcinc)/sh_pthread.h $(srcinc)/sh_ipvx.h $(srcinc)/CuTest.h
|
---|
[143] | 1697 | sh_pthread.o: $(srcsrc)/sh_pthread.c Makefile config_xor.h $(srcinc)/sh_pthread.h $(srcinc)/sh_calls.h $(srcinc)/sh_modules.h
|
---|
[169] | 1698 | sh_string.o: $(srcsrc)/sh_string.c Makefile config_xor.h $(srcinc)/sh_string.h $(srcinc)/sh_mem.h $(srcinc)/CuTest.h
|
---|
[171] | 1699 | dnmalloc.o: $(srcsrc)/dnmalloc.c Makefile config.h
|
---|
| 1700 | t-test1.o: $(srcsrc)/t-test1.c Makefile config.h $(srcinc)/malloc.h
|
---|
[298] | 1701 | sh_port2proc.o: $(srcsrc)/sh_port2proc.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_utils.h $(srcinc)/sh_error_min.h $(srcinc)/sh_pthread.h $(srcinc)/sh_ipvx.h $(srcinc)/samhain.h $(srcinc)/sh_utils.h $(srcinc)/sh_ipvx.h
|
---|
[183] | 1702 | sh_log_parse_syslog.o: $(srcsrc)/sh_log_parse_syslog.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_pthread.h $(srcinc)/sh_log_check.h $(srcinc)/sh_utils.h $(srcinc)/sh_string.h
|
---|
| 1703 | sh_log_parse_pacct.o: $(srcsrc)/sh_log_parse_pacct.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_pthread.h $(srcinc)/sh_log_check.h $(srcinc)/sh_utils.h $(srcinc)/sh_string.h
|
---|
| 1704 | sh_log_parse_apache.o: $(srcsrc)/sh_log_parse_apache.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_pthread.h $(srcinc)/sh_log_check.h $(srcinc)/sh_utils.h $(srcinc)/sh_string.h
|
---|
[265] | 1705 | sh_log_evalrule.o: $(srcsrc)/sh_log_evalrule.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_pthread.h $(srcinc)/sh_utils.h $(srcinc)/sh_string.h $(srcinc)/sh_log_check.h $(srcinc)/sh_log_evalrule.h $(srcinc)/sh_log_correlate.h $(srcinc)/sh_log_mark.h $(srcinc)/sh_log_repeat.h $(srcinc)/zAVLTree.h
|
---|
[275] | 1706 | sh_log_check.o: $(srcsrc)/sh_log_check.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_pthread.h $(srcinc)/sh_utils.h $(srcinc)/sh_unix.h $(srcinc)/sh_string.h $(srcinc)/sh_log_check.h $(srcinc)/sh_log_evalrule.h $(srcinc)/sh_log_correlate.h $(srcinc)/sh_log_mark.h $(srcinc)/sh_log_repeat.h $(srcinc)/sh_extern.h $(srcinc)/sh_modules.h
|
---|
[185] | 1707 | sh_log_parse_samba.o: $(srcsrc)/sh_log_parse_samba.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_pthread.h $(srcinc)/sh_log_check.h $(srcinc)/sh_string.h
|
---|
[215] | 1708 | sh_nmail.o: $(srcsrc)/sh_nmail.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_pthread.h $(srcinc)/sh_mem.h $(srcinc)/sh_mail.h $(srcinc)/sh_tiger.h $(srcinc)/sh_string.h $(srcinc)/sh_utils.h $(srcinc)/sh_fifo.h $(srcinc)/sh_filter.h $(srcinc)/sh_mail_int.h $(srcinc)/zAVLTree.h
|
---|
| 1709 | sh_filter.o: $(srcsrc)/sh_filter.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_utils.h $(srcinc)/sh_mem.h $(srcinc)/sh_filter.h
|
---|
[367] | 1710 | sh_inotify.o: $(srcsrc)/sh_inotify.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_pthread.h $(srcinc)/sh_calls.h $(srcinc)/sh_inotify.h $(srcinc)/sh_mem.h $(srcinc)/sh_utils.h $(srcinc)/slib.h $(srcinc)/zAVLTree.h $(srcinc)/sh_calls.h $(srcinc)/sh_inotify.h $(srcinc)/CuTest.h
|
---|
[265] | 1711 | sh_log_correlate.o: $(srcsrc)/sh_log_correlate.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_pthread.h $(srcinc)/sh_utils.h $(srcinc)/sh_string.h $(srcinc)/sh_log_check.h $(srcinc)/sh_log_evalrule.h
|
---|
| 1712 | sh_log_mark.o: $(srcsrc)/sh_log_mark.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_pthread.h $(srcinc)/sh_mem.h $(srcinc)/sh_string.h $(srcinc)/sh_error_min.h $(srcinc)/sh_log_check.h $(srcinc)/sh_log_evalrule.h $(srcinc)/zAVLTree.h
|
---|
| 1713 | sh_log_repeat.o: $(srcsrc)/sh_log_repeat.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_pthread.h $(srcinc)/sh_utils.h $(srcinc)/sh_string.h $(srcinc)/sh_log_check.h $(srcinc)/sh_log_evalrule.h
|
---|
[275] | 1714 | sh_log_parse_generic.o: $(srcsrc)/sh_log_parse_generic.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_log_check.h $(srcinc)/sh_string.h
|
---|
[295] | 1715 | sh_login_track.o: $(srcsrc)/sh_login_track.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_pthread.h $(srcinc)/sh_utils.h $(srcinc)/sh_unix.h $(srcinc)/sh_string.h $(srcinc)/sh_tools.h $(srcinc)/sh_ipvx.h $(srcinc)/sh_error_min.h $(srcinc)/CuTest.h $(srcinc)/CuTest.h
|
---|
[294] | 1716 | sh_audit.o: $(srcsrc)/sh_audit.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_error.h $(srcinc)/sh_extern.h $(srcinc)/sh_utils.h
|
---|
| 1717 | sh_registry.o: $(srcsrc)/sh_registry.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_pthread.h $(srcinc)/sh_utils.h $(srcinc)/sh_unix.h $(srcinc)/sh_modules.h $(srcinc)/sh_hash.h $(srcinc)/sh_tiger.h
|
---|
[448] | 1718 | sh_ipvx.o: $(srcsrc)/sh_ipvx.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_static.h $(srcinc)/sh_pthread.h $(srcinc)/sh_utils.h $(srcinc)/sh_ipvx.h $(srcinc)/CuTest.h
|
---|
[310] | 1719 | sh_restrict.o: $(srcsrc)/sh_restrict.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_mem.h $(srcinc)/sh_error_min.h $(srcinc)/sh_string.h $(srcinc)/sh_utils.h $(srcinc)/sh_restrict.h $(srcinc)/CuTest.h
|
---|
| 1720 | sh_filetype.o: $(srcsrc)/sh_filetype.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_mem.h $(srcinc)/sh_error_min.h $(srcinc)/sh_utils.h
|
---|
[315] | 1721 | sh_sub.o: $(srcsrc)/sh_sub.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_pthread.h
|
---|
[481] | 1722 | sh_fInotify.o: $(srcsrc)/sh_fInotify.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_utils.h $(srcinc)/sh_modules.h $(srcinc)/sh_pthread.h $(srcinc)/sh_inotify.h $(srcinc)/sh_unix.h $(srcinc)/sh_hash.h $(srcinc)/sh_dbIO.h $(srcinc)/sh_files.h $(srcinc)/sh_ignore.h
|
---|
[444] | 1723 | sh_checksum.o: $(srcsrc)/sh_checksum.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_checksum.h $(srcinc)/sh_utils.h $(srcinc)/CuTest.h
|
---|
[481] | 1724 | sh_guid.o: $(srcsrc)/sh_guid.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_utils.h $(srcinc)/CuTest.h
|
---|
| 1725 | sh_dbIO.o: $(srcsrc)/sh_dbIO.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_utils.h $(srcinc)/sh_dbIO_int.h $(srcinc)/sh_hash.h $(srcinc)/sh_dbIO.h $(srcinc)/sh_gpg.h $(srcinc)/sh_tiger.h $(srcinc)/sh_xfer.h $(srcinc)/sh_pthread.h $(srcinc)/sh_socket.h $(srcinc)/sh_files.h $(srcinc)/zAVLTree.h
|
---|
| 1726 | sh_dbCheck.o: $(srcsrc)/sh_dbCheck.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_unix.h $(srcinc)/sh_utils.h $(srcinc)/sh_hash.h $(srcinc)/sh_files.h $(srcinc)/sh_tiger.h $(srcinc)/sh_dbIO.h $(srcinc)/sh_dbIO_int.h $(srcinc)/sh_pthread.h
|
---|
| 1727 | sh_dbCreate.o: $(srcsrc)/sh_dbCreate.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_utils.h $(srcinc)/sh_hash.h $(srcinc)/sh_files.h $(srcinc)/sh_dbIO.h $(srcinc)/sh_dbIO_int.h $(srcinc)/sh_pthread.h $(srcinc)/sh_guid.h
|
---|
| 1728 | sh_xfer_client.o: $(srcsrc)/sh_xfer_client.c Makefile config_xor.h $(srcinc)/sh_ipvx.h $(srcinc)/samhain.h $(srcinc)/sh_tiger.h $(srcinc)/sh_utils.h $(srcinc)/sh_unix.h $(srcinc)/sh_xfer.h $(srcinc)/sh_srp.h $(srcinc)/sh_fifo.h $(srcinc)/sh_tools.h $(srcinc)/sh_entropy.h $(srcinc)/sh_html.h $(srcinc)/sh_nmail.h $(srcinc)/sh_socket.h $(srcinc)/sh_static.h $(srcinc)/rijndael-api-fst.h
|
---|
| 1729 | sh_xfer_server.o: $(srcsrc)/sh_xfer_server.c Makefile config_xor.h $(srcinc)/sh_ipvx.h $(srcinc)/samhain.h $(srcinc)/sh_tiger.h $(srcinc)/sh_utils.h $(srcinc)/sh_unix.h $(srcinc)/sh_xfer.h $(srcinc)/sh_srp.h $(srcinc)/sh_fifo.h $(srcinc)/sh_tools.h $(srcinc)/sh_entropy.h $(srcinc)/sh_html.h $(srcinc)/sh_nmail.h $(srcinc)/sh_socket.h $(srcinc)/sh_static.h $(srcinc)/sh_guid.h $(srcinc)/rijndael-api-fst.h $(srcinc)/sh_readconf.h $(srcinc)/zAVLTree.h $(srcinc)/sh_extern.h
|
---|
| 1730 | sh_xfer_syslog.o: $(srcsrc)/sh_xfer_syslog.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_tools.h $(srcinc)/sh_utils.h $(srcinc)/sh_ipvx.h
|
---|
| 1731 | sh_xload_client.o: $(srcsrc)/sh_xload_client.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_utils.h $(srcinc)/sh_fifo.h $(srcinc)/sh_guid.h
|
---|
| 1732 | sh_sem.o: $(srcsrc)/sh_sem.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_sem.h $(srcinc)/sh_error_min.h
|
---|
[534] | 1733 | sh_subuid.o: $(srcsrc)/sh_subuid.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_unix.h
|
---|