summaryrefslogtreecommitdiffstats
path: root/www/cgiwrap/Makefile
blob: 0226fd882536668994dcc91aea466f29b8867a66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# New ports collection makefile for:    cgiwrap
# Date created:         30 July 1998
# Whom:                 Brent J. Nordquist <bjn@visi.com>
#
# $FreeBSD$
#

PORTNAME=	cgiwrap
PORTVERSION=	3.7.1
CATEGORIES=	www security
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}

MAINTAINER=	petef@FreeBSD.org

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-httpd-user=${HTTPDUSER} \
		--with-install-dir=${MAINCGIDIR} \
		--with-install-group=${BINGRP} \
		--with-cgi-dir=${CGIDIR} \
		${WITHOUTCHECK}

###
# Set this to the directory (relative to each user's home) where CGI
# scripts will be found.  (Another common value is "www/cgi-bin".)
###
CGIDIR?=		public_html/cgi-bin
###
# The default security settings are very tight; enable one or more
# of these to loosen them.  Run "configure -help" for information on
# these and other options.
###
#WITHOUTCHECK?=	--without-check-owner --without-check-setuid \
#		--without-check-group --without-check-setgid \
#		--without-check-group-writable \
#		--without-check-world-writable
###
# Use these options for Apache:
###
MAINCGIDIR?=	${PREFIX}/www/cgi-bin
HTTPDUSER?=	www

pre-install:
	@${MKDIR} ${MAINCGIDIR}

post-install:
	strip ${MAINCGIDIR}/cgiwrap
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
.for file in accesscontrol.html afs.html changes.html comments.html \
		download.html faq.html index.html install.html intro.html \
		maillist.html notes.html pubs.html quickref.html setup.html \
		thanks.html todo.html tricks.html y2k.html
	@${INSTALL_DATA} ${WRKSRC}/htdocs/${file} ${DOCSDIR}
.endfor
	@${ECHO} "Documentation installed in ${DOCSDIR}"
.endif
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>
OpenPOWER on IntegriCloud