summaryrefslogtreecommitdiff
path: root/games/hlserver-admin
diff options
context:
space:
mode:
authorPatrick Li <pat@FreeBSD.org>2001-12-15 11:13:58 +0000
committerPatrick Li <pat@FreeBSD.org>2001-12-15 11:13:58 +0000
commitcada8ce4fcf17fc5aa86141e7108eb814034c57b (patch)
treed374929aa1eff83e6e4fe14f83714b6cc41ba729 /games/hlserver-admin
parent"fix" upgrade to 1.31 (diff)
- Fix metamod load problem
- Make use of slaveport targets - Fix hardcoded paths
Notes
Notes: svn path=/head/; revision=51563
Diffstat (limited to 'games/hlserver-admin')
-rw-r--r--games/hlserver-admin/Makefile19
-rw-r--r--games/hlserver-admin/distinfo1
2 files changed, 17 insertions, 3 deletions
diff --git a/games/hlserver-admin/Makefile b/games/hlserver-admin/Makefile
index 75d0b756e240..a2751958fd4d 100644
--- a/games/hlserver-admin/Makefile
+++ b/games/hlserver-admin/Makefile
@@ -8,13 +8,26 @@
PORTNAME= admin
PORTVERSION= 2.50.09
PORTEPOCH= 1
-MASTER_SITES= http://www.adminmod.org/downloads/
-DISTNAME= halflife-${PORTNAME}-${PORTVERSION}
+MASTER_SITES= http://www.adminmod.org/downloads/ \
+ http://metamod.org/files/other/
+DISTFILES= halflife-${PORTNAME}-${PORTVERSION}.tgz \
+ metamod_i386.so
DIST_SUBDIR= ${PORTNAME}
-EXTRACT_SUFX= .tgz
+EXTRACT_ONLY= ${DISTFILES:S/metamod_i386.so//}
WRKSRC= ${WRKDIR}/Admin
+slaveport-post-extract:
+ @${CP} ${DISTDIR}/${DIST_SUBDIR}/metamod_i386.so \
+ ${WRKSRC}/dlls
+ @${PERL} -pi.orig -e \
+ 's|/usr/local/games/hlds_l|${PREFIX}${HLDSDIR:S/\/$//}|' \
+ ${WRKSRC}/install_admin
+
+slaveport-post-install:
+ @${INSTALL_SCRIPT} ${WRKSRC}/install_admin \
+ ${PREFIX}${HLDSDIR}/Admin
+
HALFLIFE_COUNTERSTRIKE_MASTER= ${.CURDIR}/../hlserver-cs
.include "${HALFLIFE_COUNTERSTRIKE_MASTER}/Makefile"
diff --git a/games/hlserver-admin/distinfo b/games/hlserver-admin/distinfo
index 19e25798f9a8..bbc4a896608c 100644
--- a/games/hlserver-admin/distinfo
+++ b/games/hlserver-admin/distinfo
@@ -1 +1,2 @@
MD5 (admin/halflife-admin-2.50.09.tgz) = 0c3e84ab27a3c743b9528732817a5c1e
+MD5 (admin/metamod_i386.so) = 95daa539247243b49a90e12f0034386d