head 1.5; access; symbols pkgsrc-2013Q2:1.5.0.54 pkgsrc-2013Q2-base:1.5 pkgsrc-2012Q4:1.5.0.52 pkgsrc-2012Q4-base:1.5 pkgsrc-2011Q4:1.5.0.50 pkgsrc-2011Q4-base:1.5 pkgsrc-2011Q2:1.5.0.48 pkgsrc-2011Q2-base:1.5 pkgsrc-2009Q4:1.5.0.46 pkgsrc-2009Q4-base:1.5 pkgsrc-2008Q4:1.5.0.44 pkgsrc-2008Q4-base:1.5 pkgsrc-2008Q3:1.5.0.42 pkgsrc-2008Q3-base:1.5 cube-native-xorg:1.5.0.40 cube-native-xorg-base:1.5 pkgsrc-2008Q2:1.5.0.38 pkgsrc-2008Q2-base:1.5 pkgsrc-2008Q1:1.5.0.36 pkgsrc-2008Q1-base:1.5 pkgsrc-2007Q4:1.5.0.34 pkgsrc-2007Q4-base:1.5 pkgsrc-2007Q3:1.5.0.32 pkgsrc-2007Q3-base:1.5 pkgsrc-2007Q2:1.5.0.30 pkgsrc-2007Q2-base:1.5 pkgsrc-2007Q1:1.5.0.28 pkgsrc-2007Q1-base:1.5 pkgsrc-2006Q4:1.5.0.26 pkgsrc-2006Q4-base:1.5 pkgsrc-2006Q3:1.5.0.24 pkgsrc-2006Q3-base:1.5 pkgsrc-2006Q2:1.5.0.22 pkgsrc-2006Q2-base:1.5 pkgsrc-2006Q1:1.5.0.20 pkgsrc-2006Q1-base:1.5 pkgsrc-2005Q4:1.5.0.18 pkgsrc-2005Q4-base:1.5 pkgsrc-2005Q3:1.5.0.16 pkgsrc-2005Q3-base:1.5 pkgsrc-2005Q2:1.5.0.14 pkgsrc-2005Q2-base:1.5 pkgsrc-2005Q1:1.5.0.12 pkgsrc-2005Q1-base:1.5 pkgsrc-2004Q4:1.5.0.10 pkgsrc-2004Q4-base:1.5 pkgsrc-2004Q3:1.5.0.8 pkgsrc-2004Q3-base:1.5 pkgsrc-2004Q2:1.5.0.6 pkgsrc-2004Q2-base:1.5 pkgsrc-2004Q1:1.5.0.4 pkgsrc-2004Q1-base:1.5 pkgsrc-2003Q4:1.5.0.2 pkgsrc-2003Q4-base:1.5 pkgsrc-base:1.1.1.1 TNF:1.1.1 buildlink2-base:1.3 netbsd-1-5-PATCH001:1.2 netbsd-1-5-RELEASE:1.2 netbsd-1-4-PATCH003:1.2 netbsd-1-4-PATCH002:1.2 comdex-fall-1999:1.2 netbsd-1-4-PATCH001:1.2 netbsd-1-4-RELEASE:1.2; locks; strict; comment @# @; 1.5 date 2002.06.26.03.50.51; author kent; state dead; branches; next 1.4; 1.4 date 2002.06.25.14.16.18; author kent; state Exp; branches; next 1.3; 1.3 date 2002.01.31.23.04.58; author wiz; state dead; branches; next 1.2; 1.2 date 98.11.24.21.10.02; author frueauf; state Exp; branches; next 1.1; 1.1 date 98.11.24.04.12.10; author tv; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2002.06.25.14.05.40; author kent; state Exp; branches; next ; desc @@ 1.5 log @Move eggdrop from net/ to chat/. @ text @$NetBSD: patch-ab,v 1.4 2002/06/25 14:16:18 kent Exp $ --- 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 @@@@ #define _POSIX_SOURCE 1 #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; 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] = __PREFIX__ "/etc/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); } #endif + + chdir(__PREFIX__ "/share/eggdrop"); /* Initialise context list */ for (i = 0; i < 16; i++) @@@@ -809,7 +809,8 @@@@ 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.4 log @Resolve the previous confilict. @ text @d1 1 a1 1 $NetBSD$ @ 1.3 log @Remove eggdrop (broken for 16 months now). @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.2 1998/11/24 21:10:02 frueauf Exp $ d3 39 a41 19 --- src/main.c.orig Fri Oct 23 07:20:44 1998 +++ src/main.c Mon Nov 23 23:06:43 1998 @@@@ -93,7 +93,7 @@@@ /* foreground: use the terminal as a party line? */ int term_z = 0; /* name of the config file */ -char configfile[121] = "egg.config"; +char configfile[121] = __PREFIX__ "/etc/eggdrop.conf"; /* directory of help files (if used) */ char helpdir[121]; /* directory for text files that get dumped */ @@@@ -513,6 +513,7 @@@@ FILE *f; struct sigaction sv; struct chanset_t * chan; + chdir(__PREFIX__ "/share/eggdrop"); /* initialise context list */ for (i = 0; i < 16; i++) { context; @ 1.2 log @pkglint: add missing rcs ids. @ text @d1 1 a1 1 $NetBSD$ @ 1.1 log @Add eggdrop 1.3.22, a very popular IRC robot. @ text @d1 2 @ 1.1.1.1 log @Import eggdrop. Submitted by svs@@ropnet.ru in pkg/12009 Eggdrop is an IRC bot, written in C. If you don't know what IRC is, this is probably not whatever you're looking for! Eggdrop, being a bot, sits on a channel and takes protective measures: to keep the channel from being taken over (in the few ways that anything CAN), to recognize banished users or sites and reject them, to recognize priveledged users and let them gain ops, etc. @ text @d1 19 a19 41 $NetBSD$ --- 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 @@@@ #define _POSIX_SOURCE 1 #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; 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] = __PREFIX__ "/etc/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); } #endif + + chdir(__PREFIX__ "/share/eggdrop"); /* Initialise context list */ for (i = 0; i < 16; i++) @@@@ -809,7 +809,8 @@@@ 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"); @