aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorpetef <petef@FreeBSD.org>2002-06-01 05:30:55 +0800
committerpetef <petef@FreeBSD.org>2002-06-01 05:30:55 +0800
commit13320f2c277665aeefe7843e82d456ff64e74702 (patch)
tree63fae29ef92505fd124cc0588db6272969a7a9c4 /games
parentf270a7da087a813f049d8210c2c749d24ce66234 (diff)
downloadfreebsd-ports-gnome-13320f2c277665aeefe7843e82d456ff64e74702.tar.gz
freebsd-ports-gnome-13320f2c277665aeefe7843e82d456ff64e74702.tar.zst
freebsd-ports-gnome-13320f2c277665aeefe7843e82d456ff64e74702.zip
- 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>
Diffstat (limited to 'games')
-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" );