+radiusd-freeradius () unstable; urgency=low
+
+ * Explicitly excluding modules not in the "stable" list.
+ * Updated policy version number.
+ * Moved from non-US/main to main.
+ * Put pidfile in package's own directory.
+ * Package not as buggy and unstable modules are easily identifiable.
+ (closes: Bug#142217)
+ * Init script handles failure better. (closes: Bug#151264)
+ * New upstream release. (closes: Bug#140536)
+ * Uses available version of postgresql. (closes: Bug#139290)
+
+ -- Chad Miller <cmiller@debian.org> Wed, 25 Sep 2002 11:10:52 -0400
+
radiusd-freeradius (0.5+cvs20020408-1) unstable; urgency=high
* New build-dep on libssl-dev, which is implied by another dep, but making
prog="radiusd"
program="/usr/sbin/radiusd"
-pidfile="/var/run/radiusd/radiusd.pid"
+pidfile="/var/run/radiusd-freeradius/radiusd.pid"
descr="FreeRADIUS daemon"
test -f $program || exit 0
case "$1" in
start) echo -n "Starting $descr: "
start-stop-daemon --start --quiet --pidfile $pidfile --exec $program
- echo "$prog."
+ if [ $? = 0 ]; then
+ echo "$prog."
+ else
+ echo "(failed! run '$program -x' to find out why.)"
+ exit 1
+ fi
;;
stop) echo -n "Stopping $descr: "
start-stop-daemon --stop --quiet --pidfile $pidfile
# 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 --enable-ltdl-install=no --enable-strict-dependencies --without-rlm_python --without-rlm_ippool
+ ##./configure --prefix=$(prefix) --exec-prefix=$(exec_prefix) --libdir=$(libdir) --mandir=$(mandir) --with-logdir=$(logdir) --with-thread-pool --enable-ltdl-install=no --enable-strict-dependencies --without-rlm_python --without-rlm_ippool
+ ./configure --prefix=$(prefix) --exec-prefix=$(exec_prefix) --libdir=$(libdir) --mandir=$(mandir) --with-logdir=$(logdir) --with-thread-pool --enable-ltdl-install=no --enable-strict-dependencies `{ cd src/modules; ls -d rlm_*; } |while read dir; do egrep $$dir src/modules/stable >/dev/null || echo --disable-$$dir; done`
make
touch build
dh_installdirs
make install prefix=$(prefix) exec_prefix=$(exec_prefix) mandir=$(mandir) libdir=$(libdir) R=$(radiusd_freeradius_dir)
# clean up install cruft. $$&@!%
- rmdir $(radiusd_freeradius_dir)/$(execprefix)/include
+ test ! -d $(radiusd_freeradius_dir)/$(execprefix)/include || rmdir $(radiusd_freeradius_dir)/$(execprefix)/include
rm $(radiusd_freeradius_dir)/$(execprefix)/usr/sbin/rc.radiusd
# split out inconvenient/controversal modules to other places
for modname in krb5 ldap mysql postgresql; do \
mkdir -p $(debiandir)/radiusd-freeradius-$${modname}/$(libdir); \
- mv $(radiusd_freeradius_dir)/$(libdir)/rlm*_$${modname}.* $(debiandir)/radiusd-freeradius-$${modname}/$(libdir)/; \
+ mv $(radiusd_freeradius_dir)/$(libdir)/rlm*_$${modname}* $(debiandir)/radiusd-freeradius-$${modname}/$(libdir)/; \
done
# man pages & docs
dh_undocumented
install -g root -m 644 CREDITS $(radiusd_freeradius_dir)/$(pkgdocdir)/credits
- find doc -type f -maxdepth 1 ! -path doc/ChangeLog -exec dh_installdocs {} \;
- find src/modules/rlm_sql/drivers -type f -name \*.sql -exec dh_installdocs {} \;
+ dh_installdocs `find doc -type f -maxdepth 1 ! -path doc/ChangeLog`
+ dh_installdocs `find src/modules/rlm_sql/drivers -type f -name \*.sql`
# dh_installchangelogs doc/ChangeLog
dh_compress
# supporting programs
cat $$TEMPFILE \
| sed -e 's/ / /g' \
| sed -e '/^ example {/,/^ }/s/^/#/' \
- | sed -e 's/^ # shadow =/ shadow =/' \
+ | sed -e 's/# shadow = /shadow = /' \
| sed -e 's/^group = nobody/group = freerad/' \
| sed -e 's/^user = nobody/user = freerad/' \
+ | sed -e 's@/run/radiusd@/run/radiusd-freeradius@' \
> $(radiusd_freeradius_dir)/$(raddbdir)/radiusd.conf; \
rm $$TEMPFILE
#