aboutsummaryrefslogtreecommitdiff
path: root/games/phpua-cod
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2006-07-22 10:12:50 +0000
committerMartin Wilke <miwi@FreeBSD.org>2006-07-22 10:12:50 +0000
commitc623ba154fad5ed8a25a8f4fad5f8c9459c21099 (patch)
tree8bb845636dc68c7506e2bdfc95b9c8e356791ae3 /games/phpua-cod
parent5bea31d89ce34036ca111f9182a319b77a8e41e0 (diff)
downloadports-c623ba154fad5ed8a25a8f4fad5f8c9459c21099.tar.gz
ports-c623ba154fad5ed8a25a8f4fad5f8c9459c21099.zip
Notes
Diffstat (limited to 'games/phpua-cod')
-rw-r--r--games/phpua-cod/Makefile22
-rw-r--r--games/phpua-cod/pkg-plist9
2 files changed, 19 insertions, 12 deletions
diff --git a/games/phpua-cod/Makefile b/games/phpua-cod/Makefile
index ae90bff03fa2..1d2719cadcd9 100644
--- a/games/phpua-cod/Makefile
+++ b/games/phpua-cod/Makefile
@@ -7,21 +7,19 @@
PORTNAME= phpua-plugin_cod
PORTVERSION= 1.1.0b
+PORTREVISION= 1
CATEGORIES= games www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= phpua
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= babak@farrokhi.net
COMMENT= A Call of Duty plugin for phpUA
-RUN_DEPENDS= ${LOCALBASE}/${PHPUA}/index.php:${PORTSDIR}/games/phpua-engine
-
-BROKEN= does not install due to dependency problem in games/phpua-engine
-DEPRECATED= ${BROKEN}
-EXPIRATION_DATE=2006-09-03
+BUILD_DEPENDS= ${LOCALBASE}/${PHPUA}/index.php:${PORTSDIR}/games/phpua-engine
+RUN_DEPENDS= ${BUILD_DEPENDS}
# Some variables you can change
-PHPUA?= www/data/phpua
+PHPUA?= www/phpua
PHPUA_USER?= ${WWWOWN}
PHPUA_GROUP?= ${WWWGRP}
@@ -44,11 +42,13 @@ pre-everything::
${ECHO_MSG} '-------------------------------------------------------------------------')
.endif
+do-extract:
+ @ ${MKDIR} ${WRKSRC}
+ @ cd ${WRKSRC} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ${EXTRACT_AFTER_ARGS}
+
do-install:
- @ ${CP} -R ${WRKDIR}/images ${PREFIX}/${PHPUA}/
- @ ${CP} -R ${WRKDIR}/plugins ${PREFIX}/${PHPUA}/
- @ ${CP} -R ${WRKDIR}/templates ${PREFIX}/${PHPUA}/
- @ ${CHOWN} -R ${PHPUA_USER}:${PHPUA_GROUP} ${PREFIX}/${PHPUA}
+ @ ${CHOWN} -R ${PHPUA_USER}:${PHPUA_GROUP} ${WRKSRC}
+ @ ${CP} -R ${WRKSRC}/ ${PREFIX}/${PHPUA}/
@ ${ECHO_MSG} ""
@ ${ECHO_MSG} "* Files have been installed in"
@ ${ECHO_MSG} "* ${PREFIX}/${PHPUA}"
diff --git a/games/phpua-cod/pkg-plist b/games/phpua-cod/pkg-plist
index e89deb53aa64..d545ee61bb95 100644
--- a/games/phpua-cod/pkg-plist
+++ b/games/phpua-cod/pkg-plist
@@ -22,11 +22,18 @@
%%PHPUA%%/templates/default/plugin_cod/x.js
%%PHPUA%%/templates/javascript/plugin_cod/info.tpl
%%PHPUA%%/templates/wap/plugin_cod/info.tpl
-@exec chown -R %%PHPUA_USER%%:%%PHPUA_GROUP%% %D/%%PHPUA%%
@dirrm %%PHPUA%%/templates/wap/plugin_cod
+@dirrmtry %%PHPUA%%/templates/wap
@dirrm %%PHPUA%%/templates/javascript/plugin_cod
+@dirrmtry %%PHPUA%%/templates/javascript
@dirrm %%PHPUA%%/templates/default/plugin_cod
+@dirrmtry %%PHPUA%%/templates/default
+@dirrmtry %%PHPUA%%/templates
@dirrm %%PHPUA%%/plugins/plugin_cod
+@dirrmtry %%PHPUA%%/plugins
@dirrm %%PHPUA%%/images/templates/default/plugin_cod
+@dirrmtry %%PHPUA%%/images/templates/default
+@dirrmtry %%PHPUA%%/images/templates
@dirrm %%PHPUA%%/images/plugin_cod/maps
@dirrm %%PHPUA%%/images/plugin_cod
+@dirrmtry %%PHPUA%%/images