freebsd-ports/www/suphp/files/patch-Makefile
Daichi GOTO 3b92dfd33d Add suphp 0.2.2,
suPHP is a combination which provides a wrapper
for PHP.

PR:		42790
Submitted by:	Clement Laforet <sheepkiller@cultdeadsheep.org>
2003-06-25 06:50:53 +00:00

33 lines
646 B
Text

--- Makefile.orig Wed Oct 23 22:16:50 2002
+++ Makefile Tue Nov 12 12:10:58 2002
@@ -2,9 +2,9 @@
## Makefile for suPHP ##
##############################################
-SUPHP_INSTALL = /usr/sbin/suphp
+SUPHP_INSTALL = $(PREFIX)/sbin/suphp
-CC = gcc
+#CC = gcc
CFLAGS = -c -Wall
LD = gcc
LDFLAGS = -o
@@ -31,11 +31,7 @@
touch suphp.h
install: suphp
- if [ $$UID = 0 ]; then \
- cp suphp ${SUPHP_INSTALL}; \
- else \
- echo -e "You need to be root to install suPHP."; \
- fi
+ $(INSTALL) -o root -g wheel -m 4755 suphp ${SUPHP_INSTALL}
clean:
rm *.o
@@ -43,3 +39,5 @@
rmbackups:
rm *~
+
+all: suphp