Author: Reed Loden <reed@redmagnet.com> By way of Ghostwolf <foxxe@wtfs.net>
authorJoseph Bongaarts <foxxe@wtfs.net>
Thu, 7 Mar 2002 22:52:57 +0000 (22:52 +0000)
committerJoseph Bongaarts <foxxe@wtfs.net>
Thu, 7 Mar 2002 22:52:57 +0000 (22:52 +0000)
Log message:
Various trival changes to tools/*

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@667 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

14 files changed:
ChangeLog
acconfig.h
config.h.in
tools/Bounce/Bounce.cpp
tools/Bounce/Bounce.h
tools/Bounce/bounce.conf
tools/README
tools/crypter
tools/hashtoy
tools/mkpasswd.c
tools/ringlog.c
tools/ringlog.pl
tools/untabify
tools/wrapper.c

index ac8b88d04b95a5cf64ddde06dcbce491ff0b1fa2..65e4ebe1faca3f15dbbb41a3b4c196062e1e867b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,40 @@
+2002-02-27 Reed Loden <reed@redmagnet.com>
+
+       * tools/crypter: Updated some variables, added another notice,
+       added CVS Id tag, and updated Perl location.
+
+       * tools/ringlog.c: Added IRC - Internet Relay Chat, 
+       tools/ringlog.c
+
+       * tools/ringlog.pl: Added IRC - Internet Relay Chat, 
+       tools/ringlog.pl
+
+       * tools/wrapper.c: Added IRC - Internet Relay Chat, 
+       tools/wrapper.c
+
+       * tools/mkpasswd.c: Added CVS Id tag
+
+       * tools/sums: Updated to comply with sums being moved to tools/
+       and added CVS Id tag
+
+       * tools/README: Updated location of file and partly rewrote to fit 
+       u2.10.11's Features
+
+       * tools/Makefile.crypt: Updated location of file and added CVS Id 
+       tag
+
+       * acconfig.h: Updated location of file
+
+       * config.h.in: Updated location of file
+
+       * tools/Bounce/bounce.conf: Added CVS Id tag
+
+       * tools/Bounce/Bounce.cpp: Updated location of file
+
+       * tools/Bounce/Bounce.h: Updated location of file
+
+       * tools/hashtoy: Added CVS Id Tag
+
 2002-02-27  Carlo Wood  <run@alinoe.com>
 
         * /ircd/ircd.c: check_pings: First check if a PING was sent at all.
index 5b6d248e36d5bb0a96e2cc61330fada62fc00016..3ad4e1f020ec551ab4eeb483edeee887cf5beee8 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef INCLUDED_config_h
 #define INCLUDED_config_h
 /*
- * IRC - Internet Relay Chat, include/config.h
+ * IRC - Internet Relay Chat, acconfig.h
  * Copyright (C) 2000 Kevin L. Mitchell <klmitch@mit.edu>
  *
  * This program is free software; you can redistribute it and/or modify
index 3880424c0f62bfc178dda0a985fee3f79695060b..390526fcbb7656f160d3c5aa1a0340e06359b13e 100644 (file)
@@ -2,7 +2,7 @@
 #ifndef INCLUDED_config_h
 #define INCLUDED_config_h
 /*
- * IRC - Internet Relay Chat, include/config.h
+ * IRC - Internet Relay Chat, config.h.in
  * Copyright (C) 2000 Kevin L. Mitchell <klmitch@mit.edu>
  *
  * This program is free software; you can redistribute it and/or modify
@@ -19,7 +19,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  *
- * $Id: config.h.in,v 1.2 2001-06-07 00:29:46 kev Exp $
+ * $Id: config.h.in,v 1.3 2002-03-07 22:52:56 ghostwolf Exp $
  */
 
 /* Define to `int' if <sys/types.h> doesn't define.  */
