summaryrefslogtreecommitdiff
path: root/irc/ircd-hybrid/pkg-install
diff options
context:
space:
mode:
authorClive Lin <clive@FreeBSD.org>2001-10-20 15:10:47 +0000
committerClive Lin <clive@FreeBSD.org>2001-10-20 15:10:47 +0000
commita2676d1f0e1915ad344fd138654a086a9070c5e8 (patch)
tree23e8d861918f9fb6bdbdfb98630fb50b11f80693 /irc/ircd-hybrid/pkg-install
parentIf both GDBM and NDBM are defined, siag will try to use all (diff)
Upgrade to 6.2. Hybrid-5 is unsupported, forget it.
PR: ports/31116 Submitted by: David Taylor <davidt@yadt.co.uk>
Notes
Notes: svn path=/head/; revision=49004
Diffstat (limited to '')
-rw-r--r--irc/ircd-hybrid/pkg-install26
1 files changed, 14 insertions, 12 deletions
diff --git a/irc/ircd-hybrid/pkg-install b/irc/ircd-hybrid/pkg-install
index 1bd17605bbb3..eae0774e1ec0 100644
--- a/irc/ircd-hybrid/pkg-install
+++ b/irc/ircd-hybrid/pkg-install
@@ -1,5 +1,8 @@
#!/bin/sh
+# This script is a slightly modified copy of the pkg-install script from the
+# original ircd-hybrid port, by desmo@bandwidth.org.
+
if [ "x$2" != "xPRE-INSTALL" ]; then
exit 0;
fi
@@ -37,15 +40,10 @@ if which -s pw ; then
:
else
cat <<EOF
-
-This system looks like a pre-2.2 version of FreeBSD. I see that it
-is missing the "pw" utility. I need this utility. Please get them
-and install them, and try again. You can get the sources from:
-
- ftp://ftp.freebsd.org/pub/FreeBSD/FreeBSD-current/src/usr.sbin/pw.tar.gz
-
+Your system does not include the "pw" utility. You should upgrade
+to a newer version of FreeBSD. Without "pw" this script will not
+run.
EOF
-
exit 1
fi
@@ -53,8 +51,8 @@ echo ""
if pw groupshow ircd 2> /dev/null ; then
echo "You already have a group \"ircd\", so I will use it."
else
- if pw usershow 72 2> /dev/null ; then
- echo "You already have a uid \"72\". Please create a user \"ircd\""
+ if pw groupshow 72 2> /dev/null ; then
+ echo "You already have a gid \"72\". Please create a user \"ircd\""
echo "with a default group of \"ircd\"."
exit 1
fi
@@ -75,9 +73,14 @@ fi
if pw usershow ircd 2> /dev/null ; then
echo "You already have a user \"ircd\", so I will use it."
else
+ if pw usershow 72 2> /dev/null ; then
+ echo "You already have a uid \"72\". Please create a user \"irc
+d\""
+ echo "with a default group of \"ircd\"."
+ exit 1
+ fi
echo "You need a user \"ircd\"."
if which -s pw && yesno "Would you like me to create it" y; then
- ifkk
pw useradd ircd -g ircd -u 72 -h - -d /nonexistent \
-s /nonexistent -c "IRC Daemon" || exit
echo "Done."
@@ -86,4 +89,3 @@ else
exit 1
fi
fi
-