1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-21 04:06:46 +00:00
freebsd-ports/www/sbox-dtc/Makefile
Wesley Shields 0c874862b4 Reassign to the pool and trim headers.
Submitted by:	Aldis Berjoza <graudeejs@gmail.com>
2012-12-20 03:01:23 +00:00

37 lines
838 B
Makefile

# Created by: Thomas Goirand
# $FreeBSD$
PORTNAME= sbox
PORTVERSION= 1.10
PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= http://files.bsdroot.lv/my/FreeBSD/distfiles/
MAINTAINER= ports@FreeBSD.org
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>