[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 \
|
---|
[550] | 120 | sh_sig.h sh_cat.h sh_calls.h sh_extern.h sh_database.h sh_trace.h \
|
---|
[1] | 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 \
|
---|
[550] | 146 | $(srcsrc)/sh_html.c $(srcsrc)/sh_sig.c \
|
---|
[1] | 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 \
|
---|
[549] | 153 | $(srcsrc)/encode.c \
|
---|
[1] | 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 \
|
---|
[550] | 186 | sh_suidchk.o sh_srp.o sh_fifo.o sh_tools.o sh_html.o sh_sig.o \
|
---|
[1] | 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 \
|
---|
[550] | 207 | testrun_1.sh testrun_1a.sh testrun_1b.sh testrun_1c.sh \
|
---|
| 208 | testrc_1 testrc_1i.dyn test1i_file.sig test1i_samhain.pub \
|
---|
| 209 | testrun_1d.sh testrun_1e.sh testrun_1f.sh \
|
---|
| 210 | testrun_1g.sh testrun_1h.sh testrun_1i.sh \
|
---|
[1] | 211 | testrun_2.sh testrun_2a.sh testrun_2b.sh testrc_2.in \
|
---|
[550] | 212 | testrun_2c.sh testrun_2d.sh testrun_2e.sh testrun_2f.sh \
|
---|
| 213 | testrun_2g.sh
|
---|
[1] | 214 |
|
---|
| 215 | DIST_COMMON = README COPYING LICENSE samhain.jpg \
|
---|
| 216 | samhainrc.linux samhainrc.solaris samhainrc.freebsd samhainrc.aix5.2.0 \
|
---|
[57] | 217 | samhainrc.netbsd yulerc.template \
|
---|
[1] | 218 | Install.sh
|
---|
| 219 |
|
---|
| 220 | DIST_NEEDED = Makefile.in deploy.sh.in samhain-install.sh.in \
|
---|
| 221 | samhain.spec.in rules.deb.in rules.deb-light.in samhain.spec hp_ux.psf.in \
|
---|
| 222 | stealth_template.jpg \
|
---|
| 223 | config.guess config.h.in stamp-h.in config.sub configure \
|
---|
| 224 | configure.ac acconfig.h aclocal.m4 install-sh missing mkinstalldirs \
|
---|
| 225 | c_random.sh c_bits.sh depend.sum depend.dep stamp-hdep
|
---|
| 226 |
|
---|
| 227 | DISTFILES = $(DIST_COMMON) $(DIST_NEEDED) \
|
---|
| 228 | src include man scripts init docs sql_init test dsys
|
---|
| 229 |
|
---|
[481] | 230 | PROGRAMS = $(SETPWD) $(STEGIN) $(SAMHAIN) $(YULECTL) $(SADMIN)
|
---|
[1] | 231 |
|
---|
| 232 | #----------------------------------------------------------
|
---|
| 233 | #
|
---|
| 234 | # the first target is the default one
|
---|
| 235 | #
|
---|
| 236 | #----------------------------------------------------------
|
---|
| 237 |
|
---|
[549] | 238 | all: $(top_srcdir)/depend.sum $(SETPWD) $(STEGIN) $(SAMHAIN) $(YULECTL)
|
---|
[1] | 239 |
|
---|
| 240 |
|
---|
| 241 | #----------------------------------------------------------
|
---|
| 242 | #
|
---|
| 243 | # rules for automatic updating of configuration information
|
---|
| 244 | # after changing the configuration files
|
---|
| 245 | #
|
---|
| 246 | #----------------------------------------------------------
|
---|
| 247 |
|
---|
| 248 | $(top_srcdir)/configure: $(top_srcdir)/configure.ac $(top_srcdir)/aclocal.m4
|
---|
| 249 | cd $(srcdir) && autoconf
|
---|
| 250 |
|
---|
| 251 | # autoheader might not change config.h.in, so touch a stamp file.
|
---|
| 252 | $(top_srcdir)/config.h.in: $(top_srcdir)/stamp-h.in
|
---|
| 253 | touch $(top_srcdir)/config.h.in
|
---|
| 254 |
|
---|
| 255 | $(top_srcdir)/stamp-h.in: $(top_srcdir)/configure.ac $(top_srcdir)/aclocal.m4
|
---|
| 256 | cd $(top_srcdir) && autoheader
|
---|
| 257 | echo timestamp > $(top_srcdir)/stamp-h.in
|
---|
| 258 |
|
---|
| 259 | config.h: stamp-h
|
---|
| 260 | @sleep 1; \
|
---|
| 261 | touch config.h
|
---|
| 262 |
|
---|
| 263 | stamp-h: $(top_srcdir)/config.h.in config.status
|
---|
| 264 | ./config.status
|
---|
| 265 |
|
---|
| 266 | Makefile: $(top_srcdir)/Makefile.in config.status
|
---|
| 267 | ./config.status
|
---|
| 268 |
|
---|
| 269 | samhain-install.sh: $(top_srcdir)/samhain-install.sh.in config.status
|
---|
| 270 | ./config.status
|
---|
| 271 |
|
---|
| 272 | config.status: $(top_srcdir)/configure
|
---|
| 273 | ./config.status --recheck
|
---|
| 274 |
|
---|
| 275 | #----------------------------------------------------------
|
---|
| 276 | #
|
---|
| 277 | # rules for automatic dependency tracking
|
---|
| 278 | #
|
---|
| 279 | #----------------------------------------------------------
|
---|
| 280 |
|
---|
| 281 |
|
---|
| 282 | depend-gen: $(srcsrc)/depend-gen.c
|
---|
[98] | 283 | @echo "$(BUILD_CC) -I. -o depend-gen $(srcsrc)/depend-gen.c"; \
|
---|
| 284 | $(BUILD_CC) -I. -o depend-gen $(srcsrc)/depend-gen.c 2>/dev/null || \
|
---|
[1] | 285 | echo "failed to compile ... hope depend.dep is ok"
|
---|
| 286 |
|
---|
| 287 | # redo if sources change
|
---|
| 288 | #
|
---|
| 289 | $(top_srcdir)/depend.dep: depend-gen $(SOURCES)
|
---|
| 290 | @echo "update depend.dep ..."; \
|
---|
| 291 | test -f $(srcdir)/depend.dep || echo > $(srcdir)/depend.dep; \
|
---|
| 292 | if test -f depend-gen; then \
|
---|
| 293 | failfiles=""; \
|
---|
[481] | 294 | for ff in $(SOURCES); do \
|
---|
[1] | 295 | ./depend-gen -i '$$(srcinc)/' -o $(top_srcdir)/depend.dep $$ff || \
|
---|
| 296 | failfiles="$${failfiles} $$ff"; \
|
---|
| 297 | done; \
|
---|
| 298 | if test x"$${failfiles}" != x; then \
|
---|
| 299 | echo "--------------------------------------------------------";\
|
---|
| 300 | echo " depend-gen failed to update depend.dep. You can safely"; \
|
---|
| 301 | echo " ignore this error, unless you have modified the source"; \
|
---|
| 302 | echo " files and changed their dependencies."; \
|
---|
| 303 | echo "--------------------------------------------------------";\
|
---|
| 304 | else \
|
---|
| 305 | echo $(srcsrc) > $(top_srcdir)/stamp-dep; \
|
---|
| 306 | fi; \
|
---|
| 307 | else \
|
---|
| 308 | echo "depend-gen not found ... depend.dep not modified"; \
|
---|
| 309 | fi
|
---|
| 310 |
|
---|
| 311 | # only updated if depencies change
|
---|
| 312 | #
|
---|
| 313 | $(top_srcdir)/depend.sum: $(top_srcdir)/depend.dep
|
---|
| 314 | @if test -f depend-gen; then \
|
---|
| 315 | nsum=`./depend-gen -c $(top_srcdir)/depend.dep|awk '{print $$1}'`; \
|
---|
| 316 | osum=`cat $(top_srcdir)/depend.sum 2>/dev/null`; \
|
---|
| 317 | if test "x$$osum" != "x$$nsum"; then \
|
---|
| 318 | echo "update $(top_srcdir)/depend.sum ..."; \
|
---|
| 319 | echo $$nsum > $(top_srcdir)/depend.sum; \
|
---|
| 320 | echo timestamp > $(top_srcdir)/stamp-hdep; \
|
---|
| 321 | fi; \
|
---|
| 322 | fi;
|
---|
| 323 |
|
---|
[95] | 324 | $(top_srcdir)/stamp-hdep:
|
---|
| 325 | touch $(top_srcdir)/stamp-hdep && touch $(top_srcdir)/Makefile.in
|
---|
| 326 |
|
---|
[1] | 327 | $(top_srcdir)/Makefile.in: $(top_srcdir)/stamp-hdep
|
---|
| 328 | @echo "update Makefile.in ..."; \
|
---|
| 329 | echo "cp Makefile.in Makefile.in.bak"; \
|
---|
| 330 | cp $(top_srcdir)/Makefile.in $(top_srcdir)/Makefile.in.bak; \
|
---|
| 331 | if test -f depend-gen; then \
|
---|
| 332 | failfiles=""; \
|
---|
[481] | 333 | for ff in $(SOURCES); do \
|
---|
[1] | 334 | ./depend-gen -i '$$(srcinc)/' -o $(top_srcdir)/Makefile.in $$ff || \
|
---|
| 335 | failfiles="$${failfiles} $$ff"; \
|
---|
| 336 | done; \
|
---|
| 337 | if test x"$${failfiles}" != x; then \
|
---|
| 338 | echo "--------------------------------------------------------";\
|
---|
| 339 | echo " depend-gen failed to update Makefile.in. You can safely"; \
|
---|
| 340 | echo " ignore this error, unless you have modified the source"; \
|
---|
| 341 | echo " files and changed their dependencies."; \
|
---|
| 342 | echo "--------------------------------------------------------";\
|
---|
| 343 | else \
|
---|
| 344 | echo $(srcsrc) > $(top_srcdir)/stamp-dep; \
|
---|
| 345 | fi; \
|
---|
| 346 | fi
|
---|
| 347 |
|
---|
| 348 | # do it manually
|
---|
| 349 | #
|
---|
| 350 | depend: depend-gen
|
---|
| 351 | @echo "update Makefile.in ..."; \
|
---|
[481] | 352 | for ff in $(SOURCES); do \
|
---|
[1] | 353 | ./depend-gen -i '$$(srcinc)/' -o $(top_srcdir)/Makefile.in $$ff; \
|
---|
| 354 | echo $(srcsrc) > $(top_srcdir)/stamp-dep; \
|
---|
| 355 | done
|
---|
| 356 |
|
---|
| 357 |
|
---|
| 358 | #----------------------------------------------------------
|
---|
| 359 | #
|
---|
| 360 | # CLEAN rules
|
---|
| 361 | #
|
---|
| 362 | #----------------------------------------------------------
|
---|
| 363 |
|
---|
| 364 |
|
---|
| 365 | # everything created by make
|
---|
| 366 | #
|
---|
| 367 |
|
---|
[481] | 368 | CLEANFILES = encode config_xor.h depend-gen \
|
---|
[549] | 369 | internal.h sh_MK.h trustfile samhain mkhdr encode cutest \
|
---|
[481] | 370 | yule samhain_setpwd samhain_stealth samhainrc yulectl
|
---|
[1] | 371 |
|
---|
| 372 | clean:
|
---|
| 373 | -rm -f core *.o
|
---|
| 374 | @-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
|
---|
| 375 |
|
---|
| 376 |
|
---|
| 377 | # everything created by (./configure && make)
|
---|
| 378 | #
|
---|
| 379 |
|
---|
[550] | 380 | DISTCLEANFILES = Makefile samhain.spec sh_sig_checksum.h sh_gpg_fp.h \
|
---|
[548] | 381 | init/samhain.startLinux init/samhain.startGentoo init/samhain.startSystemd \
|
---|
[1] | 382 | init/samhain.startLSB init/samhain.startFreeBSD \
|
---|
| 383 | init/samhain.startSolaris init/samhain.startHPUX \
|
---|
[71] | 384 | init/samhain.startIRIX init/samhain.startMACOSX \
|
---|
[550] | 385 | deploy.sh sh_MK.h samhain-install.sh \
|
---|
[481] | 386 | rules.deb rules.deb-light src/CuTestMain.c \
|
---|
[550] | 387 | scripts/samhainadmin-sig.pl scripts/samhainadmin-gpg.pl \
|
---|
[1] | 388 | scripts/samhainadmin.pl scripts/check_samhain.pl \
|
---|
[481] | 389 | scripts/samhain.ebuild scripts/samhain.ebuild-light \
|
---|
| 390 | scripts/yuleadmin.pl scripts/logrotate \
|
---|
| 391 | scripts/redhat_i386.client.spec scripts/samhain.spec hp_ux.psf
|
---|
[1] | 392 |
|
---|
| 393 | TESTCLEANFILES = samhain.build samhain.new yule.html \
|
---|
[170] | 394 | test_ext test_ext.c test_ext.res testhash.tmp \
|
---|
[171] | 395 | testrc1.signed testrc_1ext testrc_2 testrc_2.signed \
|
---|
| 396 | test_dnmalloc
|
---|
[1] | 397 |
|
---|
| 398 | distclean: clean
|
---|
| 399 | -rm -f config.status config.log configure.lineno config.h config.cache
|
---|
| 400 | @-test -z "$(TESTCLEANFILES)" || rm -f $(TESTCLEANFILES)
|
---|
| 401 | @-test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
|
---|
| 402 |
|
---|
| 403 |
|
---|
| 404 | #----------------------------------------------------------
|
---|
| 405 | #
|
---|
| 406 | # TEST rules
|
---|
| 407 | #
|
---|
| 408 | #----------------------------------------------------------
|
---|
| 409 |
|
---|
| 410 | test14: test
|
---|
| 411 | @cd test && TOP_SRCDIR=$(top_srcdir) && \
|
---|
| 412 | export TOP_SRCDIR && ./test.sh 14 `hostname -f`
|
---|
| 413 |
|
---|
| 414 | test13: test
|
---|
| 415 | @cd test && TOP_SRCDIR=$(top_srcdir) && \
|
---|
| 416 | export TOP_SRCDIR && ./test.sh 13 `hostname -f`
|
---|
| 417 |
|
---|
| 418 | test12: test
|
---|
| 419 | @cd test && TOP_SRCDIR=$(top_srcdir) && \
|
---|
| 420 | export TOP_SRCDIR && ./test.sh 12 `hostname -f`
|
---|
| 421 |
|
---|
| 422 | test11: test
|
---|
| 423 | @cd test && TOP_SRCDIR=$(top_srcdir) && \
|
---|
| 424 | export TOP_SRCDIR && ./test.sh 11 `hostname -f`
|
---|
| 425 |
|
---|
| 426 | test10: test
|
---|
| 427 | @cd test && TOP_SRCDIR=$(top_srcdir) && \
|
---|
| 428 | export TOP_SRCDIR && ./test.sh 10 `hostname -f`
|
---|
| 429 |
|
---|
| 430 | test7: test
|
---|
| 431 | @cd test && TOP_SRCDIR=$(top_srcdir) && \
|
---|
| 432 | export TOP_SRCDIR && ./test.sh 7
|
---|
| 433 |
|
---|
| 434 | test6: test
|
---|
| 435 | @cd test && TOP_SRCDIR=$(top_srcdir) && \
|
---|
| 436 | export TOP_SRCDIR && ./test.sh 6
|
---|
| 437 |
|
---|
| 438 | test5: test
|
---|
| 439 | @cd test && TOP_SRCDIR=$(top_srcdir) && \
|
---|
| 440 | export TOP_SRCDIR && ./test.sh 5
|
---|
| 441 |
|
---|
| 442 | test4: test
|
---|
| 443 | @cd test && TOP_SRCDIR=$(top_srcdir) && \
|
---|
| 444 | export TOP_SRCDIR && ./test.sh 4
|
---|
| 445 |
|
---|
| 446 | test3: test
|
---|
| 447 | @cd test && TOP_SRCDIR=$(top_srcdir) && \
|
---|
| 448 | export TOP_SRCDIR && ./test.sh 3
|
---|
| 449 |
|
---|
| 450 | test2: test
|
---|
| 451 | @cd test && TOP_SRCDIR=$(top_srcdir) && \
|
---|
| 452 | export TOP_SRCDIR && ./test.sh 2
|
---|
| 453 |
|
---|
| 454 | test1: test
|
---|
| 455 | @cd test && TOP_SRCDIR=$(top_srcdir) && \
|
---|
| 456 | export TOP_SRCDIR && ./test.sh 1
|
---|
| 457 |
|
---|
| 458 | test:
|
---|
| 459 | @if test -f test; then \
|
---|
| 460 | :; \
|
---|
| 461 | else \
|
---|
| 462 | cp -pr $(top_srcdir)/test .; \
|
---|
| 463 | cat $(top_srcdir)/test/test.sh | \
|
---|
| 464 | sed 's%XXXSRCXXX%$(top_srcdir)%' > test/test.sh; \
|
---|
| 465 | chmod +x test/test.sh; \
|
---|
| 466 | fi
|
---|
| 467 |
|
---|
[171] | 468 | test_dnmalloc: $(srcsrc)/t-test1.c dnmalloc.o
|
---|
| 469 | $(COMPILE) $(VFLAG) -o t-test1.o -c $(srcsrc)/t-test1.c; \
|
---|
| 470 | $(LINK) t-test1.o dnmalloc.o $(LIBS_TRY)
|
---|
| 471 |
|
---|
| 472 |
|
---|
[1] | 473 | #----------------------------------------------------------
|
---|
| 474 | #
|
---|
| 475 | # INSTALL rules
|
---|
| 476 | #
|
---|
| 477 | #----------------------------------------------------------
|
---|
| 478 |
|
---|
[481] | 479 | install: install-program install-man install-data
|
---|
[1] | 480 | @echo; \
|
---|
| 481 | echo " You can use 'samhain-install.sh uninstall' for uninstalling"; \
|
---|
| 482 | echo " i.e. you might consider saving that script for future use";\
|
---|
| 483 | echo; \
|
---|
| 484 | echo " Use 'make install-boot' if you want @install_name@ to start on system boot"; \
|
---|
| 485 | echo
|
---|
| 486 |
|
---|
[481] | 487 | install-light: install-program install-data
|
---|
[1] | 488 | @echo; \
|
---|
| 489 | echo " You can use 'samhain-install.sh uninstall' for uninstalling"; \
|
---|
| 490 | echo " i.e. you might consider saving that script for future use";\
|
---|
| 491 | echo; \
|
---|
| 492 | echo " Use 'make install-boot' if you want @install_name@ to start on system boot"; \
|
---|
| 493 | echo
|
---|
| 494 |
|
---|
[481] | 495 | purge: uninstall-program uninstall-man
|
---|
[1] | 496 | @echo "./samhain-install.sh --destdir=$(DESTDIR) --force --verbose uninstall-data"; \
|
---|
| 497 | ./samhain-install.sh --destdir=$(DESTDIR) --force --verbose uninstall-data
|
---|
| 498 |
|
---|
| 499 | remove: uninstall
|
---|
| 500 |
|
---|
[481] | 501 | uninstall: uninstall-program uninstall-man uninstall-data
|
---|
[1] | 502 | @echo; \
|
---|
| 503 | echo " Use 'make purge' if you also want to uninstall the configuration file"; \
|
---|
| 504 | echo " Use 'make uninstall-boot' to uninstall the runlevel scripts"; \
|
---|
| 505 | echo
|
---|
| 506 |
|
---|
| 507 | #
|
---|
| 508 | # --- boot ---
|
---|
| 509 | #
|
---|
| 510 | install-boot: samhain-install.sh
|
---|
| 511 | ./samhain-install.sh --destdir=$(DESTDIR) --express --verbose install-boot
|
---|
| 512 |
|
---|
| 513 |
|
---|
| 514 | uninstall-boot: samhain-install.sh
|
---|
| 515 | ./samhain-install.sh --destdir=$(DESTDIR) --express --verbose uninstall-boot
|
---|
| 516 |
|
---|
| 517 | #
|
---|
| 518 | # --- program ---
|
---|
| 519 | #
|
---|
| 520 |
|
---|
| 521 |
|
---|
[549] | 522 | install-program: $(PROGRAMS)
|
---|
[1] | 523 | @$(mkinstalldirs) $(DESTDIR)$(sbindir)
|
---|
[302] | 524 | @if test x$(mytmpdir) != x; then \
|
---|
| 525 | $(mkinstalldirs) $(DESTDIR)$(mytmpdir); \
|
---|
| 526 | fi
|
---|
[1] | 527 | @list='$(PROGRAMS)'; for p in $$list; do \
|
---|
| 528 | if test -f $$p; then \
|
---|
[481] | 529 | target=$(DESTDIR)$(sbindir)/`echo $$p|sed 's%samhain%@install_name@%'|sed 's%yule%@install_name@%'|sed 's%.*/%%'`; \
|
---|
| 530 | extension=`echo $$target|sed 's%.*\.%%'`; \
|
---|
| 531 | if test x$$extension = x; then \
|
---|
| 532 | echo " $(INSTALL_PROGRAM) $$p $$target"; \
|
---|
| 533 | $(INSTALL_PROGRAM) $$p $$target; \
|
---|
| 534 | chmod 0700 $$target; \
|
---|
| 535 | else \
|
---|
| 536 | echo " $(INSTALL_SHELL) $$p $$target"; \
|
---|
| 537 | $(INSTALL_SHELL) $$p $$target; \
|
---|
| 538 | chmod 0700 $$target; \
|
---|
| 539 | fi; \
|
---|
[1] | 540 | else :; fi; \
|
---|
| 541 | done
|
---|
| 542 |
|
---|
| 543 | uninstall-program:
|
---|
| 544 | @echo "./samhain-install.sh --destdir=$(DESTDIR) --express --verbose uninstall-program";\
|
---|
| 545 | ./samhain-install.sh --destdir=$(DESTDIR) --express --verbose uninstall-program
|
---|
| 546 |
|
---|
| 547 |
|
---|
| 548 | #
|
---|
| 549 | # -- data files
|
---|
| 550 | #
|
---|
| 551 |
|
---|
| 552 | install-user:
|
---|
| 553 | @if test "x@need_user_install@" = x1; then \
|
---|
| 554 | echo "./samhain-install.sh --destdir=$(DESTDIR) --express --verbose install-user @myident@"; \
|
---|
| 555 | ./samhain-install.sh --destdir=$(DESTDIR) --express --verbose install-user @myident@; \
|
---|
| 556 | fi
|
---|
| 557 | @if test x"$(VFLAG)" = "x-DSH_WITH_SERVER"; then \
|
---|
| 558 | echo " chown root $(DESTDIR)$(mydatadir)"; \
|
---|
| 559 | chown root $(DESTDIR)$(mydatadir); \
|
---|
| 560 | echo " chmod 755 $(DESTDIR)$(mydatadir)"; \
|
---|
| 561 | chmod 755 $(DESTDIR)$(mydatadir); \
|
---|
| 562 | echo " chown @myident@ $(DESTDIR)$(configfile)"; \
|
---|
| 563 | chown @myident@ $(DESTDIR)$(configfile); \
|
---|
| 564 | if test x"$(mylogdir)" = "x/var/log"; then \
|
---|
| 565 | if test x"@myident@" = xroot; then \
|
---|
| 566 | :; \
|
---|
| 567 | else \
|
---|
| 568 | echo; \
|
---|
| 569 | echo " ----------------------------------------------------------------"; \
|
---|
| 570 | echo " Directory $(mylogdir) (log file) looks like a system directory."; \
|
---|
| 571 | echo " You may run into problems (need write access for user @myident@)."; \
|
---|
| 572 | echo " ----------------------------------------------------------------"; \
|
---|
| 573 | echo; \
|
---|
| 574 | fi; \
|
---|
| 575 | else \
|
---|
| 576 | echo " chown @myident@ $(DESTDIR)$(mylogdir)"; \
|
---|
| 577 | chown @myident@ $(DESTDIR)$(mylogdir); \
|
---|
| 578 | fi; \
|
---|
| 579 | fi
|
---|
| 580 |
|
---|
| 581 | install-data: trustfile
|
---|
| 582 | @$(mkinstalldirs) $(DESTDIR)$(sysconfdir)
|
---|
| 583 | @$(mkinstalldirs) $(DESTDIR)$(mylockdir)
|
---|
| 584 | @$(mkinstalldirs) $(DESTDIR)$(mylogdir)
|
---|
[518] | 585 | @if test -d $(DESTDIR)$(mydatadir); then \
|
---|
| 586 | :; \
|
---|
| 587 | else \
|
---|
| 588 | $(mkinstalldirs) $(DESTDIR)$(mydatadir); \
|
---|
| 589 | chmod 755 $(DESTDIR)$(mydatadir); \
|
---|
| 590 | fi
|
---|
[1] | 591 | @if test -f samhainrc.$(selectconfig); then \
|
---|
| 592 | :; \
|
---|
| 593 | else \
|
---|
| 594 | if test -f $(srcdir)/samhainrc.$(selectconfig); then \
|
---|
| 595 | cp $(srcdir)/samhainrc.$(selectconfig) . ; \
|
---|
| 596 | fi; \
|
---|
| 597 | fi; \
|
---|
| 598 | if test -f yulerc; then \
|
---|
| 599 | :; \
|
---|
| 600 | else \
|
---|
| 601 | if test -f $(srcdir)/yulerc.template; then \
|
---|
| 602 | cp $(srcdir)/yulerc.template yulerc; \
|
---|
| 603 | fi; \
|
---|
| 604 | fi; \
|
---|
| 605 | if test -f stealth_template.jpg; then \
|
---|
| 606 | :; \
|
---|
| 607 | else \
|
---|
| 608 | if test -f $(srcdir)/stealth_template.jpg; then \
|
---|
| 609 | cp $(srcdir)/stealth_template.jpg . ; \
|
---|
| 610 | fi; \
|
---|
| 611 | fi
|
---|
[412] | 612 | @if test -d /etc/logrotate.d; then \
|
---|
[414] | 613 | if test ! -d $(DESTDIR)/etc/logrotate.d; then \
|
---|
| 614 | $(mkinstalldirs) $(DESTDIR)/etc/logrotate.d; \
|
---|
| 615 | fi; \
|
---|
| 616 | if test ! -f $(DESTDIR)/etc/logrotate.d/@install_name@; then \
|
---|
| 617 | if test -w $(DESTDIR)/etc/logrotate.d; then \
|
---|
| 618 | cp $(srcdir)/scripts/logrotate $(DESTDIR)/etc/logrotate.d/@install_name@; \
|
---|
| 619 | else \
|
---|
| 620 | echo "$(DESTDIR)/etc/logrotate.d not writable"; \
|
---|
| 621 | fi; \
|
---|
[412] | 622 | else \
|
---|
[414] | 623 | echo "$(DESTDIR)/etc/logrotate.d/@install_name@ exists, not overwriting"; \
|
---|
[412] | 624 | fi; \
|
---|
| 625 | fi
|
---|
[1] | 626 | @echo "./samhain-install.sh --destdir=$(DESTDIR) --express --verbose install-data"; \
|
---|
| 627 | ./samhain-install.sh --destdir=$(DESTDIR) --express --verbose install-data || \
|
---|
| 628 | echo " ERROR: Failed to install the configuration file to $(DESTDIR)$(configfile). You need to install the configuration file manually."
|
---|
| 629 | @if test x"$(VFLAG)" = "x-DSH_WITH_SERVER"; then \
|
---|
| 630 | echo;\
|
---|
| 631 | echo " -----------------------------------------------------";\
|
---|
| 632 | echo " The server will run as user @myident@ if started with";\
|
---|
| 633 | echo " root privileges, otherwise as the user of the parent ";\
|
---|
| 634 | echo " process (use --enable-identity=USER to change).";\
|
---|
| 635 | echo;\
|
---|
| 636 | echo " You may want to use: make install-user";\
|
---|
| 637 | echo;\
|
---|
| 638 | echo " - to add the user @myident@ (if not existing already)";\
|
---|
| 639 | echo " - to chown the data directory $(mydatadir)";\
|
---|
| 640 | echo " - to chown the log file directory $(mylogdir)";\
|
---|
| 641 | echo " - to chown the configuration file $(configfile)";\
|
---|
| 642 | echo " -----------------------------------------------------";\
|
---|
| 643 | else \
|
---|
| 644 | if test "x@need_user_install@" = x1; then \
|
---|
| 645 | echo;\
|
---|
| 646 | echo " -----------------------------------------------------";\
|
---|
| 647 | echo " You may want to use: make install-user";\
|
---|
| 648 | echo;\
|
---|
| 649 | echo " - to add the user @myident@ (if not existing already)";\
|
---|
| 650 | echo " -----------------------------------------------------";\
|
---|
| 651 | fi; \
|
---|
| 652 | fi
|
---|
| 653 |
|
---|
| 654 | uninstall-data:
|
---|
| 655 | @echo "./samhain-install.sh --destdir=$(DESTDIR) --express --verbose uninstall-data"; \
|
---|
| 656 | ./samhain-install.sh --destdir=$(DESTDIR) --express --verbose uninstall-data
|
---|
| 657 |
|
---|
| 658 | #
|
---|
| 659 | # -- man files
|
---|
| 660 | #
|
---|
| 661 |
|
---|
| 662 | install-man:
|
---|
| 663 | $(mkinstalldirs) $(DESTDIR)$(mandir)/man8
|
---|
| 664 | $(mkinstalldirs) $(DESTDIR)$(mandir)/man5
|
---|
| 665 | @if test -f $(top_srcdir)/man/samhain.8 ; then \
|
---|
| 666 | echo " $(INSTALL_MAN) $(top_srcdir)/man/samhain.8 $(DESTDIR)$(mandir)/man8/@install_name@.8"; \
|
---|
| 667 | $(INSTALL_MAN) $(top_srcdir)/man/samhain.8 $(DESTDIR)$(mandir)/man8/@install_name@.8; \
|
---|
| 668 | fi
|
---|
| 669 | @if test -f $(top_srcdir)/man/samhainrc.5 ; then \
|
---|
| 670 | echo " $(INSTALL_MAN) $(top_srcdir)/man/samhainrc.5 $(DESTDIR)$(mandir)/man5/@install_name@rc.5"; \
|
---|
| 671 | $(INSTALL_MAN) $(top_srcdir)/man/samhainrc.5 $(DESTDIR)$(mandir)/man5/@install_name@rc.5; \
|
---|
| 672 | fi
|
---|
| 673 |
|
---|
| 674 | uninstall-man:
|
---|
| 675 | @echo "./samhain-install.sh --destdir=$(DESTDIR) --express --verbose uninstall-man";\
|
---|
| 676 | ./samhain-install.sh --destdir=$(DESTDIR) --express --verbose uninstall-man
|
---|
| 677 |
|
---|
| 678 |
|
---|
| 679 | #----------------------------------------------------------
|
---|
| 680 | #
|
---|
| 681 | # BUILD rules
|
---|
| 682 | #
|
---|
| 683 | #----------------------------------------------------------
|
---|
| 684 |
|
---|
| 685 | run: run-light
|
---|
| 686 |
|
---|
| 687 | run-light: all
|
---|
| 688 | @echo "Building $(PACKAGE)-$(VERSION).run"; \
|
---|
| 689 | STAGE=$(PACKAGE)-$(VERSION); \
|
---|
| 690 | mkdir $$STAGE; \
|
---|
| 691 | if test x"$$?" != x0; then \
|
---|
| 692 | echo "ERROR ... mkdir $$STAGE failed"; \
|
---|
| 693 | exit 1; \
|
---|
| 694 | fi; \
|
---|
[40] | 695 | $(MAKE) DESTDIR=$$STAGE install-light; \
|
---|
[1] | 696 | rm -f $$STAGE/@sbindir@/@install_name@_stealth; \
|
---|
| 697 | echo "#! /bin/sh" > $$STAGE/setup.sh; \
|
---|
[302] | 698 | if test x$(mytmpdir) != x; then \
|
---|
| 699 | echo "./mkinstalldirs @mytmpdir@ || exit 1" >> $$STAGE/setup.sh; \
|
---|
| 700 | fi; \
|
---|
[1] | 701 | echo "./mkinstalldirs @sbindir@ || exit 1" >> $$STAGE/setup.sh; \
|
---|
| 702 | echo "./mkinstalldirs @sysconfdir@ || exit 1" >> $$STAGE/setup.sh; \
|
---|
| 703 | echo "./mkinstalldirs @mylockdir@ || exit 1" >> $$STAGE/setup.sh; \
|
---|
| 704 | echo "./mkinstalldirs @mylogdir@ || exit 1" >> $$STAGE/setup.sh; \
|
---|
| 705 | echo "./mkinstalldirs @mydataroot@ || exit 1" >> $$STAGE/setup.sh; \
|
---|
| 706 | echo "chmod 700 @mydataroot@ || exit 1" >> $$STAGE/setup.sh; \
|
---|
| 707 | temp=`echo $(sbindir) | sed s,^/,,`; \
|
---|
| 708 | echo "chown root $$temp/*" >> $$STAGE/setup.sh; \
|
---|
| 709 | echo "cp -p $$temp/* $(sbindir) || exit 1" >> $$STAGE/setup.sh; \
|
---|
| 710 | temp=`echo $(sysconfdir) | sed s,^/,,`; \
|
---|
| 711 | echo "chown root $$temp/*" >> $$STAGE/setup.sh; \
|
---|
| 712 | configfile=`echo @myconffile@ | sed 's%^REQ_FROM_SERVER%%'`; \
|
---|
| 713 | echo "test -f $$configfile || cp -p $$temp/* $$configfile" >> $$STAGE/setup.sh; \
|
---|
[71] | 714 | echo "./samhain-install.sh --express --verbose install-boot || echo 'Cannot install init script'" >> $$STAGE/setup.sh; \
|
---|
[1] | 715 | cp $(top_srcdir)/mkinstalldirs $$STAGE/; \
|
---|
| 716 | cp $(top_srcdir)/install-sh $$STAGE/; \
|
---|
| 717 | cp ./samhain-install.sh $$STAGE/; \
|
---|
| 718 | cp -r init/ $$STAGE/; \
|
---|
| 719 | chmod +x $$STAGE/setup.sh; \
|
---|
| 720 | chmod +x $$STAGE/samhain-install.sh; \
|
---|
| 721 | chmod +x $$STAGE/mkinstalldirs; \
|
---|
| 722 | chmod +x $$STAGE/install-sh; \
|
---|
| 723 | $(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 && \
|
---|
| 724 | rm -r $(PACKAGE)-$(VERSION)
|
---|
| 725 |
|
---|
| 726 | emerge-prepare: dist
|
---|
| 727 | @echo "Building $(PACKAGE)-$(VERSION)"; \
|
---|
| 728 | test -f /etc/make.globals && . /etc/make.globals; \
|
---|
| 729 | test -f /etc/make.conf && . /etc/make.conf; \
|
---|
| 730 | echo "$(INSTALL_MAN) $(PACKAGE)-$(VERSION).tar.gz $${DISTDIR}/@install_name@-$(VERSION).tar.gz"; \
|
---|
| 731 | $(INSTALL_MAN) $(PACKAGE)-$(VERSION).tar.gz $${DISTDIR}/@install_name@-$(VERSION).tar.gz; \
|
---|
| 732 | if test "x$${PORTDIR_OVERLAY}" = "x"; then \
|
---|
| 733 | COPY_TO="$${PORTDIR}"; \
|
---|
| 734 | else \
|
---|
| 735 | COPY_TO="$${PORTDIR_OVERLAY}"; \
|
---|
| 736 | fi; \
|
---|
| 737 | $(mkinstalldirs) $${COPY_TO}/app-admin/@install_name@; \
|
---|
| 738 | echo "$(INSTALL_MAN) scripts/samhain.ebuild $${COPY_TO}/app-admin/@install_name@/@install_name@-$(VERSION).ebuild";\
|
---|
| 739 | $(INSTALL_MAN) scripts/samhain.ebuild $${COPY_TO}/app-admin/@install_name@/@install_name@-$(VERSION).ebuild; \
|
---|
| 740 | 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);\
|
---|
| 741 | ebuild $${COPY_TO}/app-admin/@install_name@/@install_name@-$(VERSION).ebuild digest;
|
---|
| 742 |
|
---|
| 743 | emerge-prepare-light: dist
|
---|
| 744 | @echo "Building $(PACKAGE)-$(VERSION)"; \
|
---|
| 745 | test -f /etc/make.globals && . /etc/make.globals; \
|
---|
| 746 | test -f /etc/make.conf && . /etc/make.conf; \
|
---|
| 747 | echo "$(INSTALL_MAN) $(PACKAGE)-$(VERSION).tar.gz $${DISTDIR}/@install_name@-$(VERSION).tar.gz"; \
|
---|
| 748 | $(INSTALL_MAN) $(PACKAGE)-$(VERSION).tar.gz $${DISTDIR}/@install_name@-$(VERSION).tar.gz; \
|
---|
| 749 | if test "x$${PORTDIR_OVERLAY}" = "x"; then \
|
---|
| 750 | COPY_TO="$${PORTDIR}"; \
|
---|
| 751 | else \
|
---|
| 752 | COPY_TO="$${PORTDIR_OVERLAY}"; \
|
---|
| 753 | fi; \
|
---|
| 754 | $(mkinstalldirs) $${COPY_TO}/app-admin/@install_name@; \
|
---|
| 755 | echo "$(INSTALL_MAN) scripts/samhain.ebuild-light $${COPY_TO}/app-admin/@install_name@/@install_name@-$(VERSION).ebuild";\
|
---|
| 756 | $(INSTALL_MAN) scripts/samhain.ebuild-light $${COPY_TO}/app-admin/@install_name@/@install_name@-$(VERSION).ebuild; \
|
---|
| 757 | 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);\
|
---|
| 758 | ebuild $${COPY_TO}/app-admin/@install_name@/@install_name@-$(VERSION).ebuild digest;
|
---|
| 759 |
|
---|
| 760 |
|
---|
| 761 | tbz2: emerge-prepare
|
---|
| 762 | @emerge --buildpkgonly @install_name@; \
|
---|
| 763 | test -f /etc/make.globals && . /etc/make.globals; \
|
---|
| 764 | test -f /etc/make.conf && . /etc/make.conf; \
|
---|
| 765 | echo; \
|
---|
| 766 | echo "@install_name@-$(VERSION).tbz2 should be in $${PKGDIR}/All"; \
|
---|
| 767 | if test -f $${PKGDIR}/All/@install_name@-$(VERSION).tbz2; then \
|
---|
| 768 | echo "Package $${PKGDIR}/All/@install_name@-$(VERSION).tbz2 built."; \
|
---|
| 769 | mv $${PKGDIR}/All/@install_name@-$(VERSION).tbz2 $(PACKAGE)-$(VERSION).tbz2; \
|
---|
| 770 | rm -f $${PKGDIR}/app-admin/@install_name@-$(VERSION).tbz2; \
|
---|
| 771 | rm -rf $${PORTAGE_TMPDIR}/portage/@install_name@-$(VERSION); \
|
---|
| 772 | else \
|
---|
| 773 | echo "Error ... cannot find package."; \
|
---|
| 774 | exit 1; \
|
---|
| 775 | fi; \
|
---|
| 776 | echo
|
---|
| 777 |
|
---|
| 778 | tbz2-light: emerge-prepare-light
|
---|
| 779 | @emerge --buildpkgonly @install_name@; \
|
---|
| 780 | test -f /etc/make.globals && . /etc/make.globals; \
|
---|
| 781 | test -f /etc/make.conf && . /etc/make.conf; \
|
---|
| 782 | echo; \
|
---|
| 783 | if test -f $${PKGDIR}/All/@install_name@-$(VERSION).tbz2; then \
|
---|
| 784 | echo "Package $${PKGDIR}/All/@install_name@-$(VERSION).tbz2 built."; \
|
---|
| 785 | mv $${PKGDIR}/All/@install_name@-$(VERSION).tbz2 $(PACKAGE)-$(VERSION).tbz2; \
|
---|
| 786 | rm -f $${PKGDIR}/app-admin/@install_name@-$(VERSION).tbz2; \
|
---|
| 787 | rm -rf $${PORTAGE_TMPDIR}/portage/@install_name@-$(VERSION); \
|
---|
| 788 | else \
|
---|
| 789 | echo "Error ... cannot find package."; \
|
---|
| 790 | exit 1; \
|
---|
| 791 | fi; \
|
---|
| 792 | echo
|
---|
| 793 |
|
---|
| 794 | emerge:
|
---|
| 795 | emerge $(PACKAGE);
|
---|
| 796 |
|
---|
| 797 | deb-light:
|
---|
| 798 | @echo "creating subdirectory debian"; \
|
---|
| 799 | mkdir -p debian; \
|
---|
| 800 | cp rules.deb-light debian/rules; \
|
---|
| 801 | chmod +x debian/rules; \
|
---|
| 802 | echo $(sbindir) | sed s,^/,, > debian/dirs; \
|
---|
[302] | 803 | if test x$(mytmpdir) != x; then \
|
---|
| 804 | echo $(mytmpdir) | sed s,^/,, >> debian/dirs; \
|
---|
| 805 | fi; \
|
---|
[1] | 806 | echo $(sysconfdir) | sed s,^/,, >> debian/dirs; \
|
---|
| 807 | echo etc/init.d >> debian/dirs; \
|
---|
[548] | 808 | echo lib/systemd/system >> debian/dirs; \
|
---|
[1] | 809 | echo $(mydatadir) | sed s,^/,, >> debian/dirs; \
|
---|
| 810 | echo $(mylogdir) | sed s,^/,, >> debian/dirs; \
|
---|
| 811 | echo $(mylockdir) | sed s,^/,, >> debian/dirs; \
|
---|
| 812 | $(MAKE) deb-run
|
---|
| 813 |
|
---|
| 814 | deb:
|
---|
| 815 | @echo "creating subdirectory debian"; \
|
---|
| 816 | mkdir -p debian; \
|
---|
| 817 | cp rules.deb debian/rules; \
|
---|
| 818 | chmod +x debian/rules; \
|
---|
| 819 | echo $(sbindir) | sed s,^/,, > debian/dirs; \
|
---|
[302] | 820 | if test x$(mytmpdir) != x; then \
|
---|
| 821 | echo $(mytmpdir) | sed s,^/,, >> debian/dirs; \
|
---|
| 822 | fi; \
|
---|
[1] | 823 | echo $(sysconfdir) | sed s,^/,, >> debian/dirs; \
|
---|
| 824 | echo etc/init.d >> debian/dirs; \
|
---|
[548] | 825 | echo lib/systemd/system >> debian/dirs; \
|
---|
[1] | 826 | echo $(mydatadir) | sed s,^/,, >> debian/dirs; \
|
---|
| 827 | echo $(mylogdir) | sed s,^/,, >> debian/dirs; \
|
---|
| 828 | echo $(mylockdir) | sed s,^/,, >> debian/dirs; \
|
---|
| 829 | echo $(mandir)/man5 | sed s,^/,, >> debian/dirs; \
|
---|
| 830 | echo $(mandir)/man8 | sed s,^/,, >> debian/dirs; \
|
---|
| 831 | echo usr/share/doc/$(PACKAGE) >> debian/dirs; \
|
---|
| 832 | echo $(top_srcdir)/README > debian/docs; \
|
---|
| 833 | echo $(top_srcdir)/test/testtiger.txt >> debian/docs; \
|
---|
| 834 | echo $(srcsrc)/simple-bignum.tar.bz2 >> debian/docs; \
|
---|
| 835 | echo $(top_srcdir)/scripts/head.html >> debian/docs; \
|
---|
| 836 | echo $(top_srcdir)/scripts/foot.html >> debian/docs; \
|
---|
| 837 | echo $(top_srcdir)/samhain.jpg >> debian/docs; \
|
---|
| 838 | echo $(top_srcdir)/docs/BUGS >> debian/docs; \
|
---|
| 839 | echo $(top_srcdir)/docs/HOWTO-client+server.html >> debian/docs; \
|
---|
| 840 | echo $(top_srcdir)/docs/HOWTO-samhain+GnuPG.html >> debian/docs; \
|
---|
[481] | 841 | echo $(top_srcdir)/docs/MANUAL-2_4.html.tar >> debian/docs; \
|
---|
| 842 | echo $(top_srcdir)/docs/MANUAL-2_4.pdf >> debian/docs; \
|
---|
[1] | 843 | echo $(top_srcdir)/docs/README.gcc_bug >> debian/docs; \
|
---|
| 844 | echo $(top_srcdir)/docs/README.LZO >> debian/docs; \
|
---|
| 845 | echo $(top_srcdir)/docs/README.UPGRADE >> debian/docs; \
|
---|
| 846 | echo $(top_srcdir)/docs/README.win2K >> debian/docs; \
|
---|
| 847 | $(MAKE) deb-run
|
---|
| 848 |
|
---|
| 849 | deb-run:
|
---|
[68] | 850 | @maintainer=`gpg --list-secret-keys | grep 'uid ' | cut -d" " -f 5- | sed 's/^ *//' | sed q1`;\
|
---|
[1] | 851 | if test "x$$maintainer" = x; then \
|
---|
[245] | 852 | maintainer="$(DEFAULT_MAINTAINER)"; \
|
---|
[1] | 853 | fi; \
|
---|
[531] | 854 | codename=`lsb_release -a 2>/dev/null | grep Codename | cut -f 2`; \
|
---|
| 855 | if test "x$$codename" = x; then \
|
---|
| 856 | codename="stable"; \
|
---|
| 857 | fi; \
|
---|
| 858 | echo "$(PACKAGE) ($(VERSION)-$(BUILD_NUM)) $$codename; urgency=low" > debian/changelog; \
|
---|
[1] | 859 | echo >> debian/changelog; \
|
---|
| 860 | echo " * Initial release." >> debian/changelog; \
|
---|
| 861 | echo >> debian/changelog; \
|
---|
| 862 | echo " -- $$maintainer `date -R`" >> debian/changelog; \
|
---|
| 863 | echo >> debian/changelog; \
|
---|
| 864 | cp $(top_srcdir)/COPYING debian/copyright; \
|
---|
[531] | 865 | echo "9" > debian/compat; \
|
---|
| 866 | echo "Nothing to see here." > debian/README.debian; \
|
---|
[1] | 867 | echo "Document: @install_name@-manual" > debian/@install_name@.doc-base; \
|
---|
| 868 | echo "Title: @install_name@ Manual" >> debian/@install_name@.doc-base; \
|
---|
| 869 | echo "Author: Rainer Wichmann" >> debian/@install_name@.doc-base; \
|
---|
| 870 | echo "Abstract: This manual describes what @install_name@ is" >> debian/@install_name@.doc-base; \
|
---|
| 871 | echo " and how it can be used to check the file integrity of your" >> debian/@install_name@.doc-base; \
|
---|
| 872 | echo " server." >> debian/@install_name@.doc-base; \
|
---|
[209] | 873 | echo "Section: System/Security" >> debian/@install_name@.doc-base; \
|
---|
[1] | 874 | echo >> debian/@install_name@.doc-base; \
|
---|
| 875 | echo >> debian/@install_name@.doc-base; \
|
---|
| 876 | echo "Format: Postscript" >> debian/@install_name@.doc-base; \
|
---|
[209] | 877 | echo "Files: /usr/share/doc/@install_name@/manual.pdf.gz" >> debian/@install_name@.doc-base; \
|
---|
[1] | 878 | echo >> debian/@install_name@.doc-base; \
|
---|
| 879 | echo "Format: HTML" >> debian/@install_name@.doc-base; \
|
---|
| 880 | echo "Index: /usr/share/doc/@install_name@/manual.html/index.html" >> debian/@install_name@.doc-base; \
|
---|
| 881 | echo "Files: /usr/share/doc/@install_name@/manual.html/*.html" >> debian/@install_name@.doc-base; \
|
---|
[65] | 882 | if test -f /usr/lib/lsb/install_initd; then \
|
---|
| 883 | cp init/samhain.startLSB debian/@install_name@.init; \
|
---|
| 884 | else \
|
---|
| 885 | cp init/samhain.startLinux debian/@install_name@.init; \
|
---|
| 886 | fi; \
|
---|
[1] | 887 | echo "Source: samhain" > debian/control; \
|
---|
| 888 | echo "Section: admin" >> debian/control; \
|
---|
| 889 | echo "Priority: optional" >> debian/control; \
|
---|
| 890 | echo "Maintainer: $$maintainer" >> debian/control; \
|
---|
[549] | 891 | echo "Build-Depends: debhelper (>> 9)" >> debian/control; \
|
---|
| 892 | echo "Standards-Version: 3.9.8" >> debian/control; \
|
---|
[1] | 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 | encode: $(srcsrc)/encode.c Makefile
|
---|
[98] | 1133 | $(BUILD_CC) -I. -o encode $(srcsrc)/encode.c
|
---|
[1] | 1134 |
|
---|
| 1135 | config_xor.h: config.h encode
|
---|
| 1136 | @echo 'encode $(XOR_CODE) config.h'; \
|
---|
| 1137 | ./encode $(XOR_CODE) config.h; \
|
---|
| 1138 | mv x_config.h config_xor.h
|
---|
| 1139 |
|
---|
| 1140 |
|
---|
[481] | 1141 | $(OBJECTS): encode internal.h config_xor.h
|
---|
[1] | 1142 | @echo "./encode $(XOR_CODE) $(srcsrc)/`echo $@ |sed 's%\.o$$%%'`.c --> x_`echo $@ |sed 's%\.o$$%%'`.c"; \
|
---|
| 1143 | ./encode $(XOR_CODE) $(srcsrc)/`echo $@ |sed 's%\.o$$%%'`.c; \
|
---|
| 1144 | echo "$(COMPILE) $(VFLAG) -o `echo $@ |sed 's%.*/%%'` -c x_`echo $@ |sed 's%\.o$$%%'`.c"; \
|
---|
[378] | 1145 | $(COMPILE) $(VFLAG) -o `echo $@ |sed 's%.*/%%'` -c x_`echo $@ |sed 's%\.o$$%%'`.c && \
|
---|
[1] | 1146 | rm x_`echo $@ |sed 's%\.o$$%%'`.c
|
---|
| 1147 |
|
---|
[18] | 1148 | sh_tiger_i.o: $(srcsrc)/$(TIGER_SRC) Makefile config_xor.h
|
---|
| 1149 | @echo "$(COMPILE) $(VFLAG) -o sh_tiger_i.o -c $(srcsrc)/$(TIGER_SRC)";\
|
---|
| 1150 | $(COMPILE) $(VFLAG) -o sh_tiger_i.o -c $(srcsrc)/$(TIGER_SRC);
|
---|
| 1151 |
|
---|
[1] | 1152 | samhain_setpwd: encode config_xor.h $(srcsrc)/samhain_setpwd.c
|
---|
| 1153 | @echo '$(COMPILE) -o samhain_setpwd $(srcsrc)/samhain_setpwd.c'; \
|
---|
| 1154 | ./encode $(XOR_CODE) $(srcsrc)/samhain_setpwd.c; \
|
---|
| 1155 | $(COMPILE) -o samhain_setpwd x_samhain_setpwd.c; \
|
---|
| 1156 | rm x_samhain_setpwd.c
|
---|
| 1157 |
|
---|
| 1158 | samhain_stealth: encode config_xor.h $(srcsrc)/samhain_stealth.c
|
---|
| 1159 | @echo '$(COMPILE) -o samhain_stealth $(srcsrc)/samhain_stealth.c'; \
|
---|
| 1160 | ./encode $(XOR_CODE) $(srcsrc)/samhain_stealth.c; \
|
---|
| 1161 | $(COMPILE) -o samhain_stealth x_samhain_stealth.c; \
|
---|
| 1162 | rm x_samhain_stealth.c
|
---|
| 1163 |
|
---|
| 1164 | yulectl: encode config_xor.h $(srcsrc)/yulectl.c
|
---|
| 1165 | @echo '$(COMPILE) -o yulectl $(srcsrc)/yulectl.c $(LIBS_SOCK)'; \
|
---|
| 1166 | ./encode $(XOR_CODE) $(srcsrc)/yulectl.c; \
|
---|
| 1167 | $(COMPILE) -o yulectl x_yulectl.c $(LIBS_SOCK); \
|
---|
| 1168 | rm x_yulectl.c
|
---|
| 1169 |
|
---|
[18] | 1170 | $(SAMHAIN): internal.h $(OBJECTS) sh_tiger_i.o
|
---|
[1] | 1171 | @-rm -f $(SAMHAIN)
|
---|
[18] | 1172 | @echo "$(LINK) sh_tiger_i.o $(OBJECTS) $(LIBS_TRY)"; \
|
---|
| 1173 | $(LINK) sh_tiger_i.o $(OBJECTS) $(LIBS_TRY)
|
---|
[1] | 1174 |
|
---|
| 1175 |
|
---|
[18] | 1176 | CUTEST_SOURCES = $(srcsrc)/cutest_sh_tools.c \
|
---|
[23] | 1177 | $(srcsrc)/cutest_sh_utils.c \
|
---|
[25] | 1178 | $(srcsrc)/cutest_sh_unix.c \
|
---|
[23] | 1179 | $(srcsrc)/cutest_slib.c \
|
---|
[18] | 1180 | $(srcsrc)/cutest_zAVLTree.c \
|
---|
[34] | 1181 | $(srcsrc)/cutest_sh_hash.c \
|
---|
[18] | 1182 | $(srcsrc)/cutest_sh_tiger0.c
|
---|
[1] | 1183 |
|
---|
[23] | 1184 | CUTEST_OBJECTS = cutest_sh_tools.o \
|
---|
| 1185 | cutest_sh_utils.o \
|
---|
[25] | 1186 | cutest_sh_unix.o \
|
---|
[23] | 1187 | cutest_slib.o \
|
---|
| 1188 | cutest_zAVLTree.o \
|
---|
[34] | 1189 | cutest_sh_hash.o \
|
---|
[23] | 1190 | cutest_sh_tiger0.o
|
---|
[18] | 1191 |
|
---|
[170] | 1192 | $(CUTEST_OBJECTS): $(CUTEST_SOURCES) config_xor.h internal.h
|
---|
[18] | 1193 | @echo "./encode $(XOR_CODE) $(srcsrc)/`echo $@ |sed 's%\.o$$%%'`.c --> x_`echo $@ |sed 's%\.o$$%%'`.c"; \
|
---|
| 1194 | ./encode $(XOR_CODE) $(srcsrc)/`echo $@ |sed 's%\.o$$%%'`.c; \
|
---|
| 1195 | echo "$(COMPILE) $(VFLAG) -o `echo $@ |sed 's%.*/%%'` -c x_`echo $@ |sed 's%\.o$$%%'`.c"; \
|
---|
| 1196 | $(COMPILE) $(VFLAG) -o `echo $@ |sed 's%.*/%%'` -c x_`echo $@ |sed 's%\.o$$%%'`.c; \
|
---|
| 1197 | rm x_`echo $@ |sed 's%\.o$$%%'`.c
|
---|
| 1198 |
|
---|
[68] | 1199 |
|
---|
| 1200 | cutest: $(SOURCES) $(CUTEST_SOURCES)
|
---|
| 1201 | @$(MAKE) CUTEST='-DSH_CUTEST=1' intcutest
|
---|
| 1202 |
|
---|
[257] | 1203 | $(srcsrc)/CuTestMain.c: $(SOURCES) $(CUTEST_SOURCES) $(srcsrc)/make-tests.sh
|
---|
| 1204 | cd $(srcsrc)/ && ./make-tests.sh >CuTestMain.c;
|
---|
| 1205 |
|
---|
| 1206 | intcutest: internal.h $(OBJECTS) $(CUTEST_OBJECTS) sh_tiger_i.o $(srcsrc)/CuTestMain.c
|
---|
[18] | 1207 | @$(COMPILE) -o CuTestMain.o -c $(srcsrc)/CuTestMain.c; \
|
---|
| 1208 | $(COMPILE) -o CuTest.o -c $(srcsrc)/CuTest.c; \
|
---|
| 1209 | rm -f samhain.o; \
|
---|
| 1210 | ./encode $(XOR_CODE) $(srcsrc)/samhain.c; \
|
---|
[68] | 1211 | $(COMPILE) $(VFLAG) -o samhain.o -c x_samhain.c; \
|
---|
[18] | 1212 | rm x_samhain.c; \
|
---|
| 1213 | $(LINK) sh_tiger_i.o $(CUTEST_OBJECTS) CuTestMain.o CuTest.o $(OBJECTS) $(LIBS_TRY); \
|
---|
[68] | 1214 | test -f ./intcutest && mv ./intcutest ./cutest; \
|
---|
[18] | 1215 | ./cutest
|
---|
| 1216 |
|
---|
[171] | 1217 | runcutest:
|
---|
| 1218 | gdb ./cutest
|
---|
| 1219 |
|
---|
[1] | 1220 |
|
---|
| 1221 | # For bignum
|
---|
| 1222 | internal.h: mkhdr
|
---|
| 1223 | @sleep 1; \
|
---|
| 1224 | ./mkhdr
|
---|
| 1225 |
|
---|
| 1226 | bignum.o: internal.h
|
---|
| 1227 |
|
---|
[170] | 1228 |
|
---|
[1] | 1229 | # If your compiler can't handle long identifiers (> 6 chars), move the `#' to
|
---|
| 1230 | # the other line.
|
---|
| 1231 |
|
---|
| 1232 | mkhdr: $(srcsrc)/mkhdr.c config.h
|
---|
[98] | 1233 | @echo "$(BUILD_CC) -I. -o mkhdr $(srcsrc)/mkhdr.c"; \
|
---|
[1] | 1234 | sleep 1; \
|
---|
[98] | 1235 | $(BUILD_CC) -I. -o mkhdr $(srcsrc)/mkhdr.c
|
---|
[1] | 1236 |
|
---|
| 1237 | # $(COMPILE) -DBIG_SHORT_NAMES -o mkhdr $(srcdir)/mkhdr.c
|
---|
| 1238 |
|
---|
| 1239 | #----------------------------------------------------------
|
---|
| 1240 | #
|
---|
| 1241 | # EXE PACKER rules
|
---|
| 1242 | #
|
---|
| 1243 | #----------------------------------------------------------
|
---|
| 1244 |
|
---|
| 1245 | minilzo.o: $(srcsrc)/minilzo.c $(srcinc)/lzoconf.h $(srcinc)/minilzo.h config.h
|
---|
| 1246 | @echo "$(COMPILE) -DMINILZO_HAVE_CONFIG_H -o minilzo.o -c $(srcsrc)/minilzo.c"; \
|
---|
| 1247 | $(COMPILE) -DMINILZO_HAVE_CONFIG_H -o minilzo.o -c $(srcsrc)/minilzo.c
|
---|
| 1248 |
|
---|
| 1249 | exepack_mkdata: $(srcsrc)/exepack_mkdata.c $(srcinc)/lzoconf.h $(srcinc)/minilzo.h minilzo.o
|
---|
| 1250 | @echo "$(COMPILE) -o exepack_mkdata.o -c $(srcsrc)/exepack_mkdata.c"; \
|
---|
| 1251 | $(COMPILE) -o exepack_mkdata.o -c $(srcsrc)/exepack_mkdata.c; \
|
---|
| 1252 | echo "$(LINK) exepack_mkdata.o minilzo.o"; \
|
---|
| 1253 | $(LINK) exepack_mkdata.o minilzo.o
|
---|
| 1254 |
|
---|
| 1255 | #
|
---|
| 1256 | # prepare the data to be packed
|
---|
| 1257 | #
|
---|
[549] | 1258 | exepack.data: $(SAMHAIN) exepack_mkdata
|
---|
[1] | 1259 | @echo "cp ./$(SAMHAIN) ./samhain.pk.data"; \
|
---|
| 1260 | cp ./$(SAMHAIN) ./samhain.pk.data; \
|
---|
| 1261 | echo "strip ./samhain.pk.data"; \
|
---|
| 1262 | strip ./samhain.pk.data > /dev/null 2>&1 || echo "... is already stripped"; \
|
---|
| 1263 | echo "./exepack_mkdata ./samhain.pk.data ./exepack.data 0"; \
|
---|
| 1264 | ./exepack_mkdata ./samhain.pk.data ./exepack.data 0; \
|
---|
| 1265 | echo "rm -f ./samhain.pk.data"; \
|
---|
| 1266 | rm -f ./samhain.pk.data;
|
---|
| 1267 |
|
---|
| 1268 | exepack: $(srcsrc)/exepack.c minilzo.o exepack.data
|
---|
| 1269 | @echo "$(COMPILE) -o exepack.o -c $(srcsrc)/exepack.c"; \
|
---|
| 1270 | $(COMPILE) -o exepack.o -c $(srcsrc)/exepack.c; \
|
---|
| 1271 | echo "$(LINK) exepack.o minilzo.o"; \
|
---|
| 1272 | $(LINK) exepack.o minilzo.o;
|
---|
| 1273 |
|
---|
| 1274 | #
|
---|
| 1275 | # this program fills the data section with the binary
|
---|
| 1276 | #
|
---|
| 1277 | exepack_fill: $(srcsrc)/exepack_fill.c minilzo.o exepack
|
---|
| 1278 | @echo "$(COMPILE) -o exepack_fill.o -c $(srcsrc)/exepack_fill.c"; \
|
---|
| 1279 | $(COMPILE) -o exepack_fill.o -c $(srcsrc)/exepack_fill.c; \
|
---|
| 1280 | echo "$(LINK) exepack_fill.o minilzo.o"; \
|
---|
| 1281 | $(LINK) exepack_fill.o minilzo.o
|
---|
| 1282 |
|
---|
[549] | 1283 | samhain.pk: $(SAMHAIN) exepack exepack_fill
|
---|
[1] | 1284 | @echo "cp ./$(SAMHAIN) ./samhain.pk.data"; \
|
---|
| 1285 | cp ./$(SAMHAIN) ./samhain.pk.data; \
|
---|
| 1286 | echo "strip ./samhain.pk.data"; \
|
---|
| 1287 | strip ./samhain.pk.data > /dev/null 2>&1 || echo "... is already stripped"; \
|
---|
| 1288 | test -f exepack.out && rm exepack.out; \
|
---|
| 1289 | echo "./exepack_fill exepack samhain.pk.data exepack.out"; \
|
---|
| 1290 | ./exepack_fill exepack samhain.pk.data exepack.out; \
|
---|
| 1291 | chmod +x exepack.out; \
|
---|
| 1292 | echo "strip exepack.out"; \
|
---|
| 1293 | strip exepack.out > /dev/null 2>&1 || echo "... is already stripped"; \
|
---|
| 1294 | echo "mv exepack.out samhain.pk"; \
|
---|
| 1295 | rm -f samhain.pk; mv exepack.out samhain.pk
|
---|
| 1296 |
|
---|
| 1297 | samhain-packed: $(SAMHAIN) samhain_setpwd
|
---|
| 1298 | @echo "samhain_setpwd samhain new $(CLIENTPASSWD)"; \
|
---|
| 1299 | samhain_setpwd samhain new $(CLIENTPASSWD); \
|
---|
| 1300 | echo "rm -f samhain; mv samhain.new samhain"; \
|
---|
| 1301 | rm -f samhain; mv samhain.new samhain; \
|
---|
| 1302 | $(MAKE) samhain.pk; \
|
---|
| 1303 | echo "rm -f samhain; mv samhain.pk samhain"; \
|
---|
| 1304 | rm -f samhain; mv samhain.pk samhain
|
---|
| 1305 |
|
---|
| 1306 | #----------------------------------------------------------
|
---|
| 1307 | #
|
---|
| 1308 | # DEPLOY rules
|
---|
| 1309 | #
|
---|
| 1310 | #----------------------------------------------------------
|
---|
| 1311 |
|
---|
| 1312 | uninstall-deploy:
|
---|
| 1313 | rm -rf $(mydatadir)/profiles/source
|
---|
| 1314 | rm -rf $(mydatadir)/profiles/archpkg
|
---|
| 1315 | rm -rf $(mydatadir)/profiles/libexec
|
---|
| 1316 | rm -rf $(mydatadir)/profiles/tmp
|
---|
| 1317 | rm -rf $(mydatadir)/profiles/private
|
---|
| 1318 | @if test -f $(sbindir)/deploy.sh; then \
|
---|
| 1319 | old_deploy=`grep 'VERSION2' $(sbindir)/deploy.sh >/dev/null 2>&1 || echo old`; \
|
---|
| 1320 | if test x"$$old_deploy" = xold; then \
|
---|
| 1321 | echo "rm -f $(sbindir)/deploy2.sh"; \
|
---|
| 1322 | rm -f $(sbindir)/deploy2.sh; \
|
---|
| 1323 | else \
|
---|
| 1324 | echo "rm -f $(sbindir)/deploy.sh"; \
|
---|
| 1325 | rm -f $(sbindir)/deploy.sh; \
|
---|
| 1326 | fi; \
|
---|
| 1327 | fi
|
---|
| 1328 |
|
---|
| 1329 | EXECFILES= comCHECKSRC comDOWNLOAD comBUILD comCLEAN comINSTALL \
|
---|
| 1330 | funcDIALOG funcEXE funcPRINT funcSETUP funcBUILD funcINSTALL \
|
---|
| 1331 | funcDB comUNINSTALL \
|
---|
| 1332 | preinstall postinstall initscript
|
---|
| 1333 |
|
---|
| 1334 | # $(mydatadir)/profiles/
|
---|
| 1335 | # |
|
---|
| 1336 | # |
|
---|
| 1337 | # |-- source -------------> (tarballs)
|
---|
| 1338 | # |
|
---|
| 1339 | # |-- configs ------------> (default configs)
|
---|
| 1340 | # |
|
---|
| 1341 | # |-- archpkg
|
---|
| 1342 | # | |
|
---|
| 1343 | # | |-- architecture -> (package, setup script)
|
---|
| 1344 | # |
|
---|
| 1345 | # |-- hosts
|
---|
| 1346 | # | |
|
---|
| 1347 | # | |-- hostname -----> (config)
|
---|
| 1348 | # |
|
---|
| 1349 | # |-- libexec ------------> (scripts)
|
---|
| 1350 | # |
|
---|
| 1351 | # |-- private ------------> (gpg key)
|
---|
| 1352 | # |
|
---|
| 1353 | # |-- tmp
|
---|
| 1354 | #
|
---|
| 1355 | install-deploy: deploy.sh samhain_stealth
|
---|
| 1356 | @echo "Creating directory tree under $(mydatadir)/profiles/"; \
|
---|
| 1357 | $(mkinstalldirs) $(sbindir); \
|
---|
| 1358 | $(mkinstalldirs) $(mydatadir)/profiles/source; \
|
---|
| 1359 | $(mkinstalldirs) $(mydatadir)/profiles/configs; \
|
---|
| 1360 | $(mkinstalldirs) $(mydatadir)/profiles/archpkg/debian_i386; \
|
---|
| 1361 | $(mkinstalldirs) $(mydatadir)/profiles/archpkg/gentoo_i386; \
|
---|
| 1362 | $(mkinstalldirs) $(mydatadir)/profiles/archpkg/redhat_i386; \
|
---|
| 1363 | $(mkinstalldirs) $(mydatadir)/profiles/archpkg/linux_i386; \
|
---|
| 1364 | $(mkinstalldirs) $(mydatadir)/profiles/archpkg/freebsd_i386;\
|
---|
| 1365 | $(mkinstalldirs) $(mydatadir)/profiles/archpkg/solaris; \
|
---|
| 1366 | $(mkinstalldirs) $(mydatadir)/profiles/archpkg/aix; \
|
---|
| 1367 | $(mkinstalldirs) $(mydatadir)/profiles/hosts; \
|
---|
| 1368 | $(mkinstalldirs) $(mydatadir)/profiles/libexec; \
|
---|
| 1369 | $(mkinstalldirs) $(mydatadir)/profiles/private; \
|
---|
| 1370 | $(mkinstalldirs) $(mydatadir)/profiles/tmp; \
|
---|
| 1371 | if test -f $(srcdir)/../$(PACKAGE)-$(VERSION).tar.gz.asc; then \
|
---|
| 1372 | if test -f $(srcdir)/../$(PACKAGE)-$(VERSION).tar.gz; then \
|
---|
| 1373 | echo "Installing source tarball"; \
|
---|
| 1374 | $(INSTALL_DATA) $(srcdir)/../$(PACKAGE)-$(VERSION).tar.gz.asc \
|
---|
| 1375 | $(mydatadir)/profiles/source/$(PACKAGE)-$(VERSION).tar.gz.asc; \
|
---|
| 1376 | $(INSTALL_DATA) $(srcdir)/../$(PACKAGE)-$(VERSION).tar.gz \
|
---|
| 1377 | $(mydatadir)/profiles/source/$(PACKAGE)-$(VERSION).tar.gz; \
|
---|
| 1378 | fi; \
|
---|
| 1379 | fi; \
|
---|
| 1380 | echo "Installing default configs"; \
|
---|
| 1381 | test -f $(mydatadir)/profiles/configs/freebsd_i386.samhainrc || \
|
---|
| 1382 | $(INSTALL_DATA) $(srcdir)/samhainrc.freebsd \
|
---|
| 1383 | $(mydatadir)/profiles/configs/freebsd_i386.samhainrc; \
|
---|
| 1384 | test -f $(mydatadir)/profiles/configs/debian_i386.samhainrc || \
|
---|
| 1385 | $(INSTALL_DATA) $(srcdir)/samhainrc.linux \
|
---|
| 1386 | $(mydatadir)/profiles/configs/debian_i386.samhainrc; \
|
---|
| 1387 | test -f $(mydatadir)/profiles/configs/gentoo_i386.samhainrc || \
|
---|
| 1388 | $(INSTALL_DATA) $(srcdir)/samhainrc.linux \
|
---|
| 1389 | $(mydatadir)/profiles/configs/gentoo_i386.samhainrc; \
|
---|
| 1390 | test -f $(mydatadir)/profiles/configs/redhat_i386.samhainrc || \
|
---|
| 1391 | $(INSTALL_DATA) $(srcdir)/samhainrc.linux \
|
---|
| 1392 | $(mydatadir)/profiles/configs/redhat_i386.samhainrc; \
|
---|
| 1393 | test -f $(mydatadir)/profiles/configs/linux_i386.samhainrc || \
|
---|
| 1394 | $(INSTALL_DATA) $(srcdir)/samhainrc.linux \
|
---|
| 1395 | $(mydatadir)/profiles/configs/linux_i386.samhainrc; \
|
---|
| 1396 | test -f $(mydatadir)/profiles/configs/solaris.samhainrc || \
|
---|
| 1397 | $(INSTALL_DATA) $(srcdir)/samhainrc.solaris \
|
---|
| 1398 | $(mydatadir)/profiles/configs/solaris.samhainrc; \
|
---|
| 1399 | test -f $(mydatadir)/profiles/configs/aix.samhainrc || \
|
---|
| 1400 | $(INSTALL_DATA) $(srcdir)/samhainrc.aix5.2.0 \
|
---|
| 1401 | $(mydatadir)/profiles/configs/aix.samhainrc; \
|
---|
| 1402 | if test -f $(mydatadir)/profiles/configs/generic.configure; then \
|
---|
| 1403 | :; \
|
---|
| 1404 | else \
|
---|
| 1405 | SH_FQDN_SYSTEM=`uname -n`; \
|
---|
| 1406 | SH_FQDN_DOMAIN=`grep -i domain /etc/resolv.conf |grep -v "\#" |awk '{print $$2}' |head -1`; \
|
---|
| 1407 | if test -n "$${SH_FQDN_SYSTEM}" -a -n "$${SH_FQDN_DOMAIN}"; then \
|
---|
| 1408 | sh_thishost="$${SH_FQDN_SYSTEM}.$${SH_FQDN_DOMAIN}"; \
|
---|
| 1409 | else \
|
---|
| 1410 | sh_thishost="FQDN_MISSING"; \
|
---|
| 1411 | fi; \
|
---|
| 1412 | outfile=$(mydatadir)/profiles/configs/generic.configure; \
|
---|
| 1413 | echo "'--enable-network=client'" > $$outfile; \
|
---|
| 1414 | echo "'--with-logserver=$${sh_thishost}'" >> $$outfile; \
|
---|
| 1415 | echo "'--with-data-file=REQ_FROM_SERVER/var/lib/samhain/samhain_file'" >> $$outfile; \
|
---|
| 1416 | echo "'--with-config-file=REQ_FROM_SERVER/etc/samhainrc'" >> $$outfile; \
|
---|
| 1417 | echo "'--enable-base=@mykeybase@'" >> $$outfile; \
|
---|
| 1418 | fi; \
|
---|
| 1419 | $(INSTALL_SHELL) $(srcdir)/mkinstalldirs \
|
---|
| 1420 | $(mydatadir)/profiles/libexec; \
|
---|
| 1421 | $(INSTALL_SHELL) $(srcdir)/install-sh \
|
---|
| 1422 | $(mydatadir)/profiles/libexec; \
|
---|
| 1423 | for ff in $(EXECFILES); do \
|
---|
| 1424 | test -f $(srcdir)/dsys/$$ff && $(INSTALL_SHELL) $(srcdir)/dsys/$$ff \
|
---|
| 1425 | $(mydatadir)/profiles/libexec; \
|
---|
| 1426 | done; \
|
---|
| 1427 | $(INSTALL_SHELL) samhain_stealth $(mydatadir)/profiles/libexec; \
|
---|
| 1428 | test -f $(srcdir)/dsys/0F571F6C.asc && $(INSTALL_DATA) $(srcdir)/dsys/0F571F6C.asc \
|
---|
| 1429 | $(mydatadir)/profiles/private; \
|
---|
| 1430 | convert +compress $(srcdir)/stealth_template.jpg stealth_template.ps >/dev/null || \
|
---|
| 1431 | { 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 "*"; }; \
|
---|
| 1432 | if test -f stealth_template.ps; then \
|
---|
| 1433 | if test -f $(mydatadir)/profiles/private/stealth_template.ps; then \
|
---|
| 1434 | :; \
|
---|
| 1435 | else \
|
---|
| 1436 | $(INSTALL_DATA) stealth_template.ps $(mydatadir)/profiles/private; \
|
---|
| 1437 | fi; \
|
---|
| 1438 | fi; \
|
---|
| 1439 | if test -f $(sbindir)/deploy.sh; then \
|
---|
| 1440 | old_deploy=`grep 'VERSION2' $(sbindir)/deploy.sh >/dev/null 2>&1 || echo old`; \
|
---|
| 1441 | if test x"$$old_deploy" = xold; then \
|
---|
| 1442 | echo "*"; echo "* Version 1 of deploy.sh found"; echo "*"; \
|
---|
| 1443 | echo "* Installing $(sbindir)/deploy2.sh"; echo "*"; \
|
---|
| 1444 | $(INSTALL_SHELL) deploy.sh $(sbindir)/deploy2.sh; \
|
---|
| 1445 | else \
|
---|
| 1446 | echo "Installing $(sbindir)/deploy.sh"; \
|
---|
| 1447 | $(INSTALL_SHELL) deploy.sh $(sbindir)/deploy.sh; \
|
---|
| 1448 | fi; \
|
---|
| 1449 | else \
|
---|
| 1450 | echo "Installing $(sbindir)/deploy.sh"; \
|
---|
| 1451 | $(INSTALL_SHELL) deploy.sh $(sbindir)/deploy.sh; \
|
---|
| 1452 | fi
|
---|
| 1453 |
|
---|
| 1454 |
|
---|
| 1455 | #----------------------------------------------------------
|
---|
| 1456 | #
|
---|
| 1457 | # DISTRIBUTION rules
|
---|
| 1458 | #
|
---|
| 1459 | #----------------------------------------------------------
|
---|
| 1460 |
|
---|
| 1461 | distdir = $(PACKAGE)-$(VERSION)
|
---|
| 1462 | top_distdir = $(distdir)
|
---|
| 1463 |
|
---|
| 1464 | # This target untars the dist file and tries a VPATH configuration. Then
|
---|
| 1465 | # it guarantees that the distribution is self-contained by making another
|
---|
| 1466 | # tarfile.
|
---|
| 1467 |
|
---|
| 1468 | #
|
---|
| 1469 | # 1) make distribution tarfile
|
---|
| 1470 | # 2) unpack the tarfile into distdir
|
---|
| 1471 | # 3) create build and install directories
|
---|
| 1472 | # 4) do the build in the build dir, with sources from distdir
|
---|
| 1473 | # 5) check (there are no subdirs, thus does nothing)
|
---|
| 1474 | # 6) install
|
---|
| 1475 | # 7) installcheck (equal to check, does nothing)
|
---|
| 1476 | #
|
---|
| 1477 | distcheck: dist
|
---|
| 1478 | -rm -rf $(distdir)
|
---|
| 1479 | GZIP=$(GZIP) $(TAR) zxf $(distdir).tar.gz
|
---|
| 1480 | mkdir $(distdir)/=build
|
---|
| 1481 | mkdir $(distdir)/=inst
|
---|
| 1482 | dc_install_base=`cd $(distdir)/=inst && pwd`; \
|
---|
| 1483 | cd $(distdir)/=build \
|
---|
| 1484 | && ../configure --srcdir=.. --prefix=$$dc_install_base \
|
---|
| 1485 | && $(MAKE) \
|
---|
| 1486 | && $(MAKE) install
|
---|
| 1487 | -rm -rf $(distdir)
|
---|
| 1488 | -rm -f $(distdir).tar.gz.asc
|
---|
| 1489 | @gpg -a --detach-sign $(distdir).tar.gz; \
|
---|
| 1490 | $(TAR) chof $(distdir).tar $(distdir).tar.gz $(distdir).tar.gz.asc; \
|
---|
| 1491 | rm -f $(distdir).tar.gz; \
|
---|
| 1492 | rm -f $(distdir).tar.gz.asc; \
|
---|
| 1493 | gzip --best $(distdir).tar
|
---|
| 1494 | mv $(distdir).tar.gz $(PACKAGE)_signed-$(VERSION).tar.gz
|
---|
| 1495 | @echo "========================"; \
|
---|
| 1496 | echo "$(PACKAGE)_signed-$(VERSION).tar.gz is ready for distribution"; \
|
---|
| 1497 | echo "========================"
|
---|
| 1498 |
|
---|
| 1499 | #
|
---|
| 1500 | # create a tarfile for the distibution
|
---|
| 1501 | #
|
---|
| 1502 | distrpm: distdirrpm
|
---|
| 1503 | -chmod -R a+r $(distdir)
|
---|
| 1504 | -rm -rf $(distdir).tar.gz
|
---|
| 1505 | -rm -rf $(distdir).tar
|
---|
| 1506 | $(TAR) chof $(distdir).tar $(distdir)
|
---|
| 1507 | gzip -c --best $(distdir).tar > $(distdir).tar.gz
|
---|
| 1508 | -rm -rf $(distdir)
|
---|
| 1509 |
|
---|
| 1510 | dist: distdir
|
---|
| 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 | #
|
---|
| 1519 | # create a tarfile for the distibution
|
---|
| 1520 | #
|
---|
| 1521 | dist-sign: distdir
|
---|
| 1522 | -rm -f $(distdir)/scripts/samhain.ebuild
|
---|
| 1523 | -rm -f $(distdir)/scripts/samhain.ebuild-light
|
---|
| 1524 | -chmod -R a+r $(distdir)
|
---|
| 1525 | -rm -rf $(distdir).tar.gz
|
---|
| 1526 | -rm -rf $(distdir).tar
|
---|
| 1527 | $(TAR) chof $(distdir).tar $(distdir)
|
---|
| 1528 | gzip --best $(distdir).tar
|
---|
| 1529 | -rm -rf $(distdir)
|
---|
| 1530 | -rm -f $(distdir).tar.gz.asc
|
---|
| 1531 | gpg -a --detach-sign $(distdir).tar.gz
|
---|
| 1532 | $(TAR) chof $(distdir).tar $(distdir).tar.gz $(distdir).tar.gz.asc
|
---|
| 1533 | -rm -f $(distdir).tar.gz
|
---|
| 1534 | -rm -f $(distdir).tar.gz.asc
|
---|
| 1535 | gzip --best $(distdir).tar
|
---|
| 1536 | mv $(distdir).tar.gz $(PACKAGE)_signed-$(VERSION).tar.gz
|
---|
| 1537 |
|
---|
| 1538 |
|
---|
| 1539 | #
|
---|
| 1540 | # same as dist
|
---|
| 1541 | #
|
---|
| 1542 | dist-all: distdir
|
---|
| 1543 | -chmod -R a+r $(distdir)
|
---|
| 1544 | GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir)
|
---|
| 1545 | -rm -rf $(distdir)
|
---|
| 1546 |
|
---|
| 1547 | #
|
---|
| 1548 | # create distribution directory and copy files into it
|
---|
| 1549 | #
|
---|
| 1550 | INITFILES=samhain.startIRIX samhain.startFreeBSD samhain.startSolaris \
|
---|
[71] | 1551 | samhain.startLSB samhain.startGentoo samhain.startLinux samhain.startHPUX \
|
---|
[100] | 1552 | samhain.startIRIX samhain.startMACOSX
|
---|
[1] | 1553 |
|
---|
[414] | 1554 | SCRIPTFILES=redhat_i386.client.spec check_samhain.pl samhainadmin.pl \
|
---|
[550] | 1555 | samhainadmin-gpg.pl samhainadmin-sig.pl \
|
---|
[412] | 1556 | yuleadmin.pl samhain.ebuild samhain.ebuild-light samhain.spec
|
---|
[1] | 1557 |
|
---|
| 1558 | distdir: distfilecheck
|
---|
| 1559 | -rm -f $(top_srcdir)/init/*~
|
---|
[412] | 1560 | -rm -f $(top_srcdir)/sql_init/*~
|
---|
[1] | 1561 | -rm -f $(top_srcdir)/dsys/*~
|
---|
| 1562 | -rm -f $(top_srcdir)/docs/*~
|
---|
| 1563 | -rm -f $(top_srcdir)/include/*~
|
---|
| 1564 | -rm -f $(top_srcdir)/src/*~
|
---|
| 1565 | -rm -f $(top_srcdir)/test/*~
|
---|
| 1566 | -rm -f $(top_srcdir)/scripts/*~
|
---|
| 1567 | (cd $(top_srcdir)/init && rm -f $(INITFILES))
|
---|
| 1568 | -rm -rf $(distdir)
|
---|
| 1569 | mkdir $(distdir)
|
---|
| 1570 | -chmod 777 $(distdir)
|
---|
[481] | 1571 | cp scripts/samhain.spec $(distdir)/samhain.spec; \
|
---|
| 1572 | (cd $(top_srcdir)/scripts && rm -f $(SCRIPTFILES))
|
---|
[1] | 1573 | @for file in $(DISTFILES); do \
|
---|
| 1574 | d=$(top_srcdir); \
|
---|
| 1575 | if test -f $$d/$$file || test -d $$d/$$file; then \
|
---|
| 1576 | cp -pr $$d/$$file $(distdir)/$$file; \
|
---|
| 1577 | fi; \
|
---|
| 1578 | done; \
|
---|
| 1579 | rm -f $(distdir)/scripts/*.spec
|
---|
| 1580 |
|
---|
| 1581 | #
|
---|
| 1582 | # as distdir, but don't copy spec file from scripts
|
---|
| 1583 | #
|
---|
| 1584 | distdirrpm: distfilecheck
|
---|
| 1585 | -rm -rf $(distdir)
|
---|
| 1586 | mkdir $(distdir)
|
---|
| 1587 | -chmod 777 $(distdir)
|
---|
| 1588 | @if test -f ./samhain.spec; then \
|
---|
| 1589 | :; \
|
---|
| 1590 | else \
|
---|
| 1591 | echo "Error: ./samhain.spec not found, please run configure"; \
|
---|
| 1592 | exit 1; \
|
---|
| 1593 | fi
|
---|
| 1594 | @cp -p samhain.spec $(distdir)/samhain.spec; \
|
---|
| 1595 | for file in $(DISTFILES); do \
|
---|
| 1596 | d=$(top_srcdir); \
|
---|
| 1597 | if test -f $$d/$$file || test -d $$d/$$file; then \
|
---|
| 1598 | if test x"$$file" = "xsamhain.spec"; then \
|
---|
| 1599 | :; \
|
---|
| 1600 | else \
|
---|
| 1601 | cp -pr $$d/$$file $(distdir)/$$file; \
|
---|
| 1602 | fi; \
|
---|
| 1603 | fi; \
|
---|
| 1604 | done; \
|
---|
| 1605 | rm -f $(distdir)/scripts/*.spec
|
---|
| 1606 |
|
---|
| 1607 |
|
---|
| 1608 | distfilecheck: $(top_srcdir)/config.h.in $(top_srcdir)/depend.sum
|
---|
| 1609 | @for file in $(DISTFILES); do \
|
---|
| 1610 | d=$(top_srcdir); \
|
---|
| 1611 | if test -f $$d/$$file || test -d $$d/$$file; then \
|
---|
| 1612 | : \
|
---|
| 1613 | else \
|
---|
| 1614 | echo "File not found: $$d/$$file"; \
|
---|
| 1615 | fi; \
|
---|
| 1616 | done
|
---|
| 1617 | @for file in $(SOURCES); do \
|
---|
| 1618 | if test -f $$file; then \
|
---|
| 1619 | : \
|
---|
| 1620 | else \
|
---|
| 1621 | echo "File not found: $$file"; \
|
---|
| 1622 | fi; \
|
---|
| 1623 | done
|
---|
| 1624 |
|
---|
| 1625 |
|
---|
| 1626 | # DO NOT DELETE THIS LINE
|
---|
| 1627 |
|
---|
| 1628 |
|
---|
[550] | 1629 |
|
---|
| 1630 | 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_sig.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] | 1631 | 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] | 1632 | 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] | 1633 | 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
|
---|
| 1634 | 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
|
---|
| 1635 | 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
|
---|
[550] | 1636 | 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_sig.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] | 1637 | 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] | 1638 | sh_tiger1.o: $(srcsrc)/sh_tiger1.c Makefile config_xor.h
|
---|
| 1639 | sh_tiger2.o: $(srcsrc)/sh_tiger2.c Makefile config_xor.h
|
---|
| 1640 | sh_tiger1_64.o: $(srcsrc)/sh_tiger1_64.c Makefile config_xor.h
|
---|
| 1641 | sh_tiger2_64.o: $(srcsrc)/sh_tiger2_64.c Makefile config_xor.h
|
---|
[550] | 1642 | 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_sig.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] | 1643 | 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
|
---|
[550] | 1644 | 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
|
---|
[138] | 1645 | 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] | 1646 | 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
|
---|
[550] | 1647 | 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
|
---|
| 1648 | 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
|
---|
| 1649 | 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
|
---|
[481] | 1650 | 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] | 1651 | 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
|
---|
[550] | 1652 | 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
|
---|
[481] | 1653 | 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] | 1654 | 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] | 1655 | 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] | 1656 | 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] | 1657 | 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
|
---|
[550] | 1658 | sh_sig.o: $(srcsrc)/sh_sig.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_sig.h
|
---|
[1] | 1659 | sh_cat.o: $(srcsrc)/sh_cat.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_error.h $(srcinc)/sh_cat.h
|
---|
[544] | 1660 | 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] | 1661 | 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] | 1662 | 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
|
---|
| 1663 | 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] | 1664 | 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] | 1665 | sh_err_syslog.o: $(srcsrc)/sh_err_syslog.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_error.h
|
---|
[481] | 1666 | 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] | 1667 | bignum.o: $(srcsrc)/bignum.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/bignum.h
|
---|
| 1668 | mkhdr.o: $(srcsrc)/mkhdr.c Makefile config.h
|
---|
| 1669 | samhain_setpwd.o: $(srcsrc)/samhain_setpwd.c Makefile config_xor.h
|
---|
| 1670 | samhain_stealth.o: $(srcsrc)/samhain_stealth.c Makefile config_xor.h
|
---|
| 1671 | encode.o: $(srcsrc)/encode.c Makefile
|
---|
[546] | 1672 | 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] | 1673 | exepack.o: $(srcsrc)/exepack.c Makefile config.h $(srcinc)/minilzo.h $(srcinc)/exepack.data
|
---|
| 1674 | exepack_fill.o: $(srcsrc)/exepack_fill.c Makefile config.h config.h $(srcinc)/minilzo.h
|
---|
| 1675 | exepack_mkdata.o: $(srcsrc)/exepack_mkdata.c Makefile config.h $(srcinc)/minilzo.h
|
---|
| 1676 | minilzo.o: $(srcsrc)/minilzo.c Makefile $(srcinc)/minilzo.h
|
---|
[167] | 1677 | 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] | 1678 | rijndael-alg-fst.o: $(srcsrc)/rijndael-alg-fst.c Makefile config_xor.h $(srcinc)/rijndael-alg-fst.h
|
---|
[230] | 1679 | rijndael-api-fst.o: $(srcsrc)/rijndael-api-fst.c Makefile config_xor.h $(srcinc)/rijndael-api-fst.h
|
---|
[1] | 1680 | zAVLTree.o: $(srcsrc)/zAVLTree.c Makefile $(srcinc)/zAVLTree.h
|
---|
[481] | 1681 | 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] | 1682 | 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] | 1683 | yulectl.o: $(srcsrc)/yulectl.c Makefile config_xor.h
|
---|
| 1684 | 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] | 1685 | 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
|
---|
| 1686 | 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] | 1687 | 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] | 1688 | sh_static.o: $(srcsrc)/sh_static.c Makefile config_xor.h $(srcinc)/sh_pthread.h
|
---|
[550] | 1689 | 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
|
---|
| 1690 | 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
|
---|
[143] | 1691 | 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
|
---|
[550] | 1692 | 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
|
---|
[143] | 1693 | sh_pthread.o: $(srcsrc)/sh_pthread.c Makefile config_xor.h $(srcinc)/sh_pthread.h $(srcinc)/sh_calls.h $(srcinc)/sh_modules.h
|
---|
[169] | 1694 | sh_string.o: $(srcsrc)/sh_string.c Makefile config_xor.h $(srcinc)/sh_string.h $(srcinc)/sh_mem.h $(srcinc)/CuTest.h
|
---|
[183] | 1695 | 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
|
---|
| 1696 | 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
|
---|
[550] | 1697 | 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
|
---|
| 1698 | 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
|
---|
[183] | 1699 | 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] | 1700 | 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
|
---|
[550] | 1701 | 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
|
---|
| 1702 | 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
|
---|
[275] | 1703 | 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
|
---|
[550] | 1704 | dnmalloc.o: $(srcsrc)/dnmalloc.c Makefile config.h
|
---|
[367] | 1705 | 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] | 1706 | 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
|
---|
[294] | 1707 | 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
|
---|
| 1708 | 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] | 1709 | 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] | 1710 | 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
|
---|
| 1711 | 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] | 1712 | sh_sub.o: $(srcsrc)/sh_sub.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_pthread.h
|
---|
[481] | 1713 | 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] | 1714 | 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] | 1715 | sh_guid.o: $(srcsrc)/sh_guid.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_utils.h $(srcinc)/CuTest.h
|
---|
[550] | 1716 | sh_sem.o: $(srcsrc)/sh_sem.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_sem.h $(srcinc)/sh_error_min.h
|
---|
| 1717 | 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_sig.h $(srcinc)/sh_tiger.h $(srcinc)/sh_xfer.h $(srcinc)/sh_pthread.h $(srcinc)/sh_socket.h $(srcinc)/sh_files.h $(srcinc)/zAVLTree.h
|
---|
[481] | 1718 | 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
|
---|
| 1719 | 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
|
---|
[534] | 1720 | sh_subuid.o: $(srcsrc)/sh_subuid.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_unix.h
|
---|
[550] | 1721 | t-test1.o: $(srcsrc)/t-test1.c Makefile config.h $(srcinc)/malloc.h
|
---|