Browse Source

Add an autoconf hack to allow FreeBSD machines to correctly build.

master
Michael Schloh von Bennewitz 23 years ago committed by Ralf S. Engelschall
parent
commit
f62bcb8dbf
  1. 11
      ircd/ircd.freebsd.patch
  2. 12
      ircd/ircd.spec

11
ircd/ircd.freebsd.patch

@ -0,0 +1,11 @@
diff -Naur irc2.10.3p3.orig/support/configure irc2.10.3p3/support/configure
--- irc2.10.3p3.orig/support/configure Tue Jan 14 12:20:16 2003
+++ irc2.10.3p3/support/configure Tue Jan 14 12:29:41 2003
@@ -1308,7 +1308,6 @@
if echo "$irc_cv_solaris_2" | egrep "^2\.(0|1|2)" >/dev/null; then
cat >> confdefs.h <<\EOF
-#define SOLARIS_2_0_2_1_2_2 1
EOF
elif echo "$irc_cv_solaris_2" | grep "^2\.3" >/dev/null; then

12
ircd/ircd.spec

@ -33,13 +33,14 @@ Distribution: OpenPKG [BASE]
Group: Network
License: BSD
Version: 2.10.3p3
Release: 20020320
Release: 20030114
# list of sources
Source0: ftp://ftp.irc.org/irc/server/irc%{version}.tgz
Source1: rc.ircd
Source2: ircd.conf
Patch0: irc%{version}.patch
Patch1: ircd.freebsd.patch
# build information
Prefix: %{l_prefix}
@ -57,8 +58,13 @@ AutoReqProv: no
relaying to other server sites.
%prep
%setup -q -n irc%{version}
%patch -p0
%setup0 -q -n irc%{version}
%patch0 -p0
case "%{l_target}" in
*-freebsd* )
%patch1 -p1
;;
esac
%build
CC="%{l_cc}" \

Loading…
Cancel
Save