Problem with freeradius 8.1

Hajimu UMEMOTO ume at mahoroba.org
Tue Jun 10 20:59:47 PDT 2003


Hi,

>>>>> On Tue, 10 Jun 2003 13:22:22 -0700 (PDT)
>>>>> Chris Miller <ctodd at netgate.net> said:

ctodd> I've attempted to build freeradius on two separate machines running
ctodd> FreeBSD 4.7p10 with the following error :

ctodd> # pwd
ctodd> /usr/ports/net/freeradius
ctodd> # make
ctodd> ===>  freeradius-0.8.1 is marked as broken: Incorrect pkg-plist.

ctodd> I notified the maintainer via email last week but haven't heard anything
ctodd> back. I updated my ports tree again, but the problem remains. I've also
ctodd> looked at the port on the FreeBSD website, and copied the pkg-plist file
ctodd> over with no luck. Am I doing something wrong, or is the port really
ctodd> broken? What's missing in the pkg-plist?

Here is a patch I sent to the maintainer yesterday.  Actually, there
are more potential dependency to another packages than the patch
fixes, and the problem is too hard to fix right now.  There is too few
documentation about the packages that FreeRADIUS tries to use.
However, at least I believe the patch is enough to build it on bento.

Sincerely,

Index: Makefile
diff -u Makefile.orig Makefile
--- Makefile.orig	Tue Jun 10 11:50:04 2003
+++ Makefile	Tue Jun 10 14:40:26 2003
@@ -16,13 +16,46 @@
 
 LIB_DEPENDS=	gdbm.3:${PORTSDIR}/databases/gdbm
 
-BROKEN=         "Incorrect pkg-plist"
-
 LOGDIR?=	/var/log
 
 USE_GMAKE=	yes
 USE_LIBTOOL=	yes
-CONFIGURE_ARGS=	--prefix=${PREFIX} --quiet --with-logdir=${LOGDIR}
+CONFIGURE_ARGS=	--prefix=${PREFIX} --quiet --with-logdir=${LOGDIR} \
+		--localstatedir=/var
+
+.if defined(WITH_OPENLDAP_VER)
+.if ${WITH_OPENLDAP_VER} == 20 || ${WITH_OPENLDAP_VER} == 21
+LIB_DEPENDS+=	ldap.2:${PORTSDIR}/net/openldap${WITH_OPENLDAP_VER}
+LIB_DEPENDS+=	lber.2:${PORTSDIR}/net/openldap${WITH_OPENLDAP_VER}
+.else
+BROKEN=		"WITH_OPENLDAP_VER must be 20 or 21"
+.endif
+PLIST_SUB+=	LDAP=""
+.else
+CONFIGURE_ARGS+=--without-rlm_ldap
+PLIST_SUB+=	LDAP="@comment "
+.endif
+
+.if defined(WITH_MYSQL_VER)
+.if ${WITH_MYSQL_VER} == 41
+LIB_DEPENDS+=	mysqlclient.14:${PORTSDIR}/databases/mysql41-client
+.elif ${WITH_MYSQL_VER} == 40
+LIB_DEPENDS+=	mysqlclient.12:${PORTSDIR}/databases/mysql40-client
+.elif ${WITH_MYSQL_VER} == 3
+LIB_DEPENDS+=	mysqlclient.10:${PORTSDIR}/databases/mysql323-client
+.else
+BROKEN=		"WITH_MYSQL_VER must be 3, 40 or 41"
+.endif
+PLIST_SUB+=	MYSQL=""
+.else
+CONFIGURE_ARGS+=--without-rlm_sql_mysql
+PLIST_SUB+=	MYSQL="@comment "
+.endif
+
+# rlm_x99_token seems broken
+CONFIGURE_ARGS+=--without-rlm_x99_token
+PLIST_SUB+=	TOKEN="@comment "
+
 INSTALLS_SHLIB=	yes
 
 MAN1=		radclient.1 radlast.1 radtest.1 raduse.1 radwho.1 radzap.1
Index: pkg-plist
diff -u pkg-plist.orig pkg-plist
--- pkg-plist.orig	Tue Apr 22 22:03:49 2003
+++ pkg-plist	Tue Jun 10 14:18:32 2003
@@ -139,6 +139,11 @@
 lib/rlm_files.a
 lib/rlm_files.la
 lib/rlm_files.so
+%%LDAP%%lib/rlm_ldap-0.8.1.la
+%%LDAP%%lib/rlm_ldap-0.8.1.so
+%%LDAP%%lib/rlm_ldap.a
+%%LDAP%%lib/rlm_ldap.la
+%%LDAP%%lib/rlm_ldap.so
 lib/rlm_mschap-0.8.1.la
 lib/rlm_mschap-0.8.1.so
 lib/rlm_mschap.a
@@ -179,23 +184,28 @@
 lib/rlm_sql.a
 lib/rlm_sql.la
 lib/rlm_sql.so
-lib/rlm_sql_mysql.a
-lib/rlm_sql_mysql.la
-lib/rlm_sql_mysql.so
-lib/rlm_sql_mysql.so.0
+%%MYSQL%%lib/rlm_sql_mysql.a
+%%MYSQL%%lib/rlm_sql_mysql.la
+%%MYSQL%%lib/rlm_sql_mysql.so
+%%MYSQL%%lib/rlm_sql_mysql.so.0
 lib/rlm_unix-0.8.1.la
 lib/rlm_unix-0.8.1.so
 lib/rlm_unix.a
 lib/rlm_unix.la
 lib/rlm_unix.so
-lib/rlm_x99_token-0.8.1.la
-lib/rlm_x99_token-0.8.1.so
-lib/rlm_x99_token.a
-lib/rlm_x99_token.la
-lib/rlm_x99_token.so
+%%TOKEN%%lib/rlm_x99_token-0.8.1.la
+%%TOKEN%%lib/rlm_x99_token-0.8.1.so
+%%TOKEN%%lib/rlm_x99_token.a
+%%TOKEN%%lib/rlm_x99_token.la
+%%TOKEN%%lib/rlm_x99_token.so
 sbin/check-radiusd-config
 sbin/checkrad
 sbin/radiusd
 sbin/radwatch
 sbin/rc.radiusd
 @dirrm etc/raddb
+ at exec mkdir -p /var/log/raddb
+ at exec chmod -R og= /var/log/raddb
+ at unexec rm -fr /var/log/raddb
+ at exec mkdir -p /var/run/radiusd
+ at unexec rm -fr /var/run/radiusd

--
Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan
ume at mahoroba.org  ume at bisd.hitachi.co.jp  ume@{,jp.}FreeBSD.org
http://www.imasy.org/~ume/


More information about the freebsd-ports mailing list