head	1.2;
access;
symbols;
locks; strict;
comment	@# @;


1.2
date	2003.08.25.12.13.36;	author edwin;	state dead;
branches;
next	1.1;

1.1
date	2003.06.25.06.50.53;	author daichi;	state Exp;
branches;
next	;


desc
@@


1.2
log
@[update] www/suphp: update to 0.3 and fix a security leak introduced with previous patch

	- update to 0.3
	- add a workaround to don't use getpwuid to performs check for apache user (since 4.x
	  doesn't support getpwuid_r).
	- use %%DOCSDIR%%

PR:		ports/55952
Submitted by:	Clement Laforet <sheepkiller@@cultdeadsheep.org>
@
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
@


1.1
log
@Add suphp 0.2.2,
suPHP is a combination which provides a wrapper
for PHP.

PR:		42790
Submitted by:	Clement Laforet <sheepkiller@@cultdeadsheep.org>
@
text
@@

