head 1.7; access; symbols pkgsrc-2017Q4:1.6.0.50 pkgsrc-2017Q4-base:1.6 pkgsrc-2017Q3:1.6.0.48 pkgsrc-2017Q3-base:1.6 pkgsrc-2017Q2:1.6.0.44 pkgsrc-2017Q2-base:1.6 pkgsrc-2017Q1:1.6.0.42 pkgsrc-2017Q1-base:1.6 pkgsrc-2016Q4:1.6.0.40 pkgsrc-2016Q4-base:1.6 pkgsrc-2016Q3:1.6.0.38 pkgsrc-2016Q3-base:1.6 pkgsrc-2016Q2:1.6.0.36 pkgsrc-2016Q2-base:1.6 pkgsrc-2016Q1:1.6.0.34 pkgsrc-2016Q1-base:1.6 pkgsrc-2015Q4:1.6.0.32 pkgsrc-2015Q4-base:1.6 pkgsrc-2015Q3:1.6.0.30 pkgsrc-2015Q3-base:1.6 pkgsrc-2015Q2:1.6.0.28 pkgsrc-2015Q2-base:1.6 pkgsrc-2015Q1:1.6.0.26 pkgsrc-2015Q1-base:1.6 pkgsrc-2014Q4:1.6.0.24 pkgsrc-2014Q4-base:1.6 pkgsrc-2014Q3:1.6.0.22 pkgsrc-2014Q3-base:1.6 pkgsrc-2014Q2:1.6.0.20 pkgsrc-2014Q2-base:1.6 pkgsrc-2014Q1:1.6.0.18 pkgsrc-2014Q1-base:1.6 pkgsrc-2013Q4:1.6.0.16 pkgsrc-2013Q4-base:1.6 pkgsrc-2013Q3:1.6.0.14 pkgsrc-2013Q3-base:1.6 pkgsrc-2013Q2:1.6.0.12 pkgsrc-2013Q2-base:1.6 pkgsrc-2013Q1:1.6.0.10 pkgsrc-2013Q1-base:1.6 pkgsrc-2012Q4:1.6.0.8 pkgsrc-2012Q4-base:1.6 pkgsrc-2012Q3:1.6.0.6 pkgsrc-2012Q3-base:1.6 pkgsrc-2012Q2:1.6.0.4 pkgsrc-2012Q2-base:1.6 pkgsrc-2012Q1:1.6.0.2 pkgsrc-2012Q1-base:1.6 pkgsrc-2011Q4:1.5.0.22 pkgsrc-2011Q4-base:1.5 pkgsrc-2011Q3:1.5.0.20 pkgsrc-2011Q3-base:1.5 pkgsrc-2011Q2:1.5.0.18 pkgsrc-2011Q2-base:1.5 pkgsrc-2011Q1:1.5.0.16 pkgsrc-2011Q1-base:1.5 pkgsrc-2010Q4:1.5.0.14 pkgsrc-2010Q4-base:1.5 pkgsrc-2010Q3:1.5.0.12 pkgsrc-2010Q3-base:1.5 pkgsrc-2010Q2:1.5.0.10 pkgsrc-2010Q2-base:1.5 pkgsrc-2010Q1:1.5.0.8 pkgsrc-2010Q1-base:1.5 pkgsrc-2009Q4:1.5.0.6 pkgsrc-2009Q4-base:1.5 pkgsrc-2009Q3:1.5.0.4 pkgsrc-2009Q3-base:1.5 pkgsrc-2009Q2:1.5.0.2 pkgsrc-2009Q2-base:1.5 pkgsrc-2009Q1:1.4.0.40 pkgsrc-2009Q1-base:1.4 pkgsrc-2008Q4:1.4.0.38 pkgsrc-2008Q4-base:1.4 pkgsrc-2008Q3:1.4.0.36 pkgsrc-2008Q3-base:1.4 cube-native-xorg:1.4.0.34 cube-native-xorg-base:1.4 pkgsrc-2008Q2:1.4.0.32 pkgsrc-2008Q2-base:1.4 cwrapper:1.4.0.30 pkgsrc-2008Q1:1.4.0.28 pkgsrc-2008Q1-base:1.4 pkgsrc-2007Q4:1.4.0.26 pkgsrc-2007Q4-base:1.4 pkgsrc-2007Q3:1.4.0.24 pkgsrc-2007Q3-base:1.4 pkgsrc-2007Q2:1.4.0.22 pkgsrc-2007Q2-base:1.4 pkgsrc-2007Q1:1.4.0.20 pkgsrc-2007Q1-base:1.4 pkgsrc-2006Q4:1.4.0.18 pkgsrc-2006Q4-base:1.4 pkgsrc-2006Q3:1.4.0.16 pkgsrc-2006Q3-base:1.4 pkgsrc-2006Q2:1.4.0.14 pkgsrc-2006Q2-base:1.4 pkgsrc-2006Q1:1.4.0.12 pkgsrc-2006Q1-base:1.4 pkgsrc-2005Q4:1.4.0.10 pkgsrc-2005Q4-base:1.4 pkgsrc-2005Q3:1.4.0.8 pkgsrc-2005Q3-base:1.4 pkgsrc-2005Q2:1.4.0.6 pkgsrc-2005Q2-base:1.4 pkgsrc-2005Q1:1.4.0.4 pkgsrc-2005Q1-base:1.4 pkgsrc-2004Q4:1.4.0.2 pkgsrc-2004Q4-base:1.4 pkgsrc-2004Q3:1.3.0.8 pkgsrc-2004Q3-base:1.3 pkgsrc-2004Q2:1.3.0.6 pkgsrc-2004Q2-base:1.3 pkgsrc-2004Q1:1.3.0.4 pkgsrc-2004Q1-base:1.3 pkgsrc-2003Q4:1.3.0.2 pkgsrc-2003Q4-base:1.3 netbsd-1-6-1:1.1.1.1.0.4 netbsd-1-6-1-base:1.1.1.1 netbsd-1-6:1.1.1.1.0.6 netbsd-1-6-RELEASE-base:1.1.1.1 pkgviews:1.1.1.1.0.2 pkgviews-base:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.7 date 2018.03.15.06.07.56; author wiz; state dead; branches; next 1.6; commitid 90cziHUTvsmc9wuA; 1.6 date 2012.03.31.21.52.57; author shattered; state Exp; branches; next 1.5; 1.5 date 2009.06.10.13.33.39; author obache; state Exp; branches; next 1.4; 1.4 date 2004.12.03.12.15.54; author adam; state Exp; branches; next 1.3; 1.3 date 2003.05.24.16.43.05; author salo; state Exp; branches; next 1.2; 1.2 date 2003.04.30.19.43.49; author jmmv; state Exp; branches; next 1.1; 1.1 date 2002.06.26.03.48.13; author kent; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2002.06.26.03.48.13; author kent; state Exp; branches; next ; desc @@ 1.7 log @eggdrop: remove patches that are not in distinfo @ text @$NetBSD: patch-ab,v 1.6 2012/03/31 21:52:57 shattered Exp $ --- src/main.c.orig 2011-09-23 20:31:32.000000000 +0000 +++ src/main.c @@@@ -72,7 +72,7 @@@@ # define _POSIX_SOURCE 1 /* Solaris needs this */ #endif -extern char origbotname[], userfile[], botnetnick[]; +extern char origbotname[], userfile[], botnetnick[], tempdir[]; extern int dcc_total, conmask, cache_hit, cache_miss, max_logs, quick_logs, quiet_save; extern struct dcc_t *dcc; @@@@ -108,7 +108,7 @@@@ int con_chan = 0; /* Foreground: c int term_z = 0; /* Foreground: use the terminal as a partyline? */ int use_stderr = 1; /* Send stuff to stderr instead of logfiles? */ -char configfile[121] = "eggdrop.conf"; /* Default config file name */ +char configfile[121] = __PKG_SYSCONFDIR__ "/eggdrop.conf"; /* Default config file name */ char pid_file[120]; /* Name of the pid file */ char helpdir[121] = "help/"; /* Directory of help files */ char textdir[121] = "text/"; /* Directory for text files */ @@@@ -963,6 +963,8 @@@@ int main(int arg_c, char **arg_v) setrlimit(RLIMIT_CORE, &cdlim); #endif + chdir(__PREFIX__ "/share/eggdrop"); + #ifdef DEBUG_CONTEXT /* Initialise context list */ for (i = 0; i < 16; i++) @@@@ -1075,7 +1077,8 @@@@ int main(int arg_c, char **arg_v) cache_miss = 0; cache_hit = 0; if (!pid_file[0]) - egg_snprintf(pid_file, sizeof pid_file, "pid.%s", botnetnick); + egg_snprintf(pid_file, sizeof pid_file, "%.100s/pid.%.32s", + tempdir, botnetnick); /* Check for pre-existing eggdrop! */ f = fopen(pid_file, "r"); @ 1.6 log @Update to 1.6.21. Notable changes: - Added CIDR support to eggdrop. This includes accepting and matching b/e/I masks and user hosts in cidr notation. - Added a msg-rate config variable, to replace the current #define msgrate in server.mod. - Replaced most dns.mod preprocessor definitions with config variables. - Added a configure option to set the handlen while keeping compatibility with the older method of editing eggdrop.h directly. - Explicitly offer both --enable-tcl-threads and --disable-tcl-threads configure options that can forcefully enable or disable threaded Tcl library support. - Fixed a remote DoS in the CTCP parsing code introduced by the servmsg.c buffer overflow patch by Nico Golde. Reference: CVE-2009-1789 - Work around Tcl8.5.10 bug 3371644 (strings starting with # could crash in Tcl_ConvertElement()). - tcl_maskhost could crash the bot. - Fixed a potential crash in read_lang() with lines > 512 characters in language files. Added support for lines of unlimited size. - Fixed dns.mod SIGBUS crashes on 64-bit Sparc. - Fixed a crash when restarting, related to bind log. @ text @d1 1 a1 1 $NetBSD$ @ 1.5 log @Update eggdrop to 1.6.19+ctcpfix, say, 1.6.19nb1. Eggdrop Changes 1.6.19+ctcpfix (14 May 2009): - Fixed another bug in the CTCP parsing code introduced by the servmsg.c buffer overflow patch in 1.6.19. * Patch by: thommey 1.6.19 (18 April 2008): - Update the recommended TCL version to 8.5 * Patch by: guppy - Updated Copyright dates - added [sL] and thommey to the AUTHORS file * Patch by: guppy - load blowfish by default * Patch by: guppy - added a TCL to handle the PONG : junk on some EFnet servers * Patch by: [sL], guppy - add a simple TCL to handle the PASS junk on some Undernet servers * Patch by: guppy - add support for chanmode +T * Patch by: Thomas "thommey" Sader - CTCP parsing was broken by the servmsg.c buffer overflow patch * Patch by: Thomas "thommey" Sader - Fixed a couple of typos in the FEATURES file. * Patch by: Tomas Szaniszlo - Fixed two buffer overflows in servmsg.c (CVE-2007-2807). * Found by: Bow Sineath - Patch by: Nico Golde / Wcc - Fixed compatibility problems with certain time_t implementations. * Found by: various - Patch by: Tothwolf - Complete raw traffic wasn't getting logged in some cases; only the raw command itself was. Fixed. * Patch by: mrBuG @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.4 2004/12/03 12:15:54 adam Exp $ d3 1 a3 1 --- src/main.c.orig 2004-07-02 21:21:08.000000000 +0000 d6 1 a6 1 # define _POSIX_SOURCE 1 /* Solaris needs this */ d11 2 a12 1 extern int dcc_total, conmask, cache_hit, cache_miss, max_logs, quick_logs; d14 1 a14 2 extern struct userrec *userlist; @@@@ -102,7 +102,7 @@@@ int con_chan = 0; /* Foreground: c d23 2 a24 2 @@@@ -726,6 +726,8 @@@@ int main(int argc, char **argv) } d29 1 d32 1 a32 2 Context; @@@@ -825,7 +827,8 @@@@ int main(int argc, char **argv) @ 1.4 log @Changes 1.6.17: - Lots of doc updates. - Added a "stripcodes" Tcl command. See doc/tcl-commands.doc for more information. - Bot idx's should be considered valid to tcl_valididx. - Always try to detect shared Tcl libraries before static ones. - We now correctly differentiate the +l user flag from the +l bot flag. - Cleaned up modules.c and the module configure stuff quite a bit. - Detect Tcl in $HOME/lib and $HOME/tcl/lib first, as to make it easier to allow users to override the system's Tcl version. - We now support module loading under Darwin (Mac OS X) and NeXT Step. - Don't try to call tcl_notes if the notes module isn't loaded. - Show a more descriptive error message when a listen socket can't be opened. - Fixed Tcl encoding issues with .tcl and .set. - Added a set of Finnish language files and a Finnish MOTD. - time_t isn't unsigned, and therefor %lu should not be used as a conversion specifier. - Fixed a gcc warning in dcc.c. - Added support for Quakenet channel modes. - Removed an invalid killsock() in dcc.c. - Fixed extra spaces being written to chan file. - Reworked 'make config' / module configure process. - Op (+o) implies halfop (+l) now. - Cleaned up and optimized rmspace() and fixfrom(). - Updated recomended Tcl version to 8.4.6. - Fix behavior of the BCST bind. BCST is now correctly triggered for dccbroadcasts, as well as when a bot "says" something on a channel. See doc/tcl-commands.doc for more information. - Remove some unneeded casts. - Fixed performance issues with mv/cp when a lot of files are in the file area. - Typo in doc/COMPILING-FAQ. It's LD_LIBRARY_PATH, not LB_LIBRARY_PATH. - Fix a possible issue with ident code. - Don't let .tcl mkdir create duplicate filedb entries. - Fixed a compile error related to varargs when using old Tcl versions. - Fixed a compile error on systems that don't have socklen_t. - Suppress configure warnings on systems that use newer versions of GNU coreutils. @ text @d1 1 a1 1 $NetBSD$ d19 1 a19 1 +char configfile[121] = __PKG_SYSCONFDIR__ "eggdrop.conf"; /* Default config file name */ @ 1.3 log @Updated to version 1.6.15. Changes: - use tar.bz2 distfile - install documentation in proper locations - install more docs - fix PLIST for NOPIC and USE_INET6 - DESCR has 80 columns 1.6.15: ======= - Support for the IPv6 protocol. - Many bugfixes related to the transfer and filesystem modules. - Several more functions have been exported for use by module coders. - Updated UnderNet's max bans to 45, and EFnet's to 25. - The nick bind is now triggered even if the nick is not on any channels (ie if the bot's nick changes before it's on a channel). - Removed strict-servernames -- $server is now always the server's realname and $serveraddress is it's server list entry. - Merged use-console-r and debug-output into one new setting named raw-log. - Updated recommended Tcl version to 8.3.4. - User-punishing and tcl_maskhost nor use matching banmasks regardless of strict-host. - Updates to the 'autobotchk' script. @ text @d3 4 a6 4 --- src/main.c.orig 2003-05-04 22:15:53.000000000 +0200 +++ src/main.c 2003-05-24 16:56:20.000000000 +0200 @@@@ -70,7 +70,7 @@@@ #define _POSIX_SOURCE 1 d14 10 a23 10 @@@@ -101,7 +101,7 @@@@ * stats? */ int term_z = 0; /* Foreground: use the terminal as a party * line? */ -char configfile[121] = "eggdrop.conf"; /* Name of the config file */ +char configfile[121] = __PKG_SYSCONFDIR__ "eggdrop.conf"; /* Name of the config file */ char helpdir[121] = "help/"; /* Directory of help files (if used) */ char textdir[121] = "text/"; /* Directory for text files that get dumped */ int keep_all_logs = 0; /* Never erase logfiles, no matter how old @@@@ -735,6 +735,8 @@@@ d32 1 a32 1 @@@@ -834,7 +836,8 @@@@ @ 1.2 log @Honour PKG_SYSCONFDIR. Bump PKGREVISION to 1. @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.1.1.1 2002/06/26 03:48:13 kent Exp $ d3 3 a5 3 --- src/main.c.orig Sun Jul 15 09:15:14 2001 +++ src/main.c Thu Nov 1 12:55:48 2001 @@@@ -61,7 +61,7 @@@@ d9 15 a23 16 -extern char origbotname[], userfile[], botnetnick[]; +extern char origbotname[], userfile[], botnetnick[], tempdir[]; extern int dcc_total, conmask, cache_hit, cache_miss, max_logs, quick_logs; extern struct dcc_t *dcc; @@@@ -94,7 +94,7 @@@@ stats? */ int term_z = 0; /* Foreground: use the terminal as a party line? */ -char configfile[121] = "eggdrop.conf"; /* Name of the config file */ +char configfile[121] = __PKG_SYSCONFDIR__ "/eggdrop.conf"; char helpdir[121]; /* Directory of help files (if used) */ char textdir[121] = ""; /* Directory for text files that get dumped */ int keep_all_logs = 0; /* Never erase logfiles, no matter how old @@@@ -709,6 +709,8 @@@@ setrlimit(RLIMIT_CORE, &cdlim); d26 2 a28 2 + chdir(__PREFIX__ "/share/eggdrop"); d31 2 a32 1 @@@@ -809,7 +809,8 @@@@ d36 3 a38 3 - egg_snprintf(pid_file, sizeof pid_file, "pid.%s", botnetnick); + egg_snprintf(pid_file, sizeof pid_file, "%.100s/pid.%.32s", + tempdir, botnetnick); @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.4 2002/06/25 14:16:18 kent Exp $ d19 1 a19 1 +char configfile[121] = __PREFIX__ "/etc/eggdrop.conf"; @ 1.1.1.1 log @Re-import eggdrop as chat/eggdrop. @ text @@