brain
a9d2342f6a
Make install list list automatically generated from build targets and provide facility for installing extra files.
...
Using this, cert.pem and key.pem are only copied to the conf dir if you enabled an ssl module.
Also, this provides facility for a 'make deinstall' which should be safe for use in all situations as it always specifies a file by name and never uses wildcards to rm.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8362 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-25 20:51:58 +00:00
brain
2ab88037d8
Pedantic clean
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8349 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-24 18:03:36 +00:00
brain
57f0a0ffb9
-pedantic good, -Wextra bad. read g++ manpage :)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8348 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-24 17:46:57 +00:00
brain
cbb8fda4a7
Move socketengines into their own dir. This was all w00t's idea, but i told him no because i didnt think it would work. Now ive done it myself :P ner ner ne ner ner :)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8332 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-23 22:30:25 +00:00
brain
71e400674f
-Wall is still required, too
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8331 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-23 22:10:18 +00:00
brain
bfa8e627a1
-W -> -Wextra
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8330 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-23 22:08:57 +00:00
brain
1db092e08e
This now works properly with $NoPedantic macro.
...
Question: where did all the 'unused parameter' warnings vanish to???
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8329 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-23 22:07:47 +00:00
brain
c8389f594d
Roll back to 8323, the -pedantic switch thing totally breaks building the way i implemented it here :p
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8328 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-23 21:50:09 +00:00
brain
89a2c99405
Needs a bit more again
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8327 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-23 21:43:54 +00:00
brain
f34b16edd7
And fix it.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8326 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-23 21:39:10 +00:00
brain
cd9b790e48
Add $NoPedantic build macro, for m_mysql because mysql AB dont know how to code :p
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8325 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-23 21:36:33 +00:00
brain
e281922d55
Auto generate the install list, no more need to insert it into the .makefile.inc for it to be part of make install
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8312 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-23 16:42:03 +00:00
brain
afdbc67a33
Make this a little more bulletproof
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8309 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-22 20:16:58 +00:00
brain
af70c67676
Conditionals in the buildsystem language allowing for checking of configure flags:
...
/* $If: USE_KQUEUE */
/* $ExtraSources: socketengine_kqueue.cpp */
/* $ExtraObjects: socketengine_kqueue.o */
/* $EndIf */
This is used exactly where the example dictates: to pick a socket engine from the socketengine.cpp.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8308 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-22 20:10:46 +00:00
brain
ab6a7318e3
Remove the need for a bunch of the hard coded arrays/hashes by scanning the src/ dir for tag comments, like in modules
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8307 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-22 19:53:23 +00:00
brain
6ded0e838f
Big obvious comments
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8306 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-22 18:29:23 +00:00
brain
8e5bd0e5d6
Comment all this, and tweak it a little
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8305 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-22 18:25:37 +00:00
brain
4fd09d8d67
*POSSIBLE BREAKAGE WARNING* new (currently undocumented) buildsystem that builds an operating system specific makefile from a set of hashes/arrays in configure that are OS independent
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8304 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-22 18:13:45 +00:00
w00t
aef2031c6b
Fix this from an experiment I was playing with :p
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8301 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-22 15:12:58 +00:00
w00t
5d5285f24b
Move cmd_*.cpp to src/commands/. Not done in the nicest of ways yet, but ah well :p
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8299 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-22 14:13:48 +00:00
brain
1cc2417372
This should be the correct set of tweaks to add user_resolver.cpp.
...
Maybe as my project for later, this should be an automated process.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8207 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-15 21:25:49 +00:00
brain
23feae957d
Merge in nenolod's unified build patch from bug #413 , thanks
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8147 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-11 21:22:00 +00:00
brain
aadb840d93
Add -lunwind to libraries on openbsd to fix some compile issues (thanks nenolod)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8119 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-04 21:26:52 +00:00
special
64f5e9a893
Added support for subdirectories in module directories (for organization). I hate perl.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8039 e03df62e-2008-0410-955e-edbf42e46eb7
2007-09-15 10:07:23 +00:00
brain
46d3b250ba
The world wont end, but configure might :p
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7817 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-24 16:42:22 +00:00
brain
f37ed732e8
Slightly better regexps, pointed out by stskeeps
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7815 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-24 16:10:19 +00:00
brain
d0d36795e8
Craquity craq De-craq!
...
This is probably broken on windows, do not attempt to use there yet unless you like broken stuff. Cant say for sure as i havent even tried to build yet and most likely wont tonight.
--- Abstract most of the berkely socket API out into SocketEngine derived classes. SocketEngine base class implements standard berkely sockets that 'real mens systems' like linux
and freebsd have. For socketengine_iocp we implement the windows specific nonesense like the special things needed for udp and accept (ick).
All this to eliminate a bunch of ifdefs.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7810 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-23 22:06:04 +00:00
brain
74f26a0375
Checks for libgnugetopt in /usr/local/lib before continuing
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7785 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-20 21:05:44 +00:00
brain
2a0f1441ef
Improve this a lot
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7783 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-20 20:53:24 +00:00
brain
cf7c73ec7f
Extra stuff so that freebsd 4 may work (needs someone with this OS to test!)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7781 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-20 20:40:11 +00:00
brain
83ca117cdc
Patch from djGrrr that correctly detects epoll on fedora 7, which SMRTly decided not to put libc.so.6 in /lib, or even symlink /lib to lib64...
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7696 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-09 22:00:40 +00:00
brain
6edfe13e49
Better check for kernel build version and libc version for epoll availability.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7657 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-05 12:21:19 +00:00
peavey
326191cd16
Put FileLogger in it's own class. Useful when logging doing more focused logging
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7561 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-25 11:53:07 +00:00
peavey
ea47684780
Bye bye Cygwin and static builds o/
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7547 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-24 15:33:29 +00:00
peavey
2174d15de4
server.cpp
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7544 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-24 15:16:19 +00:00
brain
d6c34d9250
Why does getcache return "true" or undef?! Now returns 1 or 0. Thanks stskeeps
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7482 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-21 13:01:12 +00:00
peavey
619d5a1347
Fix gnutls cert generation failing. Thx owine.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7479 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-20 22:06:14 +00:00
brain
fb3471e948
Fix for bug #353 , theres no solution to this but a slightly craqy one, but at least its one line.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7477 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-19 22:00:44 +00:00
brain
8d46dbfb1e
Check libc version for epoll then check that glibc is built against this kernel version, if not dont allow epoll
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7475 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-19 21:44:46 +00:00
peavey
6d461e285b
Fix copyright headers.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7466 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-17 18:27:36 +00:00
special
49a4bc6311
Module directories now use the concatenated linker flags from every cpp file, instead of just the last (which was rather unpredictable)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7459 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-17 09:53:35 +00:00
peavey
f2acdbc382
OOPS! We try again, since I'm smoking craq. LF is 0x0a NOT CR.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7456 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-16 17:30:04 +00:00
peavey
bab14f0dd2
'svn propset -R svn:eol-style CR *' Set to UNIX-style always. Binaries are auto skipped by svn.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7454 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-16 17:14:45 +00:00
special
110d85009e
Little tweak to fix the output when directory modules execute programs for cflags
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7445 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-16 13:16:59 +00:00
brain
c36ea00019
Backport patch from stskeeps for checking success of gnutls cert generation
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7435 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-11 19:50:26 +00:00
brain
b9b7a3a2cf
Add -Wno-deprecated to prevent an annoyingly stupid gcc4.2 error which stops you passing a literal string to a char* parameter:
...
void a(char* foo); -> a("test") == WARNING on gcc4.2!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7418 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-01 12:36:37 +00:00
special
3c084000e2
Fixed sunos 5.11 support, and a header issue with the ports socketengine. Patch by Stskeeps
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7409 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-25 12:09:24 +00:00
peavey
1d409d0f8b
Apply patch from BuildSmart that fixes an install path.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7399 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-21 15:51:30 +00:00
peavey
4a1755fe8c
Apply OSX patch from BuildSmart that fixes installation issues.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7398 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-21 04:24:54 +00:00
brain
2885e18dcb
Same here
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7246 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-05 21:40:33 +00:00