Ubuntu package from Master branch

Olivier Beytrison olivier at heliosnet.org
Wed Dec 5 16:32:36 CET 2012


On 05.12.2012 15:40, Olivier Beytrison wrote:
> On 05.12.2012 14:45, Arran Cudbard-Bell wrote:
>>>
>>> @@ -11,7 +11,7 @@ include ../Make.inc
>>> #
>>> FILES = acct_users attrs attrs.access_reject attrs.accounting_response \
>>>        attrs.pre-proxy clients.conf dictionary templates.conf  \
>>> -       experimental.conf hints huntgroups ldap.attrmap                 \
>>> +       experimental.conf hints huntgroups                      \
>>>        policy.txt preproxy_users proxy.conf radiusd.conf trigger.conf  \
>>>        users attrs.access_challenge README.rst
>>
>> Ah yes ok, i'll do that now.
>>
>> Could you move this thread over to the developers list? Unsubscribing from users so I won't get your emails.
> 
> OK done. Thanks for the commit, it fix the building process.
> 
> now I'm working on getting the warning out of the packaging process. and
> I'm trying to get rid of those messages :
> 
> dpkg-shlibdeps: warning: couldn't find library libfreeradius-eap.so
> needed by debian/freeradius/usr/lib/freeradius/rlm_eap_peap.so (ELF
> format: 'elf64-x86-64'; RPATH: '/usr/lib/freeradius').
> dpkg-shlibdeps: warning: couldn't find library libfreeradius-radius.so
> needed by debian/freeradius/usr/sbin/radmin (ELF format: 'elf64-x86-64';
> RPATH: '/usr/lib/freeradius').
> [...]
> 
> Which is weird because dh_makeshlibs should take care of this
> dependency, AFAIK. Any idea?

Weird, I just rebuilded the packages, without any changes, but this time
I didn't get the warning. looks like a package order issue.

> I'll check now how it installs and starts.

During installation of a base freeradius (freeradius, freeradius-common,
freeradius-utils, libfreeradius3) I had the following warnings :

dpkg-statoverride: warning: --update given but /var/run/freeradius does
not exist
dpkg-statoverride: warning: --update given but
/etc/freeradius/policy.txt does not exist
dpkg-statoverride: warning: stripping trailing /
dpkg-statoverride: warning: stripping trailing /
dpkg-statoverride: warning: stripping trailing /
dpkg-statoverride: warning: stripping trailing /

corrected by the following patch

diff --git a/debian/freeradius.dirs b/debian/freeradius.dirs
index f4af486..76a0641 100644
--- a/debian/freeradius.dirs
+++ b/debian/freeradius.dirs
@@ -3,3 +3,4 @@ etc/freeradius/sites-enabled
 etc/freeradius/sites-available
 usr/lib/freeradius
 var/log/freeradius
+var/run/freeradius
diff --git a/debian/freeradius.postinst b/debian/freeradius.postinst
index c878136..d536cd6 100755
--- a/debian/freeradius.postinst
+++ b/debian/freeradius.postinst
@@ -31,7 +31,6 @@ case "$1" in
             /etc/freeradius/attrs.pre-proxy \
             /etc/freeradius/hints \
             /etc/freeradius/attrs \
-            /etc/freeradius/policy.txt \
             /etc/freeradius/attrs.accounting_response \
             /etc/freeradius/attrs.access_reject \
             /etc/freeradius/attrs.access_challenge \
@@ -43,10 +42,10 @@ case "$1" in
             fi
           done

-          for dir in /etc/freeradius/certs/ \
-            /etc/freeradius/sites-available/ \
-            /etc/freeradius/sites-enabled/ \
-            /etc/freeradius/policy.d/
+          for dir in /etc/freeradius/certs \
+            /etc/freeradius/sites-available \
+            /etc/freeradius/sites-enabled \
+            /etc/freeradius/policy.d
           do
             if ! dpkg-statoverride --list | grep -qw $dir$; then
               dpkg-statoverride --add --update freerad freerad 2751 $dir
diff --git a/debian/freeradius.prerm b/debian/freeradius.prerm
index a34c6de..da7dfb7 100755
--- a/debian/freeradius.prerm
+++ b/debian/freeradius.prerm
@@ -17,7 +17,6 @@ case "$1" in
           /etc/freeradius/attrs.pre-proxy \
           /etc/freeradius/hints \
           /etc/freeradius/attrs \
-          /etc/freeradius/policy.txt \
           /etc/freeradius/attrs.accounting_response \
           /etc/freeradius/attrs.access_reject \
           /etc/freeradius/attrs.access_challenge \


I'm not sure for /var/run/freeradius if that's the correct way, or if we
should remove the dpkg-statoverride for /var/run/freeradius as it is
created if needed by the rc script on startup

I'll test the different modules packages (krb5, ldap, mysql for now)

Olivier
-- 

 Olivier Beytrison
 Network & Security Engineer, HES-SO Fribourg
 Mobile: +41 (0)78 619 73 53
 Mail: olivier at heliosnet.org


More information about the Freeradius-Devel mailing list