index 4ea729fd93d35b9e528851d227968d387376fcbe..df79a1746e10c3ce4c0f9856a6ca0a080c08f17a 100755 (executable)
@@ -1,5 +1,5 @@
 /*
- * IRC - Internet Relay Chat, tools/Bouncer/Bouncer.cpp
+ * IRC - Internet Relay Chat, tools/Bounce/Bounce.cpp
  * Copyright (C) 1990 Jarkko Oikarinen and
  *                    University of Oulu, Computing Center
  *
@@ -27,7 +27,7 @@
  * Each listening port can bounce to a different host/port defined in the
  * config file. --Gte 
  *
- * $Id: Bounce.cpp,v 1.2 2000-04-13 05:53:48 gte Exp $ 
+ * $Id: Bounce.cpp,v 1.3 2002-03-07 22:52:57 ghostwolf Exp $ 
  *
  */
 
index c0e466b8e4004492ae68f7a85a5a863d290591ba..b35d471d353bd8630134b82835b0d1bd1658de27 100755 (executable)
@@ -1,5 +1,5 @@
 /*
- * IRC - Internet Relay Chat, tools/Bouncer/Bouncer.h
+ * IRC - Internet Relay Chat, tools/Bounce/Bounce.h
  * Copyright (C) 1990 Jarkko Oikarinen and
  *                    University of Oulu, Computing Center
  *
index 6b2fbdb73381b0e080f805633bdb3635092911ac..c8bf979ae75b05dd87847b9db8b3273e7cdf49e2 100644 (file)
@@ -1,5 +1,6 @@
 # Format: P:<Local vhost>:<Local Port>:<Remote Address>:<Remote Port>
 # IP's only for now :)
+# $Id: bounce.conf,v 1.2 2002-03-07 22:52:57 ghostwolf Exp $
 
 P:192.168.10.5:2000:192.168.10.1:80
 P:192.168.10.5:3000:4.33.94.3:80
index 9d5f79c40c04ebf0ab13838ffcf6714d92539896..8547bd53646284fabc2797e76126b028797ee6c8 100644 (file)
@@ -1,5 +1,5 @@
 /************************************************************************
- *   IRC - Internet Relay Chat, ircd/crypt/README
+ *   IRC - Internet Relay Chat, tools/README
  *   Copyright (C) 1991 Nelson Minar
  *
  *   This program is free software; you can redistribute it and/or modify
@@ -29,22 +29,24 @@ in your ircd.conf file, you have
        O:*:sCnvYRmbFJ7oI:Nelson
 
 You still type "/oper Nelson goodboy" to become operator. However, if
-someone gets ahold of your irc.conf file, they can no longer figure
+someone gets ahold of your ircd.conf file, they can no longer figure
 out what the password is from reading it.  There are still other
 security holes, namely server-server passwords, but this closes one
 obvious problem.
 
-So how do you generate these icky looking strings for passwords?
-There's a simple program called mkpasswd to do that for you.  Just run
-mkpasswd, and at the prompt type in your plaintext password.  It will
-spit out the encrypted password, which you should then just copy into
-the irc.conf file. This should be done only when adding new passwords
-to your irc.conf file. To change over your irc.conf file to use
-encrypted passwords, define CRYPT_OPER_PASSWORD in config.h. You will
-need to recompile your server if you already compiled it with this
-feature disabled. Once compiled, edit the Makefile in this directory
-and chang "IRCDCONF" to your irc.conf file. Then "make install" in this
-directory to replace all the operator passwords in your irc.conf file
+So, how do you generate these icky looking strings for passwords?
+There's a simple program called mkpasswd to do that for you. To
+compile mkpasswd, just "make -f Makefile.crypt" in this directory. After it
+compiles, just run mkpasswd, and at the prompt type in your plaintext passwor\
+d.
+It will spit out the encrypted password, which you should then just copy
+into your ircd.conf file. This should be done only when adding new passwords
+to your ircd.conf file. Crypting of oper passwords is automatically done
+with the new F:lines so there is nothing to enable to be able to use
+crypted oper passwords. All you have to do is edit the Makefile.crypt in this
+directory and change "IRCDCONF = /usr/local/lib/irc/ircd.conf" to the full
+path to your ircd.conf file. Then "make -f Makefile.crypt install" in this
+directory to replace all the operator passwords in your ircd.conf file
 with the encrypted format.
 
 Choose your passwords carefully. Do not choose something in a
index 1bf5ebbf96cd62f25b641751dde8113b17014a60..7feb6c2f4f4edd41f639c40d139d2847d8fc7642 100755 (executable)
@@ -1,6 +1,7 @@
-#!/usr/local/bin/perl
+#!/usr/bin/perl
+
 #************************************************************************
-#*   IRC - Internet Relay Chat, ircd/crypt/crypter
+#*   IRC - Internet Relay Chat, tools/crypter
 #*   Copyright (C) 1991 Sean Batt
 #*
 #*   This program is free software; you can redistribute it and/or modify
@@ -16,6 +17,8 @@
 #*   You should have received a copy of the GNU General Public License
 #*   along with this program; if not, write to the Free Software
 #*   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+#*
+#*   $Id: crypter,v 1.2 2002-03-07 22:52:57 ghostwolf Exp $
 #*/
 
 #From Sean Batt sean@coombs.anu.edu.au
