221 Commits

Author SHA1 Message Date
Peter Powell
348a746b98 Fix pure static builds. 2016-12-02 14:44:09 +00:00
Peter Powell
9401f1fbc3 GCC should never assume that this can not be null. 2016-06-27 15:41:27 +01:00
Peter Powell
955b0d74dc Fix extraneous quotes in makefile template. 2016-04-10 04:33:25 +01:00
Peter Powell
eced506220 Delete modules cautiously when doing a deinstall. 2016-03-25 12:33:30 +00:00
Peter Powell
ba0649304a Partially revert "Quote paths in the makefile".
There is no need to quote BASE and {BIN,CON,DAT,MOD,LOG}PATH
because they are alreaady quoted. {BUILD,SOURCE}PATH however
are unquoted so their usages still need to be quoted.

This reverts commit dbcbf9647d0abb421f8a84b41e674f403c91ce8f.
2016-03-25 12:29:52 +00:00
Peter Powell
8aced44661 Fix 'cron' and 'restart' in the helper not forwarding arguments. 2016-03-21 17:15:50 +00:00
Peter Powell
dbcbf9647d Quote paths in the makefile.
This prevents problems caused by paths with spaces in them.
2016-02-26 14:10:57 +00:00
Peter Powell
7d0b4a4a07 Generate a 2048-bit dhparams unless explicitly specified. 2015-10-24 22:47:30 +01:00
Peter Powell
7da9057946 Fix "make -jX debug install" causing linker errors. 2015-07-29 23:46:33 +01:00
Attila Molnar
ec5529639d Merge pull request #1076 from SaberUK/insp20+kqueue
[2.0] Fix checking whether kqueue/stdint/strlcpy are available.
2015-07-23 01:07:53 +02:00
Richard Bradfield
79d1a436bb Replace deprecated tmpnam() call
From Perl 5.22 onwards, POSIX::tmpnam() has been deprecated (without the
usual 2 year deprecation cycle), using the File::Temp module instead
preserves compatibility while allowing compilation on 5.22 and later.
2015-07-22 01:18:03 +01:00
Peter Powell
0b4285abd1 Add missing copyright headers to test files. 2015-07-21 23:34:22 +01:00
Peter Powell
4c751dbbe8 Switch <stdint.h> test to use a test file too. 2015-07-21 23:30:54 +01:00
Peter Powell
e5cfa9c0c2 Switch strlcpy test to use a test file too. 2015-07-21 23:22:17 +01:00
Peter Powell
3fbba606c3 Fix checking whether kqueue is available.
It seems like the newer OS X versions don't put headers into the
system include directories. Switch to using a test file instead.
2015-07-21 23:22:09 +01:00
Attila Molnar
539abb9e93 Merge pull request #1063 from SaberUK/insp20+cert-warning
[2.0] Show a better warning when certtool/openssl are missing.
2015-06-26 00:00:25 +02:00
Peter Powell
0207736989 Log STDOUT and STDERR in the launchd script. 2015-06-24 23:06:11 +01:00
Peter Powell
4e3d7a6e30 Show a better warning when certtool/openssl are missing. 2015-06-15 21:30:27 +01:00
Peter Powell
2ad8a6791b Fix system-wide installation of the data and log directories.
The existing method works fine when building with the default
paths but breaks when you are doing a system-wide installation.
2015-06-14 19:39:15 +01:00
Peter Powell
8cae3800ef Fix building when VERBOSE is already set in the environment.
This is a workaround for now. In 2.2 we should prefix all of the
environment variables with INSPIRCD_ to avoid collisions.
2015-03-09 15:26:40 +00:00
Dan Parsons
293c9c66b7 Updated inspircd init script template to make it chkconfig compatible.
Backported from master, PR #901
2014-11-12 22:44:57 +01:00
Peter Powell
a49fd4cba6 Use gnutls_rnd instead of gcry_randomize on newer GnuTLS versions.
This is a modified version of 690c372. Fixes #905.
2014-10-25 02:57:51 +01:00
Peter Powell
d04979df09 Fix some small bugs in the makefile template.
- GCC in C++ mode should be called g++ not gcc.
- ICC in C++ mode should be called icpc not icc.
2014-10-24 23:34:41 +01:00
Peter Powell
6f65b7c6ca Add a workaround for compiling modules with Windows line endings. 2014-10-13 22:04:47 +01:00
Peter Powell
8258232b7b Fix unit-cc not loading configure cache when building files. 2014-08-27 22:01:54 +01:00
Peter Powell
4288b2a599 Add a work around for trampling over PKG_CONFIG_PATH.
The extend_pkg_path method will be removed in 2.2 as it
causes problems with non-standard pkg-config paths. This
commit adds a workaround until that happens.
2014-08-19 15:27:19 +01:00
Peter Powell
1cf1f1fba9 Fix various small problems with configure.
- Fix temporary files not being deleted after use.
- Fix the option for disabling rpath.
- Fix the help message:
  * Fix indentation of some help options.
  * Fix default paths not containing 'run'.
  * Remove documentation for --disable-ipv6 (exists but does nothing).
  * Remove documentation for --library-dir (does not exist).
