> From: Kirt Runolfson
> Sent: Thursday, 17 July 2003 8:36 AM

> >Kirt Runolfson <[EMAIL PROTECTED]> wrote:
> >> I really don't want these x packages installed on my radius server.
> >> Since I don't intend to use odbc, how can I remove the dependency on
> >> libiodbc2?  Or is my best bet some other method?
> 
> >Alan DeKok wrote:
> >  Don't configure the sql module to use iodbc, and it won't be linked
> >against.
> 
> Thank you for the response Alan.  I tried using the --without-rlm_sql
> configure option in the debian/rules script, but that broke the package
> build.

You could try removing iodbc from src/modules/rlm_sql/stable, if you don't
want it to build. It shouldn't _break_ the packaging in any way... Leaving
out the entire rlm_sql _will_ break things, sadly.

> A previous thread mentioned breaking off the rlm stuff into Yet Another
> debian package.  There are cons to this, but I think in this case, the
> pros out weigh the cons.  As it is now, just installing freeradius wants
> to install 17.5 MB worth of packages on a woody server and pulls all
> sorts of X packages:

> The following NEW packages will be installed:
>  freeradius libfreetype6 libglib1.2 libgtk1.2 libgtk1.2-common libiodbc2
>  libltdl3 libsnmp-base libsnmp4.2 xfree86-common xlibs
> 0 packages upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
> Need to get 6590kB of archives. After unpacking 17.6MB will be used.

Blaargh! OK, that's the kind of argument I wanted to see to make splitting
it out worthwhile. However, it's (I suspect) too late for 0.9.0 to have
this, but 0.9.1 might be in scope. Eitherway, I'm going to bring it back
onto the agenda once 0.9.0's finally done.

Certainly when I looked at unixodbc it wanted to install a similarly large
set of dependancies that I didn't want on my RADIUS server. However, due
to -dev package conflicts, we don't get both in Debian anyway.

Anyway, here's the patch to make freeradius-iodbc a seperate package:
It'll save packages on your _install_ machine only, sadly. And of course
if there're any problems, I'm all ears... (I'm running it locally without
problems, mind you.)

diff -ruN radiusd.org/debian/control radiusd/debian/control
--- radiusd.org/debian/control  14 May 2003 09:04:36 -0000      1.33
+++ radiusd/debian/control      8 Jul 2003 11:55:54 -0000
@@ -57,3 +57,10 @@
 Description: MySQL module for FreeRADIUS server
  The FreeRADIUS server can use MySQL to authenticate users and do accounting,
  and this module is necessary for that.
+
+Package: freeradius-iodbc
+Architecture: any
+Depends: freeradius, ${shlibs:Depends}
+Description: iODBC module for FreeRADIUS server
+ The FreeRADIUS server can use iODBC to access databases to authenticate users
+ and do accounting, and this module is necessary for that.
diff -u -r1.43 rules
--- radiusd.org/debian/rules    16 Jun 2003 07:28:57 -0000      1.43
+++ radiusd/debian/rules        8 Jul 2003 11:55:55 -0000
@@ -84,7 +84,7 @@
        rm -rf $(freeradius_dir)/usr/share/doc/freeradius-0.9-pre
 
        # split out inconvenient/controversal modules to other places
-       for modname in krb5 ldap mysql postgresql; do \
+       for modname in krb5 ldap mysql postgresql iodbc; do \
                mkdir -p $(debiandir)/$(package)-$${modname}/$(libdir); \
                mv $(freeradius_dir)/$(libdir)/rlm*_$${modname}* 
$(debiandir)/$(package)-$${modname}/$(libdir)/; \
        done
@@ -131,7 +131,7 @@
        rm -f stamp-build debian/{files,substvars} debian/*.debhelper
        [ -f Make.inc ] && make distclean || true
        dh_clean
-       rm -rf $(freeradius_dir) 
$(debiandir)/$(package)-{ldap,postgresql,mysql,krb5}{,.substvars}
+       rm -rf $(freeradius_dir) 
$(debiandir)/$(package)-{ldap,postgresql,mysql,krb5,iodbc}{,.substvars}
 
 binary: binary-indep binary-arch
 
diff -ruN radiusd.org/debian/freeradius-iodbc.postinst 
radiusd/debian/freeradius-iodbc.postinst
--- radiusd.org/debian/freeradius-iodbc.postinst        1970-01-01 10:00:00.000000000 
+1000
+++ radiusd/debian/freeradius-iodbc.postinst    2003-06-12 00:06:39.000000000 +1000
@@ -0,0 +1,21 @@
+#! /bin/sh
+
+set -e
+
+case "$1" in
+  configure)
+       if [ -x /usr/sbin/invoke-rc.d ] ; then
+               invoke-rc.d freeradius restart
+       else
+               /etc/init.d/freeradius restart
+       fi
+       ;;
+  abort-upgrade)
+       ;;
+  abort-remove)
+       ;;
+  abort-deconfigure)
+       ;;
+esac
+
+#DEBHELPER#
diff -ruN radiusd.org/debian/freeradius-iodbc.prerm 
radiusd/debian/freeradius-iodbc.prerm
--- radiusd.org/debian/freeradius-iodbc.prerm   1970-01-01 10:00:00.000000000 +1000
+++ radiusd/debian/freeradius-iodbc.prerm       2003-06-12 00:06:39.000000000 +1000
@@ -0,0 +1,5 @@
+#! /bin/sh
+
+set -e 
+
+#DEBHELPER#
--
=========================================================
Paul "TBBle" Hampson
Bubblesworth Pty Ltd (ABN: 51 095 284 361)
[EMAIL PROTECTED]

This is a one line proof...if we start
sufficiently far to the left.
        -- Cambridge University Math Department
---------------------------------------------------------
Random signature generator 3.0 by Paul "TBBle" Hampson
=========================================================


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to