Lines 7-13
Link Here
|
7 |
|
7 |
|
8 |
PORTNAME= cgiwrap |
8 |
PORTNAME= cgiwrap |
9 |
PORTVERSION= 3.9 |
9 |
PORTVERSION= 3.9 |
10 |
PORTREVISION= 1 |
10 |
PORTREVISION= 2 |
11 |
CATEGORIES= www security |
11 |
CATEGORIES= www security |
12 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
12 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
13 |
MASTER_SITE_SUBDIR= ${PORTNAME} |
13 |
MASTER_SITE_SUBDIR= ${PORTNAME} |
Lines 18-116
Link Here
|
18 |
GNU_CONFIGURE= yes |
18 |
GNU_CONFIGURE= yes |
19 |
CONFIGURE_ARGS= --with-httpd-user=${WWWOWN} \ |
19 |
CONFIGURE_ARGS= --with-httpd-user=${WWWOWN} \ |
20 |
--with-install-group=${WWWGRP} \ |
20 |
--with-install-group=${WWWGRP} \ |
21 |
--with-install-dir=${MAINCGIDIR} \ |
21 |
--with-install-dir=${WITH_MAIN_CGIDIR} \ |
22 |
--with-cgi-dir=${CGIWRAP_CGIDIR} \ |
22 |
--with-cgi-dir=${WITH_USER_CGIDIR} \ |
23 |
--with-local-contact=${CGIWRAP_CONTACT} \ |
23 |
--with-local-contact=${WITH_EMAIL} \ |
24 |
--with-allow-file=${CGIWRAP_ALLOWFILE} \ |
24 |
--with-allow-file=${WITH_ALLOWFILE} \ |
25 |
--with-deny-file=${CGIWRAP_DENYFILE} |
25 |
--with-deny-file=${WITH_DENYFILE} |
|
|
26 |
|
27 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} |
28 |
PKGMESSAGE= ${WRKDIR}/pkg-message |
29 |
|
30 |
## Available knobs: |
31 |
## |
32 |
## WITH_MAIN_CGIDIR: location of the cgiwrap binaries |
33 |
# |
34 |
# This is the directory where the cgiwrap binaries (i.e. the setuid |
35 |
# root binaries) get installed to. |
36 |
# |
37 |
WITH_MAIN_CGIDIR?= ${PREFIX}/www/cgi-bin |
26 |
|
38 |
|
|
|
39 |
## WITH_USER_CGIDIR: location of the CGI directory per user |
40 |
## account (i.e. public_html/cgi-bin) |
27 |
# |
41 |
# |
28 |
# Set this to the directory (relative to each user's home) where CGI |
42 |
# Set this to the directory (relative to each user's home) where CGI |
29 |
# scripts will be found. Common alternate values are "www/cgi-bin" |
43 |
# scripts will be found. Common alternate values are "www/cgi-bin" |
30 |
# (a.k.a. ~user/www/cgi-bin) and "cgi-bin" (a.k.a. ~user/cgi-bin) |
44 |
# (a.k.a. ~user/www/cgi-bin) and "cgi-bin" (a.k.a. ~user/cgi-bin) |
31 |
# |
45 |
# |
32 |
CGIWRAP_CGIDIR?= public_html/cgi-bin |
46 |
WITH_USER_CGIDIR?= public_html/cgi-bin |
33 |
|
47 |
|
|
|
48 |
## WITH_ALLOWFILE: location/name of the cgiwrap.allow ACL file |
49 |
## WITH_DENYFILE: location/name of the cgiwrap.deny ACL file |
34 |
# |
50 |
# |
35 |
# MAINCGIDIR is the directory the cgiwrap binaries get installed to. |
51 |
WITH_ALLOWFILE?= ${PREFIX}/etc/${PORTNAME}.allow |
36 |
# |
52 |
WITH_DENYFILE?= ${PREFIX}/etc/${PORTNAME}.deny |
37 |
MAINCGIDIR?= ${PREFIX}/www/cgi-bin |
|
|
38 |
|
53 |
|
|
|
54 |
## WITH_EMAIL: cgiwrap administrator's Email address |
39 |
# |
55 |
# |
40 |
# The allow and deny files control access to cgiwrap. |
56 |
WITH_EMAIL?= webmaster@dummy-host.example.com |
41 |
# |
|
|
42 |
CGIWRAP_ALLOWFILE?= ${PREFIX}/etc/${PORTNAME}.allow |
43 |
CGIWRAP_DENYFILE?= ${PREFIX}/etc/${PORTNAME}.deny |
44 |
|
45 |
# |
46 |
# Set the contact Email address. |
47 |
# |
48 |
CGIWRAP_CONTACT?= webmaster@dummy-host.example.com |
49 |
|
57 |
|
|
|
58 |
## WITH_LOGGING: enables cgiwrap logging; specifies the |
59 |
## path and filename of the logfile |
50 |
# |
60 |
# |
51 |
# Define CGIWRAP_LOGGING and specify where you want the logfile. |
61 |
.if defined(WITH_LOGGING) |
52 |
# |
62 |
CONFIGURE_ARGS+= --with-logging-file=${WITH_LOGGING} |
53 |
.if defined(CGIWRAP_LOGGING) |
|
|
54 |
CONFIGURE_ARGS+= --with-logging-file=${CGIWRAP_LOGGING} |
55 |
.endif |
63 |
.endif |
56 |
|
64 |
|
|
|
65 |
## WITH_DEBUG: enables cgiwrap debugging support, via |
66 |
## the 'cgiwrapd' binary |
57 |
# |
67 |
# |
58 |
# Some users enjoy being able to debug their own CGI scripts, since |
68 |
.if defined(WITH_DEBUG) |
59 |
# the standard "Internal server error" response doesn't help much. |
|
|
60 |
# Administrators may find this useful as well. See the cgiwrap |
61 |
# documentation for details on how to use this. |
62 |
# |
63 |
.if defined(CGIWRAP_DEBUG) |
64 |
PLIST_SUB+= CGIWRAPDFLAG= |
69 |
PLIST_SUB+= CGIWRAPDFLAG= |
65 |
.else |
70 |
.else |
66 |
PLIST_SUB+= CGIWRAPDFLAG="@comment " |
71 |
PLIST_SUB+= CGIWRAPDFLAG="@comment " |
67 |
.endif |
72 |
.endif |
68 |
|
73 |
|
|
|
74 |
## WITHOUT_CHECK_OWNER: disable CGI file ownership checks |
75 |
## WITHOUT_CHECK_GROUP: disable CGI file group checks |
76 |
## WITHOUT_CHECK_SETUID: disable CGI file setuid permissions check |
77 |
## WITHOUT_CHECK_SETGID: disable CGI file setgid permissions check |
78 |
## WITHOUT_CHECK_GROUP_WRITABLE: |
79 |
## disable CGI file group-writable permissions check |
80 |
## WITHOUT_CHECK_WORLD_WRITABLE: |
81 |
## disable CGI file world-writable permissions check |
69 |
# |
82 |
# |
70 |
# A slew of --without-* configure flags exist for cgiwrap. You |
83 |
.if defined(WITHOUT_CHECK_OWNER) |
71 |
# should refer to the cgiwrap documentation for details regarding |
|
|
72 |
# what these do, and when (if) they're necessary. |
73 |
# |
74 |
### |
75 |
.if defined(CGIWRAP_WITHOUT_CHECK_OWNER) |
76 |
CONFIGURE_ARGS+= --without-check-owner |
84 |
CONFIGURE_ARGS+= --without-check-owner |
77 |
.endif |
85 |
.endif |
78 |
.if defined(CGIWRAP_WITHOUT_CHECK_GROUP) |
86 |
.if defined(WITHOUT_CHECK_GROUP) |
79 |
CONFIGURE_ARGS+= --without-check-group |
87 |
CONFIGURE_ARGS+= --without-check-group |
80 |
.endif |
88 |
.endif |
81 |
.if defined(CGIWRAP_WITHOUT_CHECK_SETUID) |
89 |
.if defined(WITHOUT_CHECK_SETUID) |
82 |
CONFIGURE_ARGS+= --without-check-setuid |
90 |
CONFIGURE_ARGS+= --without-check-setuid |
83 |
.endif |
91 |
.endif |
84 |
.if defined(CGIWRAP_WITHOUT_CHECK_SETGID) |
92 |
.if defined(WITHOUT_CHECK_SETGID) |
85 |
CONFIGURE_ARGS+= --without-check-setgid |
93 |
CONFIGURE_ARGS+= --without-check-setgid |
86 |
.endif |
94 |
.endif |
87 |
.if defined(CGIWRAP_WITHOUT_CHECK_GROUP_WRITABLE) |
95 |
.if defined(WITHOUT_CHECK_GROUP_WRITABLE) |
88 |
CONFIGURE_ARGS+= --without-check-group-writable |
96 |
CONFIGURE_ARGS+= --without-check-group-writable |
89 |
.endif |
97 |
.endif |
90 |
.if defined(CGIWRAP_WITHOUT_CHECK_WORLD_WRITABLE) |
98 |
.if defined(WITHOUT_CHECK_WORLD_WRITABLE) |
91 |
CONFIGURE_ARGS+= --without-check-world-writable |
99 |
CONFIGURE_ARGS+= --without-check-world-writable |
92 |
.endif |
100 |
.endif |
93 |
|
101 |
|
|
|
102 |
.if !defined(NOPORTDOCS) |
103 |
PORTDOCS= accesscontrol.html afs.html changes.html \ |
104 |
chroot.html comments.html download.html faq.html \ |
105 |
index.html install.html intro.html maillist.html \ |
106 |
notes.html pubs.html quickref.html setup.html \ |
107 |
thanks.html todo.html tricks.html y2k.html |
108 |
.endif |
109 |
|
110 |
show-options: |
111 |
@${SED} -ne 's/^##//p' ${.CURDIR}/Makefile |
112 |
|
94 |
pre-install: |
113 |
pre-install: |
95 |
@${MKDIR} ${MAINCGIDIR} |
114 |
@${MKDIR} ${WITH_MAIN_CGIDIR} |
96 |
|
115 |
|
97 |
post-install: |
116 |
post-install: |
98 |
@${STRIP_CMD} ${MAINCGIDIR}/cgiwrap |
117 |
@${STRIP_CMD} ${WITH_MAIN_CGIDIR}/cgiwrap |
99 |
@${CHMOD} 4550 ${MAINCGIDIR}/cgiwrap |
118 |
@${CHMOD} 4550 ${WITH_MAIN_CGIDIR}/cgiwrap |
100 |
.if !defined(CGIWRAP_WITH_DEBUG) |
119 |
.if !defined(WITH_DEBUG) |
101 |
@${RM} ${MAINCGIDIR}/cgiwrapd ${MAINCGIDIR}/nph-cgiwrapd |
120 |
@${RM} ${WITH_MAIN_CGIDIR}/cgiwrapd |
|
|
121 |
@${RM} ${WITH_MAIN_CGIDIR}/nph-cgiwrapd |
102 |
.endif |
122 |
.endif |
103 |
.if !defined(NOPORTDOCS) |
123 |
.if !defined(NOPORTDOCS) |
104 |
@${MKDIR} ${DOCSDIR} |
124 |
@${MKDIR} ${DOCSDIR} |
105 |
.for file in accesscontrol.html afs.html changes.html chroot.html \ |
125 |
.for f in ${PORTDOCS} |
106 |
comments.html download.html faq.html index.html \ |
126 |
@${INSTALL_DATA} ${WRKSRC}/htdocs/${f} ${DOCSDIR} |
107 |
install.html intro.html maillist.html notes.html \ |
|
|
108 |
pubs.html quickref.html setup.html thanks.html \ |
109 |
todo.html tricks.html y2k.html |
110 |
@${INSTALL_DATA} ${WRKSRC}/htdocs/${file} ${DOCSDIR} |
111 |
.endfor |
127 |
.endfor |
112 |
@${ECHO} "Documentation installed in ${DOCSDIR}" |
|
|
113 |
.endif |
128 |
.endif |
114 |
@${CAT} ${PKGMESSAGE} | ${SED} -e's#%%PREFIX%%#${PREFIX}#g' |
129 |
@${SED} -e's,%%MAIN_CGIDIR%%,${WITH_MAIN_CGIDIR},g' \ |
|
|
130 |
-e's,%%ALLOWFILE%%,${WITH_ALLOWFILE},g' \ |
131 |
-e's,%%DENYFILE%%,${WITH_DENYFILE},g' \ |
132 |
${MASTERDIR}/pkg-message > ${PKGMESSAGE} |
133 |
@${CAT} ${PKGMESSAGE} |
115 |
|
134 |
|
116 |
.include <bsd.port.mk> |
135 |
.include <bsd.port.mk> |