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