yardradius (1.1.2-4) debian-dir only changes

Summary

 debian/README.Debian |   24 ++++++
 debian/changelog     |  197 +++++++++++++++++++++++++++++++++++++++++++++++++++
 debian/compat        |    1 
 debian/control       |   29 +++++++
 debian/copyright     |   19 ++++
 debian/dirs          |    2 
 debian/docs          |    4 +
 debian/init          |   77 +++++++++++++++++++
 debian/logrotate     |   10 ++
 debian/postinst      |   48 ++++++++++++
 debian/preinst       |   41 ++++++++++
 debian/rules         |   94 ++++++++++++++++++++++++
 12 files changed, 546 insertions(+)

    
download this patch

Patch contents

--- yardradius-1.1.2.orig/debian/dirs
+++ yardradius-1.1.2/debian/dirs
@@ -0,0 +1,2 @@
+usr/bin
+usr/sbin
--- yardradius-1.1.2.orig/debian/docs
+++ yardradius-1.1.2/debian/docs
@@ -0,0 +1,4 @@
+README
+README.LUCENT
+CREDITS
+GPG-KEY
--- yardradius-1.1.2.orig/debian/init
+++ yardradius-1.1.2/debian/init
@@ -0,0 +1,77 @@
+#!/bin/sh
+#
+# Copyright (C) 2001-2007 Francesco P. Lovergine <frankie@debian.org>
+#
+
+### BEGIN INIT INFO
+# Provides:          yardradius
+# Required-Start:    $syslog $network
+# Required-Stop:     $syslog $network
+# Should-Start:      $local_fs $remote_fs
+# Should-Stop:       $local_fs $remote_fs
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# Short-Description: Run yardradius daemon
+# Description:       Start the RADIUS auth/acct services provided
+#                    by yardradius daemon
+### END INIT INFO
+
+DAEMON=/usr/sbin/radiusd
+NAME=radiusd
+DESC=yardradius
+
+test -x $DAEMON || exit 0
+
+. /lib/lsb/init-functions
+
+set -e
+
+case "$1" in
+  start)
+	if [ -f /etc/yardradius/users ]; then
+		if [ ! -f /etc/yardradius/users.db ]; then
+			/usr/sbin/builddbm 
+		fi
+		log_daemon_msg "Starting $DESC" "$NAME"
+		start-stop-daemon --start --quiet --oknodo \
+			--exec $DAEMON -- -l /var/log/yardradius.log -b -c
+		log_end_msg $?
+	else
+		echo "$DESC not configured"
+		exit 1;
+	fi
+	;;
+  stop)
+	log_daemon_msg "Stopping $DESC" "$NAME"
+	pkill -f -u root $DAEMON || true;
+	log_end_msg $?
+	;;
+  restart|force-reload)
+	if [ -f /etc/yardradius/users ]; then
+		log_daemon_msg "Restarting $DESC" "$NAME"
+		pkill -f -u root $DAEMON || true;
+		sleep 1
+		start-stop-daemon --start --quiet --oknodo \
+			--exec $DAEMON -- -l /var/log/yardradius.log -b -c
+		log_end_msg $?
+	else
+		echo "$DESC not configured"
+		exit 1;
+	fi
+	;;
+  status)
+  	if [ $(pgrep radiusd|wc -l) -ne 0 ]; then
+		echo "$DESC is running"
+	else
+		echo "$DESC is not running"
+	fi
+  	;;
+  *)
+	N=/etc/init.d/$NAME
+	echo "Usage: $N {start|stop|restart|force-reload}" >&2
+	exit 1
+	;;
+esac
+
+exit 0
+
--- yardradius-1.1.2.orig/debian/control
+++ yardradius-1.1.2/debian/control
@@ -0,0 +1,29 @@
+Source: yardradius
+Section: net
+Priority: optional
+Maintainer: Francesco Paolo Lovergine <frankie@debian.org>
+Build-Depends: debhelper (>= 5), libgdbm-dev, libpam0g-dev, autotools-dev
+Standards-Version: 3.7.3
+Homepage: http://yardradius.org/
+
+Package: yardradius
+Architecture: any
+Depends: libpam-runtime, ${shlibs:Depends}
+Provides: radius-server
+Conflicts: radius-server
+Replaces: radius-server
+Description: YARD Radius Authorization and Accounting Server
+ YARD Radius is a Radius authentication/accounting server which is derived
+ from the original Livingston Enterprise Inc. RADIUS daemon release 2.1.
+ It adds a number of useful features to the LE daemon, i.e.
+ .
+ Control of simultaneous logins.
+ Support of Ascend, Cisco and USR boxes.
+ Extended daily/monthly/yearly accounting information on a per-user basis
+ MD5 encrypted passwords support (both in passwd file and/or users file)
+ Expirations in shadow file.
+ Checking based on time-of-day, traffic and connection time.
+ Support of PAM authentication and accounting.
+ Binary form of accounting file.
+ GDBM formats for users and user stats databases.
+ Autoconfiguring capabilities of sources.
--- yardradius-1.1.2.orig/debian/rules
+++ yardradius-1.1.2/debian/rules
@@ -0,0 +1,94 @@
+#!/usr/bin/make -f
+# Copyright 2001-2002 (C) Francesco P. Lovergine <frankie@debian.org>   
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+configure: configure-stamp
+configure-stamp:
+	dh_testdir
+
+	# Add here commands to configure the package.
+	
+	./configure --prefix=/usr --mandir=\$${prefix}/share/man \
+		    --infodir=\$${prefix}/share/info \
+		    --enable-debian \
+		    --enable-pam
+
+	touch configure-stamp
+
+build: configure-stamp build-stamp
+build-stamp:
+	dh_testdir
+
+	# Add here commands to compile the package.
+	
+	$(MAKE) LDFLAGS='-Wl,--as-needed'
+
+	touch build-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp configure-stamp
+
+	# Add here commands to clean up after the build process.
+	
+	[ ! -f Makefile ] ||  $(MAKE) distclean
+
+	-test -r /usr/share/misc/config.sub && \
+          cp -f /usr/share/misc/config.sub config.sub
+	-test -r /usr/share/misc/config.guess && \
+          cp -f /usr/share/misc/config.guess config.guess
+
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+
+	# Add here commands to install the package into debian/yardradius.
+	$(MAKE) install prefix=$(CURDIR)/debian/yardradius/usr \
+		YARDCONF=$(CURDIR)/debian/yardradius/etc/yardradius \
+                YARDLOG=$(CURDIR)/debian/yardradius/var/log/yardradius \
+                YARDDOC=$(CURDIR)/debian/yardradius/usr/share/doc/yardradius 
+	
+	# This adjust for Debian Policy
+
+	rm -f $(CURDIR)/debian/yardradius/var/log/yardradius/README
+	-mkdir -p $(CURDIR)/debian/yardradius/usr/share/doc/yardradius/examples/menus
+	-mv $(CURDIR)/debian/yardradius/etc/yardradius/*.example \
+	    $(CURDIR)/debian/yardradius/usr/share/doc/yardradius/examples/.
+	-mv $(CURDIR)/debian/yardradius/etc/yardradius/menus/menu* \
+	    $(CURDIR)/debian/yardradius/usr/share/doc/yardradius/examples/menus/.
+	
+	# Remove RFC docs.
+	
+	-rm -rf $(CURDIR)/debian/yardradius/usr/share/doc/yardradius/rfc
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installdocs
+	dh_installlogrotate
+	dh_installinit
+	dh_installchangelogs ChangeLog-1.0 ChangeLog-1.1
+	dh_link
+	dh_strip
+	dh_compress -X.example
+	dh_fixperms
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
--- yardradius-1.1.2.orig/debian/changelog
+++ yardradius-1.1.2/debian/changelog
@@ -0,0 +1,197 @@
+yardradius (1.1.2-4) unstable; urgency=low
+
+  * Missing # in INIT INFO section added 
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Fri, 28 Dec 2007 11:16:22 +0100
+
+yardradius (1.1.2-3) unstable; urgency=low
+
+  * [Lintian] Fixed debian-rules-ignores-make-clean-error in debian/rules
+  * Added Homepage field in debian/control
+  * Policy bumped to 3.7.3
+  * [Lintian] Fixed maintainer-script-calls-init-script-directly in preinst
+  * Revised init script to remove LSB-like functions local definitions
+    and provide a suitable INIT INFO section
+  * Added --as-needed at linking time to remove unused libraries
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Sun, 23 Dec 2007 20:25:59 +0100
+
+yardradius (1.1.2-2) unstable; urgency=low
+
+  * Missed va_end() call typo fix in radlst.c added.
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Thu, 28 Jun 2007 16:17:59 +0200
+
+yardradius (1.1.2-1) unstable; urgency=low
+
+  * New upstream release
+    (closes: #393423)
+  * Policy bumped to 3.7.2
+  * Debhelper level moved to 5
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Thu, 28 Jun 2007 11:58:24 +0200
+
+yardradius (1.0.21-17) unstable; urgency=low
+
+  * Moved to compatibility level 4 for debhelper
+  * Policy bumped to 3.6.2
+  * init script changed to use lsb-base if available
+  * Reverted to non-native package
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Tue,  3 Jan 2006 13:17:47 +0100
+
+yardradius (1.0.21-16) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Thu,  1 Jul 2004 16:44:45 +0200
+
+yardradius (1.0.20-15) unstable; urgency=high
+
+  * [Security] A little overflow in process_menu() has been corrected, awaiting for
+    1.0.21 releasing with some more housekeeping.
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Thu,  1 Jul 2004 13:55:53 +0200
+
+yardradius (1.0.20-14) unstable; urgency=low
+
+  * Added autotools-dev build-dep.
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Mon, 14 Jun 2004 21:01:21 +0200
+
+yardradius (1.0.20-13) unstable; urgency=low
+
+  * Debconf support removed. A single installation note is quite superfluous, now.
+  * Policy bumped to 3.6.1.
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Mon,  2 Feb 2004 15:40:07 +0100
+
+yardradius (1.0.20-12) unstable; urgency=low
+
+  * Moved config.guess and config.sub updating to clean target in rules.
+    Mmmm, why that was in build section?
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Mon,  5 Jan 2004 19:32:27 +0100
+
+yardradius (1.0.20-11) unstable; urgency=low
+
+  * Priority for debconf message reduced to low.
+    Admin should anyway read the documentation in order to use the package.
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Sun, 26 Oct 2003 22:56:14 +0100
+
+yardradius (1.0.20-10) unstable; urgency=low
+
+  * Removed RFCs from documentation.
+    (closes: #199817)
+  * Applied a little patch for va_end(), thanks to Matt Kraai.
+    (closes: #200335)
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Tue,  8 Jul 2003 12:18:50 +0200
+
+yardradius (1.0.20-9) unstable; urgency=low
+
+  * Removed old libgdbmg1-dev build-dep.
+    (closes: #196374)
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Fri,  6 Jun 2003 16:27:53 +0200
+
+yardradius (1.0.20-8) unstable; urgency=low
+
+  * Policy updated.
+  * New libgdbm-dev added to build-deps.
+  * New po-debconf template for pt_BR.
+    (closes: #179517)
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Wed,  4 Jun 2003 14:50:04 +0200
+
+yardradius (1.0.20-7) unstable; urgency=low
+
+  * Added cleaning rule for auto-tools.
+  * Changed --version in -dumpversion in configure.in. This is compatible both with
+    2.95 and 3 series, then should be used in next upstream version.
+    (closes: #190943)
+  * Removed duplicate dependency for libpam0g.
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Fri,  2 May 2003 10:21:54 +0200
+
+yardradius (1.0.20-6) unstable; urgency=high
+
+  * Removed an incorrect -lcrypto checking/linking in configure.in, which causes 
+    dh_shlibdeps add an extra libssl dependency. 
+  * Uhm, add an --enable-pam in configuration which missed before. This
+    prevented the build of a pam-capable version of yardradius.
+    (closes: #174170)
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Sat, 28 Dec 2002 13:09:53 +0100
+
+yardradius (1.0.20-5) unstable; urgency=low
+
+  * Added french template.
+    (closes: #170895)
+  * Added a versioned debconf dependency in order to be lintian clean.
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Sat, 30 Nov 2002 17:39:31 +0100
+
+yardradius (1.0.20-4) unstable; urgency=low
+
+  * Policy version updated.
+  * Now uses po-debconf for templates.
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Tue, 15 Oct 2002 10:46:33 +0200
+
+yardradius (1.0.20-3) unstable; urgency=low
+
+  * Added spanish template for debconf.
+    (closes: #150171)
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Mon, 17 Jun 2002 11:34:47 +0200
+
+yardradius (1.0.20-2) unstable; urgency=low
+
+  * Added german, russian and italian templates for debconf.
+    (closes: #137219,#138327)
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Sat,  9 Mar 2002 11:20:48 +0100
+
+yardradius (1.0.20-1) unstable; urgency=high
+
+  * New upstream release (security hotfixes).
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Mon,  4 Mar 2002 09:46:50 +0100
+
+yardradius (1.0.19-4) unstable; urgency=low
+
+  * Sample configuration files moved in /usr/share/doc/yardradius/examples.
+  * Now uses debconf.
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Thu, 14 Feb 2002 08:09:14 +0100
+
+yardradius (1.0.19-3) unstable; urgency=low
+
+  * Mispelling corrected.
+    Closes: #125574
+  * Returned value of getopt() is an int, not a char. This caused also a 
+    warning with gcc on some arch where char is not unsigned by default.
+    Thanks to Gerhard Tonn.
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Tue, 18 Dec 2001 11:55:32 +0100
+
+yardradius (1.0.19-2) unstable; urgency=low
+
+  * Introduced provides/replaces/conflicts: radius-server VP in control file.
+    See /usr/share/doc/debian-policy/virtual-package-names-list.txt.gz
+  * Removed multiple dependencies in control files.
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Mon, 19 Nov 2001 10:57:18 +0100
+
+yardradius (1.0.19-1) unstable; urgency=low
+
+  * Initial Release.  
+    Closes: #109480 
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Fri, 24 Aug 2001 15:05:25 +0200
+
+Local variables:
+mode: debian-changelog
+End:
--- yardradius-1.1.2.orig/debian/postinst
+++ yardradius-1.1.2/debian/postinst
@@ -0,0 +1,48 @@
+#! /bin/sh
+# postinst script for yardradius
+#
+# Copyright (C) Francesco P. Lovergine <frankie@debian.org>
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postinst> `configure' <most-recently-configured-version>
+#        * <old-postinst> `abort-upgrade' <new version>
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+#          <failed-install-package> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see /usr/share/doc/packaging-manual/
+#
+# quoting from the policy:
+#     Any necessary prompting should almost always be confined to the
+#     post-installation script, and should be protected with a conditional
+#     so that unnecessary prompting doesn't happen if a package's
+#     installation fails and the `postinst' is called with `abort-upgrade',
+#     `abort-remove' or `abort-deconfigure'.
+
+case "$1" in
+    configure)
+
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 0
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
--- yardradius-1.1.2.orig/debian/compat
+++ yardradius-1.1.2/debian/compat
@@ -0,0 +1 @@
+5
--- yardradius-1.1.2.orig/debian/logrotate
+++ yardradius-1.1.2/debian/logrotate
@@ -0,0 +1,10 @@
+# Logrotate file for Yard Radius
+
+/var/log/yardradius.log {
+	rotate 4
+	weekly
+	size 500k
+	compress
+	missingok
+	copytruncate
+}
--- yardradius-1.1.2.orig/debian/README.Debian
+++ yardradius-1.1.2/debian/README.Debian
@@ -0,0 +1,24 @@
+
+YARD RADIUS Server for Debian
+-----------------------------
+
+The most important modification to YARD Radius configuration is due to
+compatibility with Debian's HFS. The relevant directory structure is
+the following:
+
+/var/log/yardradius  	- contains all the log files used by YARD
+/usr/bin       		- contains all common binaries
+/usr/sbin      		- contains radiusd and builddbm binaries
+/usr/share/doc/yardradius - contains documentation and example files
+/etc/yardradius      	- contains all configuration files
+/usr/share/doc		- contains available documentations
+/usr/share/man		- contains man pages
+
+Moreover, due to importance of this kind of software, the installer copies
+only a few sample configuration files. Though, the initialization file in 
+init.d is not really able to load the RADIUS daemon without manual hacking.
+
+Please refer to program documentation available to properly run the daemon.
+Examples are also available and well documented.
+
+ -- Francesco P. Lovergine <frankie@debian.org>, Fri, 2 Feb 2004 23:47:26 +0100
--- yardradius-1.1.2.orig/debian/copyright
+++ yardradius-1.1.2/debian/copyright
@@ -0,0 +1,19 @@
+This package was debianized by Francesco Paolo Lovergine <frankie@debian.org> on
+Fri, 24 Aug 2001 11:41:06 +0200.
+
+It was downloaded from http://yardradius.sourceforge.net
+
+Author: Francesco P. Lovergine <frankie@debian.org> (me!)
+
+Copyright:
+
+Copyright (C) 1992-1999 Lucent Technologies Inc.  All rights reserved.
+Copyright (C) 1999-2007 Francesco P. Lovergine.  All rights reserved.
+
+-------------------------------------------------------------------------------
+ This product includes software developed by Lucent Technologies 
+ and other contributors. See CREDITS file for a list of all contributors. 
+ License conditions are the same met in /usr/share/common-licenses/BSD.
+ So this is definitively a common BSD-like open source license.
+-------------------------------------------------------------------------------
+
--- yardradius-1.1.2.orig/debian/preinst
+++ yardradius-1.1.2/debian/preinst
@@ -0,0 +1,41 @@
+#! /bin/sh
+# preinst script for yardradius
+#
+# Copyright (C) Francesco P. Lovergine <frankie@debian.org>
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <new-preinst> `install'
+#        * <new-preinst> `install' <old-version>
+#        * <new-preinst> `upgrade' <old-version>
+#        * <old-preinst> `abort-upgrade' <new-version>
+#
+# For details see /usr/share/doc/packaging-manual/
+
+case "$1" in
+    install|upgrade)
+        if [ "$1" = "upgrade" ]
+        then
+                 invoke-rc.d yardradius stop || true 
+        fi
+    ;;
+
+    abort-upgrade)
+    ;;
+
+    *)
+        echo "preinst called with unknown argument \`$1'" >&2
+        exit 0
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+