]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Renamed contrib/ngircd.sh to contrib/ngircd-bsd.sh
authorAlexander Barton <alex@barton.de>
Tue, 5 May 2009 09:41:26 +0000 (11:41 +0200)
committerAlexander Barton <alex@barton.de>
Tue, 5 May 2009 09:41:26 +0000 (11:41 +0200)
contrib/Makefile.am
contrib/README
contrib/ngircd-bsd.sh [new file with mode: 0644]
contrib/ngircd.sh [deleted file]

index 2125c100569e45391e705878539351f0f7c01ed4..edc0f575a57f3c2c4e1d3ec2f70f890c73301f4d 100644 (file)
@@ -1,6 +1,6 @@
 #
 # ngIRCd -- The Next Generation IRC Daemon
 #
 # ngIRCd -- The Next Generation IRC Daemon
-# Copyright (c)2001-2008 Alexander Barton (alex@barton.de)
+# Copyright (c)2001-2009 Alexander Barton (alex@barton.de)
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -11,7 +11,7 @@
 
 SUBDIRS = Debian MacOSX
 
 
 SUBDIRS = Debian MacOSX
 
-EXTRA_DIST = README ngircd.spec systrace.policy ngindent ngircd.sh
+EXTRA_DIST = README ngircd.spec systrace.policy ngindent ngircd-bsd.sh
 
 maintainer-clean-local:
        rm -f Makefile Makefile.in
 
 maintainer-clean-local:
        rm -f Makefile Makefile.in
index f32005ef9c42e732a6109412689126e775120c5b..c9d8265cceef51cd3562998693b0ea72d2783b3d 100644 (file)
@@ -1,7 +1,7 @@
 
                      ngIRCd - Next Generation IRC Server
 
 
                      ngIRCd - Next Generation IRC Server
 
-                        (c)2001-2005 Alexander Barton,
+                        (c)2001-2009 Alexander Barton,
                     alex@barton.de, http://www.barton.de/
 
                ngIRCd is free software and published under the
                     alex@barton.de, http://www.barton.de/
 
                ngIRCd is free software and published under the
@@ -19,7 +19,7 @@ MacOSX/
 ngindent
  - Script to indent the code of ngIRCd in the "standard way".
 
 ngindent
  - Script to indent the code of ngIRCd in the "standard way".
 
-ngircd.sh
+ngircd-bsd.sh
  - Start script for FreeBSD.
 
 ngircd.spec
  - Start script for FreeBSD.
 
 ngircd.spec
@@ -27,7 +27,3 @@ ngircd.spec
 
 systrace.policy
  - Systrace policy file for OpenBSD (and probably NetBSD).
 
 systrace.policy
  - Systrace policy file for OpenBSD (and probably NetBSD).
-
-
---
-$Id: README,v 1.3 2006/07/23 11:34:32 alex Exp $
diff --git a/contrib/ngircd-bsd.sh b/contrib/ngircd-bsd.sh
new file mode 100644 (file)
index 0000000..e085646
--- /dev/null
@@ -0,0 +1,51 @@
+#!/bin/sh
+
+# PROVIDE: ngircd
+# REQUIRE: NETWORKING SERVERS
+# BEFORE: DAEMON
+# KEYWORD: FreeBSD shutdown
+
+# Add the following line to /etc/rc.conf to enable `ngircd':
+#
+#ngircd_enable="YES"
+#
+
+. "/etc/rc.subr"
+
+name="ngircd"
+rcvar=`set_rcvar`
+
+command="/usr/local/sbin/ngircd"
+command_args=""
+
+load_rc_config "$name"
+: ${ngircd_enable="NO"}
+: ${ngircd_flags=""}
+
+required_files="/usr/local/etc/$name.conf"
+pidfile="${ngircd_pidfile:-/var/run/${name}/${name}.pid}"
+
+if [ ! x"${ngircd_chrootdir}" = x ];then
+       # Mount a devfs in the chroot directory if needed
+       if [ ! -c ${ngircd_chrootdir}/dev/random \
+         -o ! -c ${ngircd_chrootdir}/dev/null ]; then
+               umount ${ngircd_chrootdir}/dev 2>/dev/null
+               mount_devfs devfs ${ngircd_chrootdir}/dev
+       fi
+
+       devfs -m ${ngircd_chrootdir}/dev rule apply hide
+       devfs -m ${ngircd_chrootdir}/dev rule apply path null unhide
+       devfs -m ${ngircd_chrootdir}/dev rule apply path random unhide
+
+       # Copy local timezone information if it is not up to date.
+       if [ -f /etc/localtime ]; then
+               cmp -s /etc/localtime "${named_chrootdir}/etc/localtime" || \
+                       cp -p /etc/localtime "${named_chrootdir}/etc/localtime"
+       fi
+
+       pidfile="${ngircd_chrootdir}${pidfile}"
+fi
+
+run_rc_command "$1"
+
+# -eof-
diff --git a/contrib/ngircd.sh b/contrib/ngircd.sh
deleted file mode 100644 (file)
index e085646..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/bin/sh
-
-# PROVIDE: ngircd
-# REQUIRE: NETWORKING SERVERS
-# BEFORE: DAEMON
-# KEYWORD: FreeBSD shutdown
-
-# Add the following line to /etc/rc.conf to enable `ngircd':
-#
-#ngircd_enable="YES"
-#
-
-. "/etc/rc.subr"
-
-name="ngircd"
-rcvar=`set_rcvar`
-
-command="/usr/local/sbin/ngircd"
-command_args=""
-
-load_rc_config "$name"
-: ${ngircd_enable="NO"}
-: ${ngircd_flags=""}
-
-required_files="/usr/local/etc/$name.conf"
-pidfile="${ngircd_pidfile:-/var/run/${name}/${name}.pid}"
-
-if [ ! x"${ngircd_chrootdir}" = x ];then
-       # Mount a devfs in the chroot directory if needed
-       if [ ! -c ${ngircd_chrootdir}/dev/random \
-         -o ! -c ${ngircd_chrootdir}/dev/null ]; then
-               umount ${ngircd_chrootdir}/dev 2>/dev/null
-               mount_devfs devfs ${ngircd_chrootdir}/dev
-       fi
-
-       devfs -m ${ngircd_chrootdir}/dev rule apply hide
-       devfs -m ${ngircd_chrootdir}/dev rule apply path null unhide
-       devfs -m ${ngircd_chrootdir}/dev rule apply path random unhide
-
-       # Copy local timezone information if it is not up to date.
-       if [ -f /etc/localtime ]; then
-               cmp -s /etc/localtime "${named_chrootdir}/etc/localtime" || \
-                       cp -p /etc/localtime "${named_chrootdir}/etc/localtime"
-       fi
-
-       pidfile="${ngircd_chrootdir}${pidfile}"
-fi
-
-run_rc_command "$1"
-
-# -eof-