File: Makefile

package info (click to toggle)
nessus-plugins 1.0.10-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 4,924 kB
  • ctags: 408
  • sloc: sh: 7,838; ansic: 3,415; makefile: 233
file content (49 lines) | stat: -rw-r--r-- 1,630 bytes parent folder | download
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
include nessus.tmpl

all : mkplugins

mkplugins :
	cd plugins && ./make_world
	
clean : 
	cd plugins && ./make_world clean

install-updater :
	test -d ${sbindir} || $(INSTALL_DIR) -m 755 ${sbindir}
	$(INSTALL) -o $(installuser) -m 0755 nessus-update-plugins ${sbindir}/
	@test -d ${mandir}/man8 || $(INSTALL_DIR) ${mandir}/man8
	$(INSTALL) -o $(installuser) -m 0644 docs/nessus-update-plugins.8 ${mandir}/man8
	
	
install : all $(INSTALL_UPDATER)
	$(INSTALL_DIR) -m 755 ${libdir}/nessus
	$(INSTALL_DIR) -m 755 ${libdir}/nessus/plugins

	for scripts in scripts/*.nasl; do \
	$(INSTALL) -o $(installuser) -m 644 $$scripts ${libdir}/nessus/plugins; \
	done
	
	for plugins in bin/*.nes; do \
	$(INSTALL) -o $(installuser) -m 644 $$plugins ${libdir}/nessus/plugins; \
	done
	
	$(INSTALL_DIR) -m 755 ${libdir}/nessus/plugins_factory
	$(INSTALL) -m 644 pf/Makefile ${libdir}/nessus/plugins_factory/
	$(INSTALL) -m 644 libtool ${libdir}/nessus/plugins_factory/
	$(INSTALL) -m 644 nessus.tmpl ${libdir}/nessus/plugins_factory/
	test -d ${prefix}/bin || $(INSTALL_DIR) -m 755 ${prefix}/bin
	$(INSTALL) -m 755 pf/nessus-build ${prefix}/bin/
	
	test -d ${sysconfdir}/nessus || $(INSTALL_DIR) -m 755 ${sysconfdir}/nessus
	
	$(INSTALL) -m 644 plugins/queso/queso.conf ${sysconfdir}/nessus/
	
	$(INSTALL) -m 644 plugins/accounts/accounts.txt ${sysconfdir}/nessus/
	
	test -d ${mandir}/man1 || $(INSTALL_DIR) -m 755 ${mandir}/man1
	$(INSTALL) -m 644 pf/nessus-build.1 ${mandir}/man1

distclean : clean
	rm -f libtool config.cache config.status config.log nessus.tmpl nessus-update-plugins
	rm -f bin/*.nes pf/nessus-build plugins/queso/queso.h