2002-03-15 06:16:19 +01:00
|
|
|
# New ports collection makefile for: phpSysInfo
|
|
|
|
# Date created: Mon Mar 04, 2002
|
|
|
|
# Whom: Bob Bomar <bob@fly.homeunix.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= phpSysInfo
|
2004-10-12 06:19:02 +02:00
|
|
|
PORTVERSION= 2.3
|
2002-03-15 06:16:19 +01:00
|
|
|
CATEGORIES= www
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
2004-09-21 22:04:24 +02:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME:L}
|
|
|
|
DISTNAME= ${PORTNAME:L}-${PORTVERSION}
|
2002-03-15 06:16:19 +01:00
|
|
|
|
2003-01-05 03:41:49 +01:00
|
|
|
MAINTAINER= so14k@so14k.com
|
2003-02-21 15:08:24 +01:00
|
|
|
COMMENT= A php script that displays info about the host being accessed
|
2002-03-15 06:16:19 +01:00
|
|
|
|
2004-09-21 22:04:24 +02:00
|
|
|
USE_PHP= pcre xml
|
2003-06-27 07:13:11 +02:00
|
|
|
WANT_PHP_WEB= yes
|
2002-03-15 06:16:19 +01:00
|
|
|
|
2004-09-21 22:04:24 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME:L}-dev
|
2002-03-15 06:16:19 +01:00
|
|
|
WEBOWN?= www
|
|
|
|
WEBGRP?= www
|
|
|
|
APACHEDIR= ${PREFIX}/www/data
|
|
|
|
INSTALLDIR= ${APACHEDIR}/phpSysInfo
|
|
|
|
NO_BUILD= yes
|
2003-01-20 14:59:17 +01:00
|
|
|
PLIST= ${WRKDIR}/plist
|
2002-03-15 06:16:19 +01:00
|
|
|
|
2004-09-21 22:04:24 +02:00
|
|
|
PLIST_SUB= INSTALLDIR=${INSTALLDIR:S,^${PREFIX}/,,}
|
2002-03-15 06:16:19 +01:00
|
|
|
|
2003-01-20 14:59:17 +01:00
|
|
|
post-patch:
|
2004-09-21 22:04:24 +02:00
|
|
|
${RM} -f ${PLIST}
|
2003-01-20 14:59:17 +01:00
|
|
|
cd ${WRKSRC};\
|
2004-01-22 14:14:46 +01:00
|
|
|
${FIND} . ! -type d | ${SORT} | ${SED} "s|^.|%%INSTALLDIR%%|"\
|
2003-01-20 14:59:17 +01:00
|
|
|
>${PLIST};\
|
2004-01-22 14:14:46 +01:00
|
|
|
${FIND} . -type d | ${SORT} -r | ${SED} "s|^.|@dirrm %%INSTALLDIR%%|"\
|
2003-01-20 14:59:17 +01:00
|
|
|
>>${PLIST}
|
|
|
|
|
2002-03-15 06:16:19 +01:00
|
|
|
do-install:
|
|
|
|
${MKDIR} ${INSTALLDIR}
|
|
|
|
cd ${WRKSRC}; ${FIND} . \
|
2004-01-22 13:18:43 +01:00
|
|
|
| ${CPIO} -pdm -R ${WEBOWN}:${WEBGRP} ${INSTALLDIR}
|
2002-03-15 06:16:19 +01:00
|
|
|
${CHMOD} -R ${BINMODE} ${INSTALLDIR}
|
|
|
|
${FIND} ${INSTALLDIR} ! -type d | ${XARGS} ${CHMOD} ${NOBINMODE}
|
|
|
|
|
2004-02-09 12:43:38 +01:00
|
|
|
.include <bsd.port.mk>
|