aboutsummaryrefslogtreecommitdiffstats
path: root/www/phproxy/Makefile
blob: ae9afb3b29c8f4260bcc73f4d7064bd36a5fe82b (plain) (blame)
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
# New ports collection makefile for:    eventum
# Date created:     2006-01-06
# Whom:         Babak Farrokhi <babak@farrokhi.net>
#
# $FreeBSD$
#

PORTNAME=   phproxy
PORTVERSION=    0.4
CATEGORIES= www
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= poxy
DISTNAME=   poxy-${DISTVERSION}

MAINTAINER= farrokhi@FreeBSD.org
COMMENT=    PHP based web proxy

NO_BUILD=   YES
WANT_PHP_WEB=   YES
USE_ZIP=    YES
USE_PHP=    YES
PLIST_SUB+= PHPROXY=${PHPROXY}
PHPROXY=    www/${PORTNAME}
EXTRACT_AFTER_ARGS+=    -d ${WRKSRC}

DOCFILES=   ChangeLog.txt FAQ.txt LICENSE.txt README.txt TODO.txt
ROOTFILES=  PHProxy.class.php index.php javascript.js style.css url_form.inc

do-install:
    -${MKDIR} ${PREFIX}/${PHPROXY}
    @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${PHPROXY}
    @(cd ${WRKSRC} && ${CP} ${ROOTFILES} ${PREFIX}/${PHPROXY}/)
    @${CHMOD} 755 ${PREFIX}/${PHPROXY}
#   @${CHMOD} 644 ${PREFIX}/${PHPROXY}/*

.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
.for i in ${DOCFILES}
    @${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}/${i}
.endfor
.endif
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>