Hi,

I noticed that the Debian packages I had built have a little problem :
the dictionaries are put in /share, and the documentation was put in two
different places. I quickly munged the debian/rules file like this :

--- rules.orig  2003-01-13 03:05:26.000000000 +0100
+++ rules       2003-02-12 19:34:03.000000000 +0100
@@ -14,6 +14,7 @@
 prefix = /
 exec_prefix    = /usr
 mandir = $(exec_prefix)/share/man
+datadir = $(exec_prefix)/share
 libdir = $(exec_prefix)/lib/freeradius
 logdir = /var/log/radiusd-freeradius
 pkgdocdir      = $(exec_prefix)/share/doc/radiusd-freeradius
@@ -23,7 +24,7 @@
 # Builds the binary package.
        dh_testdir
        # dh_testroot
-       ./configure --prefix=$(prefix) --exec-prefix=$(exec_prefix) --libdir=$(libdir) 
--mandir=$(mandir) --with-logdir=$(logdir) --with-thread-pool 
--with-system-libtool="`which libtool`" --enable-ltdl-install=no 
--enable-strict-dependencies `find src/modules -type d |grep rlm_ |sed -e 
"s%.*/\(rlm_[^/]*\)\(/.*\)*%\\1%" |sort |uniq |while read dir; do egrep ^$dir\$ 
src/modules/stable >/dev/null || echo --disable-$dir; done`
+       ./configure --prefix=$(prefix) --exec-prefix=$(exec_prefix) --libdir=$(libdir) 
+--mandir=$(mandir) --datadir=$(datadir) --with-logdir=$(logdir) --with-thread-pool 
+--with-system-libtool="`which libtool`" --enable-ltdl-install=no 
+--without-rlm_x99_token --enable-strict-dependencies `find src/modules -type d |grep 
+rlm_ |sed -e "s%.*/\(rlm_[^/]*\)\(/.*\)*%\\1%" |sort |uniq |while read dir; do egrep 
+^$dir\$ src/modules/stable >/dev/null || echo --disable-$dir; done`
        make
        touch build

@@ -34,7 +35,8 @@
 binary-arch: build
        dh_clean
        dh_installdirs
-       make install prefix=$(prefix) exec_prefix=$(exec_prefix) mandir=$(mandir) 
libdir=$(libdir) R=$(radiusd_freeradius_dir)
+       sed -e 's/[[:space:]]*doc//' Makefile | tee Makefile
+       make install prefix=$(prefix) exec_prefix=$(exec_prefix) mandir=$(mandir) 
+datadir=$(datadir) libdir=$(libdir) R=$(radiusd_freeradius_dir)

        # rename radius binary to play nicely with others
        mv $(radiusd_freeradius_dir)/usr/sbin/radiusd 
$(radiusd_freeradius_dir)/usr/sbin/freeradiusd

Note the sed job is just plain ugly, but the doc/Makefile has the
documentation path hardcoded, so I chose the lesser evil :

        $(INSTALL) -d -m 755    $(R)$(datadir)/doc/freeradius-$(RADIUSD_VERSION)

Could someone add the modifications to debian/rules so the next
snapshots build correctly from the start ? The changes are trivial
enough, anyway, and the package builds correctly here...

Regards,
-- 
[ Jacques Caruso <[EMAIL PROTECTED]>                  D�veloppeur PHP ]
[ Monaco Internet                           http://monaco-internet.mc/ ]
[ T�l : (+377) 93 10 00 43                        Cl� PGP : 0x41F5C63D ]
[ -+- Support bacteria! They're the only culture some people have. -+- ]

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

Reply via email to