aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--games/quakeserver/Makefile3
-rw-r--r--games/quakeserver/pkg-install11
-rw-r--r--games/quakeserver/pkg-plist1
-rw-r--r--games/quakeserver/scripts/configure12
4 files changed, 12 insertions, 15 deletions
diff --git a/games/quakeserver/Makefile b/games/quakeserver/Makefile
index a1dc31321c42..50c606b9acf4 100644
--- a/games/quakeserver/Makefile
+++ b/games/quakeserver/Makefile
@@ -57,8 +57,5 @@ do-install:
/usr/bin/mkfifo ${PREFIX}/quakeserver/quakeserver.in
@ ${CHMOD} 660 ${PREFIX}/quakeserver/quakeserver.in
@ ${CHOWN} :quakerun ${PREFIX}/quakeserver/quakeserver.in
-.if !defined(BATCH)
- @ /usr/bin/more -e ${PREFIX}/quakeserver/readme.port
-.endif
.include <bsd.port.mk>
diff --git a/games/quakeserver/pkg-install b/games/quakeserver/pkg-install
new file mode 100644
index 000000000000..fa62938f7ca1
--- /dev/null
+++ b/games/quakeserver/pkg-install
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+case "$2" in
+ PRE-INSTALL)
+ if ! pw user show quakerun >/dev/null 2>&1
+ then
+ echo "===> Creating user quakerun"
+ pw add user quakerun -s /sbin/nologin -c "QuakeServer User" -d /nonexistent
+ fi
+ ;;
+esac
diff --git a/games/quakeserver/pkg-plist b/games/quakeserver/pkg-plist
index 499265db63ee..6e7cdfa32642 100644
--- a/games/quakeserver/pkg-plist
+++ b/games/quakeserver/pkg-plist
@@ -15,3 +15,4 @@ quakeserver/quakeserver.log
@unexec rm -f %D/quakeserver/quakeserver.in %D/quakeserver/quakeserver.log
@dirrm quakeserver/id1
@dirrm quakeserver
+@unexec pw user del quakerun
diff --git a/games/quakeserver/scripts/configure b/games/quakeserver/scripts/configure
deleted file mode 100644
index dfd31e72b5a0..000000000000
--- a/games/quakeserver/scripts/configure
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/usr/bin/perl
-#
-
-eval '(exit $?0)' && eval 'exec /usr/bin/perl -S $0 ${1+"$@"}'
-& eval 'exec /usr/bin/perl -S $0 $argv:q'
-if 0;
-
-chop( $hostname = `hostname` );
-$files = ( "$ENV{'WRKDIR'}/server/quake/qslog $ENV{'WRKDIR'}/server/quake/qsrv.expect" );
-
-system( "/usr/bin/perl -pi -e 's|%%PREFIX%%|$ENV{'PREFIX'}|g' $files" );
-system( "/usr/bin/perl -pi -e 's|%%HOSTNAME%%|$hostname|g' $files" );