File: Makefile

package info (click to toggle)
logwatch 5.2.2-5
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,112 kB
  • ctags: 42
  • sloc: perl: 9,032; sh: 65; makefile: 54
file content (28 lines) | stat: -rw-r--r-- 596 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
LOGDIR=$(DESTDIR)/etc/logwatch
SHAREDIR=$(DESTDIR)/usr/share/logwatch

all::
	#Nothing to do

install::
	mkdir -p $(LOGDIR)
	cp -R conf/ $(LOGDIR)
	
	mkdir -p $(SHAREDIR)
	cp -R scripts/ $(SHAREDIR)
	chmod -R 0755 $(SHAREDIR)/scripts
	cp -R lib/ $(SHAREDIR)
	
	mkdir -p $(DESTDIR)/usr/sbin

	#Ensure all configuration files have 0644
	find $(DESTDIR)/etc/logwatch/conf -name "*.conf" -exec chmod -R 0644 {} \;


#	ln -s $(SHAREDIR)/scripts/logwatch.pl $(DESTDIR)/usr/bin/logwatch
#	mkdir -p $(DESTDIR)/usr/share/man/man8/
#	cp logwatch.8 $(DESTDIR)/usr/share/man/man8/

clean:: 
	#Nothing to do