|
Lines 7-12
Link Here
|
| 7 |
|
7 |
|
| 8 |
PORTNAME= pserv |
8 |
PORTNAME= pserv |
| 9 |
PORTVERSION= 3.3 |
9 |
PORTVERSION= 3.3 |
|
|
10 |
PORTREVISION= 1 |
| 10 |
CATEGORIES= www |
11 |
CATEGORIES= www |
| 11 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
12 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
| 12 |
MASTER_SITE_SUBDIR= ${PORTNAME} |
13 |
MASTER_SITE_SUBDIR= ${PORTNAME} |
|
Lines 17-27
Link Here
|
| 17 |
USE_REINPLACE= yes |
18 |
USE_REINPLACE= yes |
| 18 |
GNU_CONFIGURE= yes |
19 |
GNU_CONFIGURE= yes |
| 19 |
|
20 |
|
| 20 |
OPTIONS= LOG "Enable logging" on \ |
21 |
.if defined(WITH_PHP) |
| 21 |
PHP "Enable PHP support" on |
22 |
USE_PHP=yes |
|
|
23 |
WANT_PHP_CGI=yes |
| 24 |
.endif |
| 22 |
|
25 |
|
| 23 |
.include <bsd.port.pre.mk> |
26 |
.include <bsd.port.pre.mk> |
| 24 |
|
27 |
|
|
|
28 |
pre-everything:: |
| 29 |
@${ECHO_MSG} "You can change Pserv's default capabilities by defining:" |
| 30 |
@${ECHO_MSG} " WITHOUT_LOG=yes Disable logging" |
| 31 |
@${ECHO_MSG} " WITH_PHP=yes Enable PHP support" |
| 32 |
@${ECHO_MSG} "" |
| 33 |
|
| 25 |
post-patch: |
34 |
post-patch: |
| 26 |
@${REINPLACE_CMD} "s|%%PREFIX%%|${PREFIX}|g;s|%%LOCALBASE%%|${LOCALBASE}|g" \ |
35 |
@${REINPLACE_CMD} "s|%%PREFIX%%|${PREFIX}|g;s|%%LOCALBASE%%|${LOCALBASE}|g" \ |
| 27 |
${WRKSRC}/defaults/pserv.conf ${WRKSRC}/sources/main.h |
36 |
${WRKSRC}/defaults/pserv.conf ${WRKSRC}/sources/main.h |
|
Lines 29-35
Link Here
|
| 29 |
@${REINPLACE_CMD} "s|define LOG|undef LOG|" \ |
38 |
@${REINPLACE_CMD} "s|define LOG|undef LOG|" \ |
| 30 |
${WRKSRC}/sources/main.h |
39 |
${WRKSRC}/sources/main.h |
| 31 |
.endif |
40 |
.endif |
| 32 |
.if defined(WITHOUT_PHP) |
41 |
.if !defined(WITH_PHP) |
| 33 |
@${REINPLACE_CMD} "s|define PHP|undef PHP|" \ |
42 |
@${REINPLACE_CMD} "s|define PHP|undef PHP|" \ |
| 34 |
${WRKSRC}/sources/main.h |
43 |
${WRKSRC}/sources/main.h |
| 35 |
.endif |
44 |
.endif |