freebsd-ports/www/sbox-dtc/Makefile
Rene Ladan db18448c1d Make the script runnable again by correctly passing UID_MIN and GID_MIN during
build.
Bump PORTREVISION

PR:		ports/147779
Submitted by:	Serg [mail_of_sergey mail.ru]
Approved by:	maintainer, tabthorpe (mentor)
Feature safe:	yes
2010-06-13 19:53:32 +00:00

40 lines
948 B
Makefile

# Ports collection makefile for: dtc
# Date created: 12 January 2005
# Whom: Thomas Goirand
#
# $FreeBSD$
#
PORTNAME= sbox
PORTVERSION= 1.10
PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= http://files.bsdroot.lv/FreeBSD/distfiles/
MAINTAINER= aldis@BSDroot.lv
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/sbox.log
CFLAGS+= -DWEB_USER='\"${WWWOWN}\"' \
-DWEB_GROUP='\"${WWWGRP}\"' \
-DUID_MIN=${SBOX_UIDMIN} \
-DGID_MIN=${SBOX_GIDMIN} \
-DSAFE_PATH='\"${SBOX_SAFEPATH}\"' \
-DLOG_FILE='\"${SBOX_LOGFILE}\"'
MAKE_ARGS= CC="${CC}" COPTS="${CFLAGS}" \
INSTALL_DIRECTORY=${PREFIX}/www/cgi-bin
PLIST_FILES= www/cgi-bin/sbox
PLIST_DIRS= www/cgi-bin
PATCH_STRIP= -p1
pre-su-install:
${MKDIR} ${PREFIX}/www/cgi-bin
.include <bsd.port.mk>