- Fix some minor errors in messages.
2014-06-26 10:53:45 +01:00
Peter Powell
21487bc0ae Replace deprecated entry in launchd config with the modern equivalent. 2014-05-18 10:17:07 +01:00
Peter Powell
284925bed5 Backport questions from master's genssl tool. 2014-04-16 19:58:01 +01:00
Attila Molnar
1fa541b76f Merge pull request #784 from ShutterQuick/patch-1
Fix build problem on Solaris
2014-02-28 17:16:29 +01:00
ShutterQuick
0a3b54f599 Fix build problem on Solaris
-rpath only takes one dash
Fixes the Solaris build \o/

'''
<fraggeln> SaberUK: http://m.theo.nu/jenkins/job/InspIRCd-2.0/435/label=solaris/console <--
<fraggeln> do you have any clue on why?
<@Shutter> Hmm. Where did that extra - come from.
<fraggeln> Shutter: no idea :)
[...]
<fraggeln> Shutter: sub make_rpath($;$) <-- in make/utilities.pm
<fraggeln> thats where that extra - is'''
2014-02-27 10:57:34 -08:00
Peter Powell
ea5093fec0 Fix Solaris not being able to find modules without pkg-config. 2014-02-27 17:05:08 +00:00
Peter Powell
63c1695d77 Fix a few minor issues with make distclean.
- Only remove the base directory for in-source installs.
- Use full paths to the source directory.
- Update the help message to be more accurate.
2013-04-27 23:09:20 +01:00
Peter Powell
5f6372b2f0 Reorganise configuration files:
- Example config files now end with .conf.example.
- Example text files now end with .txt.example.
- Removed 'inspircd' from the name of multiple example files.
- Added missing oper motd example file.
2013-03-02 15:50:09 +00:00
Peter Powell
0e56edffa3 Use GNU install on Solaris. 2013-01-27 16:54:22 +01:00
Peter Powell
a0eeadff23 Replace a GNUmake idiom with the portable equivalent. 2012-12-25 18:39:04 +01:00
Peter Powell
092f9d7ec1 Fix property list arguments. 2012-12-21 01:47:12 +01:00
Peter Powell
0a0aa94537 Fix #380 on BSD make. 2012-12-07 18:38:34 +01:00
Peter Powell
c468e9b368 Fix invalid argument warnings on clang. 2012-12-07 03:32:50 +00:00
Peter Powell
66652af628 Fix the list of files to be removed by make. 2012-12-02 17:58:13 +00:00
Peter Powell
56cde817e0 Fix GnuTLS certificate generation on OS X. 2012-11-28 17:10:22 +01:00
Peter Powell
999ba802d6 Fix ModuleManager failing when:
- LWP::Simple is not installed.
- Crypt::SSLeay or IO::Socket::SSL are not installed.

This fixes #154.
2012-11-08 01:07:38 +01:00
Adam
a1f823fdab Fix c2f7fc047c2e5bbb899c820590ce07fee593b28f 2012-10-06 18:25:58 -04:00
ChrisTX
c2f7fc047c Replace hardcoded paths with configurable ones
This patchset aims to ease the packaging of InspIRCd for a system-wide installation scenario.

Changes in detail:
configure: Add the options --log-path and --data-path
m_ssl_gnutls, openssl: Change the hardcoded "conf/" to the existent CONFIG_PATH macro
m_xline_db: Make the location of xline.db configurable. It will use --data-path as default value, but this can be
changed using the configuration files.
2012-10-04 15:14:04 +02:00
Adam
6735f2da27 Fixed Windows build, int32_t is already defined in stdint.h.
Add GnuTLS support for Windows.
Made NSIS script include extra DLL files if supplied and
include the conf/aliases and conf/modules example configuration files.
Added make_gnutls_cert.bat to generate GnuTLS certificates on Windows.
Fixed typo in gnutlscert.pm.
2012-07-09 01:53:07 -04:00
Peter Powell
a528d8ddb0 Install example alias and module configuration files as well. 2012-06-12 18:53:50 +01:00
attilamolnar
79fd90ebe0 Fix build on Debian GNU/Hurd platforms, thanks to Jonathan Wiltshire <jmw@debian.org> for the patch
Fixes issue #98 reported by @guikcd
2012-06-12 22:49:28 -07:00
Peter Powell
f4e2332421 Update 'make install' to inform the user about the example config files. 2012-05-04 20:54:30 +01:00
Peter Powell
d219516b43 Install example configuration files into their own directory. 2012-05-01 14:10:35 +01:00
Robby-
5e8f135c6a Headers: update remaining scripts too 2012-04-20 18:33:52 +02:00