-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (29 loc) · 785 Bytes
/
Makefile
File metadata and controls
34 lines (29 loc) · 785 Bytes
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
DNS_HOME = $(DESTDIR)/opt/eblocker-dns
LOGROTATED = $(DESTDIR)/etc/logrotate.d
LIMITSD = $(DESTDIR)/etc/security/limits.d
SYSTEMD = $(DESTDIR)/lib/systemd/system
.PHONY: test
build:
bundle package --all
test:
rake test
install:
mkdir -p $(SYSTEMD)
cp etc/systemd/eblocker-dns.service $(SYSTEMD)
mkdir -p $(LIMITSD)
cp etc/security/limits.d/eblocker-dns.conf $(LIMITSD)
mkdir -p $(LOGROTATED)
cp etc/logrotate.d/eblocker-dns $(LOGROTATED)
mkdir -p $(DNS_HOME)
cp -r .bundle $(DNS_HOME)
cp -r bin $(DNS_HOME)
cp eblocker-dns.gemspec $(DNS_HOME)
cp Gemfile $(DNS_HOME)
cp Gemfile.lock $(DNS_HOME)
cp -r lib $(DNS_HOME)
mkdir -p $(DNS_HOME)/log
cp -r README.md $(DNS_HOME)
mkdir -p $(DNS_HOME)/run
cp -r vendor $(DNS_HOME)
package: test
dpkg-buildpackage -us -uc