From: Nick Porter Date: Mon, 11 Dec 2023 14:13:18 +0000 (+0000) Subject: Build unixODBC rather than iODBC - Debian packaging of iODBC is very old X-Git-Tag: release_3_2_4~105 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2d665e5826607e8a9eb27454ed5d0c12e5bb9509;p=thirdparty%2Ffreeradius-server.git Build unixODBC rather than iODBC - Debian packaging of iODBC is very old --- diff --git a/debian/control.in b/debian/control.in index d7bfbc73d6..41ac60a839 100644 --- a/debian/control.in +++ b/debian/control.in @@ -8,7 +8,6 @@ Build-Depends: @BUILDDEPS@ debhelper (>= 9), libcurl4-openssl-dev | libcurl4-gnutls-dev, libcap-dev, libgdbm-dev, - libiodbc2-dev, libjson0 | libjson-c2 | libjson-c3 | libjson-c4 | libjson-c5, libjson0-dev | libjson-c-dev, libkrb5-dev | heimdal-dev, @@ -31,7 +30,8 @@ Build-Depends: @BUILDDEPS@ debhelper (>= 9), libmemcached-dev, libhiredis-dev, python3-dev, @PYTWODEPS@ - samba-dev | samba4-dev + samba-dev | samba4-dev, + unixodbc-dev Section: net Priority: optional Maintainer: Network RADIUS SARL @@ -159,11 +159,11 @@ 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 +Package: freeradius-unixodbc Architecture: any Depends: freeradius (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}, ${dist:Depends} -Description: iODBC module for FreeRADIUS server - The FreeRADIUS server can use iODBC to access databases to authenticate users +Description: unixODBC module for FreeRADIUS server + The FreeRADIUS server can use unixODBC to access databases to authenticate users and do accounting, and this module is necessary for that. Package: freeradius-redis diff --git a/debian/freeradius-iodbc.install b/debian/freeradius-iodbc.install deleted file mode 100644 index c4535d1d90..0000000000 --- a/debian/freeradius-iodbc.install +++ /dev/null @@ -1 +0,0 @@ -usr/lib/freeradius/rlm_sql_iodbc*.so diff --git a/debian/freeradius-iodbc.lintian-overrides b/debian/freeradius-iodbc.lintian-overrides deleted file mode 100644 index a157baa253..0000000000 --- a/debian/freeradius-iodbc.lintian-overrides +++ /dev/null @@ -1,5 +0,0 @@ -freeradius-iodbc: binary-or-shlib-defines-rpath - -# There's plenty in the description of this package to identify -# what it does. -freeradius-iodbc: extended-description-is-probably-too-short diff --git a/debian/freeradius-unixodbc.install b/debian/freeradius-unixodbc.install new file mode 100644 index 0000000000..7742b6b5a3 --- /dev/null +++ b/debian/freeradius-unixodbc.install @@ -0,0 +1 @@ +usr/lib/freeradius/rlm_sql_unixodbc*.so diff --git a/debian/freeradius-unixodbc.lintian-overrides b/debian/freeradius-unixodbc.lintian-overrides new file mode 100644 index 0000000000..c7ce7d5266 --- /dev/null +++ b/debian/freeradius-unixodbc.lintian-overrides @@ -0,0 +1,3 @@ +# There's plenty in the description of this package to identify +# what it does. +freeradius-unixodbc: extended-description-is-probably-too-short diff --git a/debian/freeradius-iodbc.postinst b/debian/freeradius-unixodbc.postinst similarity index 100% rename from debian/freeradius-iodbc.postinst rename to debian/freeradius-unixodbc.postinst diff --git a/debian/rules b/debian/rules index ce19f1a972..bab07d493e 100755 --- a/debian/rules +++ b/debian/rules @@ -33,7 +33,7 @@ logdir = /var/log/$(package) pkgdocdir = /usr/share/doc/$(package) raddbdir = /etc/$(package) -modulelist=krb5 ldap sql_freetds sql_mysql sql_iodbc sql_postgresql dhcp python2 python3 redis rest unbound yubikey +modulelist=krb5 ldap sql_freetds sql_mysql sql_postgresql sql_unixodbc dhcp python2 python3 redis rest unbound yubikey pkgs=$(shell dh_listpackages) # This has to be exported to make some magic below work. @@ -119,10 +119,8 @@ endif --without-rlm_eap_tnc \ --with-rlm_sql_postgresql_lib_dir=`pg_config --libdir` \ --with-rlm_sql_postgresql_include_dir=`pg_config --includedir` \ - --with-iodbc-include-dir='/usr/include/iodbc' \ --without-rlm_eap_ikev2 \ --without-rlm_sql_oracle \ - --without-rlm_sql_unixodbc \ --with-systemd \ --enable-reproducible-builds