File: Makefile

package info (click to toggle)
checksecurity 2.0.16%2Bnmu3
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 260 kB
  • sloc: sh: 285; perl: 202; makefile: 74
file content (50 lines) | stat: -rw-r--r-- 1,644 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#
#  This is the makefile for the Debian checksecurity package.
#
#  It installs the software in $(PREFIX)/usr/sbin, etc.
#


PREFIX=
CONFDIR=$(PREFIX)/etc
PLUGINDIR=$(PREFIX)/usr/share/checksecurity


install: clean
	install -d $(PREFIX)/usr/sbin
	install -d $(PREFIX)/usr/share/man/man8
	install -d $(CONFDIR)
	install -d $(CONFDIR)/checksecurity
	install -d $(PLUGINDIR)
	cp bin/checksecurity $(PREFIX)/usr/sbin
	chown root:root $(PREFIX)/usr/sbin/checksecurity
	chmod 755 $(PREFIX)/usr/sbin/checksecurity 
	cp man/checksecurity.8 $(PREFIX)/usr/share/man/man8
	cp man/check-diskfree.8 $(PREFIX)/usr/share/man/man8
	cp man/check-passwd.8 $(PREFIX)/usr/share/man/man8
	cp man/check-setuid.8 $(PREFIX)/usr/share/man/man8
	cp etc/check-setuid.conf $(CONFDIR)/checksecurity
	cp etc/check-socket.conf $(CONFDIR)/checksecurity
	chmod 744 $(CONFDIR)/checksecurity/check-setuid.conf
	chmod 744 $(CONFDIR)/checksecurity/check-socket.conf
	cp etc/check-passwd.conf $(CONFDIR)/checksecurity
	chmod 744 $(CONFDIR)/checksecurity/check-passwd.conf
	cp etc/check-diskfree.conf $(CONFDIR)/checksecurity
	chmod 744 $(CONFDIR)/checksecurity/check-diskfree.conf
	cp etc/global-checksecurity.conf $(CONFDIR)/checksecurity.conf
	cp plugins/check-* $(PLUGINDIR)
	chown root:root $(PLUGINDIR)/check-*
	chmod 755 $(PLUGINDIR)/check-*
	chmod -x $(CONFDIR)/checksecurity/*.conf

uninstall:
	rm -f $(PREFIX)/usr/sbin/checksecurity
	rm -f $(PREFIX)/usr/share/man/man8/checksecurity.conf.8
	rm -f $(CONFDIR)/checksecurity.conf
	rm -rf $(CONFDIR)/checksecurity
	rm -rf $(PLUGINDIR)

clean:
	-find . -name '*~' -print | xargs rm -f
	-rm -f build-stamp
	-rm -f debian/files