summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPete Fritchman <petef@FreeBSD.org>2002-05-31 21:30:55 +0000
committerPete Fritchman <petef@FreeBSD.org>2002-05-31 21:30:55 +0000
commit3f98498439d0a6f3d41bc8cf8386071a887b264a (patch)
tree7563e1f36345938eb8f32994f54c350168e6080b
parentAdd waimea 0.3.2, an X11 window manager designed for maximum (diff)
- don't display the port readme when installing
- remove unused configure script - add missing pkg-install script - add line to pkg-plist to remove the 'quakerun' user on deinstall PR: 38733 Submitted by: Martin Perry <martin@raq.cx>
Notes
Notes: svn path=/head/; revision=60410
-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" );