summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoradrianp <adrianp>2004-11-10 22:27:32 +0000
committeradrianp <adrianp>2004-11-10 22:27:32 +0000
commitc87936ac36cb3dd3d42f304553c57a75328ba94c (patch)
treeb25eb619fa81a3bb78b25505e7c0396bbbfa6017
parentd2794ff16648189f68a2b59f5aa83dcf21d1784e (diff)
downloadpkgsrc-c87936ac36cb3dd3d42f304553c57a75328ba94c.tar.gz
- Update options.mk because of mySQL buildlink changes
- Add a fix for crashes when processing EAP-PEAP requests PR 28095 Konstantin.Kabassanov (at) lip6.fr - Fix pthreads enabled builds on NetBSD systems < 2.0 - Replace patch-ai, patch-aj and patch-ak with SUBST_* (suggested by juan@)
-rw-r--r--net/freeradius/Makefile21
-rw-r--r--net/freeradius/distinfo5
-rw-r--r--net/freeradius/options.mk10
-rw-r--r--net/freeradius/patches/patch-ai13
-rw-r--r--net/freeradius/patches/patch-aj13
-rw-r--r--net/freeradius/patches/patch-ak12
6 files changed, 21 insertions, 53 deletions
diff --git a/net/freeradius/Makefile b/net/freeradius/Makefile
index e218b7a601c..08d8b2646a3 100644
--- a/net/freeradius/Makefile
+++ b/net/freeradius/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2004/10/15 12:03:53 tv Exp $
+# $NetBSD: Makefile,v 1.16 2004/11/10 22:27:32 adrianp Exp $
DISTNAME= freeradius-1.0.1
PKGREVISION= 3
@@ -18,7 +18,6 @@ GNU_CONFIGURE= YES
USE_BUILDLINK3= YES
USE_PKGINSTALL= YES
USE_PERL5= YES
-PTHREAD_OPTS+= native
LIBTOOLIZE_PLIST= NO
PLIST_SRC= ${WRKDIR}/.PLIST_SRC
@@ -46,6 +45,24 @@ CONFIGURE_ARGS+= --without-rlm_sql_oracle
CONFIGURE_ARGS+= --without-rlm_sql_unixodbc
CONFIGURE_ARGS+= --without-snmp
+SUBST_CLASSES= make
+SUBST_STAGE.make= post-patch
+SUBST_FILES.make= src/modules/rlm_counter/Makefile.in \
+ src/modules/rlm_ldap/Makefile.in \
+ src/modules/rlm_sql/drivers/rlm_sql_postgresql/Makefile.in \
+ src/modules/rlm_mschap/Makefile
+SUBST_SED.make= -e "s|@counter_ldflags@|@counter_ldflags@ \
+ -L${PREFIX}/lib \
+ ${COMPILER_RPATH_FLAG}${PREFIX}/lib|g" \
+ -e "s|@ldap_ldflags@|@ldap_ldflags@ -L${PREFIX}/lib \
+ ${COMPILER_RPATH_FLAG}${PREFIX}/lib|g" \
+ -e "s|@postgresql_ldflags@|@postgresql_ldflags@ \
+ -L${PREFIX}/lib \
+ ${COMPILER_RPATH_FLAG}${PREFIX}/lib|g" \
+ -e "s|RLM_LDFLAGS =|RLM_LDFLAGS = \
+ -L../../../src/lib/.libs/ -lradius|g"
+SUBST_MESSAGE.make= "Fixing Makefiles."
+
.include "options.mk"
RCD_SCRIPTS= radiusd
diff --git a/net/freeradius/distinfo b/net/freeradius/distinfo
index 60ea71e811a..2fd7daa3787 100644
--- a/net/freeradius/distinfo
+++ b/net/freeradius/distinfo
@@ -1,9 +1,6 @@
-$NetBSD: distinfo,v 1.8 2004/10/02 12:06:03 adrianp Exp $
+$NetBSD: distinfo,v 1.9 2004/11/10 22:27:32 adrianp Exp $
SHA1 (freeradius-1.0.1.tar.gz) = 54de3bf96a2eb7992408573002d458edba1b47b5
Size (freeradius-1.0.1.tar.gz) = 2237745 bytes
SHA1 (patch-ae) = 0c1b6c79329f41c35e3a783e61cc205cb78a4773
SHA1 (patch-ah) = 49a5afd67ffea3bf871f57a3d8c2888baf765558
-SHA1 (patch-ai) = 4671a9cca166436f1563f322fc3d232780cfa0e3
-SHA1 (patch-aj) = 9c4e28033c8d05ca39e31055f828c7251cd0483d
-SHA1 (patch-ak) = 453f99d83d6a92bba08904e1510c23cd8d5448a1
diff --git a/net/freeradius/options.mk b/net/freeradius/options.mk
index 65fee035950..28fbc23f84f 100644
--- a/net/freeradius/options.mk
+++ b/net/freeradius/options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.2 2004/10/29 07:07:44 xtraeme Exp $
+# $NetBSD: options.mk,v 1.3 2004/11/10 22:27:32 adrianp Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.freeradius
PKG_SUPPORTED_OPTIONS= ldap postgresql73 postgresql74 mysql snmp
@@ -14,14 +14,6 @@ PKG_FAIL_REASON+= "PostgreSQL 7.3 and 7.4 cannot both be compiled in." \
.endif
###
-### Can't support both versions of mySQL
-###
-.if !empty(PKG_OPTIONS:Mmysql3) && !empty(PKG_OPTIONS:Mmysql4)
-PKG_FAIL_REASON+= "mySQL 3 and 4 cannot both be compiled in." \
- "Please change ${PKG_OPTIONS_VAR} to one or the other."
-.endif
-
-###
### Use OpenLDAP for storing user details
###
.if !empty(PKG_OPTIONS:Mldap)
diff --git a/net/freeradius/patches/patch-ai b/net/freeradius/patches/patch-ai
deleted file mode 100644
index 6c78c9f7e9c..00000000000
--- a/net/freeradius/patches/patch-ai
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-ai,v 1.1 2004/09/23 19:51:22 adrianp Exp $
-
---- src/modules/rlm_counter/Makefile.in.orig 2004-09-23 19:27:35.000000000 +0100
-+++ src/modules/rlm_counter/Makefile.in 2004-09-23 19:29:22.000000000 +0100
-@@ -2,7 +2,7 @@
- SRCS = rlm_counter.c
- HEADERS =
- RLM_CFLAGS = @counter_cflags@
--RLM_LIBS = @counter_ldflags@
-+RLM_LIBS = @counter_ldflags@ -L${LOCALBASE}/lib -Wl,-R${LOCALBASE}/lib
- RLM_INSTALL =
-
- include ../rules.mak
diff --git a/net/freeradius/patches/patch-aj b/net/freeradius/patches/patch-aj
deleted file mode 100644
index 14b970f31b4..00000000000
--- a/net/freeradius/patches/patch-aj
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-aj,v 1.1 2004/10/02 12:06:03 adrianp Exp $
-
---- src/modules/rlm_ldap/Makefile.in.orig 2004-09-29 15:44:13.000000000 +0100
-+++ src/modules/rlm_ldap/Makefile.in 2004-09-29 15:45:55.000000000 +0100
-@@ -2,7 +2,7 @@
- SRCS = rlm_ldap.c
- HEADERS =
- RLM_CFLAGS = @ldap_cflags@
--RLM_LIBS = @ldap_ldflags@
-+RLM_LIBS = @ldap_ldflags@ -L${LOCALBASE}/lib ${COMPILER_RPATH_FLAG}${PREFIX}/lib
-
- include ../rules.mak
-
diff --git a/net/freeradius/patches/patch-ak b/net/freeradius/patches/patch-ak
deleted file mode 100644
index f92fa5d3dc9..00000000000
--- a/net/freeradius/patches/patch-ak
+++ /dev/null
@@ -1,12 +0,0 @@
-$NetBSD: patch-ak,v 1.1 2004/10/02 12:06:03 adrianp Exp $
-
---- src/modules/rlm_sql/drivers/rlm_sql_postgresql/Makefile.in.orig 2004-09-29 16:33:07.000000000 +0100
-+++ src/modules/rlm_sql/drivers/rlm_sql_postgresql/Makefile.in 2004-09-29 16:33:38.000000000 +0100
-@@ -3,6 +3,6 @@
- TARGET = @targetname@
- SRCS = sql_postgresql.c
- RLM_SQL_CFLAGS = @postgresql_cflags@ $(INCLTDL)
--RLM_SQL_LIBS = @postgresql_ldflags@
-+RLM_SQL_LIBS = @postgresql_ldflags@ -L${LOCALBASE}/lib ${COMPILER_RPATH_FLAG}${PREFIX}/lib
-
- include ../rules.mak