-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
58 lines (44 loc) · 2.26 KB
/
Makefile
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
51
52
53
54
55
56
57
58
INSTALL_DIR=/etc/privoxy
VERSION=`cat VERSION`
PACKAGE_NAME=freedombox-privoxy
DEBDIR=`ls -d Debian/privoxy*| xargs | sed "s/ .*//"`
all: privoxy/easyprivacy.action privoxy/easylist.action privoxy/https_everywhere.action changelog
easyprivacy.txt:
@wget https://easylist-downloads.adblockplus.org/easyprivacy.txt
easylist.txt:
@wget https://easylist-downloads.adblockplus.org/easylist.txt
privoxy/easyprivacy.action: easyprivacy.txt abp_import.py
@./abp_import.py easyprivacy.txt > privoxy/easyprivacy.action
privoxy/easylist.action: easylist.txt abp_import.py
@./abp_import.py easylist.txt > privoxy/easylist.action
vendor:
@mkdir -p vendor
vendor/https-everywhere-release:
@mkdir -p vendor/https-everywhere-release
@rm -rf vendor/https_everywhere-release
@cd vendor/https-everywhere-release; wget https://www.eff.org/files/https-everywhere-2.1.xpi
@cd vendor/https-everywhere-release; unzip https-everywhere-2.1.xpi
vendor/https-everywhere:
@mkdir -p vendor
@rm -rf vendor/https_everywhere
@cd vendor; git clone git://git.torproject.org/https-everywhere.git https-everywhere
privoxy/https_everywhere.action: vendor/https-everywhere-release https_everywhere_import.py
@./https_everywhere_import.py > privoxy/https_everywhere.action
vendor/git2changelog/git2changelog.py:
@mkdir -p vendor
@rm -rf vendor/git2changelog
@cd vendor; git clone git://github.com/jvasile/git2changelog.git git2changelog
# Note, this is the changelog for freedombox-privoxy, not for the debian package
changelog: .git/objects vendor/git2changelog/git2changelog.py
@vendor/git2changelog/git2changelog.py freedombox-privoxy > changelog
deb: debian
debian: privoxy/easyprivacy.action privoxy/https_everywhere.action privoxy/easylist.action changelog
./make_deb.sh
cd `find Debian -maxdepth 1 -name "freedombox*" -type d`; debuild -us -uc #[email protected]
install: all
mkdir -p $(INSTALL_DIR)
cd privoxy; cp config default.filter match-all.action default.action https_everywhere.action easyprivacy.action easylist.action $(INSTALL_DIR)
/etc/init.d/privoxy restart
clean:
@rm -rf vendor/https-everywhere 1000_config.dpatch Debian/privoxy* Debian/freedombox-privoxy* vendor/git2changelog
@cd privoxy; rm -rf easyprivacy.action easyprivacy.txt https_everywhere.action easylist.action easylist.txt