aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorantoine <antoine@FreeBSD.org>2014-10-24 03:55:13 +0800
committerantoine <antoine@FreeBSD.org>2014-10-24 03:55:13 +0800
commit3b3ee6a150e78cae87a2208e66c30d4b04a5b875 (patch)
tree39bd3aa24b93fdcdeb52734c4ae0d12b0a966509
parent482fa114616898aebea4d06d65092fbf6620f1e6 (diff)
downloadfreebsd-ports-gnome-3b3ee6a150e78cae87a2208e66c30d4b04a5b875.tar.gz
freebsd-ports-gnome-3b3ee6a150e78cae87a2208e66c30d4b04a5b875.tar.zst
freebsd-ports-gnome-3b3ee6a150e78cae87a2208e66c30d4b04a5b875.zip
Allow building as a regular user
-rw-r--r--www/zerowait-httpd/files/patch-src_httpd_Makefile19
-rw-r--r--www/zerowait-httpd/pkg-plist8
2 files changed, 17 insertions, 10 deletions
diff --git a/www/zerowait-httpd/files/patch-src_httpd_Makefile b/www/zerowait-httpd/files/patch-src_httpd_Makefile
index 134147c948cb..027c883505da 100644
--- a/www/zerowait-httpd/files/patch-src_httpd_Makefile
+++ b/www/zerowait-httpd/files/patch-src_httpd_Makefile
@@ -1,16 +1,25 @@
---- src/httpd/Makefile.orig Sat Sep 16 08:17:17 2006
-+++ src/httpd/Makefile Tue Dec 5 15:10:18 2006
-@@ -18,11 +18,11 @@
+--- src/httpd/Makefile.orig 2006-09-16 12:17:17 UTC
++++ src/httpd/Makefile
+@@ -18,12 +18,10 @@
$(CC) $(LDFLAGS) $(OBJS) $(COMMON) built.o -o $@
convert-ranges: $(COMMON) Makefile ../Rules.make convert-ranges.c
- $(CC) $(CFLAGS) $(LDFLAGS) $@.c $(COMMON) -o $@
+- chmod +s $@
+ $(CC) $(CFLAGS) -I.. $(LDFLAGS) $@.c $(COMMON) -o $@
- chmod +s $@
convert-geoip: $(COMMON) Makefile ../Rules.make convert-geoip.c
- $(CC) $(CFLAGS) $(LDFLAGS) $@.c $(COMMON) -o $@
+- chmod +s $@
+ $(CC) $(CFLAGS) -I.. $(LDFLAGS) $@.c $(COMMON) -o $@
- chmod +s $@
$(COMMON):
+ cd ../common &&$(MAKE)
+@@ -31,7 +29,6 @@
+ install: 0W-httpd
+ mv ../../bin/0W-httpd ../../bin/0W-httpd~
+ cp 0W-httpd ../../bin/0W-httpd
+- chmod +s ../../bin/0W-httpd
+
+ clean:
+ rm -f $(BIN) *.o *~
diff --git a/www/zerowait-httpd/pkg-plist b/www/zerowait-httpd/pkg-plist
index 6f7e65e13da6..5aaa6d508d42 100644
--- a/www/zerowait-httpd/pkg-plist
+++ b/www/zerowait-httpd/pkg-plist
@@ -6,8 +6,6 @@ etc/0W-httpd/countries.ips
etc/0W-httpd/countries.rus
@sample etc/0W-httpd/httpd.conf.sample
@(%%WWWOWN%%,%%WWWGRP%%,6755) sbin/0W-httpd
-@dirrmtry(%%WWWOWN%%,%%WWWGRP%%,) 0W-httpd/pids
-@dirrmtry(%%WWWOWN%%,%%WWWGRP%%,) 0W-httpd/data
-@dirrmtry(%%WWWOWN%%,%%WWWGRP%%,) 0W-httpd/logs
-@dirrmtry etc/0W-httpd
-@dirrmtry 0W-httpd
+@dir(%%WWWOWN%%,%%WWWGRP%%,) 0W-httpd/pids
+@dir(%%WWWOWN%%,%%WWWGRP%%,) 0W-httpd/data
+@dir(%%WWWOWN%%,%%WWWGRP%%,) 0W-httpd/logs