freebsd-ports/www/zerowait-httpd/files/patch-Makefile
Frank J. Laszlo 8e2cdea0ce Update to version 0.7p
Submitted by:	self (maintainer)
2006-12-05 20:14:29 +00:00

24 lines
1.3 KiB
Text

--- Makefile.orig Tue Dec 5 15:06:00 2006
+++ Makefile Tue Dec 5 15:07:24 2006
@@ -13,13 +13,14 @@
rm -f *~ src/*~
install: compile
- install -d $(ROOT)/bin $(ROOT)/conf $(ROOT)/docs
- install -d -o $(OWNER) -g $(GROUP) $(ROOT)/logs $(ROOT)/data/pids $(ROOT)/data/httpd
- test -f $(ROOT)/conf/httpd.conf || install -m 644 conf/httpd.conf* $(ROOT)/conf
- install -b -m 644 conf/countries* conf/regions* $(ROOT)/conf
- install -b -m 644 docs/crontab docs/httpd.ru.txt $(ROOT)/docs
- install -b bin/update-countries.sh src/httpd/convert-ranges src/httpd/convert-geoip $(ROOT)/bin
- install -b -m 6755 -o $(OWNER) -g $(GROUP) src/httpd/0W-httpd $(ROOT)/bin
+ test -d $(ROOT)/0W-httpd || (mkdir $(ROOT)/0W-httpd)
+ install -d $(ROOT)/0W-httpd/data $(ROOT)/0W-httpd/logs $(ROOT)/0W-httpd/pids
+ install -m 0755 bin/update-countries.sh src/httpd/convert-ranges src/httpd/convert-geoip $(ROOT)/bin
+ install -m 6755 -o $(OWNER) -g $(GROUP) src/httpd/0W-httpd $(ROOT)/sbin
+ test -d $(ROOT)/etc/0W-httpd || (mkdir $(ROOT)/etc/0W-httpd && cd conf/ && \
+ cp countries* $(ROOT)/etc/0W-httpd/ && \
+ cp httpd.conf $(ROOT)/etc/0W-httpd/httpd.conf.sample )
+ chown -R $(OWNER):$(GROUP) $(ROOT)/sbin/0W-httpd $(ROOT)/0W-httpd/logs $(ROOT)/0W-httpd/data $(ROOT)/0W-httpd/pids
@echo
@echo "Installed, run as root: $(ROOT)/bin/0W-httpd [-h]"