Commit 2c27cb38 authored by Ondrej Sury's avatar Ondrej Sury

Modernize packaging, drop php-radius-legacy package <-- that should be a...

Modernize packaging, drop php-radius-legacy package <-- that should be a separate source package (if needed at all)
parent f6de22e9
Version 1.2.5 - 2007-03-18 (stable)
----------------------------------------
Notes:
- amd64 arch fixes
Version 0.9 - 2002-12-11 (beta)
----------------------------------------
Notes:
- Well tested under Linux, FreeBSD and Windows
Version 1.0 - 2002-12-17 (stable)
----------------------------------------
Notes:
- Release 1.0
Version 1.1 - 2002-12-22 (stable)
----------------------------------------
Notes:
- Release 1.1 - Fixed source code style - added examples directory - added
examples for MS-CHAPv1 and MS-CHAPv2
Version 1.2 - 2003-01-11 (stable)
----------------------------------------
Notes:
- Release 1.2 - BugFix: a to short challenge was generated sometimes
(MS-CHAPv1, MS-CHAPv2) - New functions: radius_demangle: demangles radius
passwords and mppe MS-CHAPv1 Keys radius_demangle_mppe_key: demangles mppe
send- and recvkey (MS-CHAPv2) - Provide examples for radius-accounting -
Replaced mcrypt-functions with own des-ecb-encryption function - Some minor
changes in radius-auth.php - Added php-script for testing MS-CHAP functions
Version 1.2.1 - 2003-05-02 (stable)
----------------------------------------
Notes:
- Release 1.2.1 - Change License to BSD - BugFix: The MS-CHAPv2
Authenticator-Challenge has 16 Bytes and not 8 Bytes - BugFix: build under
Solaris - Generate better challenges - Many source-code-style fixes -
Removed unneeded sources - Some cleanup's
Version 1.2.2 - 2003-07-17 (stable)
----------------------------------------
Notes:
- Release 1.2.2 - Changed role for example-files to doc - Removed
deprecated files - Added IPv6 related attributes defined in RFC3162
Version 1.2.3 - 2003-11-04 (stable)
----------------------------------------
Notes:
- Release 1.2.3 - Fixed a typo in radius_init_const.h wich caused
RADIUS_ACCT_STATUS_TYPE to be undefined. - Re-added Makefile.in
Version 1.2.4 - 2003-11-17 (stable)
----------------------------------------
Notes:
- Release 1.2.4 - Forgot including updated radius_init_const.h
Version 1.2.5 - 2007-03-18 (stable)
----------------------------------------
Notes:
- Release 1.2.5 - amd64 arch fixes
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:util="urn:xslt:functions:util" xmlns:func="http://exslt.org/functions" xmlns:str="http://exslt.org/strings" extension-element-prefixes="func str">
<xsl:output method="text"/>
<func:function name="util:maximize">
<xsl:param name="string"/>
<xsl:param name="line-length"/>
<func:result>
<xsl:variable name="tmp" select="string-length(substring-before($string,' '))"/>
<xsl:choose>
<xsl:when test="($tmp &gt; $line-length) or (not(contains($string, ' ')))">0</xsl:when>
<xsl:when test="(substring($string,$line-length,1) = ' ')">
<xsl:value-of select="$line-length"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="util:maximize(substring-after($string, ' '), $line-length - $tmp - 1) + 1 + $tmp"/>
</xsl:otherwise>
</xsl:choose>
</func:result>
</func:function>
<func:function name="util:format">
<xsl:param name="string"/>
<xsl:param name="indent" select="2"/>
<xsl:param name="line-length" select="76"/>
<func:result>
<xsl:choose>
<xsl:when test="contains($string,'&#xA;') or contains($string,'&#xD;')">
<xsl:for-each select="str:tokenize($string,'&#xA;&#xD;')">
<xsl:value-of select="util:format(., $indent, $line-length)"/>
</xsl:for-each>
</xsl:when>
<xsl:when test="string-length($string) &gt; $line-length">
<xsl:variable name="tmp" select="util:maximize($string, $line-length)"/>
<xsl:value-of select="str:padding($indent,' ')"/>
<xsl:value-of select="substring($string, 1, $tmp)"/>
<xsl:text>&#xA;</xsl:text>
<xsl:value-of select="util:format(substring($string, $tmp + 1))"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="str:padding($indent,' ')"/>
<xsl:value-of select="$string"/>
<xsl:text>&#xA;</xsl:text>
</xsl:otherwise>
</xsl:choose>
</func:result>
</func:function>
<func:function name="util:norm">
<xsl:param name="num"/>
<xsl:param name="length" select="4"/>
<xsl:choose>
<xsl:when test="$length &gt; string-length($num)">
<func:result select="concat('0',util:norm($num, $length - 1))"/>
</xsl:when>
<xsl:otherwise>
<func:result select="$num"/>
</xsl:otherwise>
</xsl:choose>
</func:function>
<func:function name="util:extractnum">
<xsl:param name="string"/>
<xsl:choose>
<xsl:when test="$string = ''">
<func:result select="0"/>
</xsl:when>
<xsl:when test="$string &lt;= '9' and $string &gt;= '0'">
<func:result select="$string"/>
</xsl:when>
<xsl:otherwise>
<func:result select="util:extractnum(substring($string,1,string-length($string)-1))"/>
</xsl:otherwise>
</xsl:choose>
</func:function>
<func:function name="util:ver2num">
<xsl:param name="version"/>
<xsl:choose>
<xsl:when test="contains($version,'.')">
<func:result select="concat(util:norm(substring-before($version,'.')), util:ver2num(substring-after($version,'.')))"/>
</xsl:when>
<xsl:when test="$version = number($version)">
<func:result select="concat(util:norm($version), util:norm(0))"/>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="tmp" select="util:extractnum($version)"/>
<func:result select="concat(util:norm($tmp),' ', substring($version, string-length($tmp) + 1))"/>
</xsl:otherwise>
</xsl:choose>
</func:function>
<xsl:template match="package">
<xsl:apply-templates select="release">
<xsl:sort order="descending" select="util:ver2num(normalize-space(version))" data-type="text"/>
</xsl:apply-templates>
<xsl:apply-templates select="changelog/release">
<xsl:sort order="descending" select="util:ver2num(normalize-space(version))" data-type="text"/>
</xsl:apply-templates>
</xsl:template>
<xsl:template match="release">
<xsl:text>Version </xsl:text>
<xsl:value-of select="version"/>
<xsl:text> - </xsl:text>
<xsl:value-of select="date"/>
<xsl:if test="state">
<xsl:text> (</xsl:text>
<xsl:value-of select="state"/>
<xsl:text>)</xsl:text>
</xsl:if>
<xsl:text>&#xA;----------------------------------------&#xA;Notes:&#xA;</xsl:text>
<xsl:value-of select="util:format(notes)"/>
<xsl:text>&#xA;</xsl:text>
</xsl:template>
</xsl:stylesheet>
Source: php-radius
Section: web
Priority: optional
Maintainer: Roberto Lumbreras <rover@debian.org>
Build-Depends: debhelper (>= 5), po-debconf, php5-dev, dh-make-php
Standards-Version: 3.7.3
Maintainer: Debian PHP PECL Maintainers <pkg-php-pecl@lists.alioth.debian.org>
Uploaders: Ondřej Surý <ondrej@debian.org>,
Roberto Lumbreras <rover@debian.org>
Build-Depends: debhelper (>= 9),
dh-php5,
php5-dev,
pkg-php-tools (>= 1.5~),
po-debconf
Standards-Version: 3.9.6
Vcs-Git: git://anonscm.debian.org/pkg-php/php-raduis.git
Vcs-Browser: http://anonscm.debian.org/gitweb?p=pkg-php/php-radius.git;a=summary
Homepage: http://pecl.php.net/package/radius
Package: php5-radius
Architecture: any
Depends: ${shlibs:Depends}, ${php:Depends}, ${misc:Depends}
Description: PECL radius module for PHP 5
This PECL provides full support for RADIUS authentication (RFC 2865)
and RADIUS accounting (RFC 2866),
Package: php-radius-legacy
Architecture: all
Depends: ${shlibs:Depends}, ${php:Depends}, ${misc:Depends}, php5 | php5-cgi, apache | httpd-cgi
Replaces: php-radius (<< 1.2.5)
Provides: php-radius
Conflicts: php-radius (<< 1.2.5)
Description: Radius protocol implementation in PHP
Implementation of the Radius protocol in PHP, so you can use it to
authenticate against Radius servers in PHP scripts.
Depends: ${misc:Depends},
${php:Depends},
${phppear:Debian-Depends},
${shlibs:Depends}
Recommends: ${phppear:Debian-Recommends}
Breaks: ${phppear:Debian-Breaks}
Description: ${phppear:summary}
${phppear:description}
radius PECL module (php?-radius packages)
This package was debianized by Roberto Lumbreras <rover@debian.org>
using dh-make-pecl on Tue, 11 Mar 2008 12:43:37 +0100.
It was downloaded from http://pecl.php.net/package/radius
Upstream Author: Michael Bretterklieber
Copyright (C) 2007 Michael Bretterklieber
License: BSD
Redistribution and use in source and binary forms, with or without
modification, are permitted under the terms of the BSD License.
THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
On Debian systems, the complete text of the BSD License can be
found in `/usr/share/common-licenses/BSD'.
-------------------------------------------------------------------------------
old php-radius implementation (php-radius-legacy package):
This package was debianized by Roberto Lumbreras <rover@debian.org> on
Tue, 23 Mar 2004 00:13:41 +0100.
It was downloaded from http://www.mavetju.org/programming/php.php
Upstream Author: Edwin Groothuis <edwin@mavetju.org>
Warning: the following license is NOT compatible with GNU GPL2, because
of the third clause. Please see /usr/share/common-licenses/GPL and the
following pages for more details:
http://www.gnu.org/licenses/info/BSD_4Clause.html
http://www.gnu.org/philosophy/bsd.html
I think that you can use php-radius with your GPL2 program, if you
put "with the exceptions needed so it can be used with BSD with
advertising clause". But I'm not a lawyer, so you check it first.
Copyright 2000, 2001, 2002 by Edwin Groothuis. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. All advertising materials mentioning features or use of this software
must display the following acknowledgement:
This product includes software developed by Edwin Groothuis.
4. Neither the name of Edwin Groothuis may be used to endorse or
promote products derived from this software without specific
prior written permission.
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: radius
Upstream-Contact: Michael Bretterklieber <mbretter@php.net>
Source: http://pecl.php.net/package/radius
Files: *
Copyright: 1997-2009 Michael Bretterklieber <mbretter@php.net>
License: BSD-2-clause
Files: debian/*
Copyright: 2015 Ondřej Surý <ondrej@debian.org>
License: Expat
License: BSD-2-clause
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
.
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.
.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
License: Expat
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
.
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
usr/share/php-radius
usr/share/doc/php-radius-legacy/examples
etc/php-radius
php-radius-*/CONTACT
php-radius-*/README
php-radius-*/radius.php
php-radius-*/check_login_pass.php
mod debian/radius.ini
#!/usr/bin/make -f
# template debian/rules provided by dh-make-php.
# GNU copyright 2005 by Uwe Steinmann.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export DH_VERBOSE=1
export NO_INTERACTION=1
# This has to be exported to make some magic below work.
export DH_OPTIONS
CFLAGS = -O2 -Wall
CFLAGS += -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
CFLAGS += -g
DEBUG := --enable-debug
else
DEBUG := --disable-debug
endif
TAR=tar
PECL_PKG_NAME=radius
PECL_PKG_REALNAME=radius
PECL_PKG_VERSION=1.2.5
PACKAGE_NAME=php-radius
BIN_PACKAGE_NAME=php$*-radius
PHPIZE=/usr/bin/phpize
PHPCONFIG=/usr/bin/php-config
EXT_DIR=$(shell $(PHPCONFIG)$* --extension-dir)
SOURCE_DIR=$(shell ls -d $(PECL_PKG_REALNAME)-*)
BINARYTARGETS=binary-arch-v5
BUILDTARGETS=build-v5
CLEANTARGETS=clean-v5
# Sarge doesn't support --phpapi option (Bug #365667)
phpapiver4=$(shell /usr/bin/php-config4 --phpapi)
#phpapiver4=$(/usr/bin/php-config4 --extension-dir | xargs basename)
phpapiver5=$(shell /usr/bin/php-config5 --phpapi)
configure-v4 configure-v5: configure-v%: configure-stamp-v%
configure-stamp-v4 configure-stamp-v5: configure-stamp-v%:
dh_testdir
# Add here commands to configure the package.
(cd $(SOURCE_DIR); \
$(PHPIZE)$*; \
./configure --with-php-config=$(PHPCONFIG)$* --prefix=/usr)
# rm -f configure-stamp-v*
touch $@
build: $(BUILDTARGETS)
build-v4 build-v5: build-v%: build-stamp-v%
build-stamp:
# xsltproc --nonet --novalid debian/changelog.xsl package.xml > debian/Changelog
$(shell /usr/share/dh-make-php/phppkginfo . changelog > debian/Changelog)
touch build-stamp
build-stamp-v4 build-stamp-v5: build-stamp-v%: build-stamp configure-stamp-v%
dh_testdir
# Add here commands to compile the package.
(cd $(SOURCE_DIR); $(MAKE); mkdir -p ../tmp/modules$*; cp modules/* ../tmp/modules$*; $(MAKE) clean)
# rm -f build-stamp-v*
touch $@
clean: $(CLEANTARGETS)
dh_clean
clean-v4 clean-v5: clean-v%:
dh_testdir
dh_testroot
rm -f build-stamp* configure-stamp*
# Add here commands to clean up after the build process.
(cd $(SOURCE_DIR); \
$(MAKE) clean; \
$(PHPIZE)$* --clean)
rm -rf tmp/modules$*
install-v4 install-v5: install-v%: build-v%
dh_testdir
dh_testroot
# can't dh_clean here without specifically excluding the possibly existing installed dirs
# for other version.
#dh_clean -k
dh_installdirs
# dh_pecl
# Add here commands to install the package into debian/$(PACKAGE_NAME).
# $(MAKE) INSTALL_ROOT=$(CURDIR)/debian/$(PACKAGE_NAME) install
# sh -c 'VERSION=`egrep "#define ZEND_MODULE_API_NO" \
# /usr/include/php4/Zend/zend_modules.h \
# | sed "s/#define ZEND_MODULE_API_NO //"`; \
# chmod 644 debian/$(PACKAGE_NAME)/usr/lib/php4/$$VERSION/*.so'
mkdir -p debian/$(BIN_PACKAGE_NAME)/$(EXT_DIR)
install -m 644 -o root -g root tmp/modules$*/$(PECL_PKG_NAME).so debian/$(BIN_PACKAGE_NAME)/$(EXT_DIR)/$(PECL_PKG_NAME).so
if [ -f "debian/$(PECL_PKG_NAME).ini" ]; then \
mkdir -p debian/$(BIN_PACKAGE_NAME)/etc/php$*/conf.d; \
cp debian/$(PECL_PKG_NAME).ini debian/$(BIN_PACKAGE_NAME)/etc/php$*/conf.d; \
fi
# Build architecture-independent files here.
binary-indep:
dh_testdir
dh_testroot
dh_installdirs
dh_installchangelogs -i php-radius-*/CHANGES
dh_installdocs -i
dh_installexamples -i
cp php-radius-*/radius_authentication.inc debian/php-radius-legacy/usr/share/php-radius/radius_authentication.inc.php
cp php-radius-*/radius_authentication.conf.template debian/php-radius-legacy/usr/share/doc/php-radius-legacy/examples/server.conf
cp php-radius-*/CHANGES debian/php-radius-legacy/usr/share/doc/php-radius-legacy/changelog
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
dh_strip -i
endif
dh_compress -i
dh_fixperms -i
dh_installdeb -i
dh_shlibdeps -i
dh_gencontrol -i
dh_md5sums -i
dh_builddeb -i
# Build architecture-dependent files here.
binary-arch-v4 binary-arch-v5: binary-arch-v%: install-v%
echo "php:Depends=phpapi-$(phpapiver$*)" >> debian/$(BIN_PACKAGE_NAME).substvars
binary-arch: $(BINARYTARGETS)
dh_testdir
dh_testroot
dh_installchangelogs -a debian/Changelog
dh_installdocs -a
dh_installexamples -a
dh_installdebconf -a
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
dh_strip -a
endif
dh_compress -a
dh_fixperms -a
dh_installdeb -a
dh_shlibdeps -a
dh_gencontrol -a
dh_md5sums -a
dh_builddeb -a
binary: binary-indep binary-arch
.PHONY: build build-v4 build-v5 clean clean-v4 clean-v5 binary-indep binary-arch binary-arch-v4 binary-arch-v5 binary install-v4 install-v5 configure-v4 configure-v5
%:
dh $@ --buildsystem=phppear --with phppear --with php5
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment