-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
26 lines (23 loc) · 1.04 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
prefix=/usr/local
myip:
install: myip
mkdir -p $(prefix)/www/myip/www/dns/ptr
mkdir -p $(prefix)/www/myip/www/ico
mkdir -p $(prefix)/www/myip/src/fyrkat/myip/generator
install -m 0644 www/*.php $(prefix)/www/myip/www
install -m 0644 www/*.png $(prefix)/www/myip/www
install -m 0644 www/*.txt $(prefix)/www/myip/www
install -m 0644 www/dns/*.php $(prefix)/www/myip/www/dns
install -m 0644 www/dns/ptr/*.php $(prefix)/www/myip/www/dns/ptr
install -m 0644 www/ico/*.png $(prefix)/www/myip/www/ico
install -m 0644 src/*.php $(prefix)/www/myip/src
install -m 0644 src/fyrkat/myip/*.php $(prefix)/www/myip/src/fyrkat/myip
install -m 0644 src/fyrkat/myip/generator/*.php $(prefix)/www/myip/src/fyrkat/myip/generator
freebsdrc: install
pkg install -y lighttpd php80-zlib
install -m 0644 dist/etc/lighttpd/myip.conf $(prefix)/etc/lighttpd
sysrc lighttpd_enable="YES"
sysrc lighttpd_instances+="myip"
sysrc lighttpd_myip_conf="/usr/local/etc/lighttpd/myip.conf"
sysrc lighttpd_myip_pidfile="/var/run/lighttpd_myip.pid"
sysrc local_unbound_enable=yes