File: config.h

package info (click to toggle)
freepops 0.2.7-3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 5,464 kB
  • ctags: 2,677
  • sloc: ansic: 16,571; sh: 1,781; makefile: 1,127; cpp: 350
file content (68 lines) | stat: -rw-r--r-- 2,325 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/******************************************************************************
 * $Id: config.h,v 1.50 2008/05/24 16:19:25 gareuselesinge Exp $
 * This file is part of liberopops (http://liberopops.sf.net)                 *
 * This file is distributed under the terms of GNU GPL license.               *
 ******************************************************************************/


/******************************************************************************/
 /*!
  * \file   config.h
  * \brief  Defines some names used by both the program and the Makefile.
  * \author Enrico Tassi <gareuselesinge@users.sourceforge.net>
  */
/******************************************************************************/

// common
#define VERSION 	"0.2.7"
#define PROGRAMNAME	"FreePOPs"
#define PIDFILE 	"/var/run/freepopsd.pid"
#define POP3PORT  	2000
#define MAXTHREADS 	5

// win32
#if defined(WIN32) && !defined(CYGWIN)
	#define LOGFILE		"log.txt"
	#define BINDADDRESS  	INADDR_LOOPBACK
	#define DEFAULT_USERAGENT \
		"Mozilla/5.0 (; U; Win32; en-US; rv:1.7.8)"\
		" Gecko/20050518 Firefox/1.0.4"
	#define FREEPOPSLUA_PATH_UPDATES "lua_updates/"
	#define FREEPOPSLUA_PATH_UNOFFICIAL "lua_unofficial/"
#endif

// beos
#ifdef BEOS
	#define LOGFILE		"/var/log/freepops.log"
	#define BINDADDRESS  	INADDR_LOOPBACK
	#define DEFAULT_USERAGENT \
		"Mozilla/5.0 (X11; U; BeOS; en-US; rv:1.7.8)"\
		" Gecko/20050518 Firefox/1.0.4"
	#define FREEPOPSLUA_PATH_UPDATES "/var/lib/freepops/lua_updates/"
	#define FREEPOPSLUA_PATH_UNOFFICIAL "/var/lib/freepops/lua_unofficial/"
#endif

#ifdef MACOSX
	#define LOGFILE		"stdout"
	#define BINDADDRESS  	INADDR_ANY
	#define DEFAULT_USERAGENT \
		"Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; "\
		"en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0"
	#define FREEPOPSLUA_PATH_UPDATES "src/lua_updates/"
	#define FREEPOPSLUA_PATH_UNOFFICIAL "src/lua_unofficial/"
#endif
		
// unix
#if (!(defined(WIN32) && !defined(CYGWIN))) && (!defined(BEOS)) && (!defined(MACOSX))
	#define LOGFILE		"stdout"
	#define BINDADDRESS  	INADDR_ANY
	#define DEFAULT_USERAGENT \
		"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8)"\
		" Gecko/20050518 Firefox/1.0.4"
	#define FREEPOPSLUA_PATH_UPDATES "/var/lib/freepops/lua_updates/"
	#define FREEPOPSLUA_PATH_UNOFFICIAL "/var/lib/freepops/lua_unofficial/"
#endif