@@ -33,7 +36,7 @@ print "crypting ",$ircdconf,"\n";
 @saltset = ('a' .. 'z', 'A' .. 'Z', '0' .. '9', '.', '/');
 
 umask(0077);
-open ($ircdout, ">/tmp/ircd.conf.tmp") || die "open $!";
+open ($ircdout, ">$tmpfile") || die "open $!";
 
 while ($text = <>) {
 #if its not an "O" line we can ignore it
@@ -48,5 +51,6 @@ close ($ircdout);
 close ($ircdin);
 print "/bin/cp ",$tmpfile," ",$ircdconf,"\n";
 (fork()==0) ? exec("/bin/cp", $tmpfile, $ircdconf) : wait;
+print "",$ircdconf," has been crypted successfully!\n";
 
 #unlink($tmpfile);
index 4c767ab21910307e8712db10f844d00713c5cd4e..94699139de6955178d9ad095824b4c6aabd1d715 100644 (file)
@@ -10,6 +10,8 @@
 #          details of the encoding.
 #
 # --Liandrin
+#
+# $Id: hashtoy,v 1.2 2002-03-07 22:52:57 ghostwolf Exp $
 
 @convert2n = (
         0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
index dfe6305e48c49b180dbff1be96f25fb4b641bb99..a36493a63ebd48b6836be53cefce60bcd37fb6b5 100644 (file)
@@ -1,6 +1,7 @@
 /* simple password generator by Nelson Minar (minar@reed.edu)
  * copyright 1991, all rights reserved.
  * You can use this code as long as my name stays with it.
+ * $Id$
  */
 #define _XOPEN_SOURCE
 #define _XOPEN_VERSION 4
index 920ab5ff58a210be7a560b1a55aea2113cc98c2b..f8a4c126db6a8ef70bc2e2f503dad9012f8b3dab 100644 (file)
@@ -1,4 +1,5 @@
 /*
+** IRC - Internet Relay Chat, tools/ringlog.c
 ** Copyright (C) 2002 by Kevin L. Mitchell <klmitch@mit.edu>
 **
 ** This program is free software; you can redistribute it and/or modify
index 346b05fb76484b44bc820ae560105585cd357019..644243451a4bf7373f45aeec54494801eecf92e7 100755 (executable)
@@ -1,5 +1,6 @@
 #! /usr/bin/perl -w
 #
+# IRC - Internet Relay Chat, tools/ringlog.pl
 # Copyright (C) 2002 by Kevin L. Mitchell <klmitch@mit.edu>
 #
 # This program is free software; you can redistribute it and/or modify
index 6a48b63c3b7876d6a2a4fb793fe1a20204574cf7..048603e8b0a9d768cf6f5b16f54dfa46d8bd71ca 100644 (file)
@@ -2,7 +2,8 @@
 #
 # untabify - convert tabs to spaces
 #
-# $Id: untabify,v 1.1 2000-03-18 05:20:30 bleep Exp $
+# $Id: untabify,v 1.2 2002-03-07 22:52:57 ghostwolf Exp $
+
 use Text::Tabs;
 $tabstop = 8;
 while (<>) { print expand($_) }
index 5431c19b60569619899dc8b3f0c62b1aa0096b00..cd26ae18c8120041b88d05ed343073da80b55e0e 100644 (file)
@@ -1,4 +1,5 @@
 /*
+** IRC - Internet Relay Chat, tools/wrapper.c
 ** Copyright (C) 2000 by Kevin L. Mitchell <klmitch@mit.edu>
 **
 ** This program is free software; you can redistribute it and/or modify