Lines 6-33
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= httperf |
8 |
PORTNAME= httperf |
9 |
PORTVERSION= 0.6 |
9 |
PORTVERSION= 0.8 |
10 |
CATEGORIES= www |
10 |
CATEGORIES= www |
11 |
MASTER_SITES= ftp://ftp.hpl.hp.com/pub/httperf/ |
11 |
MASTER_SITES= ftp://ftp.hpl.hp.com/pub/httperf/ |
12 |
|
12 |
|
13 |
MAINTAINER= ports@FreeBSD.org |
13 |
MAINTAINER= ports@FreeBSD.org |
14 |
|
14 |
|
15 |
USE_GMAKE= yes |
15 |
USE_OPENSSL= yes |
16 |
MAN1= httperf.1 |
16 |
GNU_CONFIGURE= yes |
|
|
17 |
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ |
18 |
LDFLAGS="-L${LOCALBASE}/lib -lgnugetopt" |
17 |
|
19 |
|
18 |
# there is no "install" target in the Makefile. |
20 |
MAN1= httperf.1 |
19 |
# chmod'ing httperf as it could be exploited by normal users to overload |
|
|
20 |
# a webserver, instead of for its actual purpose. |
21 |
|
21 |
|
22 |
do-install: |
22 |
post-install: |
23 |
@${INSTALL_PROGRAM} ${WRKSRC}/httperf ${PREFIX}/bin |
|
|
24 |
${CHMOD} 750 ${PREFIX}/bin/httperf |
23 |
${CHMOD} 750 ${PREFIX}/bin/httperf |
25 |
@${INSTALL_MAN} ${WRKSRC}/httperf.man ${PREFIX}/man/man1/httperf.1 |
24 |
.if !defined(NOPORTDOCS) |
26 |
@${MKDIR} ${PREFIX}/share/doc/httperf |
25 |
@${MKDIR} ${DOCSDIR} |
27 |
@${INSTALL_MAN} ${WRKSRC}/README ${PREFIX}/share/doc/httperf |
26 |
.for file in ChangeLog NEWS README TODO |
28 |
@${INSTALL_MAN} ${WRKSRC}/COPYRIGHT ${PREFIX}/share/doc/httperf |
27 |
@${INSTALL_MAN} ${WRKSRC}/${file} ${DOCSDIR} |
29 |
@${INSTALL_MAN} ${WRKSRC}/NEWS ${PREFIX}/share/doc/httperf |
28 |
.endfor |
30 |
@${INSTALL_MAN} ${WRKSRC}/TODO ${PREFIX}/share/doc/httperf |
29 |
.endif |
31 |
@${INSTALL_MAN} ${WRKSRC}/ChangeLog ${PREFIX}/share/doc/httperf |
|
|
32 |
|
30 |
|
33 |
.include <bsd.port.mk> |
31 |
.include <bsd.port.mk> |