forked from moonchitta/anonsurf-ubuntu
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
executable file
·35 lines (32 loc) · 1.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
all:
clean:
remove:
rm $(DESTDIR)/etc/anonsurf/onion.pac
rm $(DESTDIR)/etc/tor/onion.pac
rm $(DESTDIR)/etc/anonsurf/torrc
rm $(DESTDIR)/usr/bin/anonsurf
rm $(DESTDIR)/usr/bin/exitnode-selector
rm $(DESTDIR)/etc/anonsurf/exitnodes.csv
rm $(DESTDIR)/etc/anonsurf/resolv.conf.opennic
rm $(DESTDIR)/usr/bin/anon
install:
mkdir -p $(DESTDIR)/etc/anonsurf/
mkdir -p $(DESTDIR)/etc/tor/
mkdir -p $(DESTDIR)/usr/bin/
mkdir -p $(DESTDIR)/usr/share/applications/
mkdir -p $(DESTDIR)/usr/share/parrot-menu/applications/
cp onion.pac $(DESTDIR)/etc/anonsurf/onion.pac
ln -s /etc/anonsurf/onion.pac $(DESTDIR)/etc/tor/onion.pac
cp torrc $(DESTDIR)/etc/anonsurf/torrc
cp anonsurf.sh $(DESTDIR)/usr/bin/anonsurf
cp exitnode-selector $(DESTDIR)/usr/bin/exitnode-selector
cp exitnodes.csv $(DESTDIR)/etc/anonsurf/exitnodes.csv
cp resolv.conf.opennic $(DESTDIR)/etc/anonsurf/resolv.conf.opennic
chown root:root $(DESTDIR)/usr/bin/anonsurf
chown root:root $(DESTDIR)/usr/bin/exitnode-selector
chown root:root $(DESTDIR)/etc/anonsurf/resolv.conf.opennic
chmod 775 $(DESTDIR)/usr/bin/anonsurf
chmod 775 $(DESTDIR)/usr/bin/exitnode-selector
ln -s /usr/bin/anonsurf $(DESTDIR)/usr/bin/anon
cp -rf launchers/* $(DESTDIR)/usr/share/applications/
chown root:root $(DESTDIR)/etc/anonsurf -R