X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=debian%2Frules;h=032ac9ab2128f91f70ac5a9f79dea56590709f9e;hb=280230a44cb9f9872652b6bb80de45a27af411f4;hp=13a2f2b90cb6430b21a916c2843df63d362f8857;hpb=b71bebed41caaa112ba103173ad614378d66a9e8;p=ossec-hids.git diff --git a/debian/rules b/debian/rules index 13a2f2b..032ac9a 100755 --- a/debian/rules +++ b/debian/rules @@ -11,6 +11,15 @@ DESTDIR = $(PKGDIR)/var/ossec # OSSEC INSTALL SUBDIRS SUBDIRS = .ssh active-response active-response/bin agentless bin etc etc/shared logs logs/alerts logs/archives logs/firewall queue queue/agent-info queue/agentless queue/alerts queue/diff queue/fts queue/ossec queue/rids queue/rootcheck queue/syscheck rules stats tmp var var/run +###################### hardening ################# + +include /usr/share/hardening-includes/hardening.make + +CFLAGS=$(shell dpkg-buildflags --get CFLAGS) +LDFLAGS=$(shell dpkg-buildflags --get LDFLAGS) +CFLAGS+=$(HARDENING_CFLAGS) +LDFLAGS+=$(HARDENING_LDFLAGS) + ###################### main ###################### build: build-stamp @@ -22,6 +31,9 @@ build-stamp: touch build-stamp +build-arch: build +build-indep: build + clean: dh_testdir dh_testroot @@ -36,6 +48,7 @@ clean: $(SRCDIR)/analysisd/ossec-logtest \ $(SRCDIR)/isbigendian \ $(SRCDIR)/isbigendian.c \ + $(SRCDIR)/analysisd/ossec-makelists rm -rf $(CURDIR)/bin dh_clean @@ -43,7 +56,7 @@ clean: install: build dh_testdir dh_testroot - dh_clean -k + dh_prep dh_installdirs # ugly directory creation @@ -93,7 +106,7 @@ install: build chmod 550 $(DESTDIR)/bin/* chmod 440 $(DESTDIR)/etc/ossec.conf - # fixups: no need for execute bits on files there + # fixups: no need for execute bits on files there find $(DESTDIR)/rules -type f -exec chmod ugo-x '{}' ';' find $(DESTDIR)/etc -type f -exec chmod ugo-x '{}' ';' @@ -115,6 +128,10 @@ install: build # Build architecture-independent files here. binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install dh_testdir dh_testroot dh_installchangelogs @@ -131,6 +148,7 @@ binary-indep: build install # dh_installcron # dh_installinfo # dh_undocumented + dh_lintian dh_installman dh_link dh_compress @@ -138,13 +156,10 @@ binary-indep: build install # dh_perl # dh_python dh_installdeb + dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb -# Build architecture-dependent files here. -binary-arch: build install -# We have nothing to do by default. - binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install