r939 - in packages/libauthen-krb5-perl/trunk: . debian

Russ Allbery rra-guest@costa.debian.org
Sat, 16 Apr 2005 18:19:56 +0000


Author: rra-guest
Date: 2005-04-16 18:19:55 +0000 (Sat, 16 Apr 2005)
New Revision: 939

Added:
   packages/libauthen-krb5-perl/trunk/debian/
   packages/libauthen-krb5-perl/trunk/debian/changelog
   packages/libauthen-krb5-perl/trunk/debian/compat
   packages/libauthen-krb5-perl/trunk/debian/control
   packages/libauthen-krb5-perl/trunk/debian/copyright
   packages/libauthen-krb5-perl/trunk/debian/examples
   packages/libauthen-krb5-perl/trunk/debian/rules
Modified:
   packages/libauthen-krb5-perl/trunk/Makefile.PL
   packages/libauthen-krb5-perl/trunk/sample_client
   packages/libauthen-krb5-perl/trunk/sample_server
   packages/libauthen-krb5-perl/trunk/simple_client
   packages/libauthen-krb5-perl/trunk/simple_server
Log:
Load libauthen-krb5-perl-1.4 into packages/libauthen-krb5-perl/trunk.


Modified: packages/libauthen-krb5-perl/trunk/Makefile.PL
===================================================================
--- packages/libauthen-krb5-perl/trunk/Makefile.PL	2005-04-16 18:18:59 UTC (rev 938)
+++ packages/libauthen-krb5-perl/trunk/Makefile.PL	2005-04-16 18:19:55 UTC (rev 939)
@@ -3,7 +3,7 @@
 ##### CHANGE THESE ACCORDING TO YOUR CONFIGURATION #####
 
 # location of Kerberos 5 libraries
-my $KRB5_LIBDIR = '/usr/local/krb5/lib';
+my $KRB5_LIBDIR = '/usr/lib';
 
 # any extra libraries?
 # add -lresolv here if you get errors like the following (usually on linux):
@@ -11,7 +11,7 @@
 my $KRB5_EXTRALIBS = '-lresolv';
 
 # location of Kerberos 5 includes
-my $KRB5_INCDIR = '/usr/local/krb5/include';
+my $KRB5_INCDIR = '/usr/include';
 
 # any extra include flags?
 my $KRB5_EXTRAINCS = '';
@@ -30,10 +30,14 @@
 	$cryptolib = '-lcrypto';
 }
 
+# Don't add -L/usr/lib or -I/usr/include; they can cause problems.
+my $ldflags  = ($KRB5_LIBDIR eq '/usr/lib')     ? '' : "-L${KRB5_LIBDIR}";
+my $cppflags = ($KRB5_INCDIR eq '/usr/include') ? '' : "-I${KRB5_INCDIR}";
+
 WriteMakefile(
     'NAME'	=> 'Authen::Krb5',
     'VERSION_FROM' => 'Krb5.pm',
-    'LIBS'	=> ["-L${KRB5_LIBDIR} -lkrb5 ${cryptolib} -lcom_err $KRB5_EXTRALIBS"],
+    'LIBS'	=> ["$ldflags -lkrb5 ${cryptolib} -lcom_err $KRB5_EXTRALIBS"],
     'DEFINE'	=> '',
-    'INC'	=> "-I${KRB5_INCDIR} $KRB5_EXTRAINCS"
+    'INC'	=> "$cppflags $KRB5_EXTRAINCS"
 );

Added: packages/libauthen-krb5-perl/trunk/debian/changelog
===================================================================
--- packages/libauthen-krb5-perl/trunk/debian/changelog	2005-04-16 18:18:59 UTC (rev 938)
+++ packages/libauthen-krb5-perl/trunk/debian/changelog	2005-04-16 18:19:55 UTC (rev 939)
@@ -0,0 +1,30 @@
+libauthen-krb5-perl (1.4-2) unstable; urgency=low
+
+  * Uploaded to Debian.  (Closes: #304839)
+  * Avoid adding -L/usr/lib or -I/usr/include in Makefile.PL.
+  * Package the example scripts.
+  * Reword the description a bit and note that the package is built
+    against the MIT Kerberos libraries.
+  * Remove the versioned dependency on libkrb5-dev, as any version in
+    sarge will be sufficient and the package in theory supports any
+    version later than 1.1.
+  * Change priority to optional to allow use as a dependency for other
+    packages with optional priority.
+  * Reformat copyright.  Note which licenses Perl is distributed under.
+  * Reformat rules and remove dh_makeshlibs invocation.
+
+ -- Russ Allbery <rra@stanford.edu>  Fri, 15 Apr 2005 13:58:28 -0700
+
+libauthen-krb5-perl (1.4-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Huaqing Zheng <morpheus@stanford.edu>  Thu, 14 Apr 2005 20:23:41 -0700
+
+libauthen-krb5-perl (1.3-1) unstable; urgency=low
+
+  * Initial release.
+  * Packaging of Stanford::Directory requires Authen::Krb5.
+
+ -- Huaqing Zheng <morpheus@stanford.edu>  Tue, 31 Aug 2004 20:11:48 -0700
+

Added: packages/libauthen-krb5-perl/trunk/debian/compat
===================================================================
--- packages/libauthen-krb5-perl/trunk/debian/compat	2005-04-16 18:18:59 UTC (rev 938)
+++ packages/libauthen-krb5-perl/trunk/debian/compat	2005-04-16 18:19:55 UTC (rev 939)
@@ -0,0 +1 @@
+4

Added: packages/libauthen-krb5-perl/trunk/debian/control
===================================================================
--- packages/libauthen-krb5-perl/trunk/debian/control	2005-04-16 18:18:59 UTC (rev 938)
+++ packages/libauthen-krb5-perl/trunk/debian/control	2005-04-16 18:19:55 UTC (rev 939)
@@ -0,0 +1,18 @@
+Source: libauthen-krb5-perl
+Section: perl
+Priority: optional
+Build-Depends: perl (>= 5.8.0-7), debhelper (>= 4.0.2), libkrb5-dev
+Maintainer: Russ Allbery <rra@stanford.edu>
+Standards-Version: 3.6.1
+
+Package: libauthen-krb5-perl
+Architecture: any
+Depends: ${perl:Depends}, ${shlibs:Depends}
+Description: Perl extension for Kerberos 5 API
+ Authen::Krb5 is an object-oriented interface to the Kerberos 5 API.  It
+ rearranges the API slightly to provide an object-oriented view, but
+ otherwise closely matches the C interface.  While basic documentation is
+ provided, use may require previous experience with Kerberos 5
+ programming or reference to the Kerberos 5 API documentation.
+ .
+ This package is built against the MIT Kerberos 5 libraries.

Added: packages/libauthen-krb5-perl/trunk/debian/copyright
===================================================================
--- packages/libauthen-krb5-perl/trunk/debian/copyright	2005-04-16 18:18:59 UTC (rev 938)
+++ packages/libauthen-krb5-perl/trunk/debian/copyright	2005-04-16 18:19:55 UTC (rev 939)
@@ -0,0 +1,22 @@
+This package was debianized by Huaqing Zheng <morpheus@stanford.edu> on
+Tues, 31 Aug 2004.  The Debian package is currently maintained by
+Russ Allbery <rra@stanford.edu>
+
+It was downloaded from:
+
+    <ftp://ftp.cpan.org/CPAN/modules/by-modules/Authen>
+
+Upstream author:
+
+    Jeff Horwitz <jeff@laserlink.net>
+
+Copyright:
+
+    Copyright (c) 2000-2005 Jeff Horwitz (jeff@smashing.org).  All rights
+    reserved.  This module is free software; you can redistribute it
+    and/or modify it under the same terms as Perl itself.
+
+Perl is distributed under either the Artistic License or the GPL.  The
+full text of the GPL is available in Debian systems in
+/usr/share/common-licenses/GPL.  The full text of the Artistic License is
+available on Debian systems in /usr/share/common-licenses/Artistic.

Added: packages/libauthen-krb5-perl/trunk/debian/examples
===================================================================
--- packages/libauthen-krb5-perl/trunk/debian/examples	2005-04-16 18:18:59 UTC (rev 938)
+++ packages/libauthen-krb5-perl/trunk/debian/examples	2005-04-16 18:19:55 UTC (rev 939)
@@ -0,0 +1,4 @@
+sample_client
+sample_server
+simple_client
+simple_server

Added: packages/libauthen-krb5-perl/trunk/debian/rules
===================================================================
--- packages/libauthen-krb5-perl/trunk/debian/rules	2005-04-16 18:18:59 UTC (rev 938)
+++ packages/libauthen-krb5-perl/trunk/debian/rules	2005-04-16 18:19:55 UTC (rev 939)
@@ -0,0 +1,71 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+# export DH_VERBOSE=1
+
+# If set to a true value then MakeMaker's prompt function will
+# always return the default without waiting for user input.
+export PERL_MM_USE_DEFAULT=1
+
+PACKAGE = $(shell dh_listpackages)
+
+ifndef PERL
+PERL = /usr/bin/perl
+endif
+
+CFLAGS = -Wall -g
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+    CFLAGS += -O0
+else
+    CFLAGS += -O2
+endif
+
+TMP     = $(CURDIR)/debian/$(PACKAGE)
+
+build: build-stamp
+build-stamp:
+	dh_testdir
+	$(PERL) Makefile.PL INSTALLDIRS=vendor
+	$(MAKE) OPTIMIZE="$(CFLAGS)"
+	touch build-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+	-$(MAKE) distclean
+	dh_clean build-stamp install-stamp
+
+install: install-stamp
+install-stamp:
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	$(MAKE) test
+	$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
+	rmdir --ignore-fail-on-non-empty --parents $(TMP)/usr/share/perl5
+	touch install-stamp
+
+# Build architecture-independent files here.
+binary-indep: build install
+
+# Build architecture-dependent files here.
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installdocs README TODO
+	dh_installchangelogs Changes
+	dh_installexamples 
+	dh_perl 
+	dh_link
+	dh_strip
+	dh_compress
+	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


Property changes on: packages/libauthen-krb5-perl/trunk/debian/rules
___________________________________________________________________
Name: svn:executable
   + *


Property changes on: packages/libauthen-krb5-perl/trunk/sample_client
___________________________________________________________________
Name: svn:executable
   - 
   + *


Property changes on: packages/libauthen-krb5-perl/trunk/sample_server
___________________________________________________________________
Name: svn:executable
   - 
   + *


Property changes on: packages/libauthen-krb5-perl/trunk/simple_client
___________________________________________________________________
Name: svn:executable
   - 
   + *


Property changes on: packages/libauthen-krb5-perl/trunk/simple_server
___________________________________________________________________
Name: svn:executable
   - 
   + *