View | Details | Raw Unified | Return to bug 189954
Collapse All | Expand All

(-)b/www/zerowait-httpd/Makefile (-1 lines)
Lines 21-25 HAS_CONFIGURE= yes Link Here
21
CONFIGURE_ARGS=	--prefix=${PREFIX} --owner=${WWWOWN} --group=${WWWGRP}
21
CONFIGURE_ARGS=	--prefix=${PREFIX} --owner=${WWWOWN} --group=${WWWGRP}
22
PLIST_SUB=	WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
22
PLIST_SUB=	WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
23
23
24
NO_STAGE=	yes
25
.include <bsd.port.mk>
24
.include <bsd.port.mk>
(-)b/www/zerowait-httpd/files/patch-Makefile (-10 / +11 lines)
Lines 1-5 Link Here
1
--- Makefile.orig	2008-03-16 00:44:45.000000000 +0100
1
--- Makefile.orig	2008-03-15 16:44:45.000000000 -0700
2
+++ Makefile	2008-09-26 19:44:38.000000000 +0200
2
+++ Makefile	2014-05-19 08:49:23.000000000 -0700
3
@@ -13,13 +13,14 @@
3
@@ -13,13 +13,14 @@
4
 	rm -f *~ src/*~
4
 	rm -f *~ src/*~
5
 
5
 
Lines 11-23 Link Here
11
-	install -b -m 644 docs/*.txt $(ROOT)/docs
11
-	install -b -m 644 docs/*.txt $(ROOT)/docs
12
-	install -b bin/update-countries.sh src/httpd/convert-ranges src/httpd/convert-geoip $(ROOT)/bin
12
-	install -b bin/update-countries.sh src/httpd/convert-ranges src/httpd/convert-geoip $(ROOT)/bin
13
-	install -b -m 6755 -o $(OWNER) -g $(GROUP) src/httpd/0W-httpd $(ROOT)/bin
13
-	install -b -m 6755 -o $(OWNER) -g $(GROUP) src/httpd/0W-httpd $(ROOT)/bin
14
+	test -d $(ROOT)/0W-httpd || (mkdir $(ROOT)/0W-httpd)
14
+	test -d $(DESTDIR)$(ROOT)/0W-httpd || (mkdir $(DESTDIR)$(ROOT)/0W-httpd)
15
+	install -d $(ROOT)/0W-httpd/data $(ROOT)/0W-httpd/logs $(ROOT)/0W-httpd/pids
15
+	install -d $(DESTDIR)$(ROOT)/0W-httpd/data $(DESTDIR)$(ROOT)/0W-httpd/logs $(DESTDIR)$(ROOT)/0W-httpd/pids
16
+	install -m 755 bin/update-countries.sh src/httpd/convert-ranges src/httpd/convert-geoip $(ROOT)/bin
16
+	install -m 755 bin/update-countries.sh src/httpd/convert-ranges src/httpd/convert-geoip $(DESTDIR)$(ROOT)/bin
17
+	install -m 6755 -o $(OWNER) -g $(GROUP) src/httpd/0W-httpd $(ROOT)/sbin
17
+	install -m 6755 -o $(OWNER) -g $(GROUP) src/httpd/0W-httpd $(DESTDIR)$(ROOT)/sbin
18
+	test -d $(ROOT)/etc/0W-httpd || (mkdir $(ROOT)/etc/0W-httpd && cd conf/ && \
18
+	test -d $(DESTDIR)$(ROOT)/etc/0W-httpd || (mkdir $(DESTDIR)$(ROOT)/etc/0W-httpd && cd conf/ && \
19
+		cp countries* $(ROOT)/etc/0W-httpd/ && \
19
+		cp countries* $(DESTDIR)$(ROOT)/etc/0W-httpd/ && \
20
+		cp httpd.conf $(ROOT)/etc/0W-httpd/httpd.conf.sample )
20
+		cp httpd.conf $(DESTDIR)$(ROOT)/etc/0W-httpd/httpd.conf.sample )
21
+	chown -R $(OWNER):$(GROUP) $(ROOT)/sbin/0W-httpd $(ROOT)/0W-httpd/logs $(ROOT)/0W-httpd/data $(ROOT)/0W-httpd/pids
21
+	chown -R $(OWNER):$(GROUP) $(DESTDIR)$(ROOT)/sbin/0W-httpd $(DESTDIR)$(ROOT)/0W-httpd/logs $(DESTDIR)$(ROOT)/0W-httpd/data $(DESTDIR)$(ROOT)/0W-httpd/pids
22
 	@echo
22
 	@echo
23
 	@echo "Installed, run as root: $(ROOT)/bin/0W-httpd [-h]"
23
 	@echo "Installed, run as root: $(ROOT)/bin/0W-httpd [-h]"
24
 
(-)b/www/zerowait-httpd/pkg-plist (+1 lines)
Lines 16-19 sbin/0W-httpd Link Here
16
@dirrmtry etc/0W-httpd
16
@dirrmtry etc/0W-httpd
17
@dirrm 0W-httpd/pids
17
@dirrm 0W-httpd/pids
18
@dirrm 0W-httpd/data
18
@dirrm 0W-httpd/data
19
@dirrmtry 0W-httpd/logs
19
@dirrm 0W-httpd
20
@dirrm 0W-httpd

Return to bug 189954