summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authortv <tv@pkgsrc.org>2005-08-29 14:28:12 +0000
committertv <tv@pkgsrc.org>2005-08-29 14:28:12 +0000
commit8bae39f01e3c9d54bc1537ad62cbe3a11d66f0a1 (patch)
tree56face7720a52b1e8fc4650d1e694368e65c1e7b /net
parenteb5b3ea9f9ab15cebc7d3224ddac6cc0aab8a98d (diff)
downloadpkgsrc-8bae39f01e3c9d54bc1537ad62cbe3a11d66f0a1.tar.gz
- Make gdbm optional, but keep it as default. (Partial dbm support using
a builtin Berkeley DB 1.8x can now be used with option "bdb -gdbm"; no dbm support at all can be selected with "-gdbm".) - Specify --with/--without exactly once per option. - Merge postgresql support to a single option (pgsql), and correspondingly use pgsql.buildlink3.mk to pick the builder's desired implementation. This aligns freeradius with the rest of pkgsrc, wrt pgsql support.
Diffstat (limited to 'net')
-rw-r--r--net/freeradius/Makefile15
-rw-r--r--net/freeradius/PLIST14
-rw-r--r--net/freeradius/PLIST.dbm7
-rw-r--r--net/freeradius/PLIST.gdbm5
-rw-r--r--net/freeradius/options.mk48
5 files changed, 45 insertions, 44 deletions
diff --git a/net/freeradius/Makefile b/net/freeradius/Makefile
index 3460b2bb61b..053e1f252cb 100644
--- a/net/freeradius/Makefile
+++ b/net/freeradius/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.32 2005/08/14 18:01:54 adrianp Exp $
+# $NetBSD: Makefile,v 1.33 2005/08/29 14:28:12 tv Exp $
DISTNAME= freeradius-1.0.4
PKGREVISION= 1
@@ -39,14 +39,10 @@ CONFIGURE_ARGS+= --with-ltdl-include=${PREFIX}/include
CONFIGURE_ARGS+= --without-rlm_ippool
CONFIGURE_ARGS+= --without-rlm_smb
CONFIGURE_ARGS+= --without-rlm_krb5
-CONFIGURE_ARGS+= --without-rlm_ldap
CONFIGURE_ARGS+= --without-rlm_pam
CONFIGURE_ARGS+= --without-rlm_sql_iodbc
-CONFIGURE_ARGS+= --without-rlm_sql_mysql
-CONFIGURE_ARGS+= --without-rlm_sql_postgresql
CONFIGURE_ARGS+= --without-rlm_sql_oracle
CONFIGURE_ARGS+= --without-rlm_sql_unixodbc
-CONFIGURE_ARGS+= --without-snmp
SUBST_CLASSES= make
SUBST_STAGE.make= post-patch
@@ -88,7 +84,6 @@ CONF_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f}
.undef f
.include "../../security/openssl/buildlink3.mk"
-.include "../../databases/gdbm/buildlink3.mk"
.include "../../devel/libltdl/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
@@ -117,11 +112,9 @@ post-install:
${INSTALL_DATA_DIR} ${EGDIR}
${INSTALL_DATA_DIR} ${EGDIR}/certs
${INSTALL_DATA_DIR} ${EGDIR}/certs/demoCA
-
-. for f in ${EGFILES}
- ${INSTALL_DATA} ${WRKSRC}/raddb/${f} ${EGDIR}/${f}
-. endfor
-
+.for f in ${EGFILES}
+ ${INSTALL_DATA} ${WRKSRC}/raddb/${f} ${EGDIR}/${f}
+.endfor
@${MKDIR} ${PKG_SYSCONFDIR}/certs
@${MKDIR} ${PKG_SYSCONFDIR}/certs/demoCA
cd ${WRKSRC} && ${FIND} . -name .libs | ${XARGS} ${RM} -rf
diff --git a/net/freeradius/PLIST b/net/freeradius/PLIST
index 4105c3ca642..f9401ce13a2 100644
--- a/net/freeradius/PLIST
+++ b/net/freeradius/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.10 2005/08/14 18:01:54 adrianp Exp $
+@comment $NetBSD: PLIST,v 1.11 2005/08/29 14:28:12 tv Exp $
bin/radclient
bin/radeapclient
bin/radlast
@@ -6,8 +6,6 @@ bin/radrelay
bin/radtest
bin/radwho
bin/radzap
-bin/rlm_dbm_cat
-bin/rlm_dbm_parser
bin/smbencrypt
lib/libeap-${PKGVERSION}.la
lib/libeap-${PKGVERSION}.so
@@ -49,16 +47,6 @@ lib/rlm_checkval-${PKGVERSION}.so
lib/rlm_checkval.a
lib/rlm_checkval.la
lib/rlm_checkval.so
-lib/rlm_counter-${PKGVERSION}.la
-lib/rlm_counter-${PKGVERSION}.so
-lib/rlm_counter.a
-lib/rlm_counter.la
-lib/rlm_counter.so
-lib/rlm_dbm-${PKGVERSION}.la
-lib/rlm_dbm-${PKGVERSION}.so
-lib/rlm_dbm.a
-lib/rlm_dbm.la
-lib/rlm_dbm.so
lib/rlm_detail-${PKGVERSION}.la
lib/rlm_detail-${PKGVERSION}.so
lib/rlm_detail.a
diff --git a/net/freeradius/PLIST.dbm b/net/freeradius/PLIST.dbm
new file mode 100644
index 00000000000..d491e26bf53
--- /dev/null
+++ b/net/freeradius/PLIST.dbm
@@ -0,0 +1,7 @@
+@comment $NetBSD: PLIST.dbm,v 1.1 2005/08/29 14:28:12 tv Exp $
+bin/rlm_dbm_cat
+bin/rlm_dbm_parser
+lib/rlm_dbm-${PKGVERSION}.so
+lib/rlm_dbm.a
+lib/rlm_dbm.la
+lib/rlm_dbm.so
diff --git a/net/freeradius/PLIST.gdbm b/net/freeradius/PLIST.gdbm
new file mode 100644
index 00000000000..12fa5ee79bf
--- /dev/null
+++ b/net/freeradius/PLIST.gdbm
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST.gdbm,v 1.1 2005/08/29 14:28:12 tv Exp $
+lib/rlm_counter-${PKGVERSION}.so
+lib/rlm_counter.a
+lib/rlm_counter.la
+lib/rlm_counter.so
diff --git a/net/freeradius/options.mk b/net/freeradius/options.mk
index 00ca24bd245..11e32bcf4af 100644
--- a/net/freeradius/options.mk
+++ b/net/freeradius/options.mk
@@ -1,43 +1,47 @@
-# $NetBSD: options.mk,v 1.4 2005/03/02 21:44:55 adrianp Exp $
+# $NetBSD: options.mk,v 1.5 2005/08/29 14:28:12 tv Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.freeradius
-PKG_SUPPORTED_OPTIONS= ldap postgresql73 postgresql74 mysql snmp
+PKG_SUPPORTED_OPTIONS= bdb gdbm ldap mysql pgsql snmp
+PKG_SUGGESTED_OPTIONS= gdbm
.include "../../mk/bsd.options.mk"
###
-### Can't support both versions of PostgreSQL
+### Use GDBM or Berkeley DB 1.x for storing user details
###
-.if !empty(PKG_OPTIONS:Mpostgresql73) && !empty(PKG_OPTIONS:Mpostgresql74)
-PKG_FAIL_REASON+= "PostgreSQL 7.3 and 7.4 cannot both be compiled in." \
- "Please change ${PKG_OPTIONS_VAR} to one or the other."
+.if !empty(PKG_OPTIONS:Mgdbm)
+. include "../../databases/gdbm/buildlink3.mk"
+CONFIGURE_ARGS+= --with-rlm_dbm
+PLIST_SRC+= ${PKGDIR}/PLIST.dbm ${PKGDIR}/PLIST.gdbm
+.elif !empty(PKG_OPTIONS:Mbdb) && exists(/usr/include/ndbm.h)
+BDB_ACCEPTED= db1
+. include "../../mk/bdb.buildlink3.mk"
+CONFIGURE_ARGS+= --with-rlm_dbm
+PLIST_SRC+= ${PKGDIR}/PLIST.dbm
+.else
+CONFIGURE_ARGS+= --without-rlm_dbm
.endif
###
### Use OpenLDAP for storing user details
###
.if !empty(PKG_OPTIONS:Mldap)
-. include "../../databases/openldap/buildlink3.mk"
+. include "../../databases/openldap/buildlink3.mk"
CONFIGURE_ARGS+= --with-rlm_ldap
PLIST_SRC+= ${PKGDIR}/PLIST.ldap
+.else
+CONFIGURE_ARGS+= --without-rlm_ldap
.endif
###
-### Use PostgreSQL v7.3 for storing user details
+### Use PostgreSQL for storing user details
###
-.if !empty(PKG_OPTIONS:Mpostgresql73)
-. include "../../databases/postgresql73-lib/buildlink3.mk"
-CONFIGURE_ARGS+= --with-rlm_sql_postgresql
-PLIST_SRC+= ${PKGDIR}/PLIST.pgsql
-.endif
-
-###
-### Use PostgreSQL v7.4 for storing user details
-###
-.if !empty(PKG_OPTIONS:Mpostgresql74)
-. include "../../databases/postgresql74-lib/buildlink3.mk"
+.if !empty(PKG_OPTIONS:Mpgsql)
+. include "../../mk/pgsql.buildlink3.mk"
CONFIGURE_ARGS+= --with-rlm_sql_postgresql
PLIST_SRC+= ${PKGDIR}/PLIST.pgsql
+.else
+CONFIGURE_ARGS+= --without-rlm_sql_postgresql
.endif
###
@@ -47,6 +51,8 @@ PLIST_SRC+= ${PKGDIR}/PLIST.pgsql
. include "../../mk/mysql.buildlink3.mk"
CONFIGURE_ARGS+= --with-rlm_sql_mysql
PLIST_SRC+= ${PKGDIR}/PLIST.mysql
+.else
+CONFIGURE_ARGS+= --without-rlm_sql_mysql
.endif
###
@@ -60,6 +66,8 @@ PLIST_SRC+= ${PKGDIR}/PLIST.mysql
###
###
.if !empty(PKG_OPTIONS:Msnmp)
-. include "../../net/net-snmp/buildlink3.mk"
+. include "../../net/net-snmp/buildlink3.mk"
CONFIGURE_ARGS+= --with-snmp
+.else
+CONFIGURE_ARGS+= --without-snmp
.endif