From 28ed69b4c8b4710a827600e02eba13895a0fe3e9 Mon Sep 17 00:00:00 2001 From: Rong-En Fan Date: Tue, 14 Aug 2007 10:38:52 +0000 Subject: [PATCH] - Update to 1.07.3 - Add some knobs to change sbox settings, like UID_MIN, GID_MIN, SAFE_PATH, and LOGFILE. These values are not the same as distribution default, but the same as bsd.apache.mk. - Remove dependency on Apache as this is only a CGI. This will fix brokenness for sysutils/dtc (conflict dependency). - Refine COMMENT from author's version of this port - Add WWW entry --- www/sbox-dtc/Makefile | 23 +++++++++++++++-------- www/sbox-dtc/distinfo | 6 +++--- www/sbox-dtc/pkg-descr | 2 ++ 3 files changed, 20 insertions(+), 11 deletions(-) diff --git a/www/sbox-dtc/Makefile b/www/sbox-dtc/Makefile index 999a0849d2a2..980f0a387e1c 100644 --- a/www/sbox-dtc/Makefile +++ b/www/sbox-dtc/Makefile @@ -6,22 +6,29 @@ # PORTNAME= sbox-dtc -PORTVERSION= 1.07.1 +PORTVERSION= 1.07.3 CATEGORIES= www MASTER_SITES= ftp://ftp.gplhost.com/pub/sbox-dtc/bsd/ MAINTAINER= ports@FreeBSD.org -COMMENT= A safe CGI wrapper +COMMENT= A CGI wrapper for Web site hosting services to safely grant CGI + +SBOX_UIDMIN?= 1000 +SBOX_GIDMIN?= 1000 +SBOX_SAFEPATH?= /bin:/usr/bin:${PREFIX}/bin:${LOCALBASE}/bin +SBOX_LOGFILE?= /var/log/httpd-suexec.log + +CFLAGS+= -DWEB_USER='\"${WWWOWN}\"' \ + -DWEB_GROUP='\"${WWWGRP}\"' \ + -DUID_MIN='\"${SBOX_UIDMIN}\"' \ + -DGID_MIN='\"${SBOX_GIDMIN}\"' \ + -DSAFE_PATH='\"${SBOX_SAFEPATH}\"' \ + -DLOG_FILE='\"${SBOX_LOGFILE}\"' -USE_APACHE= yes -CFLAGS+= -DWEB_GROUP='\"nobody\"' MAKE_ARGS= CC="${CC}" COPTS="${CFLAGS}" \ INSTALL_DIRECTORY=${PREFIX}/www/cgi-bin PLIST_FILES= www/cgi-bin/sbox - -.if defined(WITH_APACHE2) -IGNORE= Untested -.endif +PLIST_DIRS= www/cgi-bin .include diff --git a/www/sbox-dtc/distinfo b/www/sbox-dtc/distinfo index cf4fdaf4992d..058054d54442 100644 --- a/www/sbox-dtc/distinfo +++ b/www/sbox-dtc/distinfo @@ -1,3 +1,3 @@ -MD5 (sbox-dtc-1.07.1.tar.gz) = ebf17b10d91a9234e90e693fa925b62e -SHA256 (sbox-dtc-1.07.1.tar.gz) = dc4e7952ac99e11747b8e4af170c5bedfe2980c7ea3f4ead6f8fcd2c77dbc44d -SIZE (sbox-dtc-1.07.1.tar.gz) = 34397 +MD5 (sbox-dtc-1.07.3.tar.gz) = 21497ce80849549aebd643866dedbcf0 +SHA256 (sbox-dtc-1.07.3.tar.gz) = 717acfacab87b3f2f3ff6828de0098f1af1f596be0dad048c30f53d9ed0ab8b5 +SIZE (sbox-dtc-1.07.3.tar.gz) = 34599 diff --git a/www/sbox-dtc/pkg-descr b/www/sbox-dtc/pkg-descr index a4a0044e0bc4..1f9a20ad6952 100644 --- a/www/sbox-dtc/pkg-descr +++ b/www/sbox-dtc/pkg-descr @@ -8,3 +8,5 @@ scripts in a chroot'ed shell restricted to the author's home directories. sbox is compatible with all Web servers running under BSD-derived flavors of Unix. You can use and redistribute it freely. + +WWW: http://www.gplhost.com/software-sboxdtc.html