From skayser at users.sourceforge.net Wed Sep 1 00:17:39 2010 From: skayser at users.sourceforge.net (skayser at users.sourceforge.net) Date: Tue, 31 Aug 2010 22:17:39 +0000 Subject: [csw-devel] SF.net SVN: gar:[10855] csw/mgar/pkg/postfix Message-ID: Revision: 10855 http://gar.svn.sourceforge.net/gar/?rev=10855&view=rev Author: skayser Date: 2010-08-31 22:17:38 +0000 (Tue, 31 Aug 2010) Log Message: ----------- postfix: move old recipe to 2.4 branch Added Paths: ----------- csw/mgar/pkg/postfix/branches/postfix-2.4/ Removed Paths: ------------- csw/mgar/pkg/postfix/trunk/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From skayser at users.sourceforge.net Wed Sep 1 00:28:57 2010 From: skayser at users.sourceforge.net (skayser at users.sourceforge.net) Date: Tue, 31 Aug 2010 22:28:57 +0000 Subject: [csw-devel] SF.net SVN: gar:[10856] csw/mgar/pkg/postfix Message-ID: Revision: 10856 http://gar.svn.sourceforge.net/gar/?rev=10856&view=rev Author: skayser Date: 2010-08-31 22:28:57 +0000 (Tue, 31 Aug 2010) Log Message: ----------- postfix: move 2.7 branch to trunk Added Paths: ----------- csw/mgar/pkg/postfix/trunk/ Removed Paths: ------------- csw/mgar/pkg/postfix/branches/postfix-2.7/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From skayser at users.sourceforge.net Wed Sep 1 00:30:18 2010 From: skayser at users.sourceforge.net (skayser at users.sourceforge.net) Date: Tue, 31 Aug 2010 22:30:18 +0000 Subject: [csw-devel] SF.net SVN: gar:[10857] csw/mgar/pkg/postfix/trunk Message-ID: Revision: 10857 http://gar.svn.sourceforge.net/gar/?rev=10857&view=rev Author: skayser Date: 2010-08-31 22:30:18 +0000 (Tue, 31 Aug 2010) Log Message: ----------- postfix: final touches before 2.7 release Modified Paths: -------------- csw/mgar/pkg/postfix/trunk/Makefile csw/mgar/pkg/postfix/trunk/files/changelog.CSW Modified: csw/mgar/pkg/postfix/trunk/Makefile =================================================================== --- csw/mgar/pkg/postfix/trunk/Makefile 2010-08-31 22:28:57 UTC (rev 10856) +++ csw/mgar/pkg/postfix/trunk/Makefile 2010-08-31 22:30:18 UTC (rev 10857) @@ -10,8 +10,6 @@ # # # TODO (release-critical prefixed with !, non release-critical with *) -# ! Build, install and test package (works? spool permissions ok?) -# WRT to permissions, run "postfix set-permissions" and compare # * Ship simple default configuration (restrict mynetworks to 127.0.0.1?) # * alias_database points to /etc/mail/aliases, symlink # /etc/opt/csw/postfix/aliases to /etc/mail/aliases? Modified: csw/mgar/pkg/postfix/trunk/files/changelog.CSW =================================================================== --- csw/mgar/pkg/postfix/trunk/files/changelog.CSW 2010-08-31 22:28:57 UTC (rev 10856) +++ csw/mgar/pkg/postfix/trunk/files/changelog.CSW 2010-08-31 22:30:18 UTC (rev 10857) @@ -1,4 +1,4 @@ -postfix (2.7.1,REV=2010.07.30) +postfix (2.7.1,REV=2010.09.01) * Adopted and updated to 2.7.1. (Closes #3580, #3700, #3970) * Moved spool directory to /var/opt/csw/spool/postfix. (Closes #3946) @@ -10,4 +10,4 @@ * Doesn't automatically substitute system sendmail binaries any more. Please refer to README.CSW instead. (Closes #1943, #2964, #3060) - -- Sebastian Kayser Fri, 30 Jul 2010 15:10:26 +0200 + -- Sebastian Kayser Wed, 1 Sep 2010 00:29:32 +0200 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From skayser at users.sourceforge.net Wed Sep 1 00:33:17 2010 From: skayser at users.sourceforge.net (skayser at users.sourceforge.net) Date: Tue, 31 Aug 2010 22:33:17 +0000 Subject: [csw-devel] SF.net SVN: gar:[10858] csw/mgar/pkg/nano/trunk/files/changelog.CSW Message-ID: Revision: 10858 http://gar.svn.sourceforge.net/gar/?rev=10858&view=rev Author: skayser Date: 2010-08-31 22:33:17 +0000 (Tue, 31 Aug 2010) Log Message: ----------- nano: update changelog.CSW Modified Paths: -------------- csw/mgar/pkg/nano/trunk/files/changelog.CSW Modified: csw/mgar/pkg/nano/trunk/files/changelog.CSW =================================================================== --- csw/mgar/pkg/nano/trunk/files/changelog.CSW 2010-08-31 22:30:18 UTC (rev 10857) +++ csw/mgar/pkg/nano/trunk/files/changelog.CSW 2010-08-31 22:33:17 UTC (rev 10858) @@ -1,8 +1,8 @@ -nano (2.2.5,REV=2010.08.11) +nano (2.2.5,REV=2010.09.01) * Version bump to 2.2.5. - -- Sebastian Kayser Wed, 11 Aug 2010 23:40:47 +0200 + -- Sebastian Kayser Wed, 1 Sep 2010 00:31:41 +0200 nano (2.2.4,REV=2010.07.30) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From skayser at users.sourceforge.net Wed Sep 1 01:16:14 2010 From: skayser at users.sourceforge.net (skayser at users.sourceforge.net) Date: Tue, 31 Aug 2010 23:16:14 +0000 Subject: [csw-devel] SF.net SVN: gar:[10859] csw/mgar/pkg/sudosh2/trunk Message-ID: Revision: 10859 http://gar.svn.sourceforge.net/gar/?rev=10859&view=rev Author: skayser Date: 2010-08-31 23:16:14 +0000 (Tue, 31 Aug 2010) Log Message: ----------- sudosh: version bump to 1.0.4 Modified Paths: -------------- csw/mgar/pkg/sudosh2/trunk/Makefile csw/mgar/pkg/sudosh2/trunk/checksums csw/mgar/pkg/sudosh2/trunk/files/changelog.CSW Modified: csw/mgar/pkg/sudosh2/trunk/Makefile =================================================================== --- csw/mgar/pkg/sudosh2/trunk/Makefile 2010-08-31 22:33:17 UTC (rev 10858) +++ csw/mgar/pkg/sudosh2/trunk/Makefile 2010-08-31 23:16:14 UTC (rev 10859) @@ -1,8 +1,8 @@ -# TODO/Issues -# - Submit 001- (DESTDIR) and 002- (man page) patches upstream -# - clearenvironment is not documented in sudosh.conf(5), others? +# TODO (release-critical prefixed with !, non release-critical with *) +# * Submit 001- (DESTDIR) and 002- (man page) patches upstream +# * clearenvironment is not documented in sudosh.conf(5), others? GARNAME = sudosh2 -GARVERSION = 1.0.2 +GARVERSION = 1.0.4 CATEGORIES = apps DESCRIPTION = Extensive auditing of user shell usage @@ -20,11 +20,11 @@ Sudosh2 is a fork of sudosh (by Douglas Hanks). endef -SPKG_SOURCEURL = http://sudosh2.sf.net -MASTER_SITES = $(SF_MIRRORS) -DISTFILES = $(GARNAME)-$(GARVERSION).tgz -DISTFILES += CSWsudosh2.postinstall -DISTFILES += CSWsudosh2.postremove +VENDOR_URL = http://sudosh2.sf.net +MASTER_SITES = $(SF_MIRRORS) +DISTFILES = $(GARNAME)-$(GARVERSION).tgz +DISTFILES += CSWsudosh2.postinstall +DISTFILES += CSWsudosh2.postremove sysconfdir = /etc/opt/csw localstatedir = /var/opt/csw @@ -57,9 +57,6 @@ PATCHFILES += 002-strip-man-page-blank.patch # The binary is called sudosh (not sudosh2 - only leave sudosh2 in the title) PATCHFILES += 003-adjust-sudosh-man-binary-name.patch -# sudosh-replay leaks FDs on listing sessions -# http://sourceforge.net/tracker/?func=detail&aid=2040342&group_id=213047&atid=1024149 -PATCHFILES += 004-replay-close-fds.patch include gar/category.mk Modified: csw/mgar/pkg/sudosh2/trunk/checksums =================================================================== --- csw/mgar/pkg/sudosh2/trunk/checksums 2010-08-31 22:33:17 UTC (rev 10858) +++ csw/mgar/pkg/sudosh2/trunk/checksums 2010-08-31 23:16:14 UTC (rev 10859) @@ -4,4 +4,4 @@ 41edfc118e6aaf191e647decee641bee 004-replay-close-fds.patch 0b8a0b464681f636262f716d096420f6 CSWsudosh2.postinstall e324c66237a431004242d274fa2ad1f4 CSWsudosh2.postremove -4c837f7739d9db780ad324ed8482e8a7 sudosh2-1.0.2.tgz +28c0b6cfd60299a6c339cf9b07f2367f sudosh2-1.0.4.tgz Modified: csw/mgar/pkg/sudosh2/trunk/files/changelog.CSW =================================================================== --- csw/mgar/pkg/sudosh2/trunk/files/changelog.CSW 2010-08-31 22:33:17 UTC (rev 10858) +++ csw/mgar/pkg/sudosh2/trunk/files/changelog.CSW 2010-08-31 23:16:14 UTC (rev 10859) @@ -1,3 +1,9 @@ +sudosh2 (1.0.4,REV=2010.09.01) + + * Version bump to 1.0.4. (Closes #4487) + + -- Sebastian Kayser Wed, 1 Sep 2010 01:06:14 +0200 + sudosh2 (1.0.2,REV=2009.12.02) * Applied file handle leak patch so that sudosh-replay doesn't run out of This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From bdwalton at users.sourceforge.net Wed Sep 1 05:10:43 2010 From: bdwalton at users.sourceforge.net (bdwalton at users.sourceforge.net) Date: Wed, 01 Sep 2010 03:10:43 +0000 Subject: [csw-devel] SF.net SVN: gar:[10860] csw/mgar/pkg/gettext/trunk Message-ID: Revision: 10860 http://gar.svn.sourceforge.net/gar/?rev=10860&view=rev Author: bdwalton Date: 2010-09-01 03:10:43 +0000 (Wed, 01 Sep 2010) Log Message: ----------- gettext: add the 0.17 version of the libs as SONAME requirements will need these files Modified Paths: -------------- csw/mgar/pkg/gettext/trunk/Makefile Added Paths: ----------- csw/mgar/pkg/gettext/trunk/files/libgettextlib-0.17.so.amd64 csw/mgar/pkg/gettext/trunk/files/libgettextlib-0.17.so.i csw/mgar/pkg/gettext/trunk/files/libgettextlib-0.17.so.s csw/mgar/pkg/gettext/trunk/files/libgettextlib-0.17.so.s9 csw/mgar/pkg/gettext/trunk/files/libgettextsrc-0.17.so.amd64 csw/mgar/pkg/gettext/trunk/files/libgettextsrc-0.17.so.i csw/mgar/pkg/gettext/trunk/files/libgettextsrc-0.17.so.s csw/mgar/pkg/gettext/trunk/files/libgettextsrc-0.17.so.s9 Modified: csw/mgar/pkg/gettext/trunk/Makefile =================================================================== --- csw/mgar/pkg/gettext/trunk/Makefile 2010-08-31 23:16:14 UTC (rev 10859) +++ csw/mgar/pkg/gettext/trunk/Makefile 2010-09-01 03:10:43 UTC (rev 10860) @@ -61,6 +61,7 @@ #provided by iconv MERGE_EXCLUDE_FILES = .*/charset.alias +MERGE_EXCLUDE_FILES += .*/locale.alias MERGE_EXCLUDE_FILES += .*/iconv.m4 MERGE_EXCLUDE_FILES += /opt/csw/bin/$(ISA)/.* Added: csw/mgar/pkg/gettext/trunk/files/libgettextlib-0.17.so.amd64 =================================================================== (Binary files differ) Property changes on: csw/mgar/pkg/gettext/trunk/files/libgettextlib-0.17.so.amd64 ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Added: csw/mgar/pkg/gettext/trunk/files/libgettextlib-0.17.so.i =================================================================== (Binary files differ) Property changes on: csw/mgar/pkg/gettext/trunk/files/libgettextlib-0.17.so.i ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Added: csw/mgar/pkg/gettext/trunk/files/libgettextlib-0.17.so.s =================================================================== (Binary files differ) Property changes on: csw/mgar/pkg/gettext/trunk/files/libgettextlib-0.17.so.s ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Added: csw/mgar/pkg/gettext/trunk/files/libgettextlib-0.17.so.s9 =================================================================== (Binary files differ) Property changes on: csw/mgar/pkg/gettext/trunk/files/libgettextlib-0.17.so.s9 ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Added: csw/mgar/pkg/gettext/trunk/files/libgettextsrc-0.17.so.amd64 =================================================================== (Binary files differ) Property changes on: csw/mgar/pkg/gettext/trunk/files/libgettextsrc-0.17.so.amd64 ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Added: csw/mgar/pkg/gettext/trunk/files/libgettextsrc-0.17.so.i =================================================================== (Binary files differ) Property changes on: csw/mgar/pkg/gettext/trunk/files/libgettextsrc-0.17.so.i ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Added: csw/mgar/pkg/gettext/trunk/files/libgettextsrc-0.17.so.s =================================================================== (Binary files differ) Property changes on: csw/mgar/pkg/gettext/trunk/files/libgettextsrc-0.17.so.s ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Added: csw/mgar/pkg/gettext/trunk/files/libgettextsrc-0.17.so.s9 =================================================================== (Binary files differ) Property changes on: csw/mgar/pkg/gettext/trunk/files/libgettextsrc-0.17.so.s9 ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From dmichelsen at users.sourceforge.net Wed Sep 1 09:38:57 2010 From: dmichelsen at users.sourceforge.net (dmichelsen at users.sourceforge.net) Date: Wed, 01 Sep 2010 07:38:57 +0000 Subject: [csw-devel] SF.net SVN: gar:[10861] csw/mgar/pkg/cpan/Apache-DBI/trunk Message-ID: Revision: 10861 http://gar.svn.sourceforge.net/gar/?rev=10861&view=rev Author: dmichelsen Date: 2010-09-01 07:38:57 +0000 (Wed, 01 Sep 2010) Log Message: ----------- cpan/Apache-DBI: Update to 1.08 and mGAR v2 Modified Paths: -------------- csw/mgar/pkg/cpan/Apache-DBI/trunk/Makefile csw/mgar/pkg/cpan/Apache-DBI/trunk/checksums Added Paths: ----------- csw/mgar/pkg/cpan/Apache-DBI/trunk/files/COPYING Removed Paths: ------------- csw/mgar/pkg/cpan/Apache-DBI/trunk/files/CSWpmapachedbi.depend csw/mgar/pkg/cpan/Apache-DBI/trunk/files/CSWpmapachedbi.gspec Property Changed: ---------------- csw/mgar/pkg/cpan/Apache-DBI/trunk/ Property changes on: csw/mgar/pkg/cpan/Apache-DBI/trunk ___________________________________________________________________ Modified: svn:externals - gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v1 + gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2 Modified: csw/mgar/pkg/cpan/Apache-DBI/trunk/Makefile =================================================================== --- csw/mgar/pkg/cpan/Apache-DBI/trunk/Makefile 2010-09-01 03:10:43 UTC (rev 10860) +++ csw/mgar/pkg/cpan/Apache-DBI/trunk/Makefile 2010-09-01 07:38:57 UTC (rev 10861) @@ -1,18 +1,26 @@ GARNAME = Apache-DBI -GARVERSION = 0.94 +GARVERSION = 1.08 CATEGORIES = cpan AUTHOR = ABH -DESCRIPTION = initiate a persistent database connection +DESCRIPTION = Initiate a persistent database connection define BLURB - This module initiates a persistent database connection. + These modules are supposed to be used with the Apache server together with + an embedded perl interpreter like mod_perl. They provide support for basic + authentication and authorization as well as support for persistent database + connections via Perl's Database Independent Interface (DBI). endef -DISTFILES += CSWpmapachedbi.gspec CSWpmapachedbi.depend +DISTFILES = COPYING -DEPENDS += cpan/DBI +PACKAGES = CSWpmapachedbi +CATALOGNAME = pm_apachedbi +DEP_PKGS = CSWmodperl CSWpmdbi CSWpmdigestsha1 + # Tests require MySQL to be running -TEST_SCRIPTS = +# TEST_SCRIPTS = +ARCHALL = 1 + include gar/category.mk Modified: csw/mgar/pkg/cpan/Apache-DBI/trunk/checksums =================================================================== --- csw/mgar/pkg/cpan/Apache-DBI/trunk/checksums 2010-09-01 03:10:43 UTC (rev 10860) +++ csw/mgar/pkg/cpan/Apache-DBI/trunk/checksums 2010-09-01 07:38:57 UTC (rev 10861) @@ -1,3 +1,2 @@ -3d5e99bc48ef2a40688d084369e973e1 download/CSWpmapachedbi.gspec -89c5044274f2f62e6d6fc58ec4bf2906 download/CSWpmapachedbi.depend -70a90a6d96b3563a204996e0f8122e61 download/Apache-DBI-0.94.tar.gz +cb33b7ce268ef3a6fcbdc82d13d89b5c Apache-DBI-1.08.tar.gz +7fc3ac03a8acf663f0e6c6a1d8cb0748 COPYING Added: csw/mgar/pkg/cpan/Apache-DBI/trunk/files/COPYING =================================================================== --- csw/mgar/pkg/cpan/Apache-DBI/trunk/files/COPYING (rev 0) +++ csw/mgar/pkg/cpan/Apache-DBI/trunk/files/COPYING 2010-09-01 07:38:57 UTC (rev 10861) @@ -0,0 +1,6 @@ +COPYRIGHT: +---------- + +You may distribute under the terms of either the GNU General Public +License or the Artistic License, as specified in the Perl README file. + Deleted: csw/mgar/pkg/cpan/Apache-DBI/trunk/files/CSWpmapachedbi.depend =================================================================== --- csw/mgar/pkg/cpan/Apache-DBI/trunk/files/CSWpmapachedbi.depend 2010-09-01 03:10:43 UTC (rev 10860) +++ csw/mgar/pkg/cpan/Apache-DBI/trunk/files/CSWpmapachedbi.depend 2010-09-01 07:38:57 UTC (rev 10861) @@ -1 +0,0 @@ -P CSWpmdbi pm_dbi - database independent interface for Perl Deleted: csw/mgar/pkg/cpan/Apache-DBI/trunk/files/CSWpmapachedbi.gspec =================================================================== --- csw/mgar/pkg/cpan/Apache-DBI/trunk/files/CSWpmapachedbi.gspec 2010-09-01 03:10:43 UTC (rev 10860) +++ csw/mgar/pkg/cpan/Apache-DBI/trunk/files/CSWpmapachedbi.gspec 2010-09-01 07:38:57 UTC (rev 10861) @@ -1,6 +0,0 @@ -%var bitname pm_apachedbi -%var pkgname CSWpmapachedbi -%include url file://%{PKGLIB}/csw_cpan.gspec -%copyright -The Apache::AuthDBI module is free software; you can redistribute it and/or -modify it under the same terms as Perl itself. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From dmichelsen at users.sourceforge.net Wed Sep 1 10:40:38 2010 From: dmichelsen at users.sourceforge.net (dmichelsen at users.sourceforge.net) Date: Wed, 01 Sep 2010 08:40:38 +0000 Subject: [csw-devel] SF.net SVN: gar:[10862] csw/mgar/gar/v2/gar.mk Message-ID: Revision: 10862 http://gar.svn.sourceforge.net/gar/?rev=10862&view=rev Author: dmichelsen Date: 2010-09-01 08:40:38 +0000 (Wed, 01 Sep 2010) Log Message: ----------- mGAR v2: Skip things in files/ from checksumming Modified Paths: -------------- csw/mgar/gar/v2/gar.mk Modified: csw/mgar/gar/v2/gar.mk =================================================================== --- csw/mgar/gar/v2/gar.mk 2010-09-01 07:38:57 UTC (rev 10861) +++ csw/mgar/gar/v2/gar.mk 2010-09-01 08:40:38 UTC (rev 10862) @@ -45,7 +45,8 @@ DISTNAME ?= $(GARNAME)-$(GARVERSION) DYNSCRIPTS = $(foreach PKG,$(SPKG_SPECS),$(foreach SCR,$(ADMSCRIPTS),$(if $(value $(PKG)_$(SCR)), $(PKG).$(SCR)))) -_NOCHECKSUM += $(DYNSCRIPTS) $(foreach R,$(GIT_REPOS),$(call GITPROJ,$(R))) $(_EXTRA_GAR_NOCHECKSUM) +_LOCALFILES = $(notdir $(wildcard files/*)) +_NOCHECKSUM += $(DYNSCRIPTS) $(_LOCALFILES) $(foreach R,$(GIT_REPOS),$(call GITPROJ,$(R))) $(_EXTRA_GAR_NOCHECKSUM) DISTFILES += $(_EXTRA_GAR_DISTFILES) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From chninkel at users.sourceforge.net Wed Sep 1 12:31:03 2010 From: chninkel at users.sourceforge.net (chninkel at users.sourceforge.net) Date: Wed, 01 Sep 2010 10:31:03 +0000 Subject: [csw-devel] SF.net SVN: gar:[10863] csw/mgar/pkg/vsftpd/trunk Message-ID: Revision: 10863 http://gar.svn.sourceforge.net/gar/?rev=10863&view=rev Author: chninkel Date: 2010-09-01 10:31:03 +0000 (Wed, 01 Sep 2010) Log Message: ----------- vsftpd: switched from /opt/csw/var/empy to /var/opt/csw/empy Modified Paths: -------------- csw/mgar/pkg/vsftpd/trunk/Makefile csw/mgar/pkg/vsftpd/trunk/checksums csw/mgar/pkg/vsftpd/trunk/files/csw_paths.patch csw/mgar/pkg/vsftpd/trunk/files/cswusergroup Modified: csw/mgar/pkg/vsftpd/trunk/Makefile =================================================================== --- csw/mgar/pkg/vsftpd/trunk/Makefile 2010-09-01 08:40:38 UTC (rev 10862) +++ csw/mgar/pkg/vsftpd/trunk/Makefile 2010-09-01 10:31:03 UTC (rev 10863) @@ -147,4 +147,4 @@ ginstall -D "$(WORKDIR_FIRSTMOD)/README.CSW" "$(PKGROOT)$(docdir)/vsftpd/README.CSW" merge-empty-directory: - ginstall -d "$(PKGROOT)$(localstatedir)/empty/vsftpd" + ginstall -d "$(PKGROOT)/var/opt/csw/empty/vsftpd" Modified: csw/mgar/pkg/vsftpd/trunk/checksums =================================================================== --- csw/mgar/pkg/vsftpd/trunk/checksums 2010-09-01 08:40:38 UTC (rev 10862) +++ csw/mgar/pkg/vsftpd/trunk/checksums 2010-09-01 10:31:03 UTC (rev 10863) @@ -3,8 +3,8 @@ 281c51282cabd9475cceef363bbc699b build_options.patch 778420c7a9c47afb78eff3957f5d07a5 changelog.CSW 54c1c39c6bfa8747a4457f135fd5bca1 csw_build_system.patch -a9e994d2b57999b76a0e03503745c01a csw_paths.patch -3dc08f17f383de22b400f1af00ff7ef6 cswusergroup +57d1d89d4f4a2b63b71b80e694f05827 csw_paths.patch +c4928b039f7e0658dfaf7420eea98cbb cswusergroup 796d46089f9e9c25c897a34e0dcfadc8 cswvsftpd 93173edf9931b8eb835c6d0177a7c6bd cswvsftpd.xml 83d13bd15ec4c0de2695640b7407c700 destdir.patch Modified: csw/mgar/pkg/vsftpd/trunk/files/csw_paths.patch =================================================================== --- csw/mgar/pkg/vsftpd/trunk/files/csw_paths.patch 2010-09-01 08:40:38 UTC (rev 10862) +++ csw/mgar/pkg/vsftpd/trunk/files/csw_paths.patch 2010-09-01 10:31:03 UTC (rev 10863) @@ -18,7 +18,7 @@ tunable_chown_upload_mode = 0600; - install_str_setting("/usr/share/empty", &tunable_secure_chroot_dir); -+ install_str_setting("/opt/csw/var/empty/vsftpd", &tunable_secure_chroot_dir); ++ install_str_setting("/var/opt/csw/empty/vsftpd", &tunable_secure_chroot_dir); install_str_setting("ftp", &tunable_ftp_username); install_str_setting("root", &tunable_chown_username); install_str_setting("/var/log/xferlog", &tunable_xferlog_file); Modified: csw/mgar/pkg/vsftpd/trunk/files/cswusergroup =================================================================== --- csw/mgar/pkg/vsftpd/trunk/files/cswusergroup 2010-09-01 08:40:38 UTC (rev 10862) +++ csw/mgar/pkg/vsftpd/trunk/files/cswusergroup 2010-09-01 10:31:03 UTC (rev 10863) @@ -1,2 +1,2 @@ -vsftpd:vsftpd:vsftpd privsep user:/opt/csw/var/empty/vsftpd:/bin/false:::NP +vsftpd:vsftpd:vsftpd privsep user:/var/opt/csw/empty/vsftpd:/bin/false:::NP ftp:nogroup:ftp user for anonymous access:/opt/csw/var/ftp:/bin/false:y::NP This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From chninkel at users.sourceforge.net Wed Sep 1 12:36:33 2010 From: chninkel at users.sourceforge.net (chninkel at users.sourceforge.net) Date: Wed, 01 Sep 2010 10:36:33 +0000 Subject: [csw-devel] SF.net SVN: gar:[10864] csw/mgar/pkg/vsftpd/trunk Message-ID: Revision: 10864 http://gar.svn.sourceforge.net/gar/?rev=10864&view=rev Author: chninkel Date: 2010-09-01 10:36:33 +0000 (Wed, 01 Sep 2010) Log Message: ----------- vsftpd: also switched from /opt/csw/var/ftp to /var/opt/csw/ftp Modified Paths: -------------- csw/mgar/pkg/vsftpd/trunk/checksums csw/mgar/pkg/vsftpd/trunk/files/cswusergroup Modified: csw/mgar/pkg/vsftpd/trunk/checksums =================================================================== --- csw/mgar/pkg/vsftpd/trunk/checksums 2010-09-01 10:31:03 UTC (rev 10863) +++ csw/mgar/pkg/vsftpd/trunk/checksums 2010-09-01 10:36:33 UTC (rev 10864) @@ -4,7 +4,7 @@ 778420c7a9c47afb78eff3957f5d07a5 changelog.CSW 54c1c39c6bfa8747a4457f135fd5bca1 csw_build_system.patch 57d1d89d4f4a2b63b71b80e694f05827 csw_paths.patch -c4928b039f7e0658dfaf7420eea98cbb cswusergroup +97284faaf1157370fcbe1737b5e725b4 cswusergroup 796d46089f9e9c25c897a34e0dcfadc8 cswvsftpd 93173edf9931b8eb835c6d0177a7c6bd cswvsftpd.xml 83d13bd15ec4c0de2695640b7407c700 destdir.patch Modified: csw/mgar/pkg/vsftpd/trunk/files/cswusergroup =================================================================== --- csw/mgar/pkg/vsftpd/trunk/files/cswusergroup 2010-09-01 10:31:03 UTC (rev 10863) +++ csw/mgar/pkg/vsftpd/trunk/files/cswusergroup 2010-09-01 10:36:33 UTC (rev 10864) @@ -1,2 +1,2 @@ vsftpd:vsftpd:vsftpd privsep user:/var/opt/csw/empty/vsftpd:/bin/false:::NP -ftp:nogroup:ftp user for anonymous access:/opt/csw/var/ftp:/bin/false:y::NP +ftp:nogroup:ftp user for anonymous access:/var/opt/csw/ftp:/bin/false:y::NP This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From chninkel at users.sourceforge.net Wed Sep 1 13:15:23 2010 From: chninkel at users.sourceforge.net (chninkel at users.sourceforge.net) Date: Wed, 01 Sep 2010 11:15:23 +0000 Subject: [csw-devel] SF.net SVN: gar:[10865] csw/mgar/pkg/vsftpd/trunk Message-ID: Revision: 10865 http://gar.svn.sourceforge.net/gar/?rev=10865&view=rev Author: chninkel Date: 2010-09-01 11:15:23 +0000 (Wed, 01 Sep 2010) Log Message: ----------- vsftpd: manually create the ftp home directory Modified Paths: -------------- csw/mgar/pkg/vsftpd/trunk/checksums csw/mgar/pkg/vsftpd/trunk/files/CSWvsftpd.preinstall csw/mgar/pkg/vsftpd/trunk/files/cswusergroup Modified: csw/mgar/pkg/vsftpd/trunk/checksums =================================================================== --- csw/mgar/pkg/vsftpd/trunk/checksums 2010-09-01 10:36:33 UTC (rev 10864) +++ csw/mgar/pkg/vsftpd/trunk/checksums 2010-09-01 11:15:23 UTC (rev 10865) @@ -1,10 +1,10 @@ -a2f5b70fe49839b0463c9d90af0f11dd CSWvsftpd.preinstall +0ea60e4bd6ed8f5bfc79457c930f84e3 CSWvsftpd.preinstall eeaf77528b2da0c7730323838f30b7ef README.CSW 281c51282cabd9475cceef363bbc699b build_options.patch 778420c7a9c47afb78eff3957f5d07a5 changelog.CSW 54c1c39c6bfa8747a4457f135fd5bca1 csw_build_system.patch 57d1d89d4f4a2b63b71b80e694f05827 csw_paths.patch -97284faaf1157370fcbe1737b5e725b4 cswusergroup +36e99857f4727e99a13721c8f726c856 cswusergroup 796d46089f9e9c25c897a34e0dcfadc8 cswvsftpd 93173edf9931b8eb835c6d0177a7c6bd cswvsftpd.xml 83d13bd15ec4c0de2695640b7407c700 destdir.patch Modified: csw/mgar/pkg/vsftpd/trunk/files/CSWvsftpd.preinstall =================================================================== --- csw/mgar/pkg/vsftpd/trunk/files/CSWvsftpd.preinstall 2010-09-01 10:36:33 UTC (rev 10864) +++ csw/mgar/pkg/vsftpd/trunk/files/CSWvsftpd.preinstall 2010-09-01 11:15:23 UTC (rev 10865) @@ -5,4 +5,9 @@ if [ -z "$FTP_HOME" ] || [ ! -d "$FTP_HOME" ]; then echo "WARNING: the ftp user doesn't have a valid home directory !" fi +else + # we manually create the ftp home directory if the ftp user doesn't exist + # cswusergroup action class can create the directory but populates it + # with skeleton files and we want an empty directory + mkdir -p "$PKG_INSTALL_ROOT/var/opt/csw/ftp" fi Modified: csw/mgar/pkg/vsftpd/trunk/files/cswusergroup =================================================================== --- csw/mgar/pkg/vsftpd/trunk/files/cswusergroup 2010-09-01 10:36:33 UTC (rev 10864) +++ csw/mgar/pkg/vsftpd/trunk/files/cswusergroup 2010-09-01 11:15:23 UTC (rev 10865) @@ -1,2 +1,2 @@ vsftpd:vsftpd:vsftpd privsep user:/var/opt/csw/empty/vsftpd:/bin/false:::NP -ftp:nogroup:ftp user for anonymous access:/var/opt/csw/ftp:/bin/false:y::NP +ftp:nogroup:ftp user for anonymous access:/var/opt/csw/ftp:/bin/false:::NP This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From bonivart at users.sourceforge.net Wed Sep 1 13:17:47 2010 From: bonivart at users.sourceforge.net (bonivart at users.sourceforge.net) Date: Wed, 01 Sep 2010 11:17:47 +0000 Subject: [csw-devel] SF.net SVN: gar:[10866] csw/mgar/pkg/cpan/Convert-BinHex/trunk/Makefile Message-ID: Revision: 10866 http://gar.svn.sourceforge.net/gar/?rev=10866&view=rev Author: bonivart Date: 2010-09-01 11:17:47 +0000 (Wed, 01 Sep 2010) Log Message: ----------- convert-binhex: skip tests Modified Paths: -------------- csw/mgar/pkg/cpan/Convert-BinHex/trunk/Makefile Modified: csw/mgar/pkg/cpan/Convert-BinHex/trunk/Makefile =================================================================== --- csw/mgar/pkg/cpan/Convert-BinHex/trunk/Makefile 2010-09-01 11:15:23 UTC (rev 10865) +++ csw/mgar/pkg/cpan/Convert-BinHex/trunk/Makefile 2010-09-01 11:17:47 UTC (rev 10866) @@ -16,4 +16,6 @@ ARCHALL = 1 +SKIPTEST = 1 + include gar/category.mk This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From dmichelsen at users.sourceforge.net Wed Sep 1 13:36:11 2010 From: dmichelsen at users.sourceforge.net (dmichelsen at users.sourceforge.net) Date: Wed, 01 Sep 2010 11:36:11 +0000 Subject: [csw-devel] SF.net SVN: gar:[10867] csw/mgar/pkg/cpan/PatchReader/trunk Message-ID: Revision: 10867 http://gar.svn.sourceforge.net/gar/?rev=10867&view=rev Author: dmichelsen Date: 2010-09-01 11:36:11 +0000 (Wed, 01 Sep 2010) Log Message: ----------- cpan/PatchReader: Update to mGAR v2 Modified Paths: -------------- csw/mgar/pkg/cpan/PatchReader/trunk/Makefile csw/mgar/pkg/cpan/PatchReader/trunk/checksums Added Paths: ----------- csw/mgar/pkg/cpan/PatchReader/trunk/files/COPYING Removed Paths: ------------- csw/mgar/pkg/cpan/PatchReader/trunk/files/CSWpmpatchreader.gspec csw/mgar/pkg/cpan/PatchReader/trunk/files/CSWpmpatchreader.prototype Property Changed: ---------------- csw/mgar/pkg/cpan/PatchReader/trunk/ Property changes on: csw/mgar/pkg/cpan/PatchReader/trunk ___________________________________________________________________ Modified: svn:externals - gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v1 + gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2 Modified: csw/mgar/pkg/cpan/PatchReader/trunk/Makefile =================================================================== --- csw/mgar/pkg/cpan/PatchReader/trunk/Makefile 2010-09-01 11:17:47 UTC (rev 10866) +++ csw/mgar/pkg/cpan/PatchReader/trunk/Makefile 2010-09-01 11:36:11 UTC (rev 10867) @@ -10,6 +10,11 @@ patch information. endef -DISTFILES += $(call admfiles,CSWpmpatchreader,prototype) +DISTFILES = COPYING +PACKAGES = CSWpmpatchreader +CATALOGNAME = pm_patchreader + +ARCHALL = 1 + include gar/category.mk Modified: csw/mgar/pkg/cpan/PatchReader/trunk/checksums =================================================================== --- csw/mgar/pkg/cpan/PatchReader/trunk/checksums 2010-09-01 11:17:47 UTC (rev 10866) +++ csw/mgar/pkg/cpan/PatchReader/trunk/checksums 2010-09-01 11:36:11 UTC (rev 10867) @@ -1,3 +1 @@ -a88b18ade7beff8d7cea7c1cb51ffed3 download/CSWpmpatchreader.gspec -a1490c865be3ed4409a554fa4db198c7 download/CSWpmpatchreader.prototype -8aca86b807aec3c82dcb981c7730f022 download/PatchReader-0.9.5.tar.gz +8aca86b807aec3c82dcb981c7730f022 PatchReader-0.9.5.tar.gz Copied: csw/mgar/pkg/cpan/PatchReader/trunk/files/COPYING (from rev 10860, csw/mgar/pkg/cpan/PatchReader/trunk/files/CSWpmpatchreader.gspec) =================================================================== --- csw/mgar/pkg/cpan/PatchReader/trunk/files/COPYING (rev 0) +++ csw/mgar/pkg/cpan/PatchReader/trunk/files/COPYING 2010-09-01 11:36:11 UTC (rev 10867) @@ -0,0 +1,2 @@ +This module is free software; you can redistribute it and/or modify it under +the same terms as Perl itself. Deleted: csw/mgar/pkg/cpan/PatchReader/trunk/files/CSWpmpatchreader.gspec =================================================================== --- csw/mgar/pkg/cpan/PatchReader/trunk/files/CSWpmpatchreader.gspec 2010-09-01 11:17:47 UTC (rev 10866) +++ csw/mgar/pkg/cpan/PatchReader/trunk/files/CSWpmpatchreader.gspec 2010-09-01 11:36:11 UTC (rev 10867) @@ -1,7 +0,0 @@ -%var bitname pm_patchreader -%var pkgname CSWpmpatchreader -%var arch all -%include url file://%{PKGLIB}/csw_cpan.gspec -%copyright -This module is free software; you can redistribute it and/or modify it under -the same terms as Perl itself. Deleted: csw/mgar/pkg/cpan/PatchReader/trunk/files/CSWpmpatchreader.prototype =================================================================== --- csw/mgar/pkg/cpan/PatchReader/trunk/files/CSWpmpatchreader.prototype 2010-09-01 11:17:47 UTC (rev 10866) +++ csw/mgar/pkg/cpan/PatchReader/trunk/files/CSWpmpatchreader.prototype 2010-09-01 11:36:11 UTC (rev 10867) @@ -1,25 +0,0 @@ -d none /opt/csw/lib 0755 root bin -d none /opt/csw/lib/perl 0755 root bin -d none /opt/csw/lib/perl/csw 0755 root bin -d none /opt/csw/lib/perl/csw/auto 0755 root bin -d none /opt/csw/lib/perl/csw/auto/PatchReader 0755 root bin -f none /opt/csw/lib/perl/csw/auto/PatchReader/.packlist 0644 root bin -d none /opt/csw/share 0755 root bin -d none /opt/csw/share/man 0755 root bin -d none /opt/csw/share/man/man3 0755 root bin -f none /opt/csw/share/man/man3/PatchReader.3perl 0444 root bin -d none /opt/csw/share/perl 0755 root bin -d none /opt/csw/share/perl/csw 0755 root bin -d none /opt/csw/share/perl/csw/PatchReader 0755 root bin -f none /opt/csw/share/perl/csw/PatchReader.pm 0555 root bin -f none /opt/csw/share/perl/csw/PatchReader/AddCVSContext.pm 0555 root bin -f none /opt/csw/share/perl/csw/PatchReader/Base.pm 0555 root bin -f none /opt/csw/share/perl/csw/PatchReader/CVSClient.pm 0555 root bin -d none /opt/csw/share/perl/csw/PatchReader/DiffPrinter 0755 root bin -f none /opt/csw/share/perl/csw/PatchReader/DiffPrinter/raw.pm 0555 root bin -f none /opt/csw/share/perl/csw/PatchReader/DiffPrinter/template.pm 0555 root bin -f none /opt/csw/share/perl/csw/PatchReader/FilterPatch.pm 0555 root bin -f none /opt/csw/share/perl/csw/PatchReader/FixPatchRoot.pm 0555 root bin -f none /opt/csw/share/perl/csw/PatchReader/NarrowPatch.pm 0555 root bin -f none /opt/csw/share/perl/csw/PatchReader/PatchInfoGrabber.pm 0555 root bin -f none /opt/csw/share/perl/csw/PatchReader/Raw.pm 0555 root bin This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From dmichelsen at users.sourceforge.net Wed Sep 1 13:41:55 2010 From: dmichelsen at users.sourceforge.net (dmichelsen at users.sourceforge.net) Date: Wed, 01 Sep 2010 11:41:55 +0000 Subject: [csw-devel] SF.net SVN: gar:[10868] csw/mgar/pkg/cpan/GDGraph/trunk Message-ID: Revision: 10868 http://gar.svn.sourceforge.net/gar/?rev=10868&view=rev Author: dmichelsen Date: 2010-09-01 11:41:55 +0000 (Wed, 01 Sep 2010) Log Message: ----------- cpan/GDGraph: Update to 1.44 and mGAR v2 Modified Paths: -------------- csw/mgar/pkg/cpan/GDGraph/trunk/Makefile csw/mgar/pkg/cpan/GDGraph/trunk/checksums Added Paths: ----------- csw/mgar/pkg/cpan/GDGraph/trunk/files/COPYING Removed Paths: ------------- csw/mgar/pkg/cpan/GDGraph/trunk/files/CSWpmgdgraph.depend csw/mgar/pkg/cpan/GDGraph/trunk/files/CSWpmgdgraph.gspec Property Changed: ---------------- csw/mgar/pkg/cpan/GDGraph/trunk/ Property changes on: csw/mgar/pkg/cpan/GDGraph/trunk ___________________________________________________________________ Modified: svn:externals - gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v1 + gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2 Modified: csw/mgar/pkg/cpan/GDGraph/trunk/Makefile =================================================================== --- csw/mgar/pkg/cpan/GDGraph/trunk/Makefile 2010-09-01 11:36:11 UTC (rev 10867) +++ csw/mgar/pkg/cpan/GDGraph/trunk/Makefile 2010-09-01 11:41:55 UTC (rev 10868) @@ -1,15 +1,20 @@ GARNAME = GDGraph -GARVERSION = 1.43 +GARVERSION = 1.44 CATEGORIES = cpan -AUTHOR = MVERB +AUTHOR = BWARFIELD -DESCRIPTION = graph plotting module +DESCRIPTION = Graph plotting module define BLURB GD::Graph is a perl5 module to create charts using the GD module. endef -DISTFILES += CSWpmgdgraph.gspec CSWpmgdgraph.depend +DISTFILES = COPYING -DEPENDS += cpan/GDTextUtil +PACKAGES = CSWpmgdgraph +CATALOGNAME = pm_gdgraph +DEP_PKGS = CSWpmgdtextut + +ARCHALL = 1 + include gar/category.mk Modified: csw/mgar/pkg/cpan/GDGraph/trunk/checksums =================================================================== --- csw/mgar/pkg/cpan/GDGraph/trunk/checksums 2010-09-01 11:36:11 UTC (rev 10867) +++ csw/mgar/pkg/cpan/GDGraph/trunk/checksums 2010-09-01 11:41:55 UTC (rev 10868) @@ -1,3 +1,2 @@ -ac3fefa96abf02aa67527c5decb61d8d download/CSWpmgdgraph.gspec -d363f77821d2f1adfe8eb77feffe681b download/CSWpmgdgraph.depend -cf546f2de827a56458afe288ab0807f2 download/GDGraph-1.43.tar.gz +7f2a043c36d834e728debf0cc8058c24 COPYING +a8a4ab62741258803b5744cb8882e68c GDGraph-1.44.tar.gz Copied: csw/mgar/pkg/cpan/GDGraph/trunk/files/COPYING (from rev 9723, csw/mgar/pkg/cpan/GDGraph/trunk/files/CSWpmgdgraph.gspec) =================================================================== --- csw/mgar/pkg/cpan/GDGraph/trunk/files/COPYING (rev 0) +++ csw/mgar/pkg/cpan/GDGraph/trunk/files/COPYING 2010-09-01 11:41:55 UTC (rev 10868) @@ -0,0 +1,7 @@ +GD::Graph Copyright (c) 1999-2002 Martien Verbruggen. All rights reserved. +Chart::PNGgraph Copyright (c) 1999 Steve Bonds. All rights reserved. +GIFgraph Copyright (c) 1995-1999 Martien Verbruggen. All rights reserved. + +This package is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. + Deleted: csw/mgar/pkg/cpan/GDGraph/trunk/files/CSWpmgdgraph.depend =================================================================== --- csw/mgar/pkg/cpan/GDGraph/trunk/files/CSWpmgdgraph.depend 2010-09-01 11:36:11 UTC (rev 10867) +++ csw/mgar/pkg/cpan/GDGraph/trunk/files/CSWpmgdgraph.depend 2010-09-01 11:41:55 UTC (rev 10868) @@ -1 +0,0 @@ -P CSWpmgdtextut pm_gdtextut - Text utilities for use with GD Deleted: csw/mgar/pkg/cpan/GDGraph/trunk/files/CSWpmgdgraph.gspec =================================================================== --- csw/mgar/pkg/cpan/GDGraph/trunk/files/CSWpmgdgraph.gspec 2010-09-01 11:36:11 UTC (rev 10867) +++ csw/mgar/pkg/cpan/GDGraph/trunk/files/CSWpmgdgraph.gspec 2010-09-01 11:41:55 UTC (rev 10868) @@ -1,12 +0,0 @@ -%var bitname pm_gdgraph -%var pkgname CSWpmgdgraph -%var arch all -%include url file://%{PKGLIB}/csw_cpan.gspec -%copyright -GD::Graph Copyright (c) 1999-2002 Martien Verbruggen. All rights reserved. -Chart::PNGgraph Copyright (c) 1999 Steve Bonds. All rights reserved. -GIFgraph Copyright (c) 1995-1999 Martien Verbruggen. All rights reserved. - -This package is free software; you can redistribute it and/or -modify it under the same terms as Perl itself. - This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From bonivart at users.sourceforge.net Wed Sep 1 13:42:07 2010 From: bonivart at users.sourceforge.net (bonivart at users.sourceforge.net) Date: Wed, 01 Sep 2010 11:42:07 +0000 Subject: [csw-devel] SF.net SVN: gar:[10869] csw/mgar/pkg/cpan/Convert-TNEF/trunk Message-ID: Revision: 10869 http://gar.svn.sourceforge.net/gar/?rev=10869&view=rev Author: bonivart Date: 2010-09-01 11:42:07 +0000 (Wed, 01 Sep 2010) Log Message: ----------- convert-tnef: some fixes Modified Paths: -------------- csw/mgar/pkg/cpan/Convert-TNEF/trunk/Makefile csw/mgar/pkg/cpan/Convert-TNEF/trunk/checksums Added Paths: ----------- csw/mgar/pkg/cpan/Convert-TNEF/trunk/files/COPYING Removed Paths: ------------- csw/mgar/pkg/cpan/Convert-TNEF/trunk/files/CSWpmconverttnef.depend csw/mgar/pkg/cpan/Convert-TNEF/trunk/files/CSWpmconverttnef.gspec Property Changed: ---------------- csw/mgar/pkg/cpan/Convert-TNEF/trunk/ Property changes on: csw/mgar/pkg/cpan/Convert-TNEF/trunk ___________________________________________________________________ Modified: svn:externals - gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v1 + gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2 Modified: csw/mgar/pkg/cpan/Convert-TNEF/trunk/Makefile =================================================================== --- csw/mgar/pkg/cpan/Convert-TNEF/trunk/Makefile 2010-09-01 11:41:55 UTC (rev 10868) +++ csw/mgar/pkg/cpan/Convert-TNEF/trunk/Makefile 2010-09-01 11:42:07 UTC (rev 10869) @@ -10,8 +10,13 @@ attachment, you may want to use this module. endef -DISTFILES += CSWpmconverttnef.gspec +DISTFILES += COPYING -DEPENDS += cpan/MIME-tools +PACKAGES = CSWpmconverttnef +CATALOGNAME = pm_converttnef +ARCHALL = 1 + +RUNTIME_DEP_PKGS += CSWpmmimetools + include gar/category.mk Modified: csw/mgar/pkg/cpan/Convert-TNEF/trunk/checksums =================================================================== --- csw/mgar/pkg/cpan/Convert-TNEF/trunk/checksums 2010-09-01 11:41:55 UTC (rev 10868) +++ csw/mgar/pkg/cpan/Convert-TNEF/trunk/checksums 2010-09-01 11:42:07 UTC (rev 10869) @@ -1,2 +1 @@ -5af281b288816285a0fb4a5bea21cbe4 download/CSWpmconverttnef.gspec -31cddf42fae9495b4a686b17ec68d7e0 download/Convert-TNEF-0.17.tar.gz +31cddf42fae9495b4a686b17ec68d7e0 Convert-TNEF-0.17.tar.gz Added: csw/mgar/pkg/cpan/Convert-TNEF/trunk/files/COPYING =================================================================== --- csw/mgar/pkg/cpan/Convert-TNEF/trunk/files/COPYING (rev 0) +++ csw/mgar/pkg/cpan/Convert-TNEF/trunk/files/COPYING 2010-09-01 11:42:07 UTC (rev 10869) @@ -0,0 +1,3 @@ +Copyright (c) 1999 Douglas Wilson . All rights reserved. +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. Deleted: csw/mgar/pkg/cpan/Convert-TNEF/trunk/files/CSWpmconverttnef.depend =================================================================== --- csw/mgar/pkg/cpan/Convert-TNEF/trunk/files/CSWpmconverttnef.depend 2010-09-01 11:41:55 UTC (rev 10868) +++ csw/mgar/pkg/cpan/Convert-TNEF/trunk/files/CSWpmconverttnef.depend 2010-09-01 11:42:07 UTC (rev 10869) @@ -1 +0,0 @@ -P CSWpmmimetools pm_mimetools - Perl modules for parsing and creating MIME entities Deleted: csw/mgar/pkg/cpan/Convert-TNEF/trunk/files/CSWpmconverttnef.gspec =================================================================== --- csw/mgar/pkg/cpan/Convert-TNEF/trunk/files/CSWpmconverttnef.gspec 2010-09-01 11:41:55 UTC (rev 10868) +++ csw/mgar/pkg/cpan/Convert-TNEF/trunk/files/CSWpmconverttnef.gspec 2010-09-01 11:42:07 UTC (rev 10869) @@ -1,8 +0,0 @@ -%var bitname pm_converttnef -%var pkgname CSWpmconverttnef -%var arch all -%include url file://%{PKGLIB}/csw_cpan.gspec -%copyright -Copyright (c) 1999 Douglas Wilson . All rights reserved. -This program is free software; you can redistribute it and/or -modify it under the same terms as Perl itself. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From chninkel at users.sourceforge.net Wed Sep 1 13:42:13 2010 From: chninkel at users.sourceforge.net (chninkel at users.sourceforge.net) Date: Wed, 01 Sep 2010 11:42:13 +0000 Subject: [csw-devel] SF.net SVN: gar:[10870] csw/mgar/pkg/vsftpd/trunk Message-ID: Revision: 10870 http://gar.svn.sourceforge.net/gar/?rev=10870&view=rev Author: chninkel Date: 2010-09-01 11:42:13 +0000 (Wed, 01 Sep 2010) Log Message: ----------- vsftpd: rather create the ftp home directory in the prototype Modified Paths: -------------- csw/mgar/pkg/vsftpd/trunk/Makefile csw/mgar/pkg/vsftpd/trunk/checksums csw/mgar/pkg/vsftpd/trunk/files/CSWvsftpd.preinstall Modified: csw/mgar/pkg/vsftpd/trunk/Makefile =================================================================== --- csw/mgar/pkg/vsftpd/trunk/Makefile 2010-09-01 11:42:07 UTC (rev 10869) +++ csw/mgar/pkg/vsftpd/trunk/Makefile 2010-09-01 11:42:13 UTC (rev 10870) @@ -127,7 +127,7 @@ ginstall -d $(DESTDIR)$(docdir)/vsftpd ) -post-merge: merge-doc-files merge-config-files merge-init-file merge-empty-directory +post-merge: merge-doc-files merge-config-files merge-init-file merge-special-directories merge-init-file: ginstall -D "$(WORKDIR_FIRSTMOD)/cswvsftpd" "$(PKGROOT)/etc/opt/csw/init.d/cswvsftpd" @@ -148,3 +148,5 @@ merge-empty-directory: ginstall -d "$(PKGROOT)/var/opt/csw/empty/vsftpd" + ginstall -d "$(PKGROOT)/var/opt/csw/ftp" + Modified: csw/mgar/pkg/vsftpd/trunk/checksums =================================================================== --- csw/mgar/pkg/vsftpd/trunk/checksums 2010-09-01 11:42:07 UTC (rev 10869) +++ csw/mgar/pkg/vsftpd/trunk/checksums 2010-09-01 11:42:13 UTC (rev 10870) @@ -1,4 +1,4 @@ -0ea60e4bd6ed8f5bfc79457c930f84e3 CSWvsftpd.preinstall +a2f5b70fe49839b0463c9d90af0f11dd CSWvsftpd.preinstall eeaf77528b2da0c7730323838f30b7ef README.CSW 281c51282cabd9475cceef363bbc699b build_options.patch 778420c7a9c47afb78eff3957f5d07a5 changelog.CSW Modified: csw/mgar/pkg/vsftpd/trunk/files/CSWvsftpd.preinstall =================================================================== --- csw/mgar/pkg/vsftpd/trunk/files/CSWvsftpd.preinstall 2010-09-01 11:42:07 UTC (rev 10869) +++ csw/mgar/pkg/vsftpd/trunk/files/CSWvsftpd.preinstall 2010-09-01 11:42:13 UTC (rev 10870) @@ -5,9 +5,4 @@ if [ -z "$FTP_HOME" ] || [ ! -d "$FTP_HOME" ]; then echo "WARNING: the ftp user doesn't have a valid home directory !" fi -else - # we manually create the ftp home directory if the ftp user doesn't exist - # cswusergroup action class can create the directory but populates it - # with skeleton files and we want an empty directory - mkdir -p "$PKG_INSTALL_ROOT/var/opt/csw/ftp" fi This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From chninkel at users.sourceforge.net Wed Sep 1 13:45:49 2010 From: chninkel at users.sourceforge.net (chninkel at users.sourceforge.net) Date: Wed, 01 Sep 2010 11:45:49 +0000 Subject: [csw-devel] SF.net SVN: gar:[10871] csw/mgar/pkg/vsftpd/trunk/Makefile Message-ID: Revision: 10871 http://gar.svn.sourceforge.net/gar/?rev=10871&view=rev Author: chninkel Date: 2010-09-01 11:45:48 +0000 (Wed, 01 Sep 2010) Log Message: ----------- vsftpd: fixed Makefile mistake Modified Paths: -------------- csw/mgar/pkg/vsftpd/trunk/Makefile Modified: csw/mgar/pkg/vsftpd/trunk/Makefile =================================================================== --- csw/mgar/pkg/vsftpd/trunk/Makefile 2010-09-01 11:42:13 UTC (rev 10870) +++ csw/mgar/pkg/vsftpd/trunk/Makefile 2010-09-01 11:45:48 UTC (rev 10871) @@ -146,7 +146,7 @@ ginstall -D "$(WORKDIR_FIRSTMOD)/changelog.CSW" "$(PKGROOT)$(docdir)/vsftpd/changelog.CSW" ginstall -D "$(WORKDIR_FIRSTMOD)/README.CSW" "$(PKGROOT)$(docdir)/vsftpd/README.CSW" -merge-empty-directory: +merge-special-directories: ginstall -d "$(PKGROOT)/var/opt/csw/empty/vsftpd" ginstall -d "$(PKGROOT)/var/opt/csw/ftp" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From dmichelsen at users.sourceforge.net Wed Sep 1 13:56:34 2010 From: dmichelsen at users.sourceforge.net (dmichelsen at users.sourceforge.net) Date: Wed, 01 Sep 2010 11:56:34 +0000 Subject: [csw-devel] SF.net SVN: gar:[10872] csw/mgar/pkg/cpan/GDGraph3d/trunk Message-ID: Revision: 10872 http://gar.svn.sourceforge.net/gar/?rev=10872&view=rev Author: dmichelsen Date: 2010-09-01 11:56:34 +0000 (Wed, 01 Sep 2010) Log Message: ----------- cpan/GDGraph3d: Update to 0.63 and mGAR v2 Modified Paths: -------------- csw/mgar/pkg/cpan/GDGraph3d/trunk/Makefile csw/mgar/pkg/cpan/GDGraph3d/trunk/checksums Added Paths: ----------- csw/mgar/pkg/cpan/GDGraph3d/trunk/files/COPYING Removed Paths: ------------- csw/mgar/pkg/cpan/GDGraph3d/trunk/files/CSWpmgdgraph3d.depend csw/mgar/pkg/cpan/GDGraph3d/trunk/files/CSWpmgdgraph3d.gspec Property Changed: ---------------- csw/mgar/pkg/cpan/GDGraph3d/trunk/ Property changes on: csw/mgar/pkg/cpan/GDGraph3d/trunk ___________________________________________________________________ Modified: svn:externals - gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v1 + gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2 Modified: csw/mgar/pkg/cpan/GDGraph3d/trunk/Makefile =================================================================== --- csw/mgar/pkg/cpan/GDGraph3d/trunk/Makefile 2010-09-01 11:45:48 UTC (rev 10871) +++ csw/mgar/pkg/cpan/GDGraph3d/trunk/Makefile 2010-09-01 11:56:34 UTC (rev 10872) @@ -1,17 +1,22 @@ -GARNAME = GDGraph3d -GARVERSION = 0.56 +GARNAME = GD-Graph3d +GARVERSION = 0.63 CATEGORIES = cpan AUTHOR = WADG -DESCRIPTION = create 3D graphs with GD and GD::Graph +DESCRIPTION = Create 3D graphs with GD and GD::Graph define BLURB This is the GD::Graph3d extensions module. It provides 3D graphs for the GD::Graph module by Martien Verbruggen, which in turn generates graph using Lincoln Stein's GD.pm. endef -DISTFILES += $(call admfiles,CSWpmgdgraph3d,depend) +DISTFILES = COPYING -DEPENDS += cpan/GDGraph +PACKAGES = CSWpmgdgraph3d +CATALOGNAME = pm_gdgraph3d +DEP_PKGS = CSWpmgdgraph + +ARCHALL = 1 + include gar/category.mk Modified: csw/mgar/pkg/cpan/GDGraph3d/trunk/checksums =================================================================== --- csw/mgar/pkg/cpan/GDGraph3d/trunk/checksums 2010-09-01 11:45:48 UTC (rev 10871) +++ csw/mgar/pkg/cpan/GDGraph3d/trunk/checksums 2010-09-01 11:56:34 UTC (rev 10872) @@ -1,3 +1 @@ -f219a0b3e87c54acd41914fc6af5710f download/CSWpmgdgraph3d.gspec -3d8f40609dbc51dd6d1f2a7158245bf6 download/CSWpmgdgraph3d.depend -294dabc54c640ee62046932e7c4c6d1c download/GDGraph3d-0.56.tar.gz +f866dcdd1e7e2056bb946ab7ac3fe37b GD-Graph3d-0.63.tar.gz Copied: csw/mgar/pkg/cpan/GDGraph3d/trunk/files/COPYING (from rev 10860, csw/mgar/pkg/cpan/GDGraph3d/trunk/files/CSWpmgdgraph3d.gspec) =================================================================== --- csw/mgar/pkg/cpan/GDGraph3d/trunk/files/COPYING (rev 0) +++ csw/mgar/pkg/cpan/GDGraph3d/trunk/files/COPYING 2010-09-01 11:56:34 UTC (rev 10872) @@ -0,0 +1,13 @@ +Copyright (c) 1999,2000 Wadsack-Allen. All rights reserved. + +Much of the original code is from GD::Graph: + +GIFgraph: Copyright (c) 1995-1999 Martien Verbruggen. + +Chart::PNGgraph: Copyright (c) 1999 Steve Bonds. + +GD::Graph: Copyright (c) 1999 Martien Verbruggen. + +This package is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. + Deleted: csw/mgar/pkg/cpan/GDGraph3d/trunk/files/CSWpmgdgraph3d.depend =================================================================== --- csw/mgar/pkg/cpan/GDGraph3d/trunk/files/CSWpmgdgraph3d.depend 2010-09-01 11:45:48 UTC (rev 10871) +++ csw/mgar/pkg/cpan/GDGraph3d/trunk/files/CSWpmgdgraph3d.depend 2010-09-01 11:56:34 UTC (rev 10872) @@ -1 +0,0 @@ -P CSWpmgdgraph pm_gdgraph - graph plotting module Deleted: csw/mgar/pkg/cpan/GDGraph3d/trunk/files/CSWpmgdgraph3d.gspec =================================================================== --- csw/mgar/pkg/cpan/GDGraph3d/trunk/files/CSWpmgdgraph3d.gspec 2010-09-01 11:45:48 UTC (rev 10871) +++ csw/mgar/pkg/cpan/GDGraph3d/trunk/files/CSWpmgdgraph3d.gspec 2010-09-01 11:56:34 UTC (rev 10872) @@ -1,18 +0,0 @@ -%var bitname pm_gdgraph3d -%var pkgname CSWpmgdgraph3d -%var arch all -%include url file://%{PKGLIB}/csw_cpan.gspec -%copyright -Copyright (c) 1999,2000 Wadsack-Allen. All rights reserved. - -Much of the original code is from GD::Graph: - -GIFgraph: Copyright (c) 1995-1999 Martien Verbruggen. - -Chart::PNGgraph: Copyright (c) 1999 Steve Bonds. - -GD::Graph: Copyright (c) 1999 Martien Verbruggen. - -This package is free software; you can redistribute it and/or -modify it under the same terms as Perl itself. - This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From bonivart at users.sourceforge.net Wed Sep 1 13:57:11 2010 From: bonivart at users.sourceforge.net (bonivart at users.sourceforge.net) Date: Wed, 01 Sep 2010 11:57:11 +0000 Subject: [csw-devel] SF.net SVN: gar:[10873] csw/mgar/pkg/cpan Message-ID: Revision: 10873 http://gar.svn.sourceforge.net/gar/?rev=10873&view=rev Author: bonivart Date: 2010-09-01 11:57:10 +0000 (Wed, 01 Sep 2010) Log Message: ----------- io-socket-inet6: initial commit Added Paths: ----------- csw/mgar/pkg/cpan/IO-Socket-INET6/ csw/mgar/pkg/cpan/IO-Socket-INET6/branches/ csw/mgar/pkg/cpan/IO-Socket-INET6/tags/ csw/mgar/pkg/cpan/IO-Socket-INET6/trunk/ csw/mgar/pkg/cpan/IO-Socket-INET6/trunk/Makefile csw/mgar/pkg/cpan/IO-Socket-INET6/trunk/checksums csw/mgar/pkg/cpan/IO-Socket-INET6/trunk/files/ csw/mgar/pkg/cpan/IO-Socket-INET6/trunk/files/COPYING Property changes on: csw/mgar/pkg/cpan/IO-Socket-INET6/trunk ___________________________________________________________________ Added: svn:ignore + cookies download work Added: svn:externals + gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2 Added: csw/mgar/pkg/cpan/IO-Socket-INET6/trunk/Makefile =================================================================== --- csw/mgar/pkg/cpan/IO-Socket-INET6/trunk/Makefile (rev 0) +++ csw/mgar/pkg/cpan/IO-Socket-INET6/trunk/Makefile 2010-09-01 11:57:10 UTC (rev 10873) @@ -0,0 +1,17 @@ +GARNAME = IO-Socket-INET6 +GARVERSION = 2.65 +CATEGORIES = cpan +AUTHOR = SHLOMIF + +DESCRIPTION = Object interface for AF_INET|AF_INET6 domain sockets +define BLURB + Object interface for AF_INET|AF_INET6 domain sockets +endef + +DISTFILES += COPYING + +PACKAGES = CSWpmiosocketinet6 +CATALOGNAME = pm_iosocketinet6 +ARCHALL = 1 + +include gar/category.mk Added: csw/mgar/pkg/cpan/IO-Socket-INET6/trunk/checksums =================================================================== --- csw/mgar/pkg/cpan/IO-Socket-INET6/trunk/checksums (rev 0) +++ csw/mgar/pkg/cpan/IO-Socket-INET6/trunk/checksums 2010-09-01 11:57:10 UTC (rev 10873) @@ -0,0 +1 @@ +4ac4a245b3c31a09e01c755b16a1e3e2 IO-Socket-INET6-2.65.tar.gz Added: csw/mgar/pkg/cpan/IO-Socket-INET6/trunk/files/COPYING =================================================================== --- csw/mgar/pkg/cpan/IO-Socket-INET6/trunk/files/COPYING (rev 0) +++ csw/mgar/pkg/cpan/IO-Socket-INET6/trunk/files/COPYING 2010-09-01 11:57:10 UTC (rev 10873) @@ -0,0 +1,17 @@ +AUTHOR and COPYRIGHT +This program is based on IO::Socket::INET by Graham Barr +and currently maintained by the Perl Porters. + +Modified by Rafael Martinez Torres and +Euro6IX project. + +Further modified by Shlomi Fish . + +Copyright (c) 2003- Rafael Martinez Torres . +Copyright (c) 2003- Euro6IX project. +Copyright (c) 1996-8 Graham Barr . + +All rights reserved. + +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From dmichelsen at users.sourceforge.net Wed Sep 1 14:01:09 2010 From: dmichelsen at users.sourceforge.net (dmichelsen at users.sourceforge.net) Date: Wed, 01 Sep 2010 12:01:09 +0000 Subject: [csw-devel] SF.net SVN: gar:[10874] csw/mgar/pkg/cpan/Geography-Countries/trunk Message-ID: Revision: 10874 http://gar.svn.sourceforge.net/gar/?rev=10874&view=rev Author: dmichelsen Date: 2010-09-01 12:01:09 +0000 (Wed, 01 Sep 2010) Log Message: ----------- cpan/Geography-Countries: Update to 2009041301 and mGAR v2 Modified Paths: -------------- csw/mgar/pkg/cpan/Geography-Countries/trunk/Makefile csw/mgar/pkg/cpan/Geography-Countries/trunk/checksums Added Paths: ----------- csw/mgar/pkg/cpan/Geography-Countries/trunk/files/COPYING Removed Paths: ------------- csw/mgar/pkg/cpan/Geography-Countries/trunk/files/CSWpmgeocountries.gspec Property Changed: ---------------- csw/mgar/pkg/cpan/Geography-Countries/trunk/ Property changes on: csw/mgar/pkg/cpan/Geography-Countries/trunk ___________________________________________________________________ Modified: svn:externals - gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v1 + gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2 Modified: csw/mgar/pkg/cpan/Geography-Countries/trunk/Makefile =================================================================== --- csw/mgar/pkg/cpan/Geography-Countries/trunk/Makefile 2010-09-01 11:57:10 UTC (rev 10873) +++ csw/mgar/pkg/cpan/Geography-Countries/trunk/Makefile 2010-09-01 12:01:09 UTC (rev 10874) @@ -1,15 +1,20 @@ GARNAME = Geography-Countries -GARVERSION = 1.4 +GARVERSION = 2009041301 CATEGORIES = cpan AUTHOR = ABIGAIL -DESCRIPTION = 2-letter, 3-letter, and numerical codes for countries. +DESCRIPTION = 2-letter, 3-letter, and numerical codes for countries define BLURB This module maps country names, and their 2-letter, 3-letter and numerical codes, as defined by the ISO-3166 maintenance agency [1], and defined by the UNSD. endef -DISTFILES += CSWpmgeocountries.gspec +DISTFILES = COPYING +PACKAGES = CSWpmgeocountries +CATALOGNAME = pm_geocountries + +ARCHALL = 1 + include gar/category.mk Modified: csw/mgar/pkg/cpan/Geography-Countries/trunk/checksums =================================================================== --- csw/mgar/pkg/cpan/Geography-Countries/trunk/checksums 2010-09-01 11:57:10 UTC (rev 10873) +++ csw/mgar/pkg/cpan/Geography-Countries/trunk/checksums 2010-09-01 12:01:09 UTC (rev 10874) @@ -1,2 +1 @@ -1d36b5804ce48022ec3509322b24ae92 download/CSWpmgeocountries.gspec -693426ab59ce3d51fcd48dfe3b402107 download/Geography-Countries-1.4.tar.gz +2c9ef26b46bbeca9abbca5015cc748b9 Geography-Countries-2009041301.tar.gz Copied: csw/mgar/pkg/cpan/Geography-Countries/trunk/files/COPYING (from rev 10860, csw/mgar/pkg/cpan/Geography-Countries/trunk/files/CSWpmgeocountries.gspec) =================================================================== --- csw/mgar/pkg/cpan/Geography-Countries/trunk/files/COPYING (rev 0) +++ csw/mgar/pkg/cpan/Geography-Countries/trunk/files/COPYING 2010-09-01 12:01:09 UTC (rev 10874) @@ -0,0 +1,19 @@ +This package is copyright 1999-2003 by Abigail. + +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 AUTHOR 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. Deleted: csw/mgar/pkg/cpan/Geography-Countries/trunk/files/CSWpmgeocountries.gspec =================================================================== --- csw/mgar/pkg/cpan/Geography-Countries/trunk/files/CSWpmgeocountries.gspec 2010-09-01 11:57:10 UTC (rev 10873) +++ csw/mgar/pkg/cpan/Geography-Countries/trunk/files/CSWpmgeocountries.gspec 2010-09-01 12:01:09 UTC (rev 10874) @@ -1,24 +0,0 @@ -%var bitname pm_geocountries -%var pkgname CSWpmgeocountries -%var arch all -%include url file://%{PKGLIB}/csw_cpan.gspec -%copyright -This package is copyright 1999-2003 by Abigail. - -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 AUTHOR 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. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From bonivart at users.sourceforge.net Wed Sep 1 14:23:50 2010 From: bonivart at users.sourceforge.net (bonivart at users.sourceforge.net) Date: Wed, 01 Sep 2010 12:23:50 +0000 Subject: [csw-devel] SF.net SVN: gar:[10875] csw/mgar/pkg/cpan/IO-Socket-SSL/trunk Message-ID: Revision: 10875 http://gar.svn.sourceforge.net/gar/?rev=10875&view=rev Author: bonivart Date: 2010-09-01 12:23:50 +0000 (Wed, 01 Sep 2010) Log Message: ----------- io-socket-ssl: update to 1.33 Modified Paths: -------------- csw/mgar/pkg/cpan/IO-Socket-SSL/trunk/Makefile csw/mgar/pkg/cpan/IO-Socket-SSL/trunk/checksums Added Paths: ----------- csw/mgar/pkg/cpan/IO-Socket-SSL/trunk/files/COPYING Removed Paths: ------------- csw/mgar/pkg/cpan/IO-Socket-SSL/trunk/files/CSWpmiosocketssl.depend csw/mgar/pkg/cpan/IO-Socket-SSL/trunk/files/CSWpmiosocketssl.gspec Property Changed: ---------------- csw/mgar/pkg/cpan/IO-Socket-SSL/trunk/ Property changes on: csw/mgar/pkg/cpan/IO-Socket-SSL/trunk ___________________________________________________________________ Modified: svn:externals - gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v1 + gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2 Modified: csw/mgar/pkg/cpan/IO-Socket-SSL/trunk/Makefile =================================================================== --- csw/mgar/pkg/cpan/IO-Socket-SSL/trunk/Makefile 2010-09-01 12:01:09 UTC (rev 10874) +++ csw/mgar/pkg/cpan/IO-Socket-SSL/trunk/Makefile 2010-09-01 12:23:50 UTC (rev 10875) @@ -1,9 +1,9 @@ GARNAME = IO-Socket-SSL -GARVERSION = 0.97 +GARVERSION = 1.33 CATEGORIES = cpan -AUTHOR = BEHROOZI +AUTHOR = SULLR -DESCRIPTION = nearly transparent SSL encapsulation for IO::Socket::INET. +DESCRIPTION = Nearly transparent SSL encapsulation for IO::Socket::INET. define BLURB This module is a true drop-in replacement for IO::Socket::INET that uses SSL to encrypt data before it is transferred to a remote server or client. @@ -13,8 +13,13 @@ extra bonus, it works perfectly with mod_perl. endef -DISTFILES += CSWpmiosocketssl.gspec CSWpmiosocketssl.depend +DISTFILES += COPYING -DEPENDS += cpan/Net-SSLeay +PACKAGES = CSWpmiosocketssl +CATALOGNAME = pm_iosocketssl +ARCHALL = 1 + +RUNTIME_DEP_PKGS += CSWpmnetssleay + include gar/category.mk Modified: csw/mgar/pkg/cpan/IO-Socket-SSL/trunk/checksums =================================================================== --- csw/mgar/pkg/cpan/IO-Socket-SSL/trunk/checksums 2010-09-01 12:01:09 UTC (rev 10874) +++ csw/mgar/pkg/cpan/IO-Socket-SSL/trunk/checksums 2010-09-01 12:23:50 UTC (rev 10875) @@ -1,3 +1 @@ -3de3891a1bb627a570b1ff7ba09b0c85 download/CSWpmiosocketssl.gspec -ceea11422f8d3ecaa194755619318d3f download/CSWpmiosocketssl.depend -34562e9475de132faa0f14ca2be053a5 download/IO-Socket-SSL-0.97.tar.gz +e288b5cda3de1f4cbf15e2eb709e9d7c IO-Socket-SSL-1.33.tar.gz Added: csw/mgar/pkg/cpan/IO-Socket-SSL/trunk/files/COPYING =================================================================== --- csw/mgar/pkg/cpan/IO-Socket-SSL/trunk/files/COPYING (rev 0) +++ csw/mgar/pkg/cpan/IO-Socket-SSL/trunk/files/COPYING 2010-09-01 12:23:50 UTC (rev 10875) @@ -0,0 +1,6 @@ +COPYRIGHT + +Working support for non-blocking was added by Steffen Ullrich. +The rewrite of this module is Copyright (C) 2002-2005 Peter Behroozi. +The original versions of this module are Copyright (C) 1999-2002 Marko Asplund. +This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. Deleted: csw/mgar/pkg/cpan/IO-Socket-SSL/trunk/files/CSWpmiosocketssl.depend =================================================================== --- csw/mgar/pkg/cpan/IO-Socket-SSL/trunk/files/CSWpmiosocketssl.depend 2010-09-01 12:01:09 UTC (rev 10874) +++ csw/mgar/pkg/cpan/IO-Socket-SSL/trunk/files/CSWpmiosocketssl.depend 2010-09-01 12:23:50 UTC (rev 10875) @@ -1 +0,0 @@ -P CSWpmnetssleay pm_netssleay - extension for using OpenSSL Deleted: csw/mgar/pkg/cpan/IO-Socket-SSL/trunk/files/CSWpmiosocketssl.gspec =================================================================== --- csw/mgar/pkg/cpan/IO-Socket-SSL/trunk/files/CSWpmiosocketssl.gspec 2010-09-01 12:01:09 UTC (rev 10874) +++ csw/mgar/pkg/cpan/IO-Socket-SSL/trunk/files/CSWpmiosocketssl.gspec 2010-09-01 12:23:50 UTC (rev 10875) @@ -1,11 +0,0 @@ -%var bitname pm_iosocketssl -%var pkgname CSWpmiosocketssl -%var arch all -%include url file://%{PKGLIB}/csw_cpan.gspec -%copyright -The rewrite of this module is Copyright (C) 2002-2004 Peter Behroozi. - -The original versions of this module are Copyright (C) 1999-2002 Marko Asplund. - -This module is free software; you can redistribute it and/or -modify it under the same terms as Perl itself. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From chninkel at users.sourceforge.net Wed Sep 1 14:50:40 2010 From: chninkel at users.sourceforge.net (chninkel at users.sourceforge.net) Date: Wed, 01 Sep 2010 12:50:40 +0000 Subject: [csw-devel] SF.net SVN: gar:[10876] csw/mgar/pkg/rlwrap/trunk Message-ID: Revision: 10876 http://gar.svn.sourceforge.net/gar/?rev=10876&view=rev Author: chninkel Date: 2010-09-01 12:50:40 +0000 (Wed, 01 Sep 2010) Log Message: ----------- rlwrap: updated checksum and changelog Modified Paths: -------------- csw/mgar/pkg/rlwrap/trunk/checksums csw/mgar/pkg/rlwrap/trunk/files/changelog.CSW Modified: csw/mgar/pkg/rlwrap/trunk/checksums =================================================================== --- csw/mgar/pkg/rlwrap/trunk/checksums 2010-09-01 12:23:50 UTC (rev 10875) +++ csw/mgar/pkg/rlwrap/trunk/checksums 2010-09-01 12:50:40 UTC (rev 10876) @@ -1,2 +1 @@ -bc563e56246a8fdd9e1d6821fb327134 changelog.CSW 04cd6e2c257eb5a86b297f2ebf91dbbf rlwrap-0.37.tar.gz Modified: csw/mgar/pkg/rlwrap/trunk/files/changelog.CSW =================================================================== --- csw/mgar/pkg/rlwrap/trunk/files/changelog.CSW 2010-09-01 12:23:50 UTC (rev 10875) +++ csw/mgar/pkg/rlwrap/trunk/files/changelog.CSW 2010-09-01 12:50:40 UTC (rev 10876) @@ -1,8 +1,8 @@ -rlwrap (0.37,REV=2010.06.25) unstable +rlwrap (0.37,REV=2010.09.01) unstable * New upstream release. - -- Yann Rouillard Fri, 25 Jun 2010 22:16:02 +0200 + -- Yann Rouillard Wed, 01 Sep 2010 14:49:59 +0200 rlwrap (0.36,REV=2010.02.28) unstable This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From bonivart at users.sourceforge.net Wed Sep 1 14:54:26 2010 From: bonivart at users.sourceforge.net (bonivart at users.sourceforge.net) Date: Wed, 01 Sep 2010 12:54:26 +0000 Subject: [csw-devel] SF.net SVN: gar:[10877] csw/mgar/pkg/cpan/IP-Country/trunk Message-ID: Revision: 10877 http://gar.svn.sourceforge.net/gar/?rev=10877&view=rev Author: bonivart Date: 2010-09-01 12:54:25 +0000 (Wed, 01 Sep 2010) Log Message: ----------- ip-country: update to 2.27 Modified Paths: -------------- csw/mgar/pkg/cpan/IP-Country/trunk/Makefile csw/mgar/pkg/cpan/IP-Country/trunk/checksums Added Paths: ----------- csw/mgar/pkg/cpan/IP-Country/trunk/files/COPYING Removed Paths: ------------- csw/mgar/pkg/cpan/IP-Country/trunk/files/CSWpmipcountry.depend csw/mgar/pkg/cpan/IP-Country/trunk/files/CSWpmipcountry.gspec Property Changed: ---------------- csw/mgar/pkg/cpan/IP-Country/trunk/ Property changes on: csw/mgar/pkg/cpan/IP-Country/trunk ___________________________________________________________________ Modified: svn:externals - gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v1 + gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2 Modified: csw/mgar/pkg/cpan/IP-Country/trunk/Makefile =================================================================== --- csw/mgar/pkg/cpan/IP-Country/trunk/Makefile 2010-09-01 12:50:40 UTC (rev 10876) +++ csw/mgar/pkg/cpan/IP-Country/trunk/Makefile 2010-09-01 12:54:25 UTC (rev 10877) @@ -1,9 +1,9 @@ GARNAME = IP-Country -GARVERSION = 2.23 +GARVERSION = 2.27 CATEGORIES = cpan AUTHOR = NWETTERS -DESCRIPTION = fast lookup of country codes from IP addresses +DESCRIPTION = Fast lookup of country codes from IP addresses define BLURB Finding the home country of a client using only the IP address can be difficult. Looking up the domain name associated with that address can @@ -12,8 +12,12 @@ country. endef -DISTFILES += CSWpmipcountry.gspec CSWpmipcountry.depend +DISTFILES += COPYING -DEPENDS += cpan/Geography-Countries +PACKAGES = CSWpmipcountry +CATALOGNAME = pm_ipcountry +ARCHALL = 1 +RUNTIME_DEP_PKGS += CSWpmgeocountries + include gar/category.mk Modified: csw/mgar/pkg/cpan/IP-Country/trunk/checksums =================================================================== --- csw/mgar/pkg/cpan/IP-Country/trunk/checksums 2010-09-01 12:50:40 UTC (rev 10876) +++ csw/mgar/pkg/cpan/IP-Country/trunk/checksums 2010-09-01 12:54:25 UTC (rev 10877) @@ -1,3 +1 @@ -c616aa972af22976a85829a44e49a937 download/CSWpmipcountry.gspec -4bf88a199daa14847e9c3e7d6763210d download/CSWpmipcountry.depend -0665e7b9cbab77fd18e255a779a856e0 download/IP-Country-2.23.tar.gz +32932280ee4729145e85e08dad5ab8c6 IP-Country-2.27.tar.gz Added: csw/mgar/pkg/cpan/IP-Country/trunk/files/COPYING =================================================================== --- csw/mgar/pkg/cpan/IP-Country/trunk/files/COPYING (rev 0) +++ csw/mgar/pkg/cpan/IP-Country/trunk/files/COPYING 2010-09-01 12:54:25 UTC (rev 10877) @@ -0,0 +1,9 @@ +Copyright (C) 2002-2005 Nigel Wetters Gourlay. All Rights Reserved. + +NO WARRANTY. This module is free software; you can redistribute +it and/or modify it under the same terms as Perl itself. + +Some parts of this software distribution are derived from the APNIC, +LACNIC, ARIN, AFRINIC and RIPE databases (copyright details below). +I am not a lawyer, so please direct questions about the RIR's +licenses to them, not me. Deleted: csw/mgar/pkg/cpan/IP-Country/trunk/files/CSWpmipcountry.depend =================================================================== --- csw/mgar/pkg/cpan/IP-Country/trunk/files/CSWpmipcountry.depend 2010-09-01 12:50:40 UTC (rev 10876) +++ csw/mgar/pkg/cpan/IP-Country/trunk/files/CSWpmipcountry.depend 2010-09-01 12:54:25 UTC (rev 10877) @@ -1 +0,0 @@ -P CSWpmgeocountries pm_geocountries - 2-letter, 3-letter, and numerical codes for countries. Deleted: csw/mgar/pkg/cpan/IP-Country/trunk/files/CSWpmipcountry.gspec =================================================================== --- csw/mgar/pkg/cpan/IP-Country/trunk/files/CSWpmipcountry.gspec 2010-09-01 12:50:40 UTC (rev 10876) +++ csw/mgar/pkg/cpan/IP-Country/trunk/files/CSWpmipcountry.gspec 2010-09-01 12:54:25 UTC (rev 10877) @@ -1,59 +0,0 @@ -%var bitname pm_ipcountry -%var pkgname CSWpmipcountry -%var arch all -%include url file://%{PKGLIB}/csw_cpan.gspec -%copyright -Copyright (C) 2002,2003 Nigel Wetters Gourlay. All Rights Reserved. - -NO WARRANTY. This module is free software; you can redistribute -it and/or modify it under the same terms as Perl itself. - -Some parts of this software distribution are derived from the APNIC, -LACNIC, ARIN and RIPE databases (copyright details below). The author of -this module makes no claims of ownership on those parts. - -APNIC conditions of use - -The files are freely available for download and use on the condition -that APNIC will not be held responsible for any loss or damage -arising from the application of the information contained in these -reports. - -APNIC endeavours to the best of its ability to ensure the accuracy -of these reports; however, APNIC makes no guarantee in this regard. - -In particular, it should be noted that these reports seek to -indicate the country where resources were first allocated or -assigned. It is not intended that these reports be considered -as an authoritative statement of the location in which any specific -resource may currently be in use. - -ARIN database copyright - -Copyright (c) American Registry for Internet Numbers. All rights reserved. - -The ARIN WHOIS data is for Internet operational or technical research -purposes pertaining to Internet operations only. It may not be used for -advertising, direct marketing, marketing research, or similar purposes. -Use of the ARIN WHOIS data for these activities is explicitly forbidden. -ARIN requests to be notified of any such activities or suspicions thereof. - -RIPE database copyright - -The information in the RIPE Database is available to the public -for agreed Internet operation purposes, but is under copyright. -The copyright statement is: - -"Except for agreed Internet operational purposes, no part of this -publication may be reproduced, stored in a retrieval system, or transmitted, -in any form or by any means, electronic, mechanical, recording, or -otherwise, without prior permission of the RIPE NCC on behalf of the -copyright holders. Any use of this material to target advertising -or similar activities is explicitly forbidden and may be prosecuted. -The RIPE NCC requests to be notified of any such activities or -suspicions thereof." - -LACNIC database copyright - -Copyright (c) Latin American and Caribbean IP address Regional Registry. -All rights reserved. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From bonivart at users.sourceforge.net Wed Sep 1 15:08:03 2010 From: bonivart at users.sourceforge.net (bonivart at users.sourceforge.net) Date: Wed, 01 Sep 2010 13:08:03 +0000 Subject: [csw-devel] SF.net SVN: gar:[10878] csw/mgar/pkg/cpan/Pod-Escapes/trunk Message-ID: Revision: 10878 http://gar.svn.sourceforge.net/gar/?rev=10878&view=rev Author: bonivart Date: 2010-09-01 13:08:03 +0000 (Wed, 01 Sep 2010) Log Message: ----------- pod-escapes: some fixes Modified Paths: -------------- csw/mgar/pkg/cpan/Pod-Escapes/trunk/Makefile csw/mgar/pkg/cpan/Pod-Escapes/trunk/checksums Added Paths: ----------- csw/mgar/pkg/cpan/Pod-Escapes/trunk/files/COPYING Removed Paths: ------------- csw/mgar/pkg/cpan/Pod-Escapes/trunk/files/CSWpmpodescapes.depend csw/mgar/pkg/cpan/Pod-Escapes/trunk/files/CSWpmpodescapes.gspec csw/mgar/pkg/cpan/Pod-Escapes/trunk/files/CSWpmpodescapes.prototype Property Changed: ---------------- csw/mgar/pkg/cpan/Pod-Escapes/trunk/ Property changes on: csw/mgar/pkg/cpan/Pod-Escapes/trunk ___________________________________________________________________ Modified: svn:externals - gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v1 + gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2 Modified: csw/mgar/pkg/cpan/Pod-Escapes/trunk/Makefile =================================================================== --- csw/mgar/pkg/cpan/Pod-Escapes/trunk/Makefile 2010-09-01 12:54:25 UTC (rev 10877) +++ csw/mgar/pkg/cpan/Pod-Escapes/trunk/Makefile 2010-09-01 13:08:03 UTC (rev 10878) @@ -3,13 +3,17 @@ CATEGORIES = cpan AUTHOR = SBURKE -DESCRIPTION = for resolving Pod E sequences +DESCRIPTION = For resolving Pod E sequences define BLURB This module provides things that are useful in decoding Pod E<...> sequences. Presumably, it should be used only by Pod parsers and/or formatters. endef -DISTFILES = $(call admfiles,CSWpmpodescapes,depend prototype) +DISTFILES += COPYING +PACKAGES = CSWpmpodescapes +CATALOGNAME = pm_podescapes +ARCHALL = 1 + include gar/category.mk Modified: csw/mgar/pkg/cpan/Pod-Escapes/trunk/checksums =================================================================== --- csw/mgar/pkg/cpan/Pod-Escapes/trunk/checksums 2010-09-01 12:54:25 UTC (rev 10877) +++ csw/mgar/pkg/cpan/Pod-Escapes/trunk/checksums 2010-09-01 13:08:03 UTC (rev 10878) @@ -1,4 +1 @@ -d42a7f121b5142c07592fdf0236f025b download/CSWpmpodescapes.gspec -6e0d583c86d7f74b43769810714242aa download/CSWpmpodescapes.depend -c8c03ae7c78ff20368e120631b24f39c download/CSWpmpodescapes.prototype -00ea2e0d2e84ed98517a4616708b68d3 download/Pod-Escapes-1.04.tar.gz +00ea2e0d2e84ed98517a4616708b68d3 Pod-Escapes-1.04.tar.gz Added: csw/mgar/pkg/cpan/Pod-Escapes/trunk/files/COPYING =================================================================== --- csw/mgar/pkg/cpan/Pod-Escapes/trunk/files/COPYING (rev 0) +++ csw/mgar/pkg/cpan/Pod-Escapes/trunk/files/COPYING 2010-09-01 13:08:03 UTC (rev 10878) @@ -0,0 +1,17 @@ +Copyright (c) 2001-2004 Sean M. Burke. All rights reserved. + +This library is free software; you can redistribute it and/or modify +it under the same terms as Perl itself. + +This program is distributed in the hope that it will be useful, but +without any warranty; without even the implied warranty of +merchantability or fitness for a particular purpose. + +Portions of the data tables in this module are derived from the +entity declarations in the W3C XHTML specification. + +Currently (October 2001), that's these three: + + http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent + http://www.w3.org/TR/xhtml1/DTD/xhtml-special.ent + http://www.w3.org/TR/xhtml1/DTD/xhtml-symbol.ent Deleted: csw/mgar/pkg/cpan/Pod-Escapes/trunk/files/CSWpmpodescapes.depend =================================================================== Deleted: csw/mgar/pkg/cpan/Pod-Escapes/trunk/files/CSWpmpodescapes.gspec =================================================================== --- csw/mgar/pkg/cpan/Pod-Escapes/trunk/files/CSWpmpodescapes.gspec 2010-09-01 12:54:25 UTC (rev 10877) +++ csw/mgar/pkg/cpan/Pod-Escapes/trunk/files/CSWpmpodescapes.gspec 2010-09-01 13:08:03 UTC (rev 10878) @@ -1,22 +0,0 @@ -%var bitname pm_podescapes -%var pkgname CSWpmpodescapes -%var arch all -%include url file://%{PKGLIB}/csw_cpan.gspec -%copyright -Copyright (c) 2001-2004 Sean M. Burke. All rights reserved. - -This library is free software; you can redistribute it and/or modify -it under the same terms as Perl itself. - -This program is distributed in the hope that it will be useful, but -without any warranty; without even the implied warranty of -merchantability or fitness for a particular purpose. - -Portions of the data tables in this module are derived from the -entity declarations in the W3C XHTML specification. - -Currently (October 2001), that's these three: - - http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent - http://www.w3.org/TR/xhtml1/DTD/xhtml-special.ent - http://www.w3.org/TR/xhtml1/DTD/xhtml-symbol.ent Deleted: csw/mgar/pkg/cpan/Pod-Escapes/trunk/files/CSWpmpodescapes.prototype =================================================================== --- csw/mgar/pkg/cpan/Pod-Escapes/trunk/files/CSWpmpodescapes.prototype 2010-09-01 12:54:25 UTC (rev 10877) +++ csw/mgar/pkg/cpan/Pod-Escapes/trunk/files/CSWpmpodescapes.prototype 2010-09-01 13:08:03 UTC (rev 10878) @@ -1,15 +0,0 @@ -d none /opt/csw/lib 0755 root bin -d none /opt/csw/lib/perl 0755 root bin -d none /opt/csw/lib/perl/csw 0755 root bin -d none /opt/csw/lib/perl/csw/auto 0755 root bin -d none /opt/csw/lib/perl/csw/auto/Pod 0755 root bin -d none /opt/csw/lib/perl/csw/auto/Pod/Escapes 0755 root bin -f none /opt/csw/lib/perl/csw/auto/Pod/Escapes/.packlist 0644 root bin -d none /opt/csw/share 0755 root bin -d none /opt/csw/share/man 0755 root bin -d none /opt/csw/share/man/man3 0755 root bin -f none /opt/csw/share/man/man3/Pod::Escapes.3perl 0444 root bin -d none /opt/csw/share/perl 0755 root bin -d none /opt/csw/share/perl/csw 0755 root bin -d none /opt/csw/share/perl/csw/Pod 0755 root bin -f none /opt/csw/share/perl/csw/Pod/Escapes.pm 0444 root bin This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From bonivart at users.sourceforge.net Wed Sep 1 15:17:38 2010 From: bonivart at users.sourceforge.net (bonivart at users.sourceforge.net) Date: Wed, 01 Sep 2010 13:17:38 +0000 Subject: [csw-devel] SF.net SVN: gar:[10879] csw/mgar/pkg/cpan/Sys-Hostname-Long/trunk Message-ID: Revision: 10879 http://gar.svn.sourceforge.net/gar/?rev=10879&view=rev Author: bonivart Date: 2010-09-01 13:17:38 +0000 (Wed, 01 Sep 2010) Log Message: ----------- sys-hostname-long: some fixes Modified Paths: -------------- csw/mgar/pkg/cpan/Sys-Hostname-Long/trunk/Makefile csw/mgar/pkg/cpan/Sys-Hostname-Long/trunk/checksums Added Paths: ----------- csw/mgar/pkg/cpan/Sys-Hostname-Long/trunk/files/COPYING Removed Paths: ------------- csw/mgar/pkg/cpan/Sys-Hostname-Long/trunk/files/CSWpmsyshostnamelong.gspec Property Changed: ---------------- csw/mgar/pkg/cpan/Sys-Hostname-Long/trunk/ Property changes on: csw/mgar/pkg/cpan/Sys-Hostname-Long/trunk ___________________________________________________________________ Modified: svn:externals - gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v1 + gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2 Modified: csw/mgar/pkg/cpan/Sys-Hostname-Long/trunk/Makefile =================================================================== --- csw/mgar/pkg/cpan/Sys-Hostname-Long/trunk/Makefile 2010-09-01 13:08:03 UTC (rev 10878) +++ csw/mgar/pkg/cpan/Sys-Hostname-Long/trunk/Makefile 2010-09-01 13:17:38 UTC (rev 10879) @@ -3,7 +3,7 @@ CATEGORIES = cpan AUTHOR = SCOTT -DESCRIPTION = try every conceivable way to get full hostname +DESCRIPTION = Try every conceivable way to get full hostname define BLURB This is the SECOND release of this code. It has an improved set of tests and improved interfaces - but it is still often failing to get a full host name. @@ -12,6 +12,10 @@ dependent on the order of the entries in /etc/hosts. endef -DISTFILES += CSWpmsyshostnamelong.gspec +DISTFILES += COPYING +PACKAGES = CSWpmsyshostnamelong +CATALOGNAME = pm_syshostnamelong +ARCHALL = 1 + include gar/category.mk Modified: csw/mgar/pkg/cpan/Sys-Hostname-Long/trunk/checksums =================================================================== --- csw/mgar/pkg/cpan/Sys-Hostname-Long/trunk/checksums 2010-09-01 13:08:03 UTC (rev 10878) +++ csw/mgar/pkg/cpan/Sys-Hostname-Long/trunk/checksums 2010-09-01 13:17:38 UTC (rev 10879) @@ -1,2 +1 @@ -5b7070171e8c18cb7f3c9962e307d283 download/CSWpmsyshostnamelong.gspec -a5b3c23754cbcff10e283d16c42ec3d3 download/Sys-Hostname-Long-1.4.tar.gz +a5b3c23754cbcff10e283d16c42ec3d3 Sys-Hostname-Long-1.4.tar.gz Added: csw/mgar/pkg/cpan/Sys-Hostname-Long/trunk/files/COPYING =================================================================== --- csw/mgar/pkg/cpan/Sys-Hostname-Long/trunk/files/COPYING (rev 0) +++ csw/mgar/pkg/cpan/Sys-Hostname-Long/trunk/files/COPYING 2010-09-01 13:17:38 UTC (rev 10879) @@ -0,0 +1,2 @@ +Copyright (C) 2001 Scott Penrose +http://linux.dd.com.au/ Deleted: csw/mgar/pkg/cpan/Sys-Hostname-Long/trunk/files/CSWpmsyshostnamelong.gspec =================================================================== --- csw/mgar/pkg/cpan/Sys-Hostname-Long/trunk/files/CSWpmsyshostnamelong.gspec 2010-09-01 13:08:03 UTC (rev 10878) +++ csw/mgar/pkg/cpan/Sys-Hostname-Long/trunk/files/CSWpmsyshostnamelong.gspec 2010-09-01 13:17:38 UTC (rev 10879) @@ -1,7 +0,0 @@ -%var bitname pm_syshostnamelong -%var pkgname CSWpmsyshostnamelong -%var arch all -%include url file://%{PKGLIB}/csw_cpan.gspec -%copyright -Copyright (C) 2001 Scott Penrose -http://linux.dd.com.au/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From chninkel at users.sourceforge.net Wed Sep 1 15:23:50 2010 From: chninkel at users.sourceforge.net (chninkel at users.sourceforge.net) Date: Wed, 01 Sep 2010 13:23:50 +0000 Subject: [csw-devel] SF.net SVN: gar:[10880] csw/mgar/pkg/bash/trunk Message-ID: Revision: 10880 http://gar.svn.sourceforge.net/gar/?rev=10880&view=rev Author: chninkel Date: 2010-09-01 13:23:50 +0000 (Wed, 01 Sep 2010) Log Message: ----------- bash: updated checksum and changelog Modified Paths: -------------- csw/mgar/pkg/bash/trunk/checksums csw/mgar/pkg/bash/trunk/files/changelog.CSW Modified: csw/mgar/pkg/bash/trunk/checksums =================================================================== --- csw/mgar/pkg/bash/trunk/checksums 2010-09-01 13:17:38 UTC (rev 10879) +++ csw/mgar/pkg/bash/trunk/checksums 2010-09-01 13:23:50 UTC (rev 10880) @@ -6,6 +6,3 @@ 9471e666797f0b03eb2175ed752a9550 bash41-005 fb80ccd58cb1e34940f3adf4ce6e4a1e bash41-006 192a8b161d419a1d0d211169f1d1046e bash41-007 -3773cd83b6ae2f546832681b384b6138 changelog.CSW -60956e6be20f69dafbb06fcc83bab88e shells -29607316cff22f7427322d8f190cbadf use_system_bashrc_and_logout.patch Modified: csw/mgar/pkg/bash/trunk/files/changelog.CSW =================================================================== --- csw/mgar/pkg/bash/trunk/files/changelog.CSW 2010-09-01 13:17:38 UTC (rev 10879) +++ csw/mgar/pkg/bash/trunk/files/changelog.CSW 2010-09-01 13:23:50 UTC (rev 10880) @@ -1,8 +1,8 @@ -bash (4.1.07,REV=2010.06.25) unstable +bash (4.1.07,REV=2010.09.01) unstable * Added bash patches bash41-006 and bash41-007. - -- Yann Rouillard Fri, 25 Jun 2010 22:30:45 +0200 + -- Yann Rouillard Wed, 01 Sep 2010 15:23:10 +0200 bash (4.1.04,REV=2010.03.27) unstable This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From chninkel at users.sourceforge.net Wed Sep 1 16:08:41 2010 From: chninkel at users.sourceforge.net (chninkel at users.sourceforge.net) Date: Wed, 01 Sep 2010 14:08:41 +0000 Subject: [csw-devel] SF.net SVN: gar:[10881] csw/mgar/pkg/openssl/trunk Message-ID: Revision: 10881 http://gar.svn.sourceforge.net/gar/?rev=10881&view=rev Author: chninkel Date: 2010-09-01 14:08:40 +0000 (Wed, 01 Sep 2010) Log Message: ----------- openssl: some checkpkg override + changelog update Modified Paths: -------------- csw/mgar/pkg/openssl/trunk/Makefile csw/mgar/pkg/openssl/trunk/checksums csw/mgar/pkg/openssl/trunk/files/changelog.CSW Modified: csw/mgar/pkg/openssl/trunk/Makefile =================================================================== --- csw/mgar/pkg/openssl/trunk/Makefile 2010-09-01 13:23:50 UTC (rev 10880) +++ csw/mgar/pkg/openssl/trunk/Makefile 2010-09-01 14:08:40 UTC (rev 10881) @@ -54,16 +54,30 @@ CHECKPKG_OVERRIDES_CSWosslrt += surplus-dependency|CSWcacertificates # we will not recompile old 0.9.7 version for now +ifeq ($(GARCH),sparc) CHECKPKG_OVERRIDES_CSWosslrt += bad-rpath-entry|/opt/csw/lib/sparcv8plus+vis|opt/csw/lib/sparcv8plus+vis/libcrypto.so.0.9.7 CHECKPKG_OVERRIDES_CSWosslrt += bad-rpath-entry|/opt/csw/lib/sparcv8plus+vis|opt/csw/lib/sparcv8plus+vis/libssl.so.0.9.7 +else +CHECKPKG_OVERRIDES_CSWosslrt += bad-rpath-entry|/opt/csw/lib/sparcv8plus+vis|opt/csw/lib/amd64/libcrypto.so.0.9.7 +CHECKPKG_OVERRIDES_CSWosslrt += bad-rpath-entry|/opt/csw/lib/sparcv8plus+vis|opt/csw/lib/pentium_pro/libssl.so.0.9.7 +endif # we do ship .a files in the devel package +ifeq ($(GARCH),sparc) CHECKPKG_OVERRIDES_CSWossldevel += discouraged-path-in-pkgmap|/opt/csw/lib/libcrypto.a CHECKPKG_OVERRIDES_CSWossldevel += discouraged-path-in-pkgmap|/opt/csw/lib/libssl.a CHECKPKG_OVERRIDES_CSWossldevel += discouraged-path-in-pkgmap|/opt/csw/lib/sparcv8plus+vis/libcrypto.a CHECKPKG_OVERRIDES_CSWossldevel += discouraged-path-in-pkgmap|/opt/csw/lib/sparcv8plus+vis/libssl.a CHECKPKG_OVERRIDES_CSWossldevel += discouraged-path-in-pkgmap|/opt/csw/lib/sparcv9/libcrypto.a CHECKPKG_OVERRIDES_CSWossldevel += discouraged-path-in-pkgmap|/opt/csw/lib/sparcv9/libssl.a +else +CHECKPKG_OVERRIDES_CSWossldevel += discouraged-path-in-pkgmap|/opt/csw/lib/amd64/libcrypto.a +CHECKPKG_OVERRIDES_CSWossldevel += discouraged-path-in-pkgmap|/opt/csw/lib/amd64/libssl.a +CHECKPKG_OVERRIDES_CSWossldevel += discouraged-path-in-pkgmap|/opt/csw/lib/pentium_pro/libcrypto.a +CHECKPKG_OVERRIDES_CSWossldevel += discouraged-path-in-pkgmap|/opt/csw/lib/pentium_pro/libssl.a +endif + + CHECKPKG_OVERRIDES_CSWossldevel += surplus-dependency|CSWosslrt Modified: csw/mgar/pkg/openssl/trunk/checksums =================================================================== --- csw/mgar/pkg/openssl/trunk/checksums 2010-09-01 13:23:50 UTC (rev 10880) +++ csw/mgar/pkg/openssl/trunk/checksums 2010-09-01 14:08:40 UTC (rev 10881) @@ -1,13 +1 @@ -88d71b493eb56f5a1ebf67cf33c70b9a CSWossl.prototype -f293ba8ca08b0a5fd391dcf3c7b29539 CSWossldevel.prototype-i386 -1f491e2f0c0f26fdc0b93fcebfc77613 CSWossldevel.prototype-sparc -05ace5330714d6cd9c0e076b6ae2518f CSWosslrt.checkinstall -1c3f600eaf942a18ecab3637e1fc32bd CSWosslrt.postinstall -c9de908daad1a31fca20329cb043ad3c CSWosslrt.preinstall -7535e5b5b281adb5c13bf9ad878b5cf1 CSWosslrt.prototype-i386 -0fcaed441f7527bdeda410a70bb60f6f CSWosslrt.prototype-sparc -07b1ad34d1f742052460e4655eccb41f CSWosslutils.prototype -b78faa440d6f6a2a07663de331678648 README.CSW -f0d5119652618d956eb24490b7577eb9 changelog.CSW -84830e15846f1b20d8371c1fa375a0b1 more_configure_targets.patch 63ddc5116488985e820075e65fbe6aa4 openssl-0.9.8o.tar.gz Modified: csw/mgar/pkg/openssl/trunk/files/changelog.CSW =================================================================== --- csw/mgar/pkg/openssl/trunk/files/changelog.CSW 2010-09-01 13:23:50 UTC (rev 10880) +++ csw/mgar/pkg/openssl/trunk/files/changelog.CSW 2010-09-01 14:08:40 UTC (rev 10881) @@ -1,3 +1,9 @@ +openssl (0.9.8o,REV=2010.09.01) unstable + + * New upstream version. + + -- Yann Rouillard Wed, 01 Sep 2010 16:07:54 +0200 + openssl (0.9.8n,REV=2010.03.24) unstable * New upstream version. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From bonivart at users.sourceforge.net Wed Sep 1 16:23:33 2010 From: bonivart at users.sourceforge.net (bonivart at users.sourceforge.net) Date: Wed, 01 Sep 2010 14:23:33 +0000 Subject: [csw-devel] SF.net SVN: gar:[10882] csw/mgar/pkg/cpan/Test-Pod/trunk Message-ID: Revision: 10882 http://gar.svn.sourceforge.net/gar/?rev=10882&view=rev Author: bonivart Date: 2010-09-01 14:23:33 +0000 (Wed, 01 Sep 2010) Log Message: ----------- test-pod: update to 1.44 Modified Paths: -------------- csw/mgar/pkg/cpan/Test-Pod/trunk/Makefile csw/mgar/pkg/cpan/Test-Pod/trunk/checksums Added Paths: ----------- csw/mgar/pkg/cpan/Test-Pod/trunk/files/COPYING Removed Paths: ------------- csw/mgar/pkg/cpan/Test-Pod/trunk/files/CSWpmtestpod.depend csw/mgar/pkg/cpan/Test-Pod/trunk/files/CSWpmtestpod.gspec Property Changed: ---------------- csw/mgar/pkg/cpan/Test-Pod/trunk/ Property changes on: csw/mgar/pkg/cpan/Test-Pod/trunk ___________________________________________________________________ Modified: svn:externals - gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v1 + gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2 Modified: csw/mgar/pkg/cpan/Test-Pod/trunk/Makefile =================================================================== --- csw/mgar/pkg/cpan/Test-Pod/trunk/Makefile 2010-09-01 14:08:40 UTC (rev 10881) +++ csw/mgar/pkg/cpan/Test-Pod/trunk/Makefile 2010-09-01 14:23:33 UTC (rev 10882) @@ -1,7 +1,7 @@ GARNAME = Test-Pod -GARVERSION = 1.41 +GARVERSION = 1.44 CATEGORIES = cpan -AUTHOR = PETDANCE +AUTHOR = DWHEELER DESCRIPTION = Check for POD errors in files define BLURB @@ -9,11 +9,12 @@ do the heavy lifting. endef +DISTFILES += COPYING + PACKAGES = CSWpmtestpod CATALOGNAME = pm_testpod -REQUIRED_PKGS = CSWpmiostringy CSWpmpodsimple -PREREQUISITE_PKGS = $(REQUIRED_PKGS) CSWpmtestsimple +RUNTIME_DEP_PKGS += CSWpmpodsimple ARCHALL = 1 Modified: csw/mgar/pkg/cpan/Test-Pod/trunk/checksums =================================================================== --- csw/mgar/pkg/cpan/Test-Pod/trunk/checksums 2010-09-01 14:08:40 UTC (rev 10881) +++ csw/mgar/pkg/cpan/Test-Pod/trunk/checksums 2010-09-01 14:23:33 UTC (rev 10882) @@ -1,3 +1 @@ -e422478754ba2207280b326d6d0f2f61 download/CSWpmtestpod.gspec -d5f47fb2e28a2f88562ba25f639975ca download/CSWpmtestpod.depend -2f259135656ac4549b65a4f14f07b7c6 download/Test-Pod-1.26.tar.gz +02380af5539521524d5df17273a57ae7 Test-Pod-1.44.tar.gz Added: csw/mgar/pkg/cpan/Test-Pod/trunk/files/COPYING =================================================================== --- csw/mgar/pkg/cpan/Test-Pod/trunk/files/COPYING (rev 0) +++ csw/mgar/pkg/cpan/Test-Pod/trunk/files/COPYING 2010-09-01 14:23:33 UTC (rev 10882) @@ -0,0 +1,4 @@ +Copyright 2006-2010, Andy Lester. Some Rights Reserved. + +You may use, modify, and distribute this package under the terms as the +Artistic License v2.0 or GNU Public License v2.0. Deleted: csw/mgar/pkg/cpan/Test-Pod/trunk/files/CSWpmtestpod.depend =================================================================== --- csw/mgar/pkg/cpan/Test-Pod/trunk/files/CSWpmtestpod.depend 2010-09-01 14:08:40 UTC (rev 10881) +++ csw/mgar/pkg/cpan/Test-Pod/trunk/files/CSWpmtestpod.depend 2010-09-01 14:23:33 UTC (rev 10882) @@ -1,2 +0,0 @@ -P CSWpmiostringy pm_iostringy - I/O on in-core objects like strings and arrays -P CSWpmpodsimple pm_podsimple - framework for parsing Pod Deleted: csw/mgar/pkg/cpan/Test-Pod/trunk/files/CSWpmtestpod.gspec =================================================================== --- csw/mgar/pkg/cpan/Test-Pod/trunk/files/CSWpmtestpod.gspec 2010-09-01 14:08:40 UTC (rev 10881) +++ csw/mgar/pkg/cpan/Test-Pod/trunk/files/CSWpmtestpod.gspec 2010-09-01 14:23:33 UTC (rev 10882) @@ -1,9 +0,0 @@ -%var bitname pm_testpod -%var pkgname CSWpmtestpod -%var arch all -%include url file://%{PKGLIB}/csw_cpan.gspec -%copyright -Copyright 2004, Andy Lester, All Rights Reserved. - -You may use, modify, and distribute this package under the -same terms as Perl itself. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From chninkel at users.sourceforge.net Wed Sep 1 23:02:03 2010 From: chninkel at users.sourceforge.net (chninkel at users.sourceforge.net) Date: Wed, 01 Sep 2010 21:02:03 +0000 Subject: [csw-devel] SF.net SVN: gar:[10883] csw/mgar/pkg/openssl1/trunk Message-ID: Revision: 10883 http://gar.svn.sourceforge.net/gar/?rev=10883&view=rev Author: chninkel Date: 2010-09-01 21:02:03 +0000 (Wed, 01 Sep 2010) Log Message: ----------- openssl1: updated to 1.0.0a + several GAR fix Modified Paths: -------------- csw/mgar/pkg/openssl1/trunk/Makefile csw/mgar/pkg/openssl1/trunk/checksums Added Paths: ----------- csw/mgar/pkg/openssl1/trunk/files/dont_use_slash_64_directory.patch Modified: csw/mgar/pkg/openssl1/trunk/Makefile =================================================================== --- csw/mgar/pkg/openssl1/trunk/Makefile 2010-09-01 14:23:33 UTC (rev 10882) +++ csw/mgar/pkg/openssl1/trunk/Makefile 2010-09-01 21:02:03 UTC (rev 10883) @@ -13,7 +13,7 @@ ###### Package information ####### GARNAME = openssl -GARVERSION = 1.0.0 +GARVERSION = 1.0.0a CATEGORIES = lib DESCRIPTION = The Open Source toolkit for SSL and TLS @@ -48,12 +48,29 @@ PKGFILES_CSWossl1utils += $(prefix)/ssl/openssl\.cnf $(sysconfdir)/ssl/openssl\.cnf.* PKGFILES_CSWossl1utils += $(docdir)/openssl1_utils/.* -PROTOTYPE_MODIFIERS = conf -PROTOTYPE_FILES_conf = $(sysconfdir)/ssl/openssl.cnf.CSW -PROTOTYPE_CLASS_conf = cswpreserveconf -PROTOTYPE_PERMS_conf = 0644 +PRESERVECONF = $(sysconfdir)/ssl/openssl.cnf +# We use SUN perl, not the opencsw one +CHECKPKG_OVERRIDES_CSWossl1utils += missing-dependency|CSWperl + +CHECKPKG_OVERRIDES_CSWossl1rt += surplus-dependency|CSWcacertificates + +# We ship the .a files in the devel package +CHECKPKG_OVERRIDES_CSWossl1devel += discouraged-path-in-pkgmap|/opt/csw/lib/libcrypto.a +CHECKPKG_OVERRIDES_CSWossl1devel += discouraged-path-in-pkgmap|/opt/csw/lib/libssl.a +ifeq ($(GARCH),sparc) +CHECKPKG_OVERRIDES_CSWossl1devel += discouraged-path-in-pkgmap|/opt/csw/lib/sparcv8plus+vis/libcrypto.a +CHECKPKG_OVERRIDES_CSWossl1devel += discouraged-path-in-pkgmap|/opt/csw/lib/sparcv8plus+vis/libssl.a +else +CHECKPKG_OVERRIDES_CSWossl1devel += discouraged-path-in-pkgmap|/opt/csw/lib/pentium_pro/libcrypto.a +CHECKPKG_OVERRIDES_CSWossl1devel += discouraged-path-in-pkgmap|/opt/csw/lib/pentium_pro/libssl.a +CHECKPKG_OVERRIDES_CSWossl1devel += discouraged-path-in-pkgmap|/opt/csw/lib/amd64/libcrypto.a +CHECKPKG_OVERRIDES_CSWossl1devel += discouraged-path-in-pkgmap|/opt/csw/lib/amd64/libssl.a +endif +CHECKPKG_OVERRIDES_CSWossl1devel += surplus-dependency|CSWossl1rt + + ###### Upstream and opencsw files information ####### MASTER_SITES = http://www.openssl.org/source/ http://openssl.org/news/ @@ -71,7 +88,13 @@ # solaris-pentium_pro-cc and solaris-sparcv9+vis-cc PATCHFILES = more_configure_targets.patch +# Since 1.0.0, openssl tries to install x64 libraries in $(prefix)/64 directory +# we prefer to rely on gar system to take of this so we remove this using this +# patch +PATCHFILES += dont_use_slash_64_directory.patch +LICENSE = LICENSE + ##### Build and installation information ##### # The list of instructions set for which we will @@ -122,7 +145,7 @@ include gar/category.mk -pre-configure-modulated: +pre-configure-modulated: echo " ==> Creating configure script" cd $(WORKSRC) && ln -nf Configure configure @$(MAKECOOKIE) @@ -158,4 +181,4 @@ rm -rf $(PKGROOT)/$(prefix)/etc/ssl/private && ln -s ../../../../etc/opt/csw/ssl/private $(PKGROOT)/$(prefix)/etc/ssl/private @$(MAKECOOKIE) -post-merge: install-certs install-changelog install-doc +pre-package: install-certs install-changelog install-doc Modified: csw/mgar/pkg/openssl1/trunk/checksums =================================================================== --- csw/mgar/pkg/openssl1/trunk/checksums 2010-09-01 14:23:33 UTC (rev 10882) +++ csw/mgar/pkg/openssl1/trunk/checksums 2010-09-01 21:02:03 UTC (rev 10883) @@ -1,7 +1 @@ -05ace5330714d6cd9c0e076b6ae2518f CSWossl1rt.checkinstall -1c3f600eaf942a18ecab3637e1fc32bd CSWossl1rt.postinstall -c9de908daad1a31fca20329cb043ad3c CSWossl1rt.preinstall -b78faa440d6f6a2a07663de331678648 README.CSW -904ceefa66b6b7b7e93ae0e9bc58bac8 changelog.CSW -a8f10e3b109567d6caedf5113411ff4b more_configure_targets.patch -89eaa86e25b2845f920ec00ae4c864ed openssl-1.0.0.tar.gz +e3873edfffc783624cfbdb65e2249cbd openssl-1.0.0a.tar.gz Added: csw/mgar/pkg/openssl1/trunk/files/dont_use_slash_64_directory.patch =================================================================== --- csw/mgar/pkg/openssl1/trunk/files/dont_use_slash_64_directory.patch (rev 0) +++ csw/mgar/pkg/openssl1/trunk/files/dont_use_slash_64_directory.patch 2010-09-01 21:02:03 UTC (rev 10883) @@ -0,0 +1,25 @@ +From edf25f4c871ccd0951105e6d575b9d845915d22f Mon Sep 17 00:00:00 2001 +From: Yann Rouillard +Date: Wed, 1 Sep 2010 15:40:32 +0200 +Subject: [PATCH] Don't use /64 directory when installing libraries + +--- + Configure | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/Configure b/Configure +index d59f117..7f38214 100755 +--- a/Configure ++++ b/Configure +@@ -219,7 +219,7 @@ my %table=( + #### Solaris x86 with Sun C setups + "solaris-x86-cc","cc:-fast -O -Xa::-D_REENTRANT::-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_PTR DES_UNROLL BF_PTR:${no_asm}:dlfcn:solaris-shared:-KPIC:-G -dy -z text:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", + "solaris-pentium_pro-cc","cc:-fast -xarch=pentium_pro -O -Xa::-D_REENTRANT::-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_PTR DES_UNROLL BF_PTR:${no_asm}:dlfcn:solaris-shared:-KPIC:-G -dy -z text:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", +-"solaris64-x86_64-cc","cc:-fast -xarch=amd64 -xstrconst -Xa -DL_ENDIAN::-D_REENTRANT::-lsocket -lnsl -ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT DES_UNROLL:${x86_64_asm}:elf:dlfcn:solaris-shared:-KPIC:-xarch=amd64 -G -dy -z text:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR):::/64", ++"solaris64-x86_64-cc","cc:-fast -xarch=amd64 -xstrconst -Xa -DL_ENDIAN::-D_REENTRANT::-lsocket -lnsl -ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT DES_UNROLL:${x86_64_asm}:elf:dlfcn:solaris-shared:-KPIC:-xarch=amd64 -G -dy -z text:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", + + #### SPARC Solaris with GNU C setups + "solaris-sparcv7-gcc","gcc:-O3 -fomit-frame-pointer -Wall -DB_ENDIAN -DBN_DIV2W::-D_REENTRANT::-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:${no_asm}:dlfcn:solaris-shared:-fPIC:-shared:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", +-- +1.7.1 + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From chninkel at users.sourceforge.net Wed Sep 1 23:26:09 2010 From: chninkel at users.sourceforge.net (chninkel at users.sourceforge.net) Date: Wed, 01 Sep 2010 21:26:09 +0000 Subject: [csw-devel] SF.net SVN: gar:[10884] csw/mgar/pkg/openssh/trunk Message-ID: Revision: 10884 http://gar.svn.sourceforge.net/gar/?rev=10884&view=rev Author: chninkel Date: 2010-09-01 21:26:08 +0000 (Wed, 01 Sep 2010) Log Message: ----------- openssh: updated to 5.6p1 Modified Paths: -------------- csw/mgar/pkg/openssh/trunk/Makefile csw/mgar/pkg/openssh/trunk/checksums csw/mgar/pkg/openssh/trunk/files/CSWossh.prototype csw/mgar/pkg/openssh/trunk/files/changelog.CSW Added Paths: ----------- csw/mgar/pkg/openssh/trunk/files/openssh-5.6p1-gsskex-all-20100901.patch Removed Paths: ------------- csw/mgar/pkg/openssh/trunk/files/derelativise_path_bugfix.patch csw/mgar/pkg/openssh/trunk/files/dont_derelativise_authorizedkeysfile_option.patch csw/mgar/pkg/openssh/trunk/files/openssh-5.4p1-gsskex-all-20100313.patch Modified: csw/mgar/pkg/openssh/trunk/Makefile =================================================================== --- csw/mgar/pkg/openssh/trunk/Makefile 2010-09-01 21:02:03 UTC (rev 10883) +++ csw/mgar/pkg/openssh/trunk/Makefile 2010-09-01 21:26:08 UTC (rev 10884) @@ -13,9 +13,9 @@ ###### Package information ####### GARNAME = openssh -GARVERSION = 5.4p1 +GARVERSION = 5.6p1 GSSKEX_PATCH_VERSION = $(GARVERSION) -GSSKEX_PATCH_DATE = 20100313 +GSSKEX_PATCH_DATE = 20100901 CATEGORIES = server DESCRIPTION = OpenSSH Secure Shell @@ -45,6 +45,9 @@ PACKAGING_PLATFORMS = solaris9-sparc solaris9-i386 solaris10-sparc solaris10-i386 +# The openssh package installs the server and the client +CHECKPKG_OVERRIDES_CSWossh = surplus-dependency|CSWosshclient + ###### Upstream and OpenCSW files information ####### MASTER_SITES = ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/ http://www.sxw.org.uk/computing/patches/ @@ -73,14 +76,6 @@ # see https://bugzilla.mindrot.org/show_bug.cgi?id=1457 PATCHFILES += no_x_forwarding_bug.patch -# Fix an incorrect usage of getcwd under Solaris -# see https://bugzilla.mindrot.org/show_bug.cgi?id=1739 -PATCHFILES += derelativise_path_bugfix.patch - -# AuthorizedKeysFile option value should not be derelativized !! -# see https://bugzilla.mindrot.org/show_bug.cgi?id=1739 -PATCHFILES += dont_derelativise_authorizedkeysfile_option.patch - # documentation files to install (not a gar variable) DOCFILES = CREDITS ChangeLog ChangeLog.gssapi INSTALL LICENCE OVERVIEW README README.dns DOCFILES += README.platform README.privsep README.smartcard README.tun TODO WARNING.RNG @@ -131,8 +126,14 @@ cd $(WORKSRC) && autoconf @$(MAKECOOKIE) +# kr5config returns the -R/opt/csw/lib/ which is considered not valid by checkpkg +# manually fixing this until the bug is fixed (see https://www.opencsw.org/mantis/view.php?id=4384 ) +post-configure-modulated: + cd $(WORKSRC) && perl -pi -e 's,-R/opt/csw/lib/ ,-R/opt/csw/lib ,' Makefile + @$(MAKECOOKIE) + # adding documentation files -post-merge: merge-config-files merge-doc-files merge-init-files merge-contrib-files +pre-package: merge-config-files merge-doc-files merge-init-files merge-contrib-files merge-contrib-files: ginstall -D "$(WORKSRC_FIRSTMOD)/contrib/ssh-copy-id" "$(PKGROOT)/$(bindir)/ssh-copy-id" Modified: csw/mgar/pkg/openssh/trunk/checksums =================================================================== --- csw/mgar/pkg/openssh/trunk/checksums 2010-09-01 21:02:03 UTC (rev 10883) +++ csw/mgar/pkg/openssh/trunk/checksums 2010-09-01 21:26:08 UTC (rev 10884) @@ -1,18 +1 @@ -1d3d6d477c09e59c514e637fa3a2f7a4 CSWossh.checkinstall -0993813fa5c752215f892cb67c86816f CSWossh.preinstall -e00106f28a2aef529e097aa182906273 CSWossh.prototype -39259b734dc10d2b7eb82d2331254d4c CSWosshclient.prototype -1d3d6d477c09e59c514e637fa3a2f7a4 CSWosshlpk.checkinstall -0993813fa5c752215f892cb67c86816f CSWosshlpk.preinstall -77b86c30c3257fdf014102c8166fab2d CSWosshlpk.prototype -3344f6f17e6d75e8e135b8366e64a7ee changelog.CSW -9153031524651a18e7edaed4637aa769 contrib-openssh-lpk-5.2p1-0.3.9.patch -a5ebb2e3fdaa06c3c9edba55aac5f83b cswopenssh -8e765642349b6321d01b33e95304e113 cswopenssh.xml -704ad1d3216df8de4d44465006c64c39 derelativise_path_bugfix.patch -4b3e79120b60e8f25be5141eba53cac5 don_t_use_TIOCSCTTY.patch -72c46751eba8f77b53b1ee7cb801bfd7 dont_derelativise_authorizedkeysfile_option.patch -ca5403c8e1539d5ced0573f289ed7aef no_x_forwarding_bug.patch -10e0b84c84ad0dc9c490480aab36be01 openssh-5.4p1-gsskex-all-20100313.patch -da10af8a789fa2e83e3635f3a1b76f5e openssh-5.4p1.tar.gz -db57ce80e8944213443caa4c52c884e5 sshd.smf_wrapper +e6ee52e47c768bf0ec42a232b5d18fb0 openssh-5.6p1.tar.gz Modified: csw/mgar/pkg/openssh/trunk/files/CSWossh.prototype =================================================================== --- csw/mgar/pkg/openssh/trunk/files/CSWossh.prototype 2010-09-01 21:02:03 UTC (rev 10883) +++ csw/mgar/pkg/openssh/trunk/files/CSWossh.prototype 2010-09-01 21:26:08 UTC (rev 10884) @@ -29,3 +29,4 @@ d none /opt/csw/share/openssh 0755 root bin d none /var/empty f none /var/opt/csw/svc/manifest/network/cswopenssh.xml 0644 root sys +i checkpkg_override=checkpkg_override.CSWossh Modified: csw/mgar/pkg/openssh/trunk/files/changelog.CSW =================================================================== --- csw/mgar/pkg/openssh/trunk/files/changelog.CSW 2010-09-01 21:02:03 UTC (rev 10883) +++ csw/mgar/pkg/openssh/trunk/files/changelog.CSW 2010-09-01 21:26:08 UTC (rev 10884) @@ -1,3 +1,11 @@ +openssh (5.6p1,REV=2010.09.01) unstable + + * New upstream release. + * Removed patch applied upstream (derelativise_path_bugfix.patch + and dont_derelativise_authorizedkeysfile_option.patch). + + -- Yann Rouillard Wed, 01 Sep 2010 23:25:24 +0200 + openssh (5.4p1,REV=2010.03.25) unstable * Added derelativise_path_bugfix.patch patch to solve a bug in the Deleted: csw/mgar/pkg/openssh/trunk/files/derelativise_path_bugfix.patch =================================================================== --- csw/mgar/pkg/openssh/trunk/files/derelativise_path_bugfix.patch 2010-09-01 21:02:03 UTC (rev 10883) +++ csw/mgar/pkg/openssh/trunk/files/derelativise_path_bugfix.patch 2010-09-01 21:26:08 UTC (rev 10884) @@ -1,11 +0,0 @@ ---- openssh-5.4p1/servconf.c.orig Wed Mar 24 21:56:53 2010 -+++ openssh-5.4p1/servconf.c Wed Mar 24 21:56:29 2010 -@@ -492,7 +492,7 @@ - expanded = tilde_expand_filename(path, getuid()); - if (*expanded == '/') - return expanded; -- if ((cwd = getcwd(NULL, 0)) == NULL) -+ if ((cwd = getcwd(NULL, PATH_MAX)) == NULL) - fatal("%s: getcwd: %s", __func__, strerror(errno)); - xasprintf(&ret, "%s/%s", cwd, expanded); - xfree(cwd); Deleted: csw/mgar/pkg/openssh/trunk/files/dont_derelativise_authorizedkeysfile_option.patch =================================================================== --- csw/mgar/pkg/openssh/trunk/files/dont_derelativise_authorizedkeysfile_option.patch 2010-09-01 21:02:03 UTC (rev 10883) +++ csw/mgar/pkg/openssh/trunk/files/dont_derelativise_authorizedkeysfile_option.patch 2010-09-01 21:26:08 UTC (rev 10884) @@ -1,22 +0,0 @@ ---- openssh-5.4p1/servconf.c.orig 2010-03-25 19:10:47.783942371 +0100 -+++ openssh-5.4p1/servconf.c 2010-03-25 19:10:52.526955504 +0100 -@@ -1223,7 +1252,18 @@ - charptr = (opcode == sAuthorizedKeysFile) ? - &options->authorized_keys_file : - &options->authorized_keys_file2; -- goto parse_filename; -+ -+ arg = strdelim(&cp); -+ if (!arg || *arg == '\0') -+ fatal("%s line %d: missing file name.", -+ filename, linenum); -+ if (*activep && *charptr == NULL) { -+ *charptr = xstrdup(arg); -+ /* increase optional counter */ -+ if (intptr != NULL) -+ *intptr = *intptr + 1; -+ } -+ break; - - case sClientAliveInterval: - intptr = &options->client_alive_interval; Deleted: csw/mgar/pkg/openssh/trunk/files/openssh-5.4p1-gsskex-all-20100313.patch =================================================================== --- csw/mgar/pkg/openssh/trunk/files/openssh-5.4p1-gsskex-all-20100313.patch 2010-09-01 21:02:03 UTC (rev 10883) +++ csw/mgar/pkg/openssh/trunk/files/openssh-5.4p1-gsskex-all-20100313.patch 2010-09-01 21:26:08 UTC (rev 10884) @@ -1,2933 +0,0 @@ -diff -Nur openssh-5.4p1.orig/ChangeLog.gssapi openssh-5.4p1/ChangeLog.gssapi ---- openssh-5.4p1.orig/ChangeLog.gssapi 1970-01-01 01:00:00.000000000 +0100 -+++ openssh-5.4p1/ChangeLog.gssapi 2010-03-13 00:39:22.276624764 +0100 -@@ -0,0 +1,95 @@ -+20090615 -+ - [ gss-genr.c gss-serv.c kexgssc.c kexgsss.c monitor.c sshconnect2.c -+ sshd.c ] -+ Fix issues identified by Greg Hudson following a code review -+ Check return value of gss_indicate_mechs -+ Protect GSSAPI calls in monitor, so they can only be used if enabled -+ Check return values of bignum functions in key exchange -+ Use BN_clear_free to clear other side's DH value -+ Make ssh_gssapi_id_kex more robust -+ Only configure kex table pointers if GSSAPI is enabled -+ Don't leak mechanism list, or gss mechanism list -+ Cast data.length before printing -+ If serverkey isn't provided, use an empty string, rather than NULL -+ -+20090201 -+ - [ gss-genr.c gss-serv.c kex.h kexgssc.c readconf.c readconf.h ssh-gss.h -+ ssh_config.5 sshconnet2.c ] -+ Add support for the GSSAPIClientIdentity option, which allows the user -+ to specify which GSSAPI identity to use to contact a given server -+ -+20080404 -+ - [ gss-serv.c ] -+ Add code to actually implement GSSAPIStrictAcceptCheck, which had somehow -+ been omitted from a previous version of this patch. Reported by Borislav -+ Stoichkov -+ -+20070317 -+ - [ gss-serv-krb5.c ] -+ Remove C99ism, where new_ccname was being declared in the middle of a -+ function -+ -+20061220 -+ - [ servconf.c ] -+ Make default for GSSAPIStrictAcceptorCheck be Yes, to match previous, and -+ documented, behaviour. Reported by Dan Watson. -+ -+20060910 -+ - [ gss-genr.c kexgssc.c kexgsss.c kex.h monitor.c sshconnect2.c sshd.c -+ ssh-gss.h ] -+ add support for gss-group14-sha1 key exchange mechanisms -+ - [ gss-serv.c servconf.c servconf.h sshd_config sshd_config.5 ] -+ Add GSSAPIStrictAcceptorCheck option to allow the disabling of -+ acceptor principal checking on multi-homed machines. -+ -+ - [ sshd_config ssh_config ] -+ Add settings for GSSAPIKeyExchange and GSSAPITrustDNS to the sample -+ configuration files -+ - [ kexgss.c kegsss.c sshconnect2.c sshd.c ] -+ Code cleanup. Replace strlen/xmalloc/snprintf sequences with xasprintf() -+ Limit length of error messages displayed by client -+ -+20060909 -+ - [ gss-genr.c gss-serv.c ] -+ move ssh_gssapi_acquire_cred() and ssh_gssapi_server_ctx to be server -+ only, where they belong -+ -+ -+20060829 -+ - [ gss-serv-krb5.c ] -+ Fix CCAPI credentials cache name when creating KRB5CCNAME environment -+ variable -+ -+20060828 -+ - [ gss-genr.c ] -+ Avoid Heimdal context freeing problem -+ -+ -+20060818 -+ - [ gss-genr.c ssh-gss.h sshconnect2.c ] -+ Make sure that SPENGO is disabled -+ -+ -+20060421 -+ - [ gssgenr.c, sshconnect2.c ] -+ a few type changes (signed versus unsigned, int versus size_t) to -+ fix compiler errors/warnings -+ (from jbasney AT ncsa.uiuc.edu) -+ - [ kexgssc.c, sshconnect2.c ] -+ fix uninitialized variable warnings -+ (from jbasney AT ncsa.uiuc.edu) -+ - [ gssgenr.c ] -+ pass oid to gss_display_status (helpful when using GSSAPI mechglue) -+ (from jbasney AT ncsa.uiuc.edu) -+ -+ - [ gss-serv-krb5.c ] -+ #ifdef HAVE_GSSAPI_KRB5 should be #ifdef HAVE_GSSAPI_KRB5_H -+ (from jbasney AT ncsa.uiuc.edu) -+ -+ - [ readconf.c, readconf.h, ssh_config.5, sshconnect2.c -+ add client-side GssapiKeyExchange option -+ (from jbasney AT ncsa.uiuc.edu) -+ - [ sshconnect2.c ] -+ add support for GssapiTrustDns option for gssapi-with-mic -+ (from jbasney AT ncsa.uiuc.edu) -+ -diff -Nur openssh-5.4p1.orig/Makefile.in openssh-5.4p1/Makefile.in ---- openssh-5.4p1.orig/Makefile.in 2010-02-24 08:18:51.000000000 +0100 -+++ openssh-5.4p1/Makefile.in 2010-03-13 00:39:54.547584984 +0100 -@@ -74,7 +74,7 @@ - monitor_fdpass.o rijndael.o ssh-dss.o ssh-rsa.o dh.o kexdh.o \ - kexgex.o kexdhc.o kexgexc.o msg.o progressmeter.o dns.o \ - entropy.o gss-genr.o umac.o jpake.o schnorr.o \ -- ssh-pkcs11.o -+ ssh-pkcs11.o kexgssc.o - - SSHOBJS= ssh.o readconf.o clientloop.o sshtty.o \ - sshconnect.o sshconnect1.o sshconnect2.o mux.o \ -@@ -88,7 +88,7 @@ - auth2-none.o auth2-passwd.o auth2-pubkey.o auth2-jpake.o \ - monitor_mm.o monitor.o monitor_wrap.o kexdhs.o kexgexs.o \ - auth-krb5.o \ -- auth2-gss.o gss-serv.o gss-serv-krb5.o \ -+ auth2-gss.o gss-serv.o gss-serv-krb5.o kexgsss.o\ - loginrec.o auth-pam.o auth-shadow.o auth-sia.o md5crypt.o \ - audit.o audit-bsm.o platform.o sftp-server.o sftp-common.o \ - roaming_common.o roaming_serv.o -diff -Nur openssh-5.4p1.orig/auth-krb5.c openssh-5.4p1/auth-krb5.c ---- openssh-5.4p1.orig/auth-krb5.c 2009-12-21 00:49:22.000000000 +0100 -+++ openssh-5.4p1/auth-krb5.c 2010-03-13 00:39:22.287877739 +0100 -@@ -170,8 +170,13 @@ - - len = strlen(authctxt->krb5_ticket_file) + 6; - authctxt->krb5_ccname = xmalloc(len); -+#ifdef USE_CCAPI -+ snprintf(authctxt->krb5_ccname, len, "API:%s", -+ authctxt->krb5_ticket_file); -+#else - snprintf(authctxt->krb5_ccname, len, "FILE:%s", - authctxt->krb5_ticket_file); -+#endif - - #ifdef USE_PAM - if (options.use_pam) -@@ -226,15 +231,22 @@ - #ifndef HEIMDAL - krb5_error_code - ssh_krb5_cc_gen(krb5_context ctx, krb5_ccache *ccache) { -- int tmpfd, ret; -+ int ret; - char ccname[40]; - mode_t old_umask; -+#ifdef USE_CCAPI -+ char cctemplate[] = "API:krb5cc_%d"; -+#else -+ char cctemplate[] = "FILE:/tmp/krb5cc_%d_XXXXXXXXXX"; -+ int tmpfd; -+#endif - - ret = snprintf(ccname, sizeof(ccname), -- "FILE:/tmp/krb5cc_%d_XXXXXXXXXX", geteuid()); -+ cctemplate, geteuid()); - if (ret < 0 || (size_t)ret >= sizeof(ccname)) - return ENOMEM; - -+#ifndef USE_CCAPI - old_umask = umask(0177); - tmpfd = mkstemp(ccname + strlen("FILE:")); - umask(old_umask); -@@ -249,6 +261,7 @@ - return errno; - } - close(tmpfd); -+#endif - - return (krb5_cc_resolve(ctx, ccname, ccache)); - } -diff -Nur openssh-5.4p1.orig/auth.h openssh-5.4p1/auth.h ---- openssh-5.4p1.orig/auth.h 2010-03-04 11:53:35.000000000 +0100 -+++ openssh-5.4p1/auth.h 2010-03-13 00:39:22.290248539 +0100 -@@ -53,6 +53,7 @@ - int valid; /* user exists and is allowed to login */ - int attempt; - int failures; -+ int server_caused_failure; - int force_pwchange; - char *user; /* username sent by the client */ - char *service; -diff -Nur openssh-5.4p1.orig/auth2-gss.c openssh-5.4p1/auth2-gss.c ---- openssh-5.4p1.orig/auth2-gss.c 2007-12-02 12:59:45.000000000 +0100 -+++ openssh-5.4p1/auth2-gss.c 2010-03-13 00:39:22.294875029 +0100 -@@ -1,7 +1,7 @@ - /* $OpenBSD: auth2-gss.c,v 1.16 2007/10/29 00:52:45 dtucker Exp $ */ - - /* -- * Copyright (c) 2001-2003 Simon Wilkinson. All rights reserved. -+ * Copyright (c) 2001-2007 Simon Wilkinson. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions -@@ -52,6 +52,40 @@ - static void input_gssapi_exchange_complete(int type, u_int32_t plen, void *ctxt); - static void input_gssapi_errtok(int, u_int32_t, void *); - -+/* -+ * The 'gssapi_keyex' userauth mechanism. -+ */ -+static int -+userauth_gsskeyex(Authctxt *authctxt) -+{ -+ int authenticated = 0; -+ Buffer b; -+ gss_buffer_desc mic, gssbuf; -+ u_int len; -+ -+ mic.value = packet_get_string(&len); -+ mic.length = len; -+ -+ packet_check_eom(); -+ -+ ssh_gssapi_buildmic(&b, authctxt->user, authctxt->service, -+ "gssapi-keyex"); -+ -+ gssbuf.value = buffer_ptr(&b); -+ gssbuf.length = buffer_len(&b); -+ -+ /* gss_kex_context is NULL with privsep, so we can't check it here */ -+ if (!GSS_ERROR(PRIVSEP(ssh_gssapi_checkmic(gss_kex_context, -+ &gssbuf, &mic)))) -+ authenticated = PRIVSEP(ssh_gssapi_userok(authctxt->user, -+ authctxt->pw)); -+ -+ buffer_free(&b); -+ xfree(mic.value); -+ -+ return (authenticated); -+} -+ - /* - * We only support those mechanisms that we know about (ie ones that we know - * how to check local user kuserok and the like) -@@ -102,6 +136,7 @@ - - if (!present) { - xfree(doid); -+ authctxt->server_caused_failure = 1; - return (0); - } - -@@ -109,6 +144,7 @@ - if (ctxt != NULL) - ssh_gssapi_delete_ctx(&ctxt); - xfree(doid); -+ authctxt->server_caused_failure = 1; - return (0); - } - -@@ -242,7 +278,8 @@ - - packet_check_eom(); - -- authenticated = PRIVSEP(ssh_gssapi_userok(authctxt->user)); -+ authenticated = PRIVSEP(ssh_gssapi_userok(authctxt->user, -+ authctxt->pw)); - - authctxt->postponed = 0; - dispatch_set(SSH2_MSG_USERAUTH_GSSAPI_TOKEN, NULL); -@@ -277,7 +314,8 @@ - gssbuf.length = buffer_len(&b); - - if (!GSS_ERROR(PRIVSEP(ssh_gssapi_checkmic(gssctxt, &gssbuf, &mic)))) -- authenticated = PRIVSEP(ssh_gssapi_userok(authctxt->user)); -+ authenticated = -+ PRIVSEP(ssh_gssapi_userok(authctxt->user, authctxt->pw)); - else - logit("GSSAPI MIC check failed"); - -@@ -292,6 +330,12 @@ - userauth_finish(authctxt, authenticated, "gssapi-with-mic"); - } - -+Authmethod method_gsskeyex = { -+ "gssapi-keyex", -+ userauth_gsskeyex, -+ &options.gss_authentication -+}; -+ - Authmethod method_gssapi = { - "gssapi-with-mic", - userauth_gssapi, -diff -Nur openssh-5.4p1.orig/auth2.c openssh-5.4p1/auth2.c ---- openssh-5.4p1.orig/auth2.c 2009-06-22 08:11:07.000000000 +0200 -+++ openssh-5.4p1/auth2.c 2010-03-13 00:39:22.298679511 +0100 -@@ -69,6 +69,7 @@ - extern Authmethod method_kbdint; - extern Authmethod method_hostbased; - #ifdef GSSAPI -+extern Authmethod method_gsskeyex; - extern Authmethod method_gssapi; - #endif - #ifdef JPAKE -@@ -79,6 +80,7 @@ - &method_none, - &method_pubkey, - #ifdef GSSAPI -+ &method_gsskeyex, - &method_gssapi, - #endif - #ifdef JPAKE -@@ -274,6 +276,7 @@ - #endif - - authctxt->postponed = 0; -+ authctxt->server_caused_failure = 0; - - /* try to authenticate user */ - m = authmethod_lookup(method); -@@ -346,7 +349,8 @@ - } else { - - /* Allow initial try of "none" auth without failure penalty */ -- if (authctxt->attempt > 1 || strcmp(method, "none") != 0) -+ if (!authctxt->server_caused_failure && -+ (authctxt->attempt > 1 || strcmp(method, "none") != 0)) - authctxt->failures++; - if (authctxt->failures >= options.max_authtries) { - #ifdef SSH_AUDIT_EVENTS -diff -Nur openssh-5.4p1.orig/clientloop.c openssh-5.4p1/clientloop.c ---- openssh-5.4p1.orig/clientloop.c 2010-01-30 07:28:35.000000000 +0100 -+++ openssh-5.4p1/clientloop.c 2010-03-13 00:39:22.309033482 +0100 -@@ -111,6 +111,10 @@ - #include "msg.h" - #include "roaming.h" - -+#ifdef GSSAPI -+#include "ssh-gss.h" -+#endif -+ - /* import options */ - extern Options options; - -@@ -1431,6 +1435,13 @@ - /* Do channel operations unless rekeying in progress. */ - if (!rekeying) { - channel_after_select(readset, writeset); -+ -+ if (options.gss_renewal_rekey && -+ ssh_gssapi_credentials_updated(GSS_C_NO_CONTEXT)) { -+ debug("credentials updated - forcing rekey"); -+ need_rekeying = 1; -+ } -+ - if (need_rekeying || packet_need_rekeying()) { - debug("need rekeying"); - xxx_kex->done = 0; -diff -Nur openssh-5.4p1.orig/configure.ac openssh-5.4p1/configure.ac ---- openssh-5.4p1.orig/configure.ac 2010-03-05 05:04:35.000000000 +0100 -+++ openssh-5.4p1/configure.ac 2010-03-13 00:39:22.319807465 +0100 -@@ -477,6 +477,30 @@ - [Use tunnel device compatibility to OpenBSD]) - AC_DEFINE(SSH_TUN_PREPEND_AF, 1, - [Prepend the address family to IP tunnel traffic]) -+ AC_MSG_CHECKING(if we have the Security Authorization Session API) -+ AC_TRY_COMPILE([#include ], -+ [SessionCreate(0, 0);], -+ [ac_cv_use_security_session_api="yes" -+ AC_DEFINE(USE_SECURITY_SESSION_API, 1, -+ [platform has the Security Authorization Session API]) -+ LIBS="$LIBS -framework Security" -+ AC_MSG_RESULT(yes)], -+ [ac_cv_use_security_session_api="no" -+ AC_MSG_RESULT(no)]) -+ AC_MSG_CHECKING(if we have an in-memory credentials cache) -+ AC_TRY_COMPILE( -+ [#include ], -+ [cc_context_t c; -+ (void) cc_initialize (&c, 0, NULL, NULL);], -+ [AC_DEFINE(USE_CCAPI, 1, -+ [platform uses an in-memory credentials cache]) -+ LIBS="$LIBS -framework Security" -+ AC_MSG_RESULT(yes) -+ if test "x$ac_cv_use_security_session_api" = "xno"; then -+ AC_MSG_ERROR(*** Need a security framework to use the credentials cache API ***) -+ fi], -+ [AC_MSG_RESULT(no)] -+ ) - m4_pattern_allow(AU_IPv) - AC_CHECK_DECL(AU_IPv4, [], - AC_DEFINE(AU_IPv4, 0, [System only supports IPv4 audit records]) -diff -Nur openssh-5.4p1.orig/gss-genr.c openssh-5.4p1/gss-genr.c ---- openssh-5.4p1.orig/gss-genr.c 2009-06-22 08:11:07.000000000 +0200 -+++ openssh-5.4p1/gss-genr.c 2010-03-13 00:39:22.326293909 +0100 -@@ -1,7 +1,7 @@ - /* $OpenBSD: gss-genr.c,v 1.20 2009/06/22 05:39:28 dtucker Exp $ */ - - /* -- * Copyright (c) 2001-2007 Simon Wilkinson. All rights reserved. -+ * Copyright (c) 2001-2009 Simon Wilkinson. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions -@@ -39,12 +39,167 @@ - #include "buffer.h" - #include "log.h" - #include "ssh2.h" -+#include "cipher.h" -+#include "key.h" -+#include "kex.h" -+#include - - #include "ssh-gss.h" - - extern u_char *session_id2; - extern u_int session_id2_len; - -+typedef struct { -+ char *encoded; -+ gss_OID oid; -+} ssh_gss_kex_mapping; -+ -+/* -+ * XXX - It would be nice to find a more elegant way of handling the -+ * XXX passing of the key exchange context to the userauth routines -+ */ -+ -+Gssctxt *gss_kex_context = NULL; -+ -+static ssh_gss_kex_mapping *gss_enc2oid = NULL; -+ -+int -+ssh_gssapi_oid_table_ok() { -+ return (gss_enc2oid != NULL); -+} -+ -+/* -+ * Return a list of the gss-group1-sha1 mechanisms supported by this program -+ * -+ * We test mechanisms to ensure that we can use them, to avoid starting -+ * a key exchange with a bad mechanism -+ */ -+ -+char * -+ssh_gssapi_client_mechanisms(const char *host, const char *client) { -+ gss_OID_set gss_supported; -+ OM_uint32 min_status; -+ -+ if (GSS_ERROR(gss_indicate_mechs(&min_status, &gss_supported))) -+ return NULL; -+ -+ return(ssh_gssapi_kex_mechs(gss_supported, ssh_gssapi_check_mechanism, -+ host, client)); -+} -+ -+char * -+ssh_gssapi_kex_mechs(gss_OID_set gss_supported, ssh_gssapi_check_fn *check, -+ const char *host, const char *client) { -+ Buffer buf; -+ size_t i; -+ int oidpos, enclen; -+ char *mechs, *encoded; -+ u_char digest[EVP_MAX_MD_SIZE]; -+ char deroid[2]; -+ const EVP_MD *evp_md = EVP_md5(); -+ EVP_MD_CTX md; -+ -+ if (gss_enc2oid != NULL) { -+ for (i = 0; gss_enc2oid[i].encoded != NULL; i++) -+ xfree(gss_enc2oid[i].encoded); -+ xfree(gss_enc2oid); -+ } -+ -+ gss_enc2oid = xmalloc(sizeof(ssh_gss_kex_mapping) * -+ (gss_supported->count + 1)); -+ -+ buffer_init(&buf); -+ -+ oidpos = 0; -+ for (i = 0; i < gss_supported->count; i++) { -+ if (gss_supported->elements[i].length < 128 && -+ (*check)(NULL, &(gss_supported->elements[i]), host, client)) { -+ -+ deroid[0] = SSH_GSS_OIDTYPE; -+ deroid[1] = gss_supported->elements[i].length; -+ -+ EVP_DigestInit(&md, evp_md); -+ EVP_DigestUpdate(&md, deroid, 2); -+ EVP_DigestUpdate(&md, -+ gss_supported->elements[i].elements, -+ gss_supported->elements[i].length); -+ EVP_DigestFinal(&md, digest, NULL); -+ -+ encoded = xmalloc(EVP_MD_size(evp_md) * 2); -+ enclen = __b64_ntop(digest, EVP_MD_size(evp_md), -+ encoded, EVP_MD_size(evp_md) * 2); -+ -+ if (oidpos != 0) -+ buffer_put_char(&buf, ','); -+ -+ buffer_append(&buf, KEX_GSS_GEX_SHA1_ID, -+ sizeof(KEX_GSS_GEX_SHA1_ID) - 1); -+ buffer_append(&buf, encoded, enclen); -+ buffer_put_char(&buf, ','); -+ buffer_append(&buf, KEX_GSS_GRP1_SHA1_ID, -+ sizeof(KEX_GSS_GRP1_SHA1_ID) - 1); -+ buffer_append(&buf, encoded, enclen); -+ buffer_put_char(&buf, ','); -+ buffer_append(&buf, KEX_GSS_GRP14_SHA1_ID, -+ sizeof(KEX_GSS_GRP14_SHA1_ID) - 1); -+ buffer_append(&buf, encoded, enclen); -+ -+ gss_enc2oid[oidpos].oid = &(gss_supported->elements[i]); -+ gss_enc2oid[oidpos].encoded = encoded; -+ oidpos++; -+ } -+ } -+ gss_enc2oid[oidpos].oid = NULL; -+ gss_enc2oid[oidpos].encoded = NULL; -+ -+ buffer_put_char(&buf, '\0'); -+ -+ mechs = xmalloc(buffer_len(&buf)); -+ buffer_get(&buf, mechs, buffer_len(&buf)); -+ buffer_free(&buf); -+ -+ if (strlen(mechs) == 0) { -+ xfree(mechs); -+ mechs = NULL; -+ } -+ -+ return (mechs); -+} -+ -+gss_OID -+ssh_gssapi_id_kex(Gssctxt *ctx, char *name, int kex_type) { -+ int i = 0; -+ -+ switch (kex_type) { -+ case KEX_GSS_GRP1_SHA1: -+ if (strlen(name) < sizeof(KEX_GSS_GRP1_SHA1_ID)) -+ return GSS_C_NO_OID; -+ name += sizeof(KEX_GSS_GRP1_SHA1_ID) - 1; -+ break; -+ case KEX_GSS_GRP14_SHA1: -+ if (strlen(name) < sizeof(KEX_GSS_GRP14_SHA1_ID)) -+ return GSS_C_NO_OID; -+ name += sizeof(KEX_GSS_GRP14_SHA1_ID) - 1; -+ break; -+ case KEX_GSS_GEX_SHA1: -+ if (strlen(name) < sizeof(KEX_GSS_GEX_SHA1_ID)) -+ return GSS_C_NO_OID; -+ name += sizeof(KEX_GSS_GEX_SHA1_ID) - 1; -+ break; -+ default: -+ return GSS_C_NO_OID; -+ } -+ -+ while (gss_enc2oid[i].encoded != NULL && -+ strcmp(name, gss_enc2oid[i].encoded) != 0) -+ i++; -+ -+ if (gss_enc2oid[i].oid != NULL && ctx != NULL) -+ ssh_gssapi_set_oid(ctx, gss_enc2oid[i].oid); -+ -+ return gss_enc2oid[i].oid; -+} -+ - /* Check that the OID in a data stream matches that in the context */ - int - ssh_gssapi_check_oid(Gssctxt *ctx, void *data, size_t len) -@@ -197,7 +352,7 @@ - } - - ctx->major = gss_init_sec_context(&ctx->minor, -- GSS_C_NO_CREDENTIAL, &ctx->context, ctx->name, ctx->oid, -+ ctx->client_creds, &ctx->context, ctx->name, ctx->oid, - GSS_C_MUTUAL_FLAG | GSS_C_INTEG_FLAG | deleg_flag, - 0, NULL, recv_tok, NULL, send_tok, flags, NULL); - -@@ -227,8 +382,42 @@ - } - - OM_uint32 -+ssh_gssapi_client_identity(Gssctxt *ctx, const char *name) -+{ -+ gss_buffer_desc gssbuf; -+ gss_name_t gssname; -+ OM_uint32 status; -+ gss_OID_set oidset; -+ -+ gssbuf.value = (void *) name; -+ gssbuf.length = strlen(gssbuf.value); -+ -+ gss_create_empty_oid_set(&status, &oidset); -+ gss_add_oid_set_member(&status, ctx->oid, &oidset); -+ -+ ctx->major = gss_import_name(&ctx->minor, &gssbuf, -+ GSS_C_NT_USER_NAME, &gssname); -+ -+ if (!ctx->major) -+ ctx->major = gss_acquire_cred(&ctx->minor, -+ gssname, 0, oidset, GSS_C_INITIATE, -+ &ctx->client_creds, NULL, NULL); -+ -+ gss_release_name(&status, &gssname); -+ gss_release_oid_set(&status, &oidset); -+ -+ if (ctx->major) -+ ssh_gssapi_error(ctx); -+ -+ return(ctx->major); -+} -+ -+OM_uint32 - ssh_gssapi_sign(Gssctxt *ctx, gss_buffer_t buffer, gss_buffer_t hash) - { -+ if (ctx == NULL) -+ return -1; -+ - if ((ctx->major = gss_get_mic(&ctx->minor, ctx->context, - GSS_C_QOP_DEFAULT, buffer, hash))) - ssh_gssapi_error(ctx); -@@ -236,6 +425,19 @@ - return (ctx->major); - } - -+/* Priviledged when used by server */ -+OM_uint32 -+ssh_gssapi_checkmic(Gssctxt *ctx, gss_buffer_t gssbuf, gss_buffer_t gssmic) -+{ -+ if (ctx == NULL) -+ return -1; -+ -+ ctx->major = gss_verify_mic(&ctx->minor, ctx->context, -+ gssbuf, gssmic, NULL); -+ -+ return (ctx->major); -+} -+ - void - ssh_gssapi_buildmic(Buffer *b, const char *user, const char *service, - const char *context) -@@ -249,11 +451,16 @@ - } - - int --ssh_gssapi_check_mechanism(Gssctxt **ctx, gss_OID oid, const char *host) -+ssh_gssapi_check_mechanism(Gssctxt **ctx, gss_OID oid, const char *host, -+ const char *client) - { - gss_buffer_desc token = GSS_C_EMPTY_BUFFER; - OM_uint32 major, minor; - gss_OID_desc spnego_oid = {6, (void *)"\x2B\x06\x01\x05\x05\x02"}; -+ Gssctxt *intctx = NULL; -+ -+ if (ctx == NULL) -+ ctx = &intctx; - - /* RFC 4462 says we MUST NOT do SPNEGO */ - if (oid->length == spnego_oid.length && -@@ -263,6 +470,10 @@ - ssh_gssapi_build_ctx(ctx); - ssh_gssapi_set_oid(*ctx, oid); - major = ssh_gssapi_import_name(*ctx, host); -+ -+ if (!GSS_ERROR(major) && client) -+ major = ssh_gssapi_client_identity(*ctx, client); -+ - if (!GSS_ERROR(major)) { - major = ssh_gssapi_init_ctx(*ctx, 0, GSS_C_NO_BUFFER, &token, - NULL); -@@ -272,10 +483,67 @@ - GSS_C_NO_BUFFER); - } - -- if (GSS_ERROR(major)) -+ if (GSS_ERROR(major) || intctx != NULL) - ssh_gssapi_delete_ctx(ctx); - - return (!GSS_ERROR(major)); - } - -+int -+ssh_gssapi_credentials_updated(Gssctxt *ctxt) { -+ static gss_name_t saved_name = GSS_C_NO_NAME; -+ static OM_uint32 saved_lifetime = 0; -+ static gss_OID saved_mech = GSS_C_NO_OID; -+ static gss_name_t name; -+ static OM_uint32 last_call = 0; -+ OM_uint32 lifetime, now, major, minor; -+ int equal; -+ gss_cred_usage_t usage = GSS_C_INITIATE; -+ -+ now = time(NULL); -+ -+ if (ctxt) { -+ debug("Rekey has happened - updating saved versions"); -+ -+ if (saved_name != GSS_C_NO_NAME) -+ gss_release_name(&minor, &saved_name); -+ -+ major = gss_inquire_cred(&minor, GSS_C_NO_CREDENTIAL, -+ &saved_name, &saved_lifetime, NULL, NULL); -+ -+ if (!GSS_ERROR(major)) { -+ saved_mech = ctxt->oid; -+ saved_lifetime+= now; -+ } else { -+ /* Handle the error */ -+ } -+ return 0; -+ } -+ -+ if (now - last_call < 10) -+ return 0; -+ -+ last_call = now; -+ -+ if (saved_mech == GSS_C_NO_OID) -+ return 0; -+ -+ major = gss_inquire_cred(&minor, GSS_C_NO_CREDENTIAL, -+ &name, &lifetime, NULL, NULL); -+ if (major == GSS_S_CREDENTIALS_EXPIRED) -+ return 0; -+ else if (GSS_ERROR(major)) -+ return 0; -+ -+ major = gss_compare_name(&minor, saved_name, name, &equal); -+ gss_release_name(&minor, &name); -+ if (GSS_ERROR(major)) -+ return 0; -+ -+ if (equal && (saved_lifetime < lifetime + now - 10)) -+ return 1; -+ -+ return 0; -+} -+ - #endif /* GSSAPI */ -diff -Nur openssh-5.4p1.orig/gss-serv-krb5.c openssh-5.4p1/gss-serv-krb5.c ---- openssh-5.4p1.orig/gss-serv-krb5.c 2006-09-01 07:38:36.000000000 +0200 -+++ openssh-5.4p1/gss-serv-krb5.c 2010-03-13 00:39:22.329666310 +0100 -@@ -1,7 +1,7 @@ - /* $OpenBSD: gss-serv-krb5.c,v 1.7 2006/08/03 03:34:42 deraadt Exp $ */ - - /* -- * Copyright (c) 2001-2003 Simon Wilkinson. All rights reserved. -+ * Copyright (c) 2001-2007 Simon Wilkinson. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions -@@ -120,6 +120,7 @@ - krb5_principal princ; - OM_uint32 maj_status, min_status; - int len; -+ const char *new_ccname; - - if (client->creds == NULL) { - debug("No credentials stored"); -@@ -168,11 +169,16 @@ - return; - } - -- client->store.filename = xstrdup(krb5_cc_get_name(krb_context, ccache)); -+ new_ccname = krb5_cc_get_name(krb_context, ccache); -+ - client->store.envvar = "KRB5CCNAME"; -- len = strlen(client->store.filename) + 6; -- client->store.envval = xmalloc(len); -- snprintf(client->store.envval, len, "FILE:%s", client->store.filename); -+#ifdef USE_CCAPI -+ xasprintf(&client->store.envval, "API:%s", new_ccname); -+ client->store.filename = NULL; -+#else -+ xasprintf(&client->store.envval, "FILE:%s", new_ccname); -+ client->store.filename = xstrdup(new_ccname); -+#endif - - #ifdef USE_PAM - if (options.use_pam) -@@ -184,6 +190,71 @@ - return; - } - -+int -+ssh_gssapi_krb5_updatecreds(ssh_gssapi_ccache *store, -+ ssh_gssapi_client *client) -+{ -+ krb5_ccache ccache = NULL; -+ krb5_principal principal = NULL; -+ char *name = NULL; -+ krb5_error_code problem; -+ OM_uint32 maj_status, min_status; -+ -+ if ((problem = krb5_cc_resolve(krb_context, store->envval, &ccache))) { -+ logit("krb5_cc_resolve(): %.100s", -+ krb5_get_err_text(krb_context, problem)); -+ return 0; -+ } -+ -+ /* Find out who the principal in this cache is */ -+ if ((problem = krb5_cc_get_principal(krb_context, ccache, -+ &principal))) { -+ logit("krb5_cc_get_principal(): %.100s", -+ krb5_get_err_text(krb_context, problem)); -+ krb5_cc_close(krb_context, ccache); -+ return 0; -+ } -+ -+ if ((problem = krb5_unparse_name(krb_context, principal, &name))) { -+ logit("krb5_unparse_name(): %.100s", -+ krb5_get_err_text(krb_context, problem)); -+ krb5_free_principal(krb_context, principal); -+ krb5_cc_close(krb_context, ccache); -+ return 0; -+ } -+ -+ -+ if (strcmp(name,client->exportedname.value)!=0) { -+ debug("Name in local credentials cache differs. Not storing"); -+ krb5_free_principal(krb_context, principal); -+ krb5_cc_close(krb_context, ccache); -+ krb5_free_unparsed_name(krb_context, name); -+ return 0; -+ } -+ krb5_free_unparsed_name(krb_context, name); -+ -+ /* Name matches, so lets get on with it! */ -+ -+ if ((problem = krb5_cc_initialize(krb_context, ccache, principal))) { -+ logit("krb5_cc_initialize(): %.100s", -+ krb5_get_err_text(krb_context, problem)); -+ krb5_free_principal(krb_context, principal); -+ krb5_cc_close(krb_context, ccache); -+ return 0; -+ } -+ -+ krb5_free_principal(krb_context, principal); -+ -+ if ((maj_status = gss_krb5_copy_ccache(&min_status, client->creds, -+ ccache))) { -+ logit("gss_krb5_copy_ccache() failed. Sorry!"); -+ krb5_cc_close(krb_context, ccache); -+ return 0; -+ } -+ -+ return 1; -+} -+ - ssh_gssapi_mech gssapi_kerberos_mech = { - "toWM5Slw5Ew8Mqkay+al2g==", - "Kerberos", -@@ -191,7 +262,8 @@ - NULL, - &ssh_gssapi_krb5_userok, - NULL, -- &ssh_gssapi_krb5_storecreds -+ &ssh_gssapi_krb5_storecreds, -+ &ssh_gssapi_krb5_updatecreds - }; - - #endif /* KRB5 */ -diff -Nur openssh-5.4p1.orig/gss-serv.c openssh-5.4p1/gss-serv.c ---- openssh-5.4p1.orig/gss-serv.c 2008-05-19 07:05:07.000000000 +0200 -+++ openssh-5.4p1/gss-serv.c 2010-03-13 00:39:22.335213222 +0100 -@@ -1,7 +1,7 @@ - /* $OpenBSD: gss-serv.c,v 1.22 2008/05/08 12:02:23 djm Exp $ */ - - /* -- * Copyright (c) 2001-2003 Simon Wilkinson. All rights reserved. -+ * Copyright (c) 2001-2009 Simon Wilkinson. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions -@@ -45,15 +45,20 @@ - #include "channels.h" - #include "session.h" - #include "misc.h" -+#include "servconf.h" -+#include "uidswap.h" - - #include "ssh-gss.h" -+#include "monitor_wrap.h" -+ -+extern ServerOptions options; - - static ssh_gssapi_client gssapi_client = - { GSS_C_EMPTY_BUFFER, GSS_C_EMPTY_BUFFER, -- GSS_C_NO_CREDENTIAL, NULL, {NULL, NULL, NULL}}; -+ GSS_C_NO_CREDENTIAL, GSS_C_NO_NAME, NULL, {NULL, NULL, NULL}, 0, 0}; - - ssh_gssapi_mech gssapi_null_mech = -- { NULL, NULL, {0, NULL}, NULL, NULL, NULL, NULL}; -+ { NULL, NULL, {0, NULL}, NULL, NULL, NULL, NULL, NULL}; - - #ifdef KRB5 - extern ssh_gssapi_mech gssapi_kerberos_mech; -@@ -81,25 +86,32 @@ - char lname[MAXHOSTNAMELEN]; - gss_OID_set oidset; - -- gss_create_empty_oid_set(&status, &oidset); -- gss_add_oid_set_member(&status, ctx->oid, &oidset); -+ if (options.gss_strict_acceptor) { -+ gss_create_empty_oid_set(&status, &oidset); -+ gss_add_oid_set_member(&status, ctx->oid, &oidset); -+ -+ if (gethostname(lname, MAXHOSTNAMELEN)) { -+ gss_release_oid_set(&status, &oidset); -+ return (-1); -+ } - -- if (gethostname(lname, MAXHOSTNAMELEN)) { -- gss_release_oid_set(&status, &oidset); -- return (-1); -- } -+ if (GSS_ERROR(ssh_gssapi_import_name(ctx, lname))) { -+ gss_release_oid_set(&status, &oidset); -+ return (ctx->major); -+ } -+ -+ if ((ctx->major = gss_acquire_cred(&ctx->minor, -+ ctx->name, 0, oidset, GSS_C_ACCEPT, &ctx->creds, -+ NULL, NULL))) -+ ssh_gssapi_error(ctx); - -- if (GSS_ERROR(ssh_gssapi_import_name(ctx, lname))) { - gss_release_oid_set(&status, &oidset); - return (ctx->major); -+ } else { -+ ctx->name = GSS_C_NO_NAME; -+ ctx->creds = GSS_C_NO_CREDENTIAL; - } -- -- if ((ctx->major = gss_acquire_cred(&ctx->minor, -- ctx->name, 0, oidset, GSS_C_ACCEPT, &ctx->creds, NULL, NULL))) -- ssh_gssapi_error(ctx); -- -- gss_release_oid_set(&status, &oidset); -- return (ctx->major); -+ return GSS_S_COMPLETE; - } - - /* Privileged */ -@@ -114,6 +126,29 @@ - } - - /* Unprivileged */ -+char * -+ssh_gssapi_server_mechanisms() { -+ gss_OID_set supported; -+ -+ ssh_gssapi_supported_oids(&supported); -+ return (ssh_gssapi_kex_mechs(supported, &ssh_gssapi_server_check_mech, -+ NULL, NULL)); -+} -+ -+/* Unprivileged */ -+int -+ssh_gssapi_server_check_mech(Gssctxt **dum, gss_OID oid, const char *data, -+ const char *dummy) { -+ Gssctxt *ctx = NULL; -+ int res; -+ -+ res = !GSS_ERROR(PRIVSEP(ssh_gssapi_server_ctx(&ctx, oid))); -+ ssh_gssapi_delete_ctx(&ctx); -+ -+ return (res); -+} -+ -+/* Unprivileged */ - void - ssh_gssapi_supported_oids(gss_OID_set *oidset) - { -@@ -123,7 +158,9 @@ - gss_OID_set supported; - - gss_create_empty_oid_set(&min_status, oidset); -- gss_indicate_mechs(&min_status, &supported); -+ -+ if (GSS_ERROR(gss_indicate_mechs(&min_status, &supported))) -+ return; - - while (supported_mechs[i]->name != NULL) { - if (GSS_ERROR(gss_test_oid_set_member(&min_status, -@@ -247,8 +284,48 @@ - ssh_gssapi_getclient(Gssctxt *ctx, ssh_gssapi_client *client) - { - int i = 0; -+ int equal = 0; -+ gss_name_t new_name = GSS_C_NO_NAME; -+ gss_buffer_desc ename = GSS_C_EMPTY_BUFFER; -+ -+ if (options.gss_store_rekey && client->used && ctx->client_creds) { -+ if (client->mech->oid.length != ctx->oid->length || -+ (memcmp(client->mech->oid.elements, -+ ctx->oid->elements, ctx->oid->length) !=0)) { -+ debug("Rekeyed credentials have different mechanism"); -+ return GSS_S_COMPLETE; -+ } -+ -+ if ((ctx->major = gss_inquire_cred_by_mech(&ctx->minor, -+ ctx->client_creds, ctx->oid, &new_name, -+ NULL, NULL, NULL))) { -+ ssh_gssapi_error(ctx); -+ return (ctx->major); -+ } -+ -+ ctx->major = gss_compare_name(&ctx->minor, client->name, -+ new_name, &equal); - -- gss_buffer_desc ename; -+ if (GSS_ERROR(ctx->major)) { -+ ssh_gssapi_error(ctx); -+ return (ctx->major); -+ } -+ -+ if (!equal) { -+ debug("Rekeyed credentials have different name"); -+ return GSS_S_COMPLETE; -+ } -+ -+ debug("Marking rekeyed credentials for export"); -+ -+ gss_release_name(&ctx->minor, &client->name); -+ gss_release_cred(&ctx->minor, &client->creds); -+ client->name = new_name; -+ client->creds = ctx->client_creds; -+ ctx->client_creds = GSS_C_NO_CREDENTIAL; -+ client->updated = 1; -+ return GSS_S_COMPLETE; -+ } - - client->mech = NULL; - -@@ -263,6 +340,13 @@ - if (client->mech == NULL) - return GSS_S_FAILURE; - -+ if (ctx->client_creds && -+ (ctx->major = gss_inquire_cred_by_mech(&ctx->minor, -+ ctx->client_creds, ctx->oid, &client->name, NULL, NULL, NULL))) { -+ ssh_gssapi_error(ctx); -+ return (ctx->major); -+ } -+ - if ((ctx->major = gss_display_name(&ctx->minor, ctx->client, - &client->displayname, NULL))) { - ssh_gssapi_error(ctx); -@@ -280,6 +364,8 @@ - return (ctx->major); - } - -+ gss_release_buffer(&ctx->minor, &ename); -+ - /* We can't copy this structure, so we just move the pointer to it */ - client->creds = ctx->client_creds; - ctx->client_creds = GSS_C_NO_CREDENTIAL; -@@ -327,7 +413,7 @@ - - /* Privileged */ - int --ssh_gssapi_userok(char *user) -+ssh_gssapi_userok(char *user, struct passwd *pw) - { - OM_uint32 lmin; - -@@ -337,9 +423,11 @@ - return 0; - } - if (gssapi_client.mech && gssapi_client.mech->userok) -- if ((*gssapi_client.mech->userok)(&gssapi_client, user)) -+ if ((*gssapi_client.mech->userok)(&gssapi_client, user)) { -+ gssapi_client.used = 1; -+ gssapi_client.store.owner = pw; - return 1; -- else { -+ } else { - /* Destroy delegated credentials if userok fails */ - gss_release_buffer(&lmin, &gssapi_client.displayname); - gss_release_buffer(&lmin, &gssapi_client.exportedname); -@@ -352,14 +440,90 @@ - return (0); - } - --/* Privileged */ --OM_uint32 --ssh_gssapi_checkmic(Gssctxt *ctx, gss_buffer_t gssbuf, gss_buffer_t gssmic) -+/* These bits are only used for rekeying. The unpriviledged child is running -+ * as the user, the monitor is root. -+ * -+ * In the child, we want to : -+ * *) Ask the monitor to store our credentials into the store we specify -+ * *) If it succeeds, maybe do a PAM update -+ */ -+ -+/* Stuff for PAM */ -+ -+#ifdef USE_PAM -+static int ssh_gssapi_simple_conv(int n, const struct pam_message **msg, -+ struct pam_response **resp, void *data) - { -- ctx->major = gss_verify_mic(&ctx->minor, ctx->context, -- gssbuf, gssmic, NULL); -+ return (PAM_CONV_ERR); -+} -+#endif - -- return (ctx->major); -+void -+ssh_gssapi_rekey_creds() { -+ int ok; -+ int ret; -+#ifdef USE_PAM -+ pam_handle_t *pamh = NULL; -+ struct pam_conv pamconv = {ssh_gssapi_simple_conv, NULL}; -+ char *envstr; -+#endif -+ -+ if (gssapi_client.store.filename == NULL && -+ gssapi_client.store.envval == NULL && -+ gssapi_client.store.envvar == NULL) -+ return; -+ -+ ok = PRIVSEP(ssh_gssapi_update_creds(&gssapi_client.store)); -+ -+ if (!ok) -+ return; -+ -+ debug("Rekeyed credentials stored successfully"); -+ -+ /* Actually managing to play with the ssh pam stack from here will -+ * be next to impossible. In any case, we may want different options -+ * for rekeying. So, use our own :) -+ */ -+#ifdef USE_PAM -+ if (!use_privsep) { -+ debug("Not even going to try and do PAM with privsep disabled"); -+ return; -+ } -+ -+ ret = pam_start("sshd-rekey", gssapi_client.store.owner->pw_name, -+ &pamconv, &pamh); -+ if (ret) -+ return; -+ -+ xasprintf(&envstr, "%s=%s", gssapi_client.store.envvar, -+ gssapi_client.store.envval); -+ -+ ret = pam_putenv(pamh, envstr); -+ if (!ret) -+ pam_setcred(pamh, PAM_REINITIALIZE_CRED); -+ pam_end(pamh, PAM_SUCCESS); -+#endif -+} -+ -+int -+ssh_gssapi_update_creds(ssh_gssapi_ccache *store) { -+ int ok = 0; -+ -+ /* Check we've got credentials to store */ -+ if (!gssapi_client.updated) -+ return 0; -+ -+ gssapi_client.updated = 0; -+ -+ temporarily_use_uid(gssapi_client.store.owner); -+ if (gssapi_client.mech && gssapi_client.mech->updatecreds) -+ ok = (*gssapi_client.mech->updatecreds)(store, &gssapi_client); -+ else -+ debug("No update function for this mechanism"); -+ -+ restore_uid(); -+ -+ return ok; - } - - #endif -diff -Nur openssh-5.4p1.orig/kex.c openssh-5.4p1/kex.c ---- openssh-5.4p1.orig/kex.c 2010-01-08 06:50:41.000000000 +0100 -+++ openssh-5.4p1/kex.c 2010-03-13 00:39:22.339231004 +0100 -@@ -50,6 +50,10 @@ - #include "monitor.h" - #include "roaming.h" - -+#ifdef GSSAPI -+#include "ssh-gss.h" -+#endif -+ - #if OPENSSL_VERSION_NUMBER >= 0x00907000L - # if defined(HAVE_EVP_SHA256) - # define evp_ssh_sha256 EVP_sha256 -@@ -326,6 +330,20 @@ - k->kex_type = KEX_DH_GEX_SHA256; - k->evp_md = evp_ssh_sha256(); - #endif -+#ifdef GSSAPI -+ } else if (strncmp(k->name, KEX_GSS_GEX_SHA1_ID, -+ sizeof(KEX_GSS_GEX_SHA1_ID) - 1) == 0) { -+ k->kex_type = KEX_GSS_GEX_SHA1; -+ k->evp_md = EVP_sha1(); -+ } else if (strncmp(k->name, KEX_GSS_GRP1_SHA1_ID, -+ sizeof(KEX_GSS_GRP1_SHA1_ID) - 1) == 0) { -+ k->kex_type = KEX_GSS_GRP1_SHA1; -+ k->evp_md = EVP_sha1(); -+ } else if (strncmp(k->name, KEX_GSS_GRP14_SHA1_ID, -+ sizeof(KEX_GSS_GRP14_SHA1_ID) - 1) == 0) { -+ k->kex_type = KEX_GSS_GRP14_SHA1; -+ k->evp_md = EVP_sha1(); -+#endif - } else - fatal("bad kex alg %s", k->name); - } -diff -Nur openssh-5.4p1.orig/kex.h openssh-5.4p1/kex.h ---- openssh-5.4p1.orig/kex.h 2010-02-26 21:55:05.000000000 +0100 -+++ openssh-5.4p1/kex.h 2010-03-13 00:39:22.342872379 +0100 -@@ -67,6 +67,9 @@ - KEX_DH_GRP14_SHA1, - KEX_DH_GEX_SHA1, - KEX_DH_GEX_SHA256, -+ KEX_GSS_GRP1_SHA1, -+ KEX_GSS_GRP14_SHA1, -+ KEX_GSS_GEX_SHA1, - KEX_MAX - }; - -@@ -123,6 +126,12 @@ - sig_atomic_t done; - int flags; - const EVP_MD *evp_md; -+#ifdef GSSAPI -+ int gss_deleg_creds; -+ int gss_trust_dns; -+ char *gss_host; -+ char *gss_client; -+#endif - char *client_version_string; - char *server_version_string; - int (*verify_host_key)(Key *); -@@ -146,6 +155,11 @@ - void kexgex_client(Kex *); - void kexgex_server(Kex *); - -+#ifdef GSSAPI -+void kexgss_client(Kex *); -+void kexgss_server(Kex *); -+#endif -+ - void - kex_dh_hash(char *, char *, char *, int, char *, int, u_char *, int, - BIGNUM *, BIGNUM *, BIGNUM *, u_char **, u_int *); -diff -Nur openssh-5.4p1.orig/kexgssc.c openssh-5.4p1/kexgssc.c ---- openssh-5.4p1.orig/kexgssc.c 1970-01-01 01:00:00.000000000 +0100 -+++ openssh-5.4p1/kexgssc.c 2010-03-13 00:39:22.345386953 +0100 -@@ -0,0 +1,334 @@ -+/* -+ * Copyright (c) 2001-2009 Simon Wilkinson. 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. -+ * -+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR `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 AUTHOR 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. -+ */ -+ -+#include "includes.h" -+ -+#ifdef GSSAPI -+ -+#include "includes.h" -+ -+#include -+#include -+ -+#include -+ -+#include "xmalloc.h" -+#include "buffer.h" -+#include "ssh2.h" -+#include "key.h" -+#include "cipher.h" -+#include "kex.h" -+#include "log.h" -+#include "packet.h" -+#include "dh.h" -+ -+#include "ssh-gss.h" -+ -+void -+kexgss_client(Kex *kex) { -+ gss_buffer_desc send_tok = GSS_C_EMPTY_BUFFER; -+ gss_buffer_desc recv_tok, gssbuf, msg_tok, *token_ptr; -+ Gssctxt *ctxt; -+ OM_uint32 maj_status, min_status, ret_flags; -+ u_int klen, kout, slen = 0, hashlen, strlen; -+ DH *dh; -+ BIGNUM *dh_server_pub = NULL; -+ BIGNUM *shared_secret = NULL; -+ BIGNUM *p = NULL; -+ BIGNUM *g = NULL; -+ u_char *kbuf, *hash; -+ u_char *serverhostkey = NULL; -+ u_char *empty = ""; -+ char *msg; -+ char *lang; -+ int type = 0; -+ int first = 1; -+ int nbits = 0, min = DH_GRP_MIN, max = DH_GRP_MAX; -+ -+ /* Initialise our GSSAPI world */ -+ ssh_gssapi_build_ctx(&ctxt); -+ if (ssh_gssapi_id_kex(ctxt, kex->name, kex->kex_type) -+ == GSS_C_NO_OID) -+ fatal("Couldn't identify host exchange"); -+ -+ if (ssh_gssapi_import_name(ctxt, kex->gss_host)) -+ fatal("Couldn't import hostname"); -+ -+ if (kex->gss_client && -+ ssh_gssapi_client_identity(ctxt, kex->gss_client)) -+ fatal("Couldn't acquire client credentials"); -+ -+ switch (kex->kex_type) { -+ case KEX_GSS_GRP1_SHA1: -+ dh = dh_new_group1(); -+ break; -+ case KEX_GSS_GRP14_SHA1: -+ dh = dh_new_group14(); -+ break; -+ case KEX_GSS_GEX_SHA1: -+ debug("Doing group exchange\n"); -+ nbits = dh_estimate(kex->we_need * 8); -+ packet_start(SSH2_MSG_KEXGSS_GROUPREQ); -+ packet_put_int(min); -+ packet_put_int(nbits); -+ packet_put_int(max); -+ -+ packet_send(); -+ -+ packet_read_expect(SSH2_MSG_KEXGSS_GROUP); -+ -+ if ((p = BN_new()) == NULL) -+ fatal("BN_new() failed"); -+ packet_get_bignum2(p); -+ if ((g = BN_new()) == NULL) -+ fatal("BN_new() failed"); -+ packet_get_bignum2(g); -+ packet_check_eom(); -+ -+ if (BN_num_bits(p) < min || BN_num_bits(p) > max) -+ fatal("GSSGRP_GEX group out of range: %d !< %d !< %d", -+ min, BN_num_bits(p), max); -+ -+ dh = dh_new_group(g, p); -+ break; -+ default: -+ fatal("%s: Unexpected KEX type %d", __func__, kex->kex_type); -+ } -+ -+ /* Step 1 - e is dh->pub_key */ -+ dh_gen_key(dh, kex->we_need * 8); -+ -+ /* This is f, we initialise it now to make life easier */ -+ dh_server_pub = BN_new(); -+ if (dh_server_pub == NULL) -+ fatal("dh_server_pub == NULL"); -+ -+ token_ptr = GSS_C_NO_BUFFER; -+ -+ do { -+ debug("Calling gss_init_sec_context"); -+ -+ maj_status = ssh_gssapi_init_ctx(ctxt, -+ kex->gss_deleg_creds, token_ptr, &send_tok, -+ &ret_flags); -+ -+ if (GSS_ERROR(maj_status)) { -+ if (send_tok.length != 0) { -+ packet_start(SSH2_MSG_KEXGSS_CONTINUE); -+ packet_put_string(send_tok.value, -+ send_tok.length); -+ } -+ fatal("gss_init_context failed"); -+ } -+ -+ /* If we've got an old receive buffer get rid of it */ -+ if (token_ptr != GSS_C_NO_BUFFER) -+ xfree(recv_tok.value); -+ -+ if (maj_status == GSS_S_COMPLETE) { -+ /* If mutual state flag is not true, kex fails */ -+ if (!(ret_flags & GSS_C_MUTUAL_FLAG)) -+ fatal("Mutual authentication failed"); -+ -+ /* If integ avail flag is not true kex fails */ -+ if (!(ret_flags & GSS_C_INTEG_FLAG)) -+ fatal("Integrity check failed"); -+ } -+ -+ /* -+ * If we have data to send, then the last message that we -+ * received cannot have been a 'complete'. -+ */ -+ if (send_tok.length != 0) { -+ if (first) { -+ packet_start(SSH2_MSG_KEXGSS_INIT); -+ packet_put_string(send_tok.value, -+ send_tok.length); -+ packet_put_bignum2(dh->pub_key); -+ first = 0; -+ } else { -+ packet_start(SSH2_MSG_KEXGSS_CONTINUE); -+ packet_put_string(send_tok.value, -+ send_tok.length); -+ } -+ packet_send(); -+ gss_release_buffer(&min_status, &send_tok); -+ -+ /* If we've sent them data, they should reply */ -+ do { -+ type = packet_read(); -+ if (type == SSH2_MSG_KEXGSS_HOSTKEY) { -+ debug("Received KEXGSS_HOSTKEY"); -+ if (serverhostkey) -+ fatal("Server host key received more than once"); -+ serverhostkey = -+ packet_get_string(&slen); -+ } -+ } while (type == SSH2_MSG_KEXGSS_HOSTKEY); -+ -+ switch (type) { -+ case SSH2_MSG_KEXGSS_CONTINUE: -+ debug("Received GSSAPI_CONTINUE"); -+ if (maj_status == GSS_S_COMPLETE) -+ fatal("GSSAPI Continue received from server when complete"); -+ recv_tok.value = packet_get_string(&strlen); -+ recv_tok.length = strlen; -+ break; -+ case SSH2_MSG_KEXGSS_COMPLETE: -+ debug("Received GSSAPI_COMPLETE"); -+ packet_get_bignum2(dh_server_pub); -+ msg_tok.value = packet_get_string(&strlen); -+ msg_tok.length = strlen; -+ -+ /* Is there a token included? */ -+ if (packet_get_char()) { -+ recv_tok.value= -+ packet_get_string(&strlen); -+ recv_tok.length = strlen; -+ /* If we're already complete - protocol error */ -+ if (maj_status == GSS_S_COMPLETE) -+ packet_disconnect("Protocol error: received token when complete"); -+ } else { -+ /* No token included */ -+ if (maj_status != GSS_S_COMPLETE) -+ packet_disconnect("Protocol error: did not receive final token"); -+ } -+ break; -+ case SSH2_MSG_KEXGSS_ERROR: -+ debug("Received Error"); -+ maj_status = packet_get_int(); -+ min_status = packet_get_int(); -+ msg = packet_get_string(NULL); -+ lang = packet_get_string(NULL); -+ fatal("GSSAPI Error: \n%.400s",msg); -+ default: -+ packet_disconnect("Protocol error: didn't expect packet type %d", -+ type); -+ } -+ token_ptr = &recv_tok; -+ } else { -+ /* No data, and not complete */ -+ if (maj_status != GSS_S_COMPLETE) -+ fatal("Not complete, and no token output"); -+ } -+ } while (maj_status & GSS_S_CONTINUE_NEEDED); -+ -+ /* -+ * We _must_ have received a COMPLETE message in reply from the -+ * server, which will have set dh_server_pub and msg_tok -+ */ -+ -+ if (type != SSH2_MSG_KEXGSS_COMPLETE) -+ fatal("Didn't receive a SSH2_MSG_KEXGSS_COMPLETE when I expected it"); -+ -+ /* Check f in range [1, p-1] */ -+ if (!dh_pub_is_valid(dh, dh_server_pub)) -+ packet_disconnect("bad server public DH value"); -+ -+ /* compute K=f^x mod p */ -+ klen = DH_size(dh); -+ kbuf = xmalloc(klen); -+ kout = DH_compute_key(kbuf, dh_server_pub, dh); -+ if (kout < 0) -+ fatal("DH_compute_key: failed"); -+ -+ shared_secret = BN_new(); -+ if (shared_secret == NULL) -+ fatal("kexgss_client: BN_new failed"); -+ -+ if (BN_bin2bn(kbuf, kout, shared_secret) == NULL) -+ fatal("kexdh_client: BN_bin2bn failed"); -+ -+ memset(kbuf, 0, klen); -+ xfree(kbuf); -+ -+ switch (kex->kex_type) { -+ case KEX_GSS_GRP1_SHA1: -+ case KEX_GSS_GRP14_SHA1: -+ kex_dh_hash( kex->client_version_string, -+ kex->server_version_string, -+ buffer_ptr(&kex->my), buffer_len(&kex->my), -+ buffer_ptr(&kex->peer), buffer_len(&kex->peer), -+ (serverhostkey ? serverhostkey : empty), slen, -+ dh->pub_key, /* e */ -+ dh_server_pub, /* f */ -+ shared_secret, /* K */ -+ &hash, &hashlen -+ ); -+ break; -+ case KEX_GSS_GEX_SHA1: -+ kexgex_hash( -+ kex->evp_md, -+ kex->client_version_string, -+ kex->server_version_string, -+ buffer_ptr(&kex->my), buffer_len(&kex->my), -+ buffer_ptr(&kex->peer), buffer_len(&kex->peer), -+ (serverhostkey ? serverhostkey : empty), slen, -+ min, nbits, max, -+ dh->p, dh->g, -+ dh->pub_key, -+ dh_server_pub, -+ shared_secret, -+ &hash, &hashlen -+ ); -+ break; -+ default: -+ fatal("%s: Unexpected KEX type %d", __func__, kex->kex_type); -+ } -+ -+ gssbuf.value = hash; -+ gssbuf.length = hashlen; -+ -+ /* Verify that the hash matches the MIC we just got. */ -+ if (GSS_ERROR(ssh_gssapi_checkmic(ctxt, &gssbuf, &msg_tok))) -+ packet_disconnect("Hash's MIC didn't verify"); -+ -+ xfree(msg_tok.value); -+ -+ DH_free(dh); -+ if (serverhostkey) -+ xfree(serverhostkey); -+ BN_clear_free(dh_server_pub); -+ -+ /* save session id */ -+ if (kex->session_id == NULL) { -+ kex->session_id_len = hashlen; -+ kex->session_id = xmalloc(kex->session_id_len); -+ memcpy(kex->session_id, hash, kex->session_id_len); -+ } -+ -+ if (kex->gss_deleg_creds) -+ ssh_gssapi_credentials_updated(ctxt); -+ -+ if (gss_kex_context == NULL) -+ gss_kex_context = ctxt; -+ else -+ ssh_gssapi_delete_ctx(&ctxt); -+ -+ kex_derive_keys(kex, hash, hashlen, shared_secret); -+ BN_clear_free(shared_secret); -+ kex_finish(kex); -+} -+ -+#endif /* GSSAPI */ -diff -Nur openssh-5.4p1.orig/kexgsss.c openssh-5.4p1/kexgsss.c ---- openssh-5.4p1.orig/kexgsss.c 1970-01-01 01:00:00.000000000 +0100 -+++ openssh-5.4p1/kexgsss.c 2010-03-13 00:39:22.347367946 +0100 -@@ -0,0 +1,288 @@ -+/* -+ * Copyright (c) 2001-2009 Simon Wilkinson. 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. -+ * -+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR `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 AUTHOR 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. -+ */ -+ -+#include "includes.h" -+ -+#ifdef GSSAPI -+ -+#include -+ -+#include -+#include -+ -+#include "xmalloc.h" -+#include "buffer.h" -+#include "ssh2.h" -+#include "key.h" -+#include "cipher.h" -+#include "kex.h" -+#include "log.h" -+#include "packet.h" -+#include "dh.h" -+#include "ssh-gss.h" -+#include "monitor_wrap.h" -+#include "servconf.h" -+ -+extern ServerOptions options; -+ -+void -+kexgss_server(Kex *kex) -+{ -+ OM_uint32 maj_status, min_status; -+ -+ /* -+ * Some GSSAPI implementations use the input value of ret_flags (an -+ * output variable) as a means of triggering mechanism specific -+ * features. Initializing it to zero avoids inadvertently -+ * activating this non-standard behaviour. -+ */ -+ -+ OM_uint32 ret_flags = 0; -+ gss_buffer_desc gssbuf, recv_tok, msg_tok; -+ gss_buffer_desc send_tok = GSS_C_EMPTY_BUFFER; -+ Gssctxt *ctxt = NULL; -+ u_int slen, klen, kout, hashlen; -+ u_char *kbuf, *hash; -+ DH *dh; -+ int min = -1, max = -1, nbits = -1; -+ BIGNUM *shared_secret = NULL; -+ BIGNUM *dh_client_pub = NULL; -+ int type = 0; -+ gss_OID oid; -+ char *mechs; -+ -+ /* Initialise GSSAPI */ -+ -+ /* If we're rekeying, privsep means that some of the private structures -+ * in the GSSAPI code are no longer available. This kludges them back -+ * into life -+ */ -+ if (!ssh_gssapi_oid_table_ok()) -+ if ((mechs = ssh_gssapi_server_mechanisms())) -+ xfree(mechs); -+ -+ debug2("%s: Identifying %s", __func__, kex->name); -+ oid = ssh_gssapi_id_kex(NULL, kex->name, kex->kex_type); -+ if (oid == GSS_C_NO_OID) -+ fatal("Unknown gssapi mechanism"); -+ -+ debug2("%s: Acquiring credentials", __func__); -+ -+ if (GSS_ERROR(PRIVSEP(ssh_gssapi_server_ctx(&ctxt, oid)))) -+ fatal("Unable to acquire credentials for the server"); -+ -+ switch (kex->kex_type) { -+ case KEX_GSS_GRP1_SHA1: -+ dh = dh_new_group1(); -+ break; -+ case KEX_GSS_GRP14_SHA1: -+ dh = dh_new_group14(); -+ break; -+ case KEX_GSS_GEX_SHA1: -+ debug("Doing group exchange"); -+ packet_read_expect(SSH2_MSG_KEXGSS_GROUPREQ); -+ min = packet_get_int(); -+ nbits = packet_get_int(); -+ max = packet_get_int(); -+ min = MAX(DH_GRP_MIN, min); -+ max = MIN(DH_GRP_MAX, max); -+ packet_check_eom(); -+ if (max < min || nbits < min || max < nbits) -+ fatal("GSS_GEX, bad parameters: %d !< %d !< %d", -+ min, nbits, max); -+ dh = PRIVSEP(choose_dh(min, nbits, max)); -+ if (dh == NULL) -+ packet_disconnect("Protocol error: no matching group found"); -+ -+ packet_start(SSH2_MSG_KEXGSS_GROUP); -+ packet_put_bignum2(dh->p); -+ packet_put_bignum2(dh->g); -+ packet_send(); -+ -+ packet_write_wait(); -+ break; -+ default: -+ fatal("%s: Unexpected KEX type %d", __func__, kex->kex_type); -+ } -+ -+ dh_gen_key(dh, kex->we_need * 8); -+ -+ do { -+ debug("Wait SSH2_MSG_GSSAPI_INIT"); -+ type = packet_read(); -+ switch(type) { -+ case SSH2_MSG_KEXGSS_INIT: -+ if (dh_client_pub != NULL) -+ fatal("Received KEXGSS_INIT after initialising"); -+ recv_tok.value = packet_get_string(&slen); -+ recv_tok.length = slen; -+ -+ if ((dh_client_pub = BN_new()) == NULL) -+ fatal("dh_client_pub == NULL"); -+ -+ packet_get_bignum2(dh_client_pub); -+ -+ /* Send SSH_MSG_KEXGSS_HOSTKEY here, if we want */ -+ break; -+ case SSH2_MSG_KEXGSS_CONTINUE: -+ recv_tok.value = packet_get_string(&slen); -+ recv_tok.length = slen; -+ break; -+ default: -+ packet_disconnect( -+ "Protocol error: didn't expect packet type %d", -+ type); -+ } -+ -+ maj_status = PRIVSEP(ssh_gssapi_accept_ctx(ctxt, &recv_tok, -+ &send_tok, &ret_flags)); -+ -+ xfree(recv_tok.value); -+ -+ if (maj_status != GSS_S_COMPLETE && send_tok.length == 0) -+ fatal("Zero length token output when incomplete"); -+ -+ if (dh_client_pub == NULL) -+ fatal("No client public key"); -+ -+ if (maj_status & GSS_S_CONTINUE_NEEDED) { -+ debug("Sending GSSAPI_CONTINUE"); -+ packet_start(SSH2_MSG_KEXGSS_CONTINUE); -+ packet_put_string(send_tok.value, send_tok.length); -+ packet_send(); -+ gss_release_buffer(&min_status, &send_tok); -+ } -+ } while (maj_status & GSS_S_CONTINUE_NEEDED); -+ -+ if (GSS_ERROR(maj_status)) { -+ if (send_tok.length > 0) { -+ packet_start(SSH2_MSG_KEXGSS_CONTINUE); -+ packet_put_string(send_tok.value, send_tok.length); -+ packet_send(); -+ } -+ fatal("accept_ctx died"); -+ } -+ -+ if (!(ret_flags & GSS_C_MUTUAL_FLAG)) -+ fatal("Mutual Authentication flag wasn't set"); -+ -+ if (!(ret_flags & GSS_C_INTEG_FLAG)) -+ fatal("Integrity flag wasn't set"); -+ -+ if (!dh_pub_is_valid(dh, dh_client_pub)) -+ packet_disconnect("bad client public DH value"); -+ -+ klen = DH_size(dh); -+ kbuf = xmalloc(klen); -+ kout = DH_compute_key(kbuf, dh_client_pub, dh); -+ if (kout < 0) -+ fatal("DH_compute_key: failed"); -+ -+ shared_secret = BN_new(); -+ if (shared_secret == NULL) -+ fatal("kexgss_server: BN_new failed"); -+ -+ if (BN_bin2bn(kbuf, kout, shared_secret) == NULL) -+ fatal("kexgss_server: BN_bin2bn failed"); -+ -+ memset(kbuf, 0, klen); -+ xfree(kbuf); -+ -+ switch (kex->kex_type) { -+ case KEX_GSS_GRP1_SHA1: -+ case KEX_GSS_GRP14_SHA1: -+ kex_dh_hash( -+ kex->client_version_string, kex->server_version_string, -+ buffer_ptr(&kex->peer), buffer_len(&kex->peer), -+ buffer_ptr(&kex->my), buffer_len(&kex->my), -+ NULL, 0, /* Change this if we start sending host keys */ -+ dh_client_pub, dh->pub_key, shared_secret, -+ &hash, &hashlen -+ ); -+ break; -+ case KEX_GSS_GEX_SHA1: -+ kexgex_hash( -+ kex->evp_md, -+ kex->client_version_string, kex->server_version_string, -+ buffer_ptr(&kex->peer), buffer_len(&kex->peer), -+ buffer_ptr(&kex->my), buffer_len(&kex->my), -+ NULL, 0, -+ min, nbits, max, -+ dh->p, dh->g, -+ dh_client_pub, -+ dh->pub_key, -+ shared_secret, -+ &hash, &hashlen -+ ); -+ break; -+ default: -+ fatal("%s: Unexpected KEX type %d", __func__, kex->kex_type); -+ } -+ -+ BN_clear_free(dh_client_pub); -+ -+ if (kex->session_id == NULL) { -+ kex->session_id_len = hashlen; -+ kex->session_id = xmalloc(kex->session_id_len); -+ memcpy(kex->session_id, hash, kex->session_id_len); -+ } -+ -+ gssbuf.value = hash; -+ gssbuf.length = hashlen; -+ -+ if (GSS_ERROR(PRIVSEP(ssh_gssapi_sign(ctxt,&gssbuf,&msg_tok)))) -+ fatal("Couldn't get MIC"); -+ -+ packet_start(SSH2_MSG_KEXGSS_COMPLETE); -+ packet_put_bignum2(dh->pub_key); -+ packet_put_string(msg_tok.value,msg_tok.length); -+ -+ if (send_tok.length != 0) { -+ packet_put_char(1); /* true */ -+ packet_put_string(send_tok.value, send_tok.length); -+ } else { -+ packet_put_char(0); /* false */ -+ } -+ packet_send(); -+ -+ gss_release_buffer(&min_status, &send_tok); -+ gss_release_buffer(&min_status, &msg_tok); -+ -+ if (gss_kex_context == NULL) -+ gss_kex_context = ctxt; -+ else -+ ssh_gssapi_delete_ctx(&ctxt); -+ -+ DH_free(dh); -+ -+ kex_derive_keys(kex, hash, hashlen, shared_secret); -+ BN_clear_free(shared_secret); -+ kex_finish(kex); -+ -+ /* If this was a rekey, then save out any delegated credentials we -+ * just exchanged. */ -+ if (options.gss_store_rekey) -+ ssh_gssapi_rekey_creds(); -+} -+#endif /* GSSAPI */ -diff -Nur openssh-5.4p1.orig/key.c openssh-5.4p1/key.c ---- openssh-5.4p1.orig/key.c 2010-03-04 11:52:18.000000000 +0100 -+++ openssh-5.4p1/key.c 2010-03-13 00:40:49.216211219 +0100 -@@ -969,7 +969,9 @@ - return KEY_RSA_CERT; - } else if (strcmp(name, "ssh-dss-cert-v00 at openssh.com") == 0) { - return KEY_DSA_CERT; -- } -+ } else if (strcmp(name, "null") == 0) { -+ return KEY_NULL; -+ } - debug2("key_type_from_name: unknown key type '%s'", name); - return KEY_UNSPEC; - } -diff -Nur openssh-5.4p1.orig/key.h openssh-5.4p1/key.h ---- openssh-5.4p1.orig/key.h 2010-02-26 21:55:05.000000000 +0100 -+++ openssh-5.4p1/key.h 2010-03-13 00:40:17.733623904 +0100 -@@ -37,6 +37,7 @@ - KEY_DSA, - KEY_RSA_CERT, - KEY_DSA_CERT, -+ KEY_NULL, - KEY_UNSPEC - }; - enum fp_type { -diff -Nur openssh-5.4p1.orig/monitor.c openssh-5.4p1/monitor.c ---- openssh-5.4p1.orig/monitor.c 2010-03-07 13:05:17.000000000 +0100 -+++ openssh-5.4p1/monitor.c 2010-03-13 00:39:22.367998455 +0100 -@@ -172,6 +172,8 @@ - int mm_answer_gss_accept_ctx(int, Buffer *); - int mm_answer_gss_userok(int, Buffer *); - int mm_answer_gss_checkmic(int, Buffer *); -+int mm_answer_gss_sign(int, Buffer *); -+int mm_answer_gss_updatecreds(int, Buffer *); - #endif - - #ifdef SSH_AUDIT_EVENTS -@@ -241,6 +243,7 @@ - {MONITOR_REQ_GSSSTEP, MON_ISAUTH, mm_answer_gss_accept_ctx}, - {MONITOR_REQ_GSSUSEROK, MON_AUTH, mm_answer_gss_userok}, - {MONITOR_REQ_GSSCHECKMIC, MON_ISAUTH, mm_answer_gss_checkmic}, -+ {MONITOR_REQ_GSSSIGN, MON_ONCE, mm_answer_gss_sign}, - #endif - #ifdef JPAKE - {MONITOR_REQ_JPAKE_GET_PWDATA, MON_ONCE, mm_answer_jpake_get_pwdata}, -@@ -253,6 +256,12 @@ - }; - - struct mon_table mon_dispatch_postauth20[] = { -+#ifdef GSSAPI -+ {MONITOR_REQ_GSSSETUP, 0, mm_answer_gss_setup_ctx}, -+ {MONITOR_REQ_GSSSTEP, 0, mm_answer_gss_accept_ctx}, -+ {MONITOR_REQ_GSSSIGN, 0, mm_answer_gss_sign}, -+ {MONITOR_REQ_GSSUPCREDS, 0, mm_answer_gss_updatecreds}, -+#endif - {MONITOR_REQ_MODULI, 0, mm_answer_moduli}, - {MONITOR_REQ_SIGN, 0, mm_answer_sign}, - {MONITOR_REQ_PTY, 0, mm_answer_pty}, -@@ -357,6 +366,10 @@ - /* Permit requests for moduli and signatures */ - monitor_permit(mon_dispatch, MONITOR_REQ_MODULI, 1); - monitor_permit(mon_dispatch, MONITOR_REQ_SIGN, 1); -+#ifdef GSSAPI -+ /* and for the GSSAPI key exchange */ -+ monitor_permit(mon_dispatch, MONITOR_REQ_GSSSETUP, 1); -+#endif - } else { - mon_dispatch = mon_dispatch_proto15; - -@@ -443,6 +456,10 @@ - monitor_permit(mon_dispatch, MONITOR_REQ_MODULI, 1); - monitor_permit(mon_dispatch, MONITOR_REQ_SIGN, 1); - monitor_permit(mon_dispatch, MONITOR_REQ_TERM, 1); -+#ifdef GSSAPI -+ /* and for the GSSAPI key exchange */ -+ monitor_permit(mon_dispatch, MONITOR_REQ_GSSSETUP, 1); -+#endif - } else { - mon_dispatch = mon_dispatch_postauth15; - monitor_permit(mon_dispatch, MONITOR_REQ_TERM, 1); -@@ -1691,6 +1708,13 @@ - kex->kex[KEX_DH_GRP14_SHA1] = kexdh_server; - kex->kex[KEX_DH_GEX_SHA1] = kexgex_server; - kex->kex[KEX_DH_GEX_SHA256] = kexgex_server; -+#ifdef GSSAPI -+ if (options.gss_keyex) { -+ kex->kex[KEX_GSS_GRP1_SHA1] = kexgss_server; -+ kex->kex[KEX_GSS_GRP14_SHA1] = kexgss_server; -+ kex->kex[KEX_GSS_GEX_SHA1] = kexgss_server; -+ } -+#endif - kex->server = 1; - kex->hostkey_type = buffer_get_int(m); - kex->kex_type = buffer_get_int(m); -@@ -1897,6 +1921,9 @@ - OM_uint32 major; - u_int len; - -+ if (!options.gss_authentication && !options.gss_keyex) -+ fatal("In GSSAPI monitor when GSSAPI is disabled"); -+ - goid.elements = buffer_get_string(m, &len); - goid.length = len; - -@@ -1924,6 +1951,9 @@ - OM_uint32 flags = 0; /* GSI needs this */ - u_int len; - -+ if (!options.gss_authentication && !options.gss_keyex) -+ fatal("In GSSAPI monitor when GSSAPI is disabled"); -+ - in.value = buffer_get_string(m, &len); - in.length = len; - major = ssh_gssapi_accept_ctx(gsscontext, &in, &out, &flags); -@@ -1941,6 +1971,7 @@ - monitor_permit(mon_dispatch, MONITOR_REQ_GSSSTEP, 0); - monitor_permit(mon_dispatch, MONITOR_REQ_GSSUSEROK, 1); - monitor_permit(mon_dispatch, MONITOR_REQ_GSSCHECKMIC, 1); -+ monitor_permit(mon_dispatch, MONITOR_REQ_GSSSIGN, 1); - } - return (0); - } -@@ -1952,6 +1983,9 @@ - OM_uint32 ret; - u_int len; - -+ if (!options.gss_authentication && !options.gss_keyex) -+ fatal("In GSSAPI monitor when GSSAPI is disabled"); -+ - gssbuf.value = buffer_get_string(m, &len); - gssbuf.length = len; - mic.value = buffer_get_string(m, &len); -@@ -1978,7 +2012,11 @@ - { - int authenticated; - -- authenticated = authctxt->valid && ssh_gssapi_userok(authctxt->user); -+ if (!options.gss_authentication && !options.gss_keyex) -+ fatal("In GSSAPI monitor when GSSAPI is disabled"); -+ -+ authenticated = authctxt->valid && -+ ssh_gssapi_userok(authctxt->user, authctxt->pw); - - buffer_clear(m); - buffer_put_int(m, authenticated); -@@ -1991,6 +2029,74 @@ - /* Monitor loop will terminate if authenticated */ - return (authenticated); - } -+ -+int -+mm_answer_gss_sign(int socket, Buffer *m) -+{ -+ gss_buffer_desc data; -+ gss_buffer_desc hash = GSS_C_EMPTY_BUFFER; -+ OM_uint32 major, minor; -+ u_int len; -+ -+ if (!options.gss_authentication && !options.gss_keyex) -+ fatal("In GSSAPI monitor when GSSAPI is disabled"); -+ -+ data.value = buffer_get_string(m, &len); -+ data.length = len; -+ if (data.length != 20) -+ fatal("%s: data length incorrect: %d", __func__, -+ (int) data.length); -+ -+ /* Save the session ID on the first time around */ -+ if (session_id2_len == 0) { -+ session_id2_len = data.length; -+ session_id2 = xmalloc(session_id2_len); -+ memcpy(session_id2, data.value, session_id2_len); -+ } -+ major = ssh_gssapi_sign(gsscontext, &data, &hash); -+ -+ xfree(data.value); -+ -+ buffer_clear(m); -+ buffer_put_int(m, major); -+ buffer_put_string(m, hash.value, hash.length); -+ -+ mm_request_send(socket, MONITOR_ANS_GSSSIGN, m); -+ -+ gss_release_buffer(&minor, &hash); -+ -+ /* Turn on getpwnam permissions */ -+ monitor_permit(mon_dispatch, MONITOR_REQ_PWNAM, 1); -+ -+ /* And credential updating, for when rekeying */ -+ monitor_permit(mon_dispatch, MONITOR_REQ_GSSUPCREDS, 1); -+ -+ return (0); -+} -+ -+int -+mm_answer_gss_updatecreds(int socket, Buffer *m) { -+ ssh_gssapi_ccache store; -+ int ok; -+ -+ store.filename = buffer_get_string(m, NULL); -+ store.envvar = buffer_get_string(m, NULL); -+ store.envval = buffer_get_string(m, NULL); -+ -+ ok = ssh_gssapi_update_creds(&store); -+ -+ xfree(store.filename); -+ xfree(store.envvar); -+ xfree(store.envval); -+ -+ buffer_clear(m); -+ buffer_put_int(m, ok); -+ -+ mm_request_send(socket, MONITOR_ANS_GSSUPCREDS, m); -+ -+ return(0); -+} -+ - #endif /* GSSAPI */ - - #ifdef JPAKE -diff -Nur openssh-5.4p1.orig/monitor.h openssh-5.4p1/monitor.h ---- openssh-5.4p1.orig/monitor.h 2008-11-05 06:20:46.000000000 +0100 -+++ openssh-5.4p1/monitor.h 2010-03-13 00:39:22.370058530 +0100 -@@ -53,6 +53,8 @@ - MONITOR_REQ_GSSSTEP, MONITOR_ANS_GSSSTEP, - MONITOR_REQ_GSSUSEROK, MONITOR_ANS_GSSUSEROK, - MONITOR_REQ_GSSCHECKMIC, MONITOR_ANS_GSSCHECKMIC, -+ MONITOR_REQ_GSSSIGN, MONITOR_ANS_GSSSIGN, -+ MONITOR_REQ_GSSUPCREDS, MONITOR_ANS_GSSUPCREDS, - MONITOR_REQ_PAM_START, - MONITOR_REQ_PAM_ACCOUNT, MONITOR_ANS_PAM_ACCOUNT, - MONITOR_REQ_PAM_INIT_CTX, MONITOR_ANS_PAM_INIT_CTX, -diff -Nur openssh-5.4p1.orig/monitor_wrap.c openssh-5.4p1/monitor_wrap.c ---- openssh-5.4p1.orig/monitor_wrap.c 2010-03-07 13:05:17.000000000 +0100 -+++ openssh-5.4p1/monitor_wrap.c 2010-03-13 00:39:22.375677054 +0100 -@@ -1231,7 +1231,7 @@ - } - - int --mm_ssh_gssapi_userok(char *user) -+mm_ssh_gssapi_userok(char *user, struct passwd *pw) - { - Buffer m; - int authenticated = 0; -@@ -1248,6 +1248,51 @@ - debug3("%s: user %sauthenticated",__func__, authenticated ? "" : "not "); - return (authenticated); - } -+ -+OM_uint32 -+mm_ssh_gssapi_sign(Gssctxt *ctx, gss_buffer_desc *data, gss_buffer_desc *hash) -+{ -+ Buffer m; -+ OM_uint32 major; -+ u_int len; -+ -+ buffer_init(&m); -+ buffer_put_string(&m, data->value, data->length); -+ -+ mm_request_send(pmonitor->m_recvfd, MONITOR_REQ_GSSSIGN, &m); -+ mm_request_receive_expect(pmonitor->m_recvfd, MONITOR_ANS_GSSSIGN, &m); -+ -+ major = buffer_get_int(&m); -+ hash->value = buffer_get_string(&m, &len); -+ hash->length = len; -+ -+ buffer_free(&m); -+ -+ return(major); -+} -+ -+int -+mm_ssh_gssapi_update_creds(ssh_gssapi_ccache *store) -+{ -+ Buffer m; -+ int ok; -+ -+ buffer_init(&m); -+ -+ buffer_put_cstring(&m, store->filename ? store->filename : ""); -+ buffer_put_cstring(&m, store->envvar ? store->envvar : ""); -+ buffer_put_cstring(&m, store->envval ? store->envval : ""); -+ -+ mm_request_send(pmonitor->m_recvfd, MONITOR_REQ_GSSUPCREDS, &m); -+ mm_request_receive_expect(pmonitor->m_recvfd, MONITOR_ANS_GSSUPCREDS, &m); -+ -+ ok = buffer_get_int(&m); -+ -+ buffer_free(&m); -+ -+ return (ok); -+} -+ - #endif /* GSSAPI */ - - #ifdef JPAKE -diff -Nur openssh-5.4p1.orig/monitor_wrap.h openssh-5.4p1/monitor_wrap.h ---- openssh-5.4p1.orig/monitor_wrap.h 2009-03-05 14:58:22.000000000 +0100 -+++ openssh-5.4p1/monitor_wrap.h 2010-03-13 00:39:22.377770519 +0100 -@@ -57,8 +57,10 @@ - OM_uint32 mm_ssh_gssapi_server_ctx(Gssctxt **, gss_OID); - OM_uint32 mm_ssh_gssapi_accept_ctx(Gssctxt *, - gss_buffer_desc *, gss_buffer_desc *, OM_uint32 *); --int mm_ssh_gssapi_userok(char *user); -+int mm_ssh_gssapi_userok(char *user, struct passwd *); - OM_uint32 mm_ssh_gssapi_checkmic(Gssctxt *, gss_buffer_t, gss_buffer_t); -+OM_uint32 mm_ssh_gssapi_sign(Gssctxt *, gss_buffer_t, gss_buffer_t); -+int mm_ssh_gssapi_update_creds(ssh_gssapi_ccache *); - #endif - - #ifdef USE_PAM -diff -Nur openssh-5.4p1.orig/readconf.c openssh-5.4p1/readconf.c ---- openssh-5.4p1.orig/readconf.c 2010-02-11 23:21:03.000000000 +0100 -+++ openssh-5.4p1/readconf.c 2010-03-13 00:39:22.384142845 +0100 -@@ -127,6 +127,7 @@ - oClearAllForwardings, oNoHostAuthenticationForLocalhost, - oEnableSSHKeysign, oRekeyLimit, oVerifyHostKeyDNS, oConnectTimeout, - oAddressFamily, oGssAuthentication, oGssDelegateCreds, -+ oGssTrustDns, oGssKeyEx, oGssClientIdentity, oGssRenewalRekey, - oServerAliveInterval, oServerAliveCountMax, oIdentitiesOnly, - oSendEnv, oControlPath, oControlMaster, oHashKnownHosts, - oTunnel, oTunnelDevice, oLocalCommand, oPermitLocalCommand, -@@ -164,10 +165,18 @@ - { "afstokenpassing", oUnsupported }, - #if defined(GSSAPI) - { "gssapiauthentication", oGssAuthentication }, -+ { "gssapikeyexchange", oGssKeyEx }, - { "gssapidelegatecredentials", oGssDelegateCreds }, -+ { "gssapitrustdns", oGssTrustDns }, -+ { "gssapiclientidentity", oGssClientIdentity }, -+ { "gssapirenewalforcesrekey", oGssRenewalRekey }, - #else - { "gssapiauthentication", oUnsupported }, -+ { "gssapikeyexchange", oUnsupported }, - { "gssapidelegatecredentials", oUnsupported }, -+ { "gssapitrustdns", oUnsupported }, -+ { "gssapiclientidentity", oUnsupported }, -+ { "gssapirenewalforcesrekey", oUnsupported }, - #endif - { "fallbacktorsh", oDeprecated }, - { "usersh", oDeprecated }, -@@ -456,10 +465,26 @@ - intptr = &options->gss_authentication; - goto parse_flag; - -+ case oGssKeyEx: -+ intptr = &options->gss_keyex; -+ goto parse_flag; -+ - case oGssDelegateCreds: - intptr = &options->gss_deleg_creds; - goto parse_flag; - -+ case oGssTrustDns: -+ intptr = &options->gss_trust_dns; -+ goto parse_flag; -+ -+ case oGssClientIdentity: -+ charptr = &options->gss_client_identity; -+ goto parse_string; -+ -+ case oGssRenewalRekey: -+ intptr = &options->gss_renewal_rekey; -+ goto parse_flag; -+ - case oBatchMode: - intptr = &options->batch_mode; - goto parse_flag; -@@ -1015,7 +1040,11 @@ - options->pubkey_authentication = -1; - options->challenge_response_authentication = -1; - options->gss_authentication = -1; -+ options->gss_keyex = -1; - options->gss_deleg_creds = -1; -+ options->gss_trust_dns = -1; -+ options->gss_renewal_rekey = -1; -+ options->gss_client_identity = NULL; - options->password_authentication = -1; - options->kbd_interactive_authentication = -1; - options->kbd_interactive_devices = NULL; -@@ -1107,8 +1136,14 @@ - options->challenge_response_authentication = 1; - if (options->gss_authentication == -1) - options->gss_authentication = 0; -+ if (options->gss_keyex == -1) -+ options->gss_keyex = 0; - if (options->gss_deleg_creds == -1) - options->gss_deleg_creds = 0; -+ if (options->gss_trust_dns == -1) -+ options->gss_trust_dns = 0; -+ if (options->gss_renewal_rekey == -1) -+ options->gss_renewal_rekey = 0; - if (options->password_authentication == -1) - options->password_authentication = 1; - if (options->kbd_interactive_authentication == -1) -diff -Nur openssh-5.4p1.orig/readconf.h openssh-5.4p1/readconf.h ---- openssh-5.4p1.orig/readconf.h 2010-02-11 23:21:03.000000000 +0100 -+++ openssh-5.4p1/readconf.h 2010-03-13 00:39:22.386055410 +0100 -@@ -44,7 +44,11 @@ - int challenge_response_authentication; - /* Try S/Key or TIS, authentication. */ - int gss_authentication; /* Try GSS authentication */ -+ int gss_keyex; /* Try GSS key exchange */ - int gss_deleg_creds; /* Delegate GSS credentials */ -+ int gss_trust_dns; /* Trust DNS for GSS canonicalization */ -+ int gss_renewal_rekey; /* Credential renewal forces rekey */ -+ char *gss_client_identity; /* Principal to initiate GSSAPI with */ - int password_authentication; /* Try password - * authentication. */ - int kbd_interactive_authentication; /* Try keyboard-interactive auth. */ -diff -Nur openssh-5.4p1.orig/servconf.c openssh-5.4p1/servconf.c ---- openssh-5.4p1.orig/servconf.c 2010-03-04 11:53:35.000000000 +0100 -+++ openssh-5.4p1/servconf.c 2010-03-13 00:39:22.394208388 +0100 -@@ -93,7 +93,10 @@ - options->kerberos_ticket_cleanup = -1; - options->kerberos_get_afs_token = -1; - options->gss_authentication=-1; -+ options->gss_keyex = -1; - options->gss_cleanup_creds = -1; -+ options->gss_strict_acceptor = -1; -+ options->gss_store_rekey = -1; - options->password_authentication = -1; - options->kbd_interactive_authentication = -1; - options->challenge_response_authentication = -1; -@@ -214,8 +217,14 @@ - options->kerberos_get_afs_token = 0; - if (options->gss_authentication == -1) - options->gss_authentication = 0; -+ if (options->gss_keyex == -1) -+ options->gss_keyex = 0; - if (options->gss_cleanup_creds == -1) - options->gss_cleanup_creds = 1; -+ if (options->gss_strict_acceptor == -1) -+ options->gss_strict_acceptor = 1; -+ if (options->gss_store_rekey == -1) -+ options->gss_store_rekey = 0; - if (options->password_authentication == -1) - options->password_authentication = 1; - if (options->kbd_interactive_authentication == -1) -@@ -306,7 +315,9 @@ - sBanner, sUseDNS, sHostbasedAuthentication, - sHostbasedUsesNameFromPacketOnly, sClientAliveInterval, - sClientAliveCountMax, sAuthorizedKeysFile, sAuthorizedKeysFile2, -- sGssAuthentication, sGssCleanupCreds, sAcceptEnv, sPermitTunnel, -+ sGssAuthentication, sGssCleanupCreds, sGssStrictAcceptor, -+ sGssKeyEx, sGssStoreRekey, -+ sAcceptEnv, sPermitTunnel, - sMatch, sPermitOpen, sForceCommand, sChrootDirectory, - sUsePrivilegeSeparation, sAllowAgentForwarding, - sZeroKnowledgePasswordAuthentication, sHostCertificate, -@@ -369,9 +380,15 @@ - #ifdef GSSAPI - { "gssapiauthentication", sGssAuthentication, SSHCFG_ALL }, - { "gssapicleanupcredentials", sGssCleanupCreds, SSHCFG_GLOBAL }, -+ { "gssapistrictacceptorcheck", sGssStrictAcceptor, SSHCFG_GLOBAL }, -+ { "gssapikeyexchange", sGssKeyEx, SSHCFG_GLOBAL }, -+ { "gssapistorecredentialsonrekey", sGssStoreRekey, SSHCFG_GLOBAL }, - #else - { "gssapiauthentication", sUnsupported, SSHCFG_ALL }, - { "gssapicleanupcredentials", sUnsupported, SSHCFG_GLOBAL }, -+ { "gssapistrictacceptorcheck", sUnsupported, SSHCFG_GLOBAL }, -+ { "gssapikeyexchange", sUnsupported, SSHCFG_GLOBAL }, -+ { "gssapistorecredentialsonrekey", sUnsupported, SSHCFG_GLOBAL }, - #endif - { "passwordauthentication", sPasswordAuthentication, SSHCFG_ALL }, - { "kbdinteractiveauthentication", sKbdInteractiveAuthentication, SSHCFG_ALL }, -@@ -925,10 +942,22 @@ - intptr = &options->gss_authentication; - goto parse_flag; - -+ case sGssKeyEx: -+ intptr = &options->gss_keyex; -+ goto parse_flag; -+ - case sGssCleanupCreds: - intptr = &options->gss_cleanup_creds; - goto parse_flag; - -+ case sGssStrictAcceptor: -+ intptr = &options->gss_strict_acceptor; -+ goto parse_flag; -+ -+ case sGssStoreRekey: -+ intptr = &options->gss_store_rekey; -+ goto parse_flag; -+ - case sPasswordAuthentication: - intptr = &options->password_authentication; - goto parse_flag; -diff -Nur openssh-5.4p1.orig/servconf.h openssh-5.4p1/servconf.h ---- openssh-5.4p1.orig/servconf.h 2010-03-04 11:53:35.000000000 +0100 -+++ openssh-5.4p1/servconf.h 2010-03-13 00:39:22.397236772 +0100 -@@ -94,7 +94,10 @@ - int kerberos_get_afs_token; /* If true, try to get AFS token if - * authenticated with Kerberos. */ - int gss_authentication; /* If true, permit GSSAPI authentication */ -+ int gss_keyex; /* If true, permit GSSAPI key exchange */ - int gss_cleanup_creds; /* If true, destroy cred cache on logout */ -+ int gss_strict_acceptor; /* If true, restrict the GSSAPI acceptor name */ -+ int gss_store_rekey; - int password_authentication; /* If true, permit password - * authentication. */ - int kbd_interactive_authentication; /* If true, permit */ -diff -Nur openssh-5.4p1.orig/ssh-gss.h openssh-5.4p1/ssh-gss.h ---- openssh-5.4p1.orig/ssh-gss.h 2007-06-12 15:40:39.000000000 +0200 -+++ openssh-5.4p1/ssh-gss.h 2010-03-13 00:39:22.400061752 +0100 -@@ -1,6 +1,6 @@ - /* $OpenBSD: ssh-gss.h,v 1.10 2007/06/12 08:20:00 djm Exp $ */ - /* -- * Copyright (c) 2001-2003 Simon Wilkinson. All rights reserved. -+ * Copyright (c) 2001-2009 Simon Wilkinson. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions -@@ -60,10 +60,22 @@ - - #define SSH_GSS_OIDTYPE 0x06 - -+#define SSH2_MSG_KEXGSS_INIT 30 -+#define SSH2_MSG_KEXGSS_CONTINUE 31 -+#define SSH2_MSG_KEXGSS_COMPLETE 32 -+#define SSH2_MSG_KEXGSS_HOSTKEY 33 -+#define SSH2_MSG_KEXGSS_ERROR 34 -+#define SSH2_MSG_KEXGSS_GROUPREQ 40 -+#define SSH2_MSG_KEXGSS_GROUP 41 -+#define KEX_GSS_GRP1_SHA1_ID "gss-group1-sha1-" -+#define KEX_GSS_GRP14_SHA1_ID "gss-group14-sha1-" -+#define KEX_GSS_GEX_SHA1_ID "gss-gex-sha1-" -+ - typedef struct { - char *filename; - char *envvar; - char *envval; -+ struct passwd *owner; - void *data; - } ssh_gssapi_ccache; - -@@ -71,8 +83,11 @@ - gss_buffer_desc displayname; - gss_buffer_desc exportedname; - gss_cred_id_t creds; -+ gss_name_t name; - struct ssh_gssapi_mech_struct *mech; - ssh_gssapi_ccache store; -+ int used; -+ int updated; - } ssh_gssapi_client; - - typedef struct ssh_gssapi_mech_struct { -@@ -83,6 +98,7 @@ - int (*userok) (ssh_gssapi_client *, char *); - int (*localname) (ssh_gssapi_client *, char **); - void (*storecreds) (ssh_gssapi_client *); -+ int (*updatecreds) (ssh_gssapi_ccache *, ssh_gssapi_client *); - } ssh_gssapi_mech; - - typedef struct { -@@ -93,10 +109,11 @@ - gss_OID oid; /* client */ - gss_cred_id_t creds; /* server */ - gss_name_t client; /* server */ -- gss_cred_id_t client_creds; /* server */ -+ gss_cred_id_t client_creds; /* both */ - } Gssctxt; - - extern ssh_gssapi_mech *supported_mechs[]; -+extern Gssctxt *gss_kex_context; - - int ssh_gssapi_check_oid(Gssctxt *, void *, size_t); - void ssh_gssapi_set_oid_data(Gssctxt *, void *, size_t); -@@ -116,16 +133,30 @@ - void ssh_gssapi_delete_ctx(Gssctxt **); - OM_uint32 ssh_gssapi_sign(Gssctxt *, gss_buffer_t, gss_buffer_t); - void ssh_gssapi_buildmic(Buffer *, const char *, const char *, const char *); --int ssh_gssapi_check_mechanism(Gssctxt **, gss_OID, const char *); -+int ssh_gssapi_check_mechanism(Gssctxt **, gss_OID, const char *, const char *); -+OM_uint32 ssh_gssapi_client_identity(Gssctxt *, const char *); -+int ssh_gssapi_credentials_updated(Gssctxt *); - - /* In the server */ -+typedef int ssh_gssapi_check_fn(Gssctxt **, gss_OID, const char *, -+ const char *); -+char *ssh_gssapi_client_mechanisms(const char *, const char *); -+char *ssh_gssapi_kex_mechs(gss_OID_set, ssh_gssapi_check_fn *, const char *, -+ const char *); -+gss_OID ssh_gssapi_id_kex(Gssctxt *, char *, int); -+int ssh_gssapi_server_check_mech(Gssctxt **,gss_OID, const char *, -+ const char *); - OM_uint32 ssh_gssapi_server_ctx(Gssctxt **, gss_OID); --int ssh_gssapi_userok(char *name); -+int ssh_gssapi_userok(char *name, struct passwd *); - OM_uint32 ssh_gssapi_checkmic(Gssctxt *, gss_buffer_t, gss_buffer_t); - void ssh_gssapi_do_child(char ***, u_int *); - void ssh_gssapi_cleanup_creds(void); - void ssh_gssapi_storecreds(void); - -+char *ssh_gssapi_server_mechanisms(void); -+int ssh_gssapi_oid_table_ok(); -+ -+int ssh_gssapi_update_creds(ssh_gssapi_ccache *store); - #endif /* GSSAPI */ - - #endif /* _SSH_GSS_H */ -diff -Nur openssh-5.4p1.orig/ssh_config openssh-5.4p1/ssh_config ---- openssh-5.4p1.orig/ssh_config 2010-01-12 09:40:27.000000000 +0100 -+++ openssh-5.4p1/ssh_config 2010-03-13 00:39:22.401981567 +0100 -@@ -26,6 +26,8 @@ - # HostbasedAuthentication no - # GSSAPIAuthentication no - # GSSAPIDelegateCredentials no -+# GSSAPIKeyExchange no -+# GSSAPITrustDNS no - # BatchMode no - # CheckHostIP yes - # AddressFamily any -diff -Nur openssh-5.4p1.orig/ssh_config.5 openssh-5.4p1/ssh_config.5 ---- openssh-5.4p1.orig/ssh_config.5 2010-03-05 11:31:12.000000000 +0100 -+++ openssh-5.4p1/ssh_config.5 2010-03-13 00:39:22.405912908 +0100 -@@ -478,11 +478,38 @@ - The default is - .Dq no . - Note that this option applies to protocol version 2 only. -+.It Cm GSSAPIKeyExchange -+Specifies whether key exchange based on GSSAPI may be used. When using -+GSSAPI key exchange the server need not have a host key. -+The default is -+.Dq no . -+Note that this option applies to protocol version 2 only. -+.It Cm GSSAPIClientIdentity -+If set, specifies the GSSAPI client identity that ssh should use when -+connecting to the server. The default is unset, which means that the default -+identity will be used. - .It Cm GSSAPIDelegateCredentials - Forward (delegate) credentials to the server. - The default is - .Dq no . --Note that this option applies to protocol version 2 only. -+Note that this option applies to protocol version 2 connections using GSSAPI. -+.It Cm GSSAPIRenewalForcesRekey -+If set to -+.Dq yes -+then renewal of the client's GSSAPI credentials will force the rekeying of the -+ssh connection. With a compatible server, this can delegate the renewed -+credentials to a session on the server. -+The default is -+.Dq no . -+.It Cm GSSAPITrustDns -+Set to -+.Dq yes to indicate that the DNS is trusted to securely canonicalize -+the name of the host being connected to. If -+.Dq no, the hostname entered on the -+command line will be passed untouched to the GSSAPI library. -+The default is -+.Dq no . -+This option only applies to protocol version 2 connections using GSSAPI. - .It Cm HashKnownHosts - Indicates that - .Xr ssh 1 -diff -Nur openssh-5.4p1.orig/sshconnect2.c openssh-5.4p1/sshconnect2.c ---- openssh-5.4p1.orig/sshconnect2.c 2010-02-26 21:55:06.000000000 +0100 -+++ openssh-5.4p1/sshconnect2.c 2010-03-13 00:39:22.414196262 +0100 -@@ -106,9 +106,34 @@ - { - Kex *kex; - -+#ifdef GSSAPI -+ char *orig = NULL, *gss = NULL; -+ char *gss_host = NULL; -+#endif -+ - xxx_host = host; - xxx_hostaddr = hostaddr; - -+#ifdef GSSAPI -+ if (options.gss_keyex) { -+ /* Add the GSSAPI mechanisms currently supported on this -+ * client to the key exchange algorithm proposal */ -+ orig = myproposal[PROPOSAL_KEX_ALGS]; -+ -+ if (options.gss_trust_dns) -+ gss_host = (char *)get_canonical_hostname(1); -+ else -+ gss_host = host; -+ -+ gss = ssh_gssapi_client_mechanisms(gss_host, options.gss_client_identity); -+ if (gss) { -+ debug("Offering GSSAPI proposal: %s", gss); -+ xasprintf(&myproposal[PROPOSAL_KEX_ALGS], -+ "%s,%s", gss, orig); -+ } -+ } -+#endif -+ - if (options.ciphers == (char *)-1) { - logit("No valid ciphers for protocol version 2 given, using defaults."); - options.ciphers = NULL; -@@ -136,6 +161,17 @@ - myproposal[PROPOSAL_SERVER_HOST_KEY_ALGS] = - options.hostkeyalgorithms; - -+#ifdef GSSAPI -+ /* If we've got GSSAPI algorithms, then we also support the -+ * 'null' hostkey, as a last resort */ -+ if (options.gss_keyex && gss) { -+ orig = myproposal[PROPOSAL_SERVER_HOST_KEY_ALGS]; -+ xasprintf(&myproposal[PROPOSAL_SERVER_HOST_KEY_ALGS], -+ "%s,null", orig); -+ xfree(gss); -+ } -+#endif -+ - if (options.rekey_limit) - packet_set_rekey_limit((u_int32_t)options.rekey_limit); - -@@ -145,10 +181,26 @@ - kex->kex[KEX_DH_GRP14_SHA1] = kexdh_client; - kex->kex[KEX_DH_GEX_SHA1] = kexgex_client; - kex->kex[KEX_DH_GEX_SHA256] = kexgex_client; -+#ifdef GSSAPI -+ if (options.gss_keyex) { -+ kex->kex[KEX_GSS_GRP1_SHA1] = kexgss_client; -+ kex->kex[KEX_GSS_GRP14_SHA1] = kexgss_client; -+ kex->kex[KEX_GSS_GEX_SHA1] = kexgss_client; -+ } -+#endif - kex->client_version_string=client_version_string; - kex->server_version_string=server_version_string; - kex->verify_host_key=&verify_host_key_callback; - -+#ifdef GSSAPI -+ if (options.gss_keyex) { -+ kex->gss_deleg_creds = options.gss_deleg_creds; -+ kex->gss_trust_dns = options.gss_trust_dns; -+ kex->gss_client = options.gss_client_identity; -+ kex->gss_host = gss_host; -+ } -+#endif -+ - xxx_kex = kex; - - dispatch_run(DISPATCH_BLOCK, &kex->done, kex); -@@ -243,6 +295,7 @@ - void input_gssapi_hash(int type, u_int32_t, void *); - void input_gssapi_error(int, u_int32_t, void *); - void input_gssapi_errtok(int, u_int32_t, void *); -+int userauth_gsskeyex(Authctxt *authctxt); - #endif - - void userauth(Authctxt *, char *); -@@ -258,6 +311,10 @@ - - Authmethod authmethods[] = { - #ifdef GSSAPI -+ {"gssapi-keyex", -+ userauth_gsskeyex, -+ &options.gss_authentication, -+ NULL}, - {"gssapi-with-mic", - userauth_gssapi, - NULL, -@@ -564,19 +621,29 @@ - static u_int mech = 0; - OM_uint32 min; - int ok = 0; -+ const char *gss_host; -+ -+ if (options.gss_trust_dns) -+ gss_host = get_canonical_hostname(1); -+ else -+ gss_host = authctxt->host; - - /* Try one GSSAPI method at a time, rather than sending them all at - * once. */ - - if (gss_supported == NULL) -- gss_indicate_mechs(&min, &gss_supported); -+ if (GSS_ERROR(gss_indicate_mechs(&min, &gss_supported))) { -+ gss_supported = NULL; -+ return 0; -+ } - - /* Check to see if the mechanism is usable before we offer it */ - while (mech < gss_supported->count && !ok) { - /* My DER encoding requires length<128 */ - if (gss_supported->elements[mech].length < 128 && - ssh_gssapi_check_mechanism(&gssctxt, -- &gss_supported->elements[mech], authctxt->host)) { -+ &gss_supported->elements[mech], gss_host, -+ options.gss_client_identity)) { - ok = 1; /* Mechanism works */ - } else { - mech++; -@@ -673,8 +740,8 @@ - { - Authctxt *authctxt = ctxt; - Gssctxt *gssctxt; -- int oidlen; -- char *oidv; -+ u_int oidlen; -+ u_char *oidv; - - if (authctxt == NULL) - fatal("input_gssapi_response: no authentication context"); -@@ -784,6 +851,48 @@ - xfree(msg); - xfree(lang); - } -+ -+int -+userauth_gsskeyex(Authctxt *authctxt) -+{ -+ Buffer b; -+ gss_buffer_desc gssbuf; -+ gss_buffer_desc mic = GSS_C_EMPTY_BUFFER; -+ OM_uint32 ms; -+ -+ static int attempt = 0; -+ if (attempt++ >= 1) -+ return (0); -+ -+ if (gss_kex_context == NULL) { -+ debug("No valid Key exchange context"); -+ return (0); -+ } -+ -+ ssh_gssapi_buildmic(&b, authctxt->server_user, authctxt->service, -+ "gssapi-keyex"); -+ -+ gssbuf.value = buffer_ptr(&b); -+ gssbuf.length = buffer_len(&b); -+ -+ if (GSS_ERROR(ssh_gssapi_sign(gss_kex_context, &gssbuf, &mic))) { -+ buffer_free(&b); -+ return (0); -+ } -+ -+ packet_start(SSH2_MSG_USERAUTH_REQUEST); -+ packet_put_cstring(authctxt->server_user); -+ packet_put_cstring(authctxt->service); -+ packet_put_cstring(authctxt->method->name); -+ packet_put_string(mic.value, mic.length); -+ packet_send(); -+ -+ buffer_free(&b); -+ gss_release_buffer(&ms, &mic); -+ -+ return (1); -+} -+ - #endif /* GSSAPI */ - - int -diff -Nur openssh-5.4p1.orig/sshd.c openssh-5.4p1/sshd.c ---- openssh-5.4p1.orig/sshd.c 2010-03-07 13:05:17.000000000 +0100 -+++ openssh-5.4p1/sshd.c 2010-03-13 00:39:22.423749423 +0100 -@@ -120,6 +120,10 @@ - #include "roaming.h" - #include "version.h" - -+#ifdef USE_SECURITY_SESSION_API -+#include -+#endif -+ - #ifdef LIBWRAP - #include - #include -@@ -1577,10 +1581,13 @@ - logit("Disabling protocol version 1. Could not load host key"); - options.protocol &= ~SSH_PROTO_1; - } -+#ifndef GSSAPI -+ /* The GSSAPI key exchange can run without a host key */ - if ((options.protocol & SSH_PROTO_2) && !sensitive_data.have_ssh2_key) { - logit("Disabling protocol version 2. Could not load host key"); - options.protocol &= ~SSH_PROTO_2; - } -+#endif - if (!(options.protocol & (SSH_PROTO_1|SSH_PROTO_2))) { - logit("sshd: no hostkeys available -- exiting."); - exit(1); -@@ -1909,6 +1916,60 @@ - /* Log the connection. */ - verbose("Connection from %.500s port %d", remote_ip, remote_port); - -+#ifdef USE_SECURITY_SESSION_API -+ /* -+ * Create a new security session for use by the new user login if -+ * the current session is the root session or we are not launched -+ * by inetd (eg: debugging mode or server mode). We do not -+ * necessarily need to create a session if we are launched from -+ * inetd because Panther xinetd will create a session for us. -+ * -+ * The only case where this logic will fail is if there is an -+ * inetd running in a non-root session which is not creating -+ * new sessions for us. Then all the users will end up in the -+ * same session (bad). -+ * -+ * When the client exits, the session will be destroyed for us -+ * automatically. -+ * -+ * We must create the session before any credentials are stored -+ * (including AFS pags, which happens a few lines below). -+ */ -+ { -+ OSStatus err = 0; -+ SecuritySessionId sid = 0; -+ SessionAttributeBits sattrs = 0; -+ -+ err = SessionGetInfo(callerSecuritySession, &sid, &sattrs); -+ if (err) -+ error("SessionGetInfo() failed with error %.8X", -+ (unsigned) err); -+ else -+ debug("Current Session ID is %.8X / Session Attributes are %.8X", -+ (unsigned) sid, (unsigned) sattrs); -+ -+ if (inetd_flag && !(sattrs & sessionIsRoot)) -+ debug("Running in inetd mode in a non-root session... " -+ "assuming inetd created the session for us."); -+ else { -+ debug("Creating new security session..."); -+ err = SessionCreate(0, sessionHasTTY | sessionIsRemote); -+ if (err) -+ error("SessionCreate() failed with error %.8X", -+ (unsigned) err); -+ -+ err = SessionGetInfo(callerSecuritySession, &sid, -+ &sattrs); -+ if (err) -+ error("SessionGetInfo() failed with error %.8X", -+ (unsigned) err); -+ else -+ debug("New Session ID is %.8X / Session Attributes are %.8X", -+ (unsigned) sid, (unsigned) sattrs); -+ } -+ } -+#endif -+ - /* - * We don't want to listen forever unless the other side - * successfully authenticates itself. So we set up an alarm which is -@@ -2287,12 +2348,61 @@ - - myproposal[PROPOSAL_SERVER_HOST_KEY_ALGS] = list_hostkey_types(); - -+#ifdef GSSAPI -+ { -+ char *orig; -+ char *gss = NULL; -+ char *newstr = NULL; -+ orig = myproposal[PROPOSAL_KEX_ALGS]; -+ -+ /* -+ * If we don't have a host key, then there's no point advertising -+ * the other key exchange algorithms -+ */ -+ -+ if (strlen(myproposal[PROPOSAL_SERVER_HOST_KEY_ALGS]) == 0) -+ orig = NULL; -+ -+ if (options.gss_keyex) -+ gss = ssh_gssapi_server_mechanisms(); -+ else -+ gss = NULL; -+ -+ if (gss && orig) -+ xasprintf(&newstr, "%s,%s", gss, orig); -+ else if (gss) -+ newstr = gss; -+ else if (orig) -+ newstr = orig; -+ -+ /* -+ * If we've got GSSAPI mechanisms, then we've got the 'null' host -+ * key alg, but we can't tell people about it unless its the only -+ * host key algorithm we support -+ */ -+ if (gss && (strlen(myproposal[PROPOSAL_SERVER_HOST_KEY_ALGS])) == 0) -+ myproposal[PROPOSAL_SERVER_HOST_KEY_ALGS] = "null"; -+ -+ if (newstr) -+ myproposal[PROPOSAL_KEX_ALGS] = newstr; -+ else -+ fatal("No supported key exchange algorithms"); -+ } -+#endif -+ - /* start key exchange */ - kex = kex_setup(myproposal); - kex->kex[KEX_DH_GRP1_SHA1] = kexdh_server; - kex->kex[KEX_DH_GRP14_SHA1] = kexdh_server; - kex->kex[KEX_DH_GEX_SHA1] = kexgex_server; - kex->kex[KEX_DH_GEX_SHA256] = kexgex_server; -+#ifdef GSSAPI -+ if (options.gss_keyex) { -+ kex->kex[KEX_GSS_GRP1_SHA1] = kexgss_server; -+ kex->kex[KEX_GSS_GRP14_SHA1] = kexgss_server; -+ kex->kex[KEX_GSS_GEX_SHA1] = kexgss_server; -+ } -+#endif - kex->server = 1; - kex->client_version_string=client_version_string; - kex->server_version_string=server_version_string; -diff -Nur openssh-5.4p1.orig/sshd_config openssh-5.4p1/sshd_config ---- openssh-5.4p1.orig/sshd_config 2009-10-11 12:51:09.000000000 +0200 -+++ openssh-5.4p1/sshd_config 2010-03-13 00:39:22.426530018 +0100 -@@ -71,6 +71,8 @@ - # GSSAPI options - #GSSAPIAuthentication no - #GSSAPICleanupCredentials yes -+#GSSAPIStrictAcceptorCheck yes -+#GSSAPIKeyExchange no - - # Set this to 'yes' to enable PAM authentication, account processing, - # and session processing. If this is enabled, PAM authentication will -diff -Nur openssh-5.4p1.orig/sshd_config.5 openssh-5.4p1/sshd_config.5 ---- openssh-5.4p1.orig/sshd_config.5 2010-03-05 00:41:45.000000000 +0100 -+++ openssh-5.4p1/sshd_config.5 2010-03-13 00:39:22.430994501 +0100 -@@ -379,12 +379,40 @@ - The default is - .Dq no . - Note that this option applies to protocol version 2 only. -+.It Cm GSSAPIKeyExchange -+Specifies whether key exchange based on GSSAPI is allowed. GSSAPI key exchange -+doesn't rely on ssh keys to verify host identity. -+The default is -+.Dq no . -+Note that this option applies to protocol version 2 only. - .It Cm GSSAPICleanupCredentials - Specifies whether to automatically destroy the user's credentials cache - on logout. - The default is - .Dq yes . - Note that this option applies to protocol version 2 only. -+.It Cm GSSAPIStrictAcceptorCheck -+Determines whether to be strict about the identity of the GSSAPI acceptor -+a client authenticates against. If -+.Dq yes -+then the client must authenticate against the -+.Pa host -+service on the current hostname. If -+.Dq no -+then the client may authenticate against any service key stored in the -+machine's default store. This facility is provided to assist with operation -+on multi homed machines. -+The default is -+.Dq yes . -+Note that this option applies only to protocol version 2 GSSAPI connections, -+and setting it to -+.Dq no -+may only work with recent Kerberos GSSAPI libraries. -+.It Cm GSSAPIStoreCredentialsOnRekey -+Controls whether the user's GSSAPI credentials should be updated following a -+successful connection rekeying. This option can be used to accepted renewed -+or updated credentials from a compatible client. The default is -+.Dq no . - .It Cm HostbasedAuthentication - Specifies whether rhosts or /etc/hosts.equiv authentication together - with successful public key client host authentication is allowed Copied: csw/mgar/pkg/openssh/trunk/files/openssh-5.6p1-gsskex-all-20100901.patch (from rev 10847, csw/mgar/pkg/openssh/trunk/files/openssh-5.4p1-gsskex-all-20100313.patch) =================================================================== --- csw/mgar/pkg/openssh/trunk/files/openssh-5.6p1-gsskex-all-20100901.patch (rev 0) +++ csw/mgar/pkg/openssh/trunk/files/openssh-5.6p1-gsskex-all-20100901.patch 2010-09-01 21:26:08 UTC (rev 10884) @@ -0,0 +1,2933 @@ +diff -Nur openssh-5.4p1.orig/ChangeLog.gssapi openssh-5.4p1/ChangeLog.gssapi +--- openssh-5.4p1.orig/ChangeLog.gssapi 1970-01-01 01:00:00.000000000 +0100 ++++ openssh-5.4p1/ChangeLog.gssapi 2010-03-13 00:39:22.276624764 +0100 +@@ -0,0 +1,95 @@ ++20090615 ++ - [ gss-genr.c gss-serv.c kexgssc.c kexgsss.c monitor.c sshconnect2.c ++ sshd.c ] ++ Fix issues identified by Greg Hudson following a code review ++ Check return value of gss_indicate_mechs ++ Protect GSSAPI calls in monitor, so they can only be used if enabled ++ Check return values of bignum functions in key exchange ++ Use BN_clear_free to clear other side's DH value ++ Make ssh_gssapi_id_kex more robust ++ Only configure kex table pointers if GSSAPI is enabled ++ Don't leak mechanism list, or gss mechanism list ++ Cast data.length before printing ++ If serverkey isn't provided, use an empty string, rather than NULL ++ ++20090201 ++ - [ gss-genr.c gss-serv.c kex.h kexgssc.c readconf.c readconf.h ssh-gss.h ++ ssh_config.5 sshconnet2.c ] ++ Add support for the GSSAPIClientIdentity option, which allows the user ++ to specify which GSSAPI identity to use to contact a given server ++ ++20080404 ++ - [ gss-serv.c ] ++ Add code to actually implement GSSAPIStrictAcceptCheck, which had somehow ++ been omitted from a previous version of this patch. Reported by Borislav ++ Stoichkov ++ ++20070317 ++ - [ gss-serv-krb5.c ] ++ Remove C99ism, where new_ccname was being declared in the middle of a ++ function ++ ++20061220 ++ - [ servconf.c ] ++ Make default for GSSAPIStrictAcceptorCheck be Yes, to match previous, and ++ documented, behaviour. Reported by Dan Watson. ++ ++20060910 ++ - [ gss-genr.c kexgssc.c kexgsss.c kex.h monitor.c sshconnect2.c sshd.c ++ ssh-gss.h ] ++ add support for gss-group14-sha1 key exchange mechanisms ++ - [ gss-serv.c servconf.c servconf.h sshd_config sshd_config.5 ] ++ Add GSSAPIStrictAcceptorCheck option to allow the disabling of ++ acceptor principal checking on multi-homed machines. ++ ++ - [ sshd_config ssh_config ] ++ Add settings for GSSAPIKeyExchange and GSSAPITrustDNS to the sample ++ configuration files ++ - [ kexgss.c kegsss.c sshconnect2.c sshd.c ] ++ Code cleanup. Replace strlen/xmalloc/snprintf sequences with xasprintf() ++ Limit length of error messages displayed by client ++ ++20060909 ++ - [ gss-genr.c gss-serv.c ] ++ move ssh_gssapi_acquire_cred() and ssh_gssapi_server_ctx to be server ++ only, where they belong ++ ++ ++20060829 ++ - [ gss-serv-krb5.c ] ++ Fix CCAPI credentials cache name when creating KRB5CCNAME environment ++ variable ++ ++20060828 ++ - [ gss-genr.c ] ++ Avoid Heimdal context freeing problem ++ ++ ++20060818 ++ - [ gss-genr.c ssh-gss.h sshconnect2.c ] ++ Make sure that SPENGO is disabled ++ ++ ++20060421 ++ - [ gssgenr.c, sshconnect2.c ] ++ a few type changes (signed versus unsigned, int versus size_t) to ++ fix compiler errors/warnings ++ (from jbasney AT ncsa.uiuc.edu) ++ - [ kexgssc.c, sshconnect2.c ] ++ fix uninitialized variable warnings ++ (from jbasney AT ncsa.uiuc.edu) ++ - [ gssgenr.c ] ++ pass oid to gss_display_status (helpful when using GSSAPI mechglue) ++ (from jbasney AT ncsa.uiuc.edu) ++ ++ - [ gss-serv-krb5.c ] ++ #ifdef HAVE_GSSAPI_KRB5 should be #ifdef HAVE_GSSAPI_KRB5_H @@ Diff output truncated at 100000 characters. @@ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From wahwah at users.sourceforge.net Wed Sep 1 23:36:04 2010 From: wahwah at users.sourceforge.net (wahwah at users.sourceforge.net) Date: Wed, 01 Sep 2010 21:36:04 +0000 Subject: [csw-devel] SF.net SVN: gar:[10885] csw/mgar/gar/v2/lib/python Message-ID: Revision: 10885 http://gar.svn.sourceforge.net/gar/?rev=10885&view=rev Author: wahwah Date: 2010-09-01 21:36:04 +0000 (Wed, 01 Sep 2010) Log Message: ----------- mGAR v2: checkpkg, better handling of the deprecated libraries error. Modified Paths: -------------- csw/mgar/gar/v2/lib/python/checkpkg.py csw/mgar/gar/v2/lib/python/checkpkg_test.py csw/mgar/gar/v2/lib/python/dependency_checks.py csw/mgar/gar/v2/lib/python/dependency_checks_test.py csw/mgar/gar/v2/lib/python/package_checks_test.py Added Paths: ----------- csw/mgar/gar/v2/lib/python/testdata/apr_util_stats.py Modified: csw/mgar/gar/v2/lib/python/checkpkg.py =================================================================== --- csw/mgar/gar/v2/lib/python/checkpkg.py 2010-09-01 21:26:08 UTC (rev 10884) +++ csw/mgar/gar/v2/lib/python/checkpkg.py 2010-09-01 21:36:04 UTC (rev 10885) @@ -695,7 +695,8 @@ return self.runpath_sanitize_cache[runpath] - def ResolveSoname(self, runpath_list, soname, isalist, path_list, binary_path): + def ResolveSoname(self, runpath_list, soname, isalist, + path_list, binary_path): """Emulates ldd behavior, minimal implementation. runpath: e.g. ["/opt/csw/lib/$ISALIST", "/usr/lib"] @@ -717,8 +718,9 @@ # in the path_list. for expanded_p in expanded_p_list: original_paths_by_expanded_paths[expanded_p] = p - # logging.debug("%s: looking for %s in %s", - # soname, runpath_list, original_paths_by_expanded_paths.keys()) + logging.debug( + "%s: looking for %s in %s", + soname, runpath_list, original_paths_by_expanded_paths.keys()) for runpath_expanded in runpath_list: if runpath_expanded in original_paths_by_expanded_paths: # logging.debug("Found %s", Modified: csw/mgar/gar/v2/lib/python/checkpkg_test.py =================================================================== --- csw/mgar/gar/v2/lib/python/checkpkg_test.py 2010-09-01 21:26:08 UTC (rev 10884) +++ csw/mgar/gar/v2/lib/python/checkpkg_test.py 2010-09-01 21:36:04 UTC (rev 10885) @@ -463,5 +463,23 @@ self.assertTrue(expected, checkpkg.SliceList(l, s)) +class LddEmulartorUnitTest(unittest.TestCase): + + def setUp(self): + self.pkgmap_mocker = mox.Mox() + self.e = checkpkg.LddEmulator() + + def testResolveSoname_1(self): + # runpath_list, soname, isalist, path_list, binary_path + runpath_list = ["/opt/csw/bdb47/lib", "/opt/csw/lib"] + soname = "foo.so.1" + path_list = ["/opt/csw/lib", "/opt/csw/bdb47/lib", "/usr/lib"] + binary_path = "unused" + isalist = ["amd64"] + result = self.e.ResolveSoname(runpath_list, soname, isalist, + path_list, binary_path) + self.assertEqual("/opt/csw/bdb47/lib", result) + + if __name__ == '__main__': unittest.main() Modified: csw/mgar/gar/v2/lib/python/dependency_checks.py =================================================================== --- csw/mgar/gar/v2/lib/python/dependency_checks.py 2010-09-01 21:26:08 UTC (rev 10884) +++ csw/mgar/gar/v2/lib/python/dependency_checks.py 2010-09-01 21:36:04 UTC (rev 10885) @@ -30,6 +30,77 @@ PREFERRED_DIRECTORY_PROVIDERS = set([u"CSWcommon"]) +def ProcessSoname( + ldd_emulator, + soname, path_and_pkg_by_basename, binary_info, isalist, binary_path, logger, + error_mgr, + pkgname, messenger): + """This is not an ideal name for a function. + + Returns: + orphan_sonames + """ + orphan_sonames = [] + required_deps = [] + resolved = False + path_list = path_and_pkg_by_basename[soname].keys() + runpath_tuple = ( + tuple(binary_info["runpath"]) + + tuple(checkpkg.SYS_DEFAULT_RUNPATH)) + runpath_history = [] + alternative_deps = set() + first_lib = None + for runpath in runpath_tuple: + runpath = ldd_emulator.SanitizeRunpath(runpath) + runpath_list = ldd_emulator.ExpandRunpath(runpath, isalist, binary_path) + runpath_list = ldd_emulator.Emulate64BitSymlinks(runpath_list) + # To accumulate all the runpaths that we were looking at + runpath_history += runpath_list + resolved_path = ldd_emulator.ResolveSoname(runpath_list, + soname, + isalist, + path_list, + binary_path) + if resolved_path: + resolved = True + req_pkgs = path_and_pkg_by_basename[soname][resolved_path] + reason = ("provides %s/%s needed by %s" + % (resolved_path, soname, binary_info["path"])) + # Looking for deprecated libraries. However, only alerting if the + # deprecated library is the first one found in the RPATH. For example, + # libdb-4.7.so is found in CSWbdb and CSWbdb47, and it's important to + # throw an error if the RPATH is ("/opt/csw/lib", "/opt/csw/bdb47/lib"), + # and not to throw an error if RPATH is ("/opt/csw/bdb47/lib", + # "/opt/csw/lib") + if not first_lib: + first_lib = (resolved_path, soname) + for bad_path, bad_soname, msg in DEPRECATED_LIBRARY_LOCATIONS: + if resolved_path == bad_path and soname == bad_soname: + logger.debug("Bad lib found: %s/%s", bad_path, bad_soname) + error_mgr.ReportError( + pkgname, + "deprecated-library", + ("%s %s %s/%s" + % (binary_info["path"], msg, resolved_path, soname))) + for req_pkg in req_pkgs: + alternative_deps.add((req_pkg, reason)) + required_deps.append(list(alternative_deps)) + if not resolved: + orphan_sonames.append((soname, binary_info["path"])) + if path_list: + path_msg = "was available at the following paths: %s." % path_list + else: + path_msg = ("was not present on the filesystem, " + "nor in the packages under examination.") + if soname not in ALLOWED_ORPHAN_SONAMES: + messenger.Message( + "%s could not be resolved for %s, with rpath %s, expanded to %s, " + "while the file %s" + % (soname, binary_info["path"], + runpath_tuple, runpath_history, path_msg)) + return orphan_sonames, required_deps + + def Libraries(pkg_data, error_mgr, logger, messenger, path_and_pkg_by_basename, pkg_by_path): """Checks shared libraries. @@ -49,66 +120,20 @@ """ pkgname = pkg_data["basic_stats"]["pkgname"] logger.debug("Libraries(): pkgname = %s", repr(pkgname)) + isalist = pkg_data["isalist"] + ldd_emulator = checkpkg.LddEmulator() orphan_sonames = [] required_deps = [] - isalist = pkg_data["isalist"] - ldd_emulator = checkpkg.LddEmulator() for binary_info in pkg_data["binaries_dump_info"]: binary_path, binary_basename = os.path.split(binary_info["path"]) for soname in binary_info["needed sonames"]: - resolved = False - path_list = path_and_pkg_by_basename[soname].keys() - # logger.debug("%s @ %s: looking for %s in %s", - # soname, - # binary_info["path"], - # binary_info["runpath"], - # path_list) - runpath_tuple = (tuple(binary_info["runpath"]) - + tuple(checkpkg.SYS_DEFAULT_RUNPATH)) - runpath_history = [] - alternative_deps = set() - for runpath in runpath_tuple: - runpath = ldd_emulator.SanitizeRunpath(runpath) - runpath_list = ldd_emulator.ExpandRunpath(runpath, isalist, binary_path) - runpath_list = ldd_emulator.Emulate64BitSymlinks(runpath_list) - # To accumulate all the runpaths that we were looking at - runpath_history += runpath_list - resolved_path = ldd_emulator.ResolveSoname(runpath_list, - soname, - isalist, - path_list, - binary_path) - if resolved_path: - resolved = True - req_pkgs = path_and_pkg_by_basename[soname][resolved_path] - reason = ("provides %s/%s needed by %s" - % (resolved_path, soname, binary_info["path"])) - # Looking for deprecated libraries. - for bad_path, bad_soname, msg in DEPRECATED_LIBRARY_LOCATIONS: - if resolved_path == bad_path and soname == bad_soname: - logger.debug("Bad lib found: %s/%s", bad_path, bad_soname) - error_mgr.ReportError( - pkgname, - "deprecated-library", - ("%s %s %s/%s" - % (binary_info["path"], msg, resolved_path, soname))) - for req_pkg in req_pkgs: - alternative_deps.add((req_pkg, reason)) - # print "alternative_deps:", alternative_deps - required_deps.append(list(alternative_deps)) - if not resolved: - orphan_sonames.append((soname, binary_info["path"])) - if path_list: - path_msg = "was available at the following paths: %s." % path_list - else: - path_msg = ("was not present on the filesystem, " - "nor in the packages under examination.") - if soname not in ALLOWED_ORPHAN_SONAMES: - messenger.Message( - "%s could not be resolved for %s, with rpath %s, expanded to %s, " - "while the file %s" - % (soname, binary_info["path"], - runpath_tuple, runpath_history, path_msg)) + orphan_sonames_tmp, required_deps_tmp = ProcessSoname( + ldd_emulator, + soname, path_and_pkg_by_basename, binary_info, isalist, binary_path, logger, + error_mgr, + pkgname, messenger) + orphan_sonames.extend(orphan_sonames_tmp) + required_deps.extend(required_deps_tmp) orphan_sonames = set(orphan_sonames) for soname, binary_path in orphan_sonames: if soname not in ALLOWED_ORPHAN_SONAMES: Modified: csw/mgar/gar/v2/lib/python/dependency_checks_test.py =================================================================== --- csw/mgar/gar/v2/lib/python/dependency_checks_test.py 2010-09-01 21:26:08 UTC (rev 10884) +++ csw/mgar/gar/v2/lib/python/dependency_checks_test.py 2010-09-01 21:36:04 UTC (rev 10885) @@ -325,7 +325,9 @@ checkpkg.SetCheckInterface) self.pkg_data = copy.deepcopy(sudo_stats) - def testOne(self): + def testLibrariesRpathOrder(self): + # pkg_data, error_mgr, logger, messenger, path_and_pkg_by_basename, + # pkg_by_path pass Modified: csw/mgar/gar/v2/lib/python/package_checks_test.py =================================================================== --- csw/mgar/gar/v2/lib/python/package_checks_test.py 2010-09-01 21:26:08 UTC (rev 10884) +++ csw/mgar/gar/v2/lib/python/package_checks_test.py 2010-09-01 21:36:04 UTC (rev 10885) @@ -466,6 +466,66 @@ self.pkg_data = [self.pkg_data] +class TestDeprecatedLibraries_GoodRpath(CheckpkgUnitTestHelper, unittest.TestCase): + FUNCTION_NAME = 'SetCheckLibraries' + def CheckpkgTest(self): + binaries_dump_info = self.pkg_data["binaries_dump_info"] + binaries_dump_info[0]["runpath"] = ("/opt/csw/bdb47/lib", "/opt/csw/lib",) + binaries_dump_info[0]["needed sonames"] = ["libdb-4.7.so"] + self.pkg_data["depends"] = (("CSWbad", None),(u"CSWcommon", "")) + self.pkg_data["binaries_dump_info"] = binaries_dump_info[0:1] + self.error_mgr_mock.GetPathsAndPkgnamesByBasename('libdb-4.7.so').AndReturn({ + u'/opt/csw/bdb47/lib': [u'CSWbad'], + u'/opt/csw/bdb47lib/sparcv9': [u'CSWbad'], + u'/opt/csw/lib': [u'CSWgood'], + u'/opt/csw/lib/sparcv9': [u'CSWgood'], + }) + self.error_mgr_mock.GetPkgByPath( + '/opt/csw/share/man').AndReturn(["CSWcommon"]) + self.error_mgr_mock.GetPkgByPath( + '/opt/csw/bin').AndReturn(["CSWcommon"]) + self.error_mgr_mock.GetPkgByPath( + '/opt/csw/bin/sparcv8').AndReturn(["CSWcommon"]) + self.error_mgr_mock.GetPkgByPath( + '/opt/csw/bin/sparcv9').AndReturn(["CSWcommon"]) + self.error_mgr_mock.GetPkgByPath( + '/opt/csw/share/doc').AndReturn(["CSWcommon"]) + # There should be no error here, since /opt/csw/bdb47/lib is first in the RPATH. + self.pkg_data = [self.pkg_data] + + +class TestDeprecatedLibraries_BadRpath(CheckpkgUnitTestHelper, unittest.TestCase): + FUNCTION_NAME = 'SetCheckLibraries' + def CheckpkgTest(self): + binaries_dump_info = self.pkg_data["binaries_dump_info"] + binaries_dump_info[0]["runpath"] = ("/opt/csw/lib", "/opt/csw/bdb47/lib",) + binaries_dump_info[0]["needed sonames"] = ["libdb-4.7.so"] + self.pkg_data["depends"] = (("CSWbad", None),(u"CSWcommon", "")) + self.pkg_data["binaries_dump_info"] = binaries_dump_info[0:1] + self.error_mgr_mock.GetPathsAndPkgnamesByBasename('libdb-4.7.so').AndReturn({ + u'/opt/csw/bdb47/lib': [u'CSWbad'], + u'/opt/csw/bdb47lib/sparcv9': [u'CSWbad'], + u'/opt/csw/lib': [u'CSWgood'], + u'/opt/csw/lib/sparcv9': [u'CSWgood'], + }) + self.error_mgr_mock.GetPkgByPath( + '/opt/csw/share/man').AndReturn(["CSWcommon"]) + self.error_mgr_mock.GetPkgByPath( + '/opt/csw/bin').AndReturn(["CSWcommon"]) + self.error_mgr_mock.GetPkgByPath( + '/opt/csw/bin/sparcv8').AndReturn(["CSWcommon"]) + self.error_mgr_mock.GetPkgByPath( + '/opt/csw/bin/sparcv9').AndReturn(["CSWcommon"]) + self.error_mgr_mock.GetPkgByPath( + '/opt/csw/share/doc').AndReturn(["CSWcommon"]) + self.error_mgr_mock.ReportError( + 'CSWrsync', + 'deprecated-library', + u'opt/csw/bin/sparcv8/rsync Deprecated Berkeley DB location ' + u'/opt/csw/lib/libdb-4.7.so') + self.pkg_data = [self.pkg_data] + + class TestSetCheckLibmLinking(CheckpkgUnitTestHelper, unittest.TestCase): FUNCTION_NAME = 'SetCheckLibraries' def CheckpkgTest(self): Added: csw/mgar/gar/v2/lib/python/testdata/apr_util_stats.py =================================================================== --- csw/mgar/gar/v2/lib/python/testdata/apr_util_stats.py (rev 0) +++ csw/mgar/gar/v2/lib/python/testdata/apr_util_stats.py 2010-09-01 21:36:04 UTC (rev 10885) @@ -0,0 +1,605 @@ +import datetime +pkgstats = [{'bad_paths': {}, + 'basic_stats': {'catalogname': 'apr_util', + 'md5_sum': 'e19f2b377884db51cc20a88ff06c8eb7', + 'parsed_basename': {'arch': 'sparc', + 'catalogname': 'apr_util', + 'full_version_string': '1.3.9,REV=2010.08.27', + 'osrel': 'SunOS5.9', + 'revision_info': {'REV': '2010.08.27'}, + 'vendortag': 'CSW', + 'version': '1.3.9', + 'version_info': {'major version': '1', + 'minor version': '3', + 'patchlevel': '9'}}, + 'pkg_basename': 'apr_util-1.3.9,REV=2010.08.27-SunOS5.9-sparc-CSW.pkg.gz', + 'pkg_path': '/tmp/pkg_bKg13A/apr_util-1.3.9,REV=2010.08.27-SunOS5.9-sparc-CSW.pkg.gz', + 'pkgname': 'CSWar-util', + 'stats_version': 9L}, + 'binaries': ['opt/csw/lib/apr-util-1/apr_dbd_odbc-1.so', + 'opt/csw/lib/apr-util-1/apr_dbd_sqlite3-1.so', + 'opt/csw/lib/apr-util-1/apr_dbm_db-1.so', + 'opt/csw/lib/apr-util-1/apr_ldap-1.so', + 'opt/csw/lib/libaprutil-1.so.0.3.9'], + 'binaries_dump_info': [{'RPATH set': True, + 'RUNPATH RPATH the same': True, + 'RUNPATH set': True, + 'base_name': 'apr_dbd_odbc-1.so', + 'needed sonames': ('libodbc.so.1', 'libc.so.1'), + 'path': 'opt/csw/lib/apr-util-1/apr_dbd_odbc-1.so', + 'runpath': ('/opt/csw/bdb47/lib', '/opt/csw/lib'), + 'soname': 'apr_dbd_odbc-1.so'}, + {'RPATH set': True, + 'RUNPATH RPATH the same': True, + 'RUNPATH set': True, + 'base_name': 'apr_dbd_sqlite3-1.so', + 'needed sonames': ('libsqlite3.so.0', + 'libc.so.1'), + 'path': 'opt/csw/lib/apr-util-1/apr_dbd_sqlite3-1.so', + 'runpath': ('/opt/csw/bdb47/lib', '/opt/csw/lib'), + 'soname': 'apr_dbd_sqlite3-1.so'}, + {'RPATH set': True, + 'RUNPATH RPATH the same': True, + 'RUNPATH set': True, + 'base_name': 'apr_dbm_db-1.so', + 'needed sonames': ('libdb-4.7.so', 'libc.so.1'), + 'path': 'opt/csw/lib/apr-util-1/apr_dbm_db-1.so', + 'runpath': ('/opt/csw/bdb47/lib', '/opt/csw/lib'), + 'soname': 'apr_dbm_db-1.so'}, + {'RPATH set': True, + 'RUNPATH RPATH the same': True, + 'RUNPATH set': True, + 'base_name': 'apr_ldap-1.so', + 'needed sonames': ('libldap-2.4.so.2', + 'libgen.so.1', + 'libnet.so', + 'libsasl2.so.2', + 'libdl.so.1', + 'libnsl.so.1', + 'libresolv.so.2', + 'libsocket.so.1', + 'libssl.so.0.9.8', + 'libcrypto.so.0.9.8', + 'liblber-2.4.so.2', + 'libc.so.1'), + 'path': 'opt/csw/lib/apr-util-1/apr_ldap-1.so', + 'runpath': ('/opt/csw/bdb47/lib', '/opt/csw/lib'), + 'soname': 'apr_ldap-1.so'}, + {'RPATH set': True, + 'RUNPATH RPATH the same': True, + 'RUNPATH set': True, + 'base_name': 'libaprutil-1.so.0.3.9', + 'needed sonames': ('libexpat.so.1', + 'libiconv.so.2', + 'libapr-1.so.0', + 'libuuid.so.1', + 'libsendfile.so.1', + 'librt.so.1', + 'libsocket.so.1', + 'libnsl.so.1', + 'libpthread.so.1', + 'libdl.so.1', + 'libc.so.1'), + 'path': 'opt/csw/lib/libaprutil-1.so.0.3.9', + 'runpath': ('/opt/csw/bdb47/lib', '/opt/csw/lib'), + 'soname': 'libaprutil-1.so.0'}], + 'depends': [('CSWcommon', + 'CSWcommon common - common files and dirs for CSW packages '), + ('CSWapr', 'CSWapr apr - Apache Portable Runtime '), + ('CSWiconv', 'CSWiconv libiconv - GNU iconv library '), + ('CSWsqlite3rt', + 'CSWsqlite3rt sqlite3_rt - An embeddable SQL engine in a C library runtime '), + ('CSWunixodbc', + 'CSWunixodbc unixodbc - ODBC drivers for Unix systems '), + ('CSWexpat', 'CSWexpat expat - XML Parser Toolkit '), + ('CSWbdb47', + 'CSWbdb47 berkeleydb47 - BerkeleyDB 4.7 embedded database libraries and utilities '), + ('CSWoldaprt', + 'CSWoldaprt openldap_rt - OpenLDAP runtime libraries '), + ('CSWosslrt', + 'CSWosslrt openssl_rt - Openssl runtime libraries '), + ('CSWsasl', + 'CSWsasl sasl - Simple Authentication and Security Layer '), + ('CSWlibnet', + 'CSWlibnet libnet - the libnet packet construction library ')], + 'files_metadata': [{'mime_type': 'text/x-c; charset=us-ascii', + 'path': 'opt/csw/include/apr_ldap_option.h'}, + {'mime_type': 'text/x-c; charset=us-ascii', + 'path': 'opt/csw/include/apr_memcache.h'}, + {'mime_type': 'text/x-c; charset=us-ascii', + 'path': 'opt/csw/include/apr_dbd.h'}, + {'mime_type': 'text/x-c; charset=us-ascii', + 'path': 'opt/csw/include/apr_sdbm.h'}, + {'mime_type': 'text/x-c; charset=us-ascii', + 'path': 'opt/csw/include/apu_want.h'}, + {'mime_type': 'text/x-c; charset=us-ascii', + 'path': 'opt/csw/include/apr_rmm.h'}, + {'mime_type': 'text/x-c; charset=us-ascii', + 'path': 'opt/csw/include/apr_uri.h'}, + {'mime_type': 'text/x-c; charset=us-ascii', + 'path': 'opt/csw/include/apr_ldap_rebind.h'}, + {'mime_type': 'text/x-c; charset=us-ascii', + 'path': 'opt/csw/include/apr_ldap_url.h'}, + {'mime_type': 'text/x-c; charset=us-ascii', + 'path': 'opt/csw/include/apr_reslist.h'}, + {'mime_type': 'text/x-c; charset=us-ascii', + 'path': 'opt/csw/include/apr_anylock.h'}, + {'mime_type': 'text/x-c; charset=us-ascii', + 'path': 'opt/csw/include/apr_date.h'}, + {'mime_type': 'text/x-c; charset=us-ascii', + 'path': 'opt/csw/include/apr_thread_pool.h'}, + {'mime_type': 'text/x-c; charset=us-ascii', + 'path': 'opt/csw/include/apr_hooks.h'}, + {'mime_type': 'text/x-c; charset=us-ascii', + 'path': 'opt/csw/include/apr_dbm.h'}, + {'mime_type': 'text/x-c; charset=us-ascii', + 'path': 'opt/csw/include/apr_optional.h'}, + {'mime_type': 'text/x-c; charset=us-ascii', + 'path': 'opt/csw/include/apr_strmatch.h'}, + {'mime_type': 'text/x-c; charset=us-ascii', + 'path': 'opt/csw/include/apr_queue.h'}, + {'mime_type': 'text/x-c; charset=us-ascii', + 'path': 'opt/csw/include/apr_base64.h'}, + {'mime_type': 'text/x-c; charset=us-ascii', + 'path': 'opt/csw/include/apr_ldap.h'}, + {'mime_type': 'text/x-c; charset=us-ascii', + 'path': 'opt/csw/include/apr_ldap_init.h'}, + {'mime_type': 'text/x-c; charset=us-ascii', + 'path': 'opt/csw/include/apr_optional_hooks.h'}, + {'mime_type': 'text/x-c; charset=us-ascii', + 'path': 'opt/csw/include/apr_sha1.h'}, + {'mime_type': 'text/x-c; charset=us-ascii', + 'path': 'opt/csw/include/apr_uuid.h'}, + {'mime_type': 'text/x-c; charset=us-ascii', + 'path': 'opt/csw/include/apr_xml.h'}, + {'mime_type': 'text/x-c; charset=us-ascii', + 'path': 'opt/csw/include/apr_xlate.h'}, + {'mime_type': 'text/x-c; charset=us-ascii', + 'path': 'opt/csw/include/apu.h'}, + {'mime_type': 'text/x-c; charset=us-ascii', + 'path': 'opt/csw/include/apr_md5.h'}, + {'mime_type': 'text/x-c; charset=us-ascii', + 'path': 'opt/csw/include/apu_version.h'}, + {'mime_type': 'text/x-c; charset=us-ascii', + 'path': 'opt/csw/include/apr_md4.h'}, + {'mime_type': 'text/x-c; charset=us-ascii', + 'path': 'opt/csw/include/apr_buckets.h'}, + {'mime_type': 'text/plain; charset=us-ascii', + 'path': 'opt/csw/lib/aprutil.exp'}, + {'endian': 'Big endian', + 'machine_id': 2, + 'mime_type': 'application/x-sharedlib; charset=binary', + 'mime_type_by_hachoir': u'application/x-executable', + 'path': 'opt/csw/lib/libaprutil-1.so.0.3.9'}, + {'mime_type': 'text/plain; charset=us-ascii', + 'path': 'opt/csw/lib/pkgconfig/apr-util-1.pc'}, + {'endian': 'Big endian', + 'machine_id': 2, + 'mime_type': 'application/x-sharedlib; charset=binary', + 'mime_type_by_hachoir': u'application/x-executable', + 'path': 'opt/csw/lib/apr-util-1/apr_dbd_sqlite3-1.so'}, + {'endian': 'Big endian', + 'machine_id': 2, + 'mime_type': 'application/x-sharedlib; charset=binary', + 'mime_type_by_hachoir': u'application/x-executable', + 'path': 'opt/csw/lib/apr-util-1/apr_ldap-1.so'}, + {'endian': 'Big endian', + 'machine_id': 2, + 'mime_type': 'application/x-sharedlib; charset=binary', + 'mime_type_by_hachoir': u'application/x-executable', + 'path': 'opt/csw/lib/apr-util-1/apr_dbd_odbc-1.so'}, + {'endian': 'Big endian', + 'machine_id': 2, + 'mime_type': 'application/x-sharedlib; charset=binary', + 'mime_type_by_hachoir': u'application/x-executable', + 'path': 'opt/csw/lib/apr-util-1/apr_dbm_db-1.so'}, + {'mime_type': 'text/plain; charset=us-ascii', + 'path': 'opt/csw/share/doc/apr_util/license'}, + {'mime_type': 'text/x-shellscript; charset=us-ascii', + 'path': 'opt/csw/bin/apu-1-config'}], + 'isalist': ('sparcv9+vis2', + 'sparcv9+vis', + 'sparcv9', + 'sparcv8plus+vis2', + 'sparcv8plus+vis', + 'sparcv8plus', + 'sparcv8', + 'sparcv8-fsmuld', + 'sparcv7', + 'sparc'), + 'mtime': datetime.datetime(2010, 8, 27, 11, 0, 10), + 'overrides': [], + 'pkgchk': {'return_code': 0, + 'stderr_lines': ['rm: Cannot remove any directory in the path of the current working directory', + '/var/tmp/aaaIGaO6g/CSWar-util'], + 'stdout_lines': ['Checking uninstalled stream format package from ', + '## Checking control scripts.', + '## Checking package objects.', + '## Checking is complete.']}, + 'pkginfo': {'ARCH': 'sparc', + 'CATEGORY': 'application', + 'CLASSES': 'none', + 'EMAIL': 'maciej at opencsw.org', + 'HOTLINE': 'http://www.opencsw.org/bugtrack/', + 'NAME': 'apr_util - Apache Portable Runtime Utilities', + 'OPENCSW_BUNDLE': 'apr-util', + 'OPENCSW_CATALOGNAME': 'apr_util', + 'OPENCSW_MODE64': '32', + 'OPENCSW_REPOSITORY': 'https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/pkg/apr-util/trunk at 10822', + 'PKG': 'CSWar-util', + 'PSTAMP': 'maciej at testing9s-20100827130000', + 'VENDOR': 'http://apache.crihan.fr/dist/apr/ packaged for CSW by Maciej Blizinski', + 'VERSION': '1.3.9,REV=2010.08.27', + 'WORKDIR_FIRSTMOD': '../build-isa-sparcv8'}, + 'pkgmap': [{'class': None, + 'group': None, + 'line': ': 1 0', + 'mode': None, + 'path': None, + 'type': '1', + 'user': None}, + {'class': 'none', + 'group': 'bin', + 'line': '1 f none /opt/csw/bin/apu-1-config 0755 root bin 6437 35894 1282906794', + 'mode': '0755', + 'path': '/opt/csw/bin/apu-1-config', + 'type': 'f', + 'user': 'root'}, + {'class': 'none', + 'group': 'bin', + 'line': '1 f none /opt/csw/include/apr_anylock.h 0644 root bin 5050 35768 1282906791', + 'mode': '0644', + 'path': '/opt/csw/include/apr_anylock.h', + 'type': 'f', + 'user': 'root'}, + {'class': 'none', + 'group': 'bin', + 'line': '1 f none /opt/csw/include/apr_base64.h 0644 root bin 3823 57460 1282906791', + 'mode': '0644', + 'path': '/opt/csw/include/apr_base64.h', + 'type': 'f', + 'user': 'root'}, + {'class': 'none', + 'group': 'bin', + 'line': '1 f none /opt/csw/include/apr_buckets.h 0644 root bin 60020 64941 1282906791', + 'mode': '0644', + 'path': '/opt/csw/include/apr_buckets.h', + 'type': 'f', + 'user': 'root'}, + {'class': 'none', + 'group': 'bin', + 'line': '1 f none /opt/csw/include/apr_date.h 0644 root bin 3554 13649 1282906791', + 'mode': '0644', + 'path': '/opt/csw/include/apr_date.h', + 'type': 'f', + 'user': 'root'}, + {'class': 'none', + 'group': 'bin', + 'line': '1 f none /opt/csw/include/apr_dbd.h 0644 root bin 24093 4453 1282906791', + 'mode': '0644', + 'path': '/opt/csw/include/apr_dbd.h', + 'type': 'f', + 'user': 'root'}, + {'class': 'none', + 'group': 'bin', + 'line': '1 f none /opt/csw/include/apr_dbm.h 0644 root bin 8599 26734 1282906791', + 'mode': '0644', + 'path': '/opt/csw/include/apr_dbm.h', + 'type': 'f', + 'user': 'root'}, + {'class': 'none', + 'group': 'bin', + 'line': '1 f none /opt/csw/include/apr_hooks.h 0644 root bin 8585 47295 1282906791', + 'mode': '0644', + 'path': '/opt/csw/include/apr_hooks.h', + 'type': 'f', + 'user': 'root'}, + {'class': 'none', + 'group': 'bin', + 'line': '1 f none /opt/csw/include/apr_ldap.h 0644 root bin 5704 7247 1282906791', + 'mode': '0644', + 'path': '/opt/csw/include/apr_ldap.h', + 'type': 'f', + 'user': 'root'}, + {'class': 'none', + 'group': 'bin', + 'line': '1 f none /opt/csw/include/apr_ldap_init.h 0644 root bin 5780 10710 1282906791', + 'mode': '0644', + 'path': '/opt/csw/include/apr_ldap_init.h', + 'type': 'f', + 'user': 'root'}, + {'class': 'none', + 'group': 'bin', + 'line': '1 f none /opt/csw/include/apr_ldap_option.h 0644 root bin 8604 41864 1282906791', + 'mode': '0644', + 'path': '/opt/csw/include/apr_ldap_option.h', + 'type': 'f', + 'user': 'root'}, + {'class': 'none', + 'group': 'bin', + 'line': '1 f none /opt/csw/include/apr_ldap_rebind.h 0644 root bin 3168 62596 1282906791', + 'mode': '0644', + 'path': '/opt/csw/include/apr_ldap_rebind.h', + 'type': 'f', + 'user': 'root'}, + {'class': 'none', + 'group': 'bin', + 'line': '1 f none /opt/csw/include/apr_ldap_url.h 0644 root bin 3799 32681 1282906791', + 'mode': '0644', + 'path': '/opt/csw/include/apr_ldap_url.h', + 'type': 'f', + 'user': 'root'}, + {'class': 'none', + 'group': 'bin', + 'line': '1 f none /opt/csw/include/apr_md4.h 0644 root bin 4525 42434 1282906792', + 'mode': '0644', + 'path': '/opt/csw/include/apr_md4.h', + 'type': 'f', + 'user': 'root'}, + {'class': 'none', + 'group': 'bin', + 'line': '1 f none /opt/csw/include/apr_md5.h 0644 root bin 5573 519 1282906792', + 'mode': '0644', + 'path': '/opt/csw/include/apr_md5.h', + 'type': 'f', + 'user': 'root'}, + {'class': 'none', + 'group': 'bin', + 'line': '1 f none /opt/csw/include/apr_memcache.h 0644 root bin 17072 60128 1282906792', + 'mode': '0644', + 'path': '/opt/csw/include/apr_memcache.h', + 'type': 'f', + 'user': 'root'}, + {'class': 'none', + 'group': 'bin', + 'line': '1 f none /opt/csw/include/apr_optional.h 0644 root bin 2780 34306 1282906792', + 'mode': '0644', + 'path': '/opt/csw/include/apr_optional.h', + 'type': 'f', + 'user': 'root'}, + {'class': 'none', + 'group': 'bin', + 'line': '1 f none /opt/csw/include/apr_optional_hooks.h 0644 root bin 3869 64111 1282906792', + 'mode': '0644', + 'path': '/opt/csw/include/apr_optional_hooks.h', + 'type': 'f', + 'user': 'root'}, + {'class': 'none', + 'group': 'bin', + 'line': '1 f none /opt/csw/include/apr_queue.h 0644 root bin 4082 16636 1282906792', + 'mode': '0644', + 'path': '/opt/csw/include/apr_queue.h', + 'type': 'f', + 'user': 'root'}, + {'class': 'none', + 'group': 'bin', + 'line': '1 f none /opt/csw/include/apr_reslist.h 0644 root bin 6326 56986 1282906792', + 'mode': '0644', + 'path': '/opt/csw/include/apr_reslist.h', + 'type': 'f', + 'user': 'root'}, + {'class': 'none', + 'group': 'bin', + 'line': '1 f none /opt/csw/include/apr_rmm.h 0644 root bin 4778 15266 1282906792', + 'mode': '0644', + 'path': '/opt/csw/include/apr_rmm.h', + 'type': 'f', + 'user': 'root'}, + {'class': 'none', + 'group': 'bin', + 'line': '1 f none /opt/csw/include/apr_sdbm.h 0644 root bin 6113 34421 1282906792', + 'mode': '0644', + 'path': '/opt/csw/include/apr_sdbm.h', + 'type': 'f', + 'user': 'root'}, + {'class': 'none', + 'group': 'bin', + 'line': '1 f none /opt/csw/include/apr_sha1.h 0644 root bin 3884 57845 1282906792', + 'mode': '0644', + 'path': '/opt/csw/include/apr_sha1.h', + 'type': 'f', + 'user': 'root'}, + {'class': 'none', + 'group': 'bin', + 'line': '1 f none /opt/csw/include/apr_strmatch.h 0644 root bin 2677 28267 1282906792', + 'mode': '0644', + 'path': '/opt/csw/include/apr_strmatch.h', + 'type': 'f', + 'user': 'root'}, + {'class': 'none', + 'group': 'bin', + 'line': '1 f none /opt/csw/include/apr_thread_pool.h 0644 root bin 11104 60025 1282906792', + 'mode': '0644', + 'path': '/opt/csw/include/apr_thread_pool.h', + 'type': 'f', + 'user': 'root'}, + {'class': 'none', + 'group': 'bin', + 'line': '1 f none /opt/csw/include/apr_uri.h 0644 root bin 6589 55175 1282906792', + 'mode': '0644', + 'path': '/opt/csw/include/apr_uri.h', + 'type': 'f', + 'user': 'root'}, + {'class': 'none', + 'group': 'bin', + 'line': '1 f none /opt/csw/include/apr_uuid.h 0644 root bin 2102 40269 1282906792', + 'mode': '0644', + 'path': '/opt/csw/include/apr_uuid.h', + 'type': 'f', + 'user': 'root'}, + {'class': 'none', + 'group': 'bin', + 'line': '1 f none /opt/csw/include/apr_xlate.h 0644 root bin 6408 789 1282906792', + 'mode': '0644', + 'path': '/opt/csw/include/apr_xlate.h', + 'type': 'f', + 'user': 'root'}, + {'class': 'none', + 'group': 'bin', + 'line': '1 f none /opt/csw/include/apr_xml.h 0644 root bin 12357 61173 1282906792', + 'mode': '0644', + 'path': '/opt/csw/include/apr_xml.h', + 'type': 'f', + 'user': 'root'}, + {'class': 'none', + 'group': 'bin', + 'line': '1 f none /opt/csw/include/apu.h 0644 root bin 3560 23891 1282906792', + 'mode': '0644', + 'path': '/opt/csw/include/apu.h', + 'type': 'f', + 'user': 'root'}, + {'class': 'none', + 'group': 'bin', + 'line': '1 f none /opt/csw/include/apu_version.h 0644 root bin 4126 11796 1282906792', + 'mode': '0644', + 'path': '/opt/csw/include/apu_version.h', + 'type': 'f', + 'user': 'root'}, + {'class': 'none', + 'group': 'bin', + 'line': '1 f none /opt/csw/include/apu_want.h 0644 root bin 1483 49830 1282906792', + 'mode': '0644', + 'path': '/opt/csw/include/apu_want.h', + 'type': 'f', + 'user': 'root'}, + {'class': 'none', + 'group': 'bin', + 'line': '1 d none /opt/csw/lib/apr-util-1 0755 root bin', + 'mode': '0755', + 'path': '/opt/csw/lib/apr-util-1', + 'type': 'd', + 'user': 'root'}, + {'class': 'none', + 'group': 'bin', + 'line': '1 f none /opt/csw/lib/apr-util-1/apr_dbd_odbc-1.so 0755 root bin 30580 5683 1282906789', + 'mode': '0755', + 'path': '/opt/csw/lib/apr-util-1/apr_dbd_odbc-1.so', + 'type': 'f', + 'user': 'root'}, + {'class': 'none', + 'group': None, + 'line': '1 s none /opt/csw/lib/apr-util-1/apr_dbd_odbc.so=apr_dbd_odbc-1.so', + 'mode': None, + 'path': '/opt/csw/lib/apr-util-1/apr_dbd_odbc.so', + 'type': 's', + 'user': None}, + {'class': 'none', + 'group': 'bin', + 'line': '1 f none /opt/csw/lib/apr-util-1/apr_dbd_sqlite3-1.so 0755 root bin 18044 2829 1282906788', + 'mode': '0755', + 'path': '/opt/csw/lib/apr-util-1/apr_dbd_sqlite3-1.so', + 'type': 'f', + 'user': 'root'}, + {'class': 'none', + 'group': None, + 'line': '1 s none /opt/csw/lib/apr-util-1/apr_dbd_sqlite3.so=apr_dbd_sqlite3-1.so', + 'mode': None, + 'path': '/opt/csw/lib/apr-util-1/apr_dbd_sqlite3.so', + 'type': 's', + 'user': None}, + {'class': 'none', + 'group': 'bin', + 'line': '1 f none /opt/csw/lib/apr-util-1/apr_dbm_db-1.so 0755 root bin 9764 59811 1282906789', + 'mode': '0755', + 'path': '/opt/csw/lib/apr-util-1/apr_dbm_db-1.so', + 'type': 'f', + 'user': 'root'}, + {'class': 'none', + 'group': None, + 'line': '1 s none /opt/csw/lib/apr-util-1/apr_dbm_db.so=apr_dbm_db-1.so', + 'mode': None, + 'path': '/opt/csw/lib/apr-util-1/apr_dbm_db.so', + 'type': 's', + 'user': None}, + {'class': 'none', + 'group': 'bin', + 'line': '1 f none /opt/csw/lib/apr-util-1/apr_ldap-1.so 0755 root bin 17916 9844 1282906790', + 'mode': '0755', + 'path': '/opt/csw/lib/apr-util-1/apr_ldap-1.so', + 'type': 'f', + 'user': 'root'}, + {'class': 'none', + 'group': None, + 'line': '1 s none /opt/csw/lib/apr-util-1/apr_ldap.so=apr_ldap-1.so', + 'mode': None, + 'path': '/opt/csw/lib/apr-util-1/apr_ldap.so', + 'type': 's', + 'user': None}, + {'class': 'none', + 'group': 'bin', + 'line': '1 f none /opt/csw/lib/aprutil.exp 0644 root bin 5442 19740 1282906793', + 'mode': '0644', + 'path': '/opt/csw/lib/aprutil.exp', + 'type': 'f', + 'user': 'root'}, + {'class': 'none', + 'group': None, + 'line': '1 s none /opt/csw/lib/libaprutil-1.so=libaprutil-1.so.0.3.9', + 'mode': None, + 'path': '/opt/csw/lib/libaprutil-1.so', + 'type': 's', + 'user': None}, + {'class': 'none', + 'group': None, + 'line': '1 s none /opt/csw/lib/libaprutil-1.so.0=libaprutil-1.so.0.3.9', + 'mode': None, + 'path': '/opt/csw/lib/libaprutil-1.so.0', + 'type': 's', + 'user': None}, + {'class': 'none', + 'group': 'bin', + 'line': '1 f none /opt/csw/lib/libaprutil-1.so.0.3.9 0755 root bin 272120 38251 1282906792', + 'mode': '0755', + 'path': '/opt/csw/lib/libaprutil-1.so.0.3.9', + 'type': 'f', + 'user': 'root'}, + {'class': 'none', + 'group': 'bin', + 'line': '1 d none /opt/csw/lib/pkgconfig 0755 root bin', + 'mode': '0755', + 'path': '/opt/csw/lib/pkgconfig', + 'type': 'd', + 'user': 'root'}, + {'class': 'none', + 'group': 'bin', + 'line': '1 f none /opt/csw/lib/pkgconfig/apr-util-1.pc 0644 root bin 371 32716 1282906792', + 'mode': '0644', + 'path': '/opt/csw/lib/pkgconfig/apr-util-1.pc', + 'type': 'f', + 'user': 'root'}, + {'class': 'none', + 'group': 'bin', + 'line': '1 d none /opt/csw/share/doc/apr_util 0755 root bin', + 'mode': '0755', + 'path': '/opt/csw/share/doc/apr_util', + 'type': 'd', + 'user': 'root'}, + {'class': 'none', + 'group': 'bin', + 'line': '1 f none /opt/csw/share/doc/apr_util/license 0644 root bin 21179 51077 1282906796', + 'mode': '0644', + 'path': '/opt/csw/share/doc/apr_util/license', + 'type': 'f', + 'user': 'root'}, + {'class': None, + 'group': None, + 'line': '1 i copyright 72 6789 1282906796', + 'mode': None, + 'path': None, + 'type': 'i', + 'user': None}, + {'class': None, + 'group': None, + 'line': '1 i depend 614 54845 1282906800', + 'mode': None, + 'path': None, + 'type': 'i', + 'user': None}, + {'class': None, + 'group': None, + 'line': '1 i pkginfo 528 44388 1282906809', + 'mode': None, + 'path': None, + 'type': 'i', + 'user': None}]}] + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From wahwah at users.sourceforge.net Wed Sep 1 23:42:06 2010 From: wahwah at users.sourceforge.net (wahwah at users.sourceforge.net) Date: Wed, 01 Sep 2010 21:42:06 +0000 Subject: [csw-devel] SF.net SVN: gar:[10886] csw/mgar/pkg/python/trunk Message-ID: Revision: 10886 http://gar.svn.sourceforge.net/gar/?rev=10886&view=rev Author: wahwah Date: 2010-09-01 21:42:06 +0000 (Wed, 01 Sep 2010) Log Message: ----------- python: Version bump to 2.6.6 Modified Paths: -------------- csw/mgar/pkg/python/trunk/Makefile csw/mgar/pkg/python/trunk/checksums Added Paths: ----------- csw/mgar/pkg/python/trunk/files/0001-FFI_DEFAULT_ABI-to-use-__i386.patch Modified: csw/mgar/pkg/python/trunk/Makefile =================================================================== --- csw/mgar/pkg/python/trunk/Makefile 2010-09-01 21:36:04 UTC (rev 10885) +++ csw/mgar/pkg/python/trunk/Makefile 2010-09-01 21:42:06 UTC (rev 10886) @@ -1,7 +1,7 @@ # $Id$ GARNAME = Python -GARVERSION = 2.6.5 +GARVERSION = 2.6.6 CATEGORIES = lang # Known issues: @@ -9,6 +9,8 @@ # - No 64-bit build # - ctypes module doesn't compile # - http://forums.sun.com/thread.jspa?threadID=5148204 +# - http://bugs.python.org/issue4902 +# - Python-2.6.1/Modules/_ctypes/libffi/src/x86/sysv.S SPKG_SOURCEURL = http://python.org/download/releases/$(GARVERSION) @@ -44,10 +46,12 @@ PATCHFILES += site.diff PATCHFILES += python-config-in.diff PATCHFILES += setup.diff +PATCHFILES += 0001-FFI_DEFAULT_ABI-to-use-__i386.patch # Test for sunaudiodev fails. SKIPTEST = 1 +EXTRA_INC += $(prefix)/bdb47/include EXTRA_LIB += $(prefix)/bdb47/lib BASECFLAGS = $(CFLAGS) @@ -134,12 +138,18 @@ # These won't be fixed. CHECKPKG_OVERRIDES_CSWpython += file-with-bad-content|/export/medusa|root/opt/csw/lib/libpython2.5.so.1.0 CHECKPKG_OVERRIDES_CSWpython += file-with-bad-content|/opt/build|root/opt/csw/lib/libpython2.5.so.1.0 -# Amusingly, now the overrides file contains the bad data. -CHECKPKG_OVERRIDES_CSWpython += file-with-bad-content|/export/medusa|root/opt/csw/share/checkpkg/overrides/python -CHECKPKG_OVERRIDES_CSWpython += file-with-bad-content|/opt/build|root/opt/csw/share/checkpkg/overrides/python -# http://lists.opencsw.org/pipermail/pkgsubmissions/2010-April/000648.html -CHECKPKG_OVERRIDES_CSWpython-tk += linked-against-discouraged-library|_tkinter.so|libX11.so.4 +# This is an exception, since these are original Python packages. +CHECKPKG_OVERRIDES_CSWpython-test += pkgname-does-not-start-with-CSWpy- +CHECKPKG_OVERRIDES_CSWpython-test += catalogname-does-not-start-with-py_ +CHECKPKG_OVERRIDES_CSWpython-tk += pkgname-does-not-start-with-CSWpy- +CHECKPKG_OVERRIDES_CSWpython-tk += catalogname-does-not-start-with-py_ +CHECKPKG_OVERRIDES_CSWidle += pkgname-does-not-start-with-CSWpy- +CHECKPKG_OVERRIDES_CSWidle += catalogname-does-not-start-with-py_ +CHECKPKG_OVERRIDES_CSWpython-devel += pkgname-does-not-start-with-CSWpy- +CHECKPKG_OVERRIDES_CSWpython-devel += catalogname-does-not-start-with-py_ +CHECKPKG_OVERRIDES_CSWpython += pkgname-does-not-start-with-CSWpy- +CHECKPKG_OVERRIDES_CSWpython += catalogname-does-not-start-with-py_ include gar/category.mk Modified: csw/mgar/pkg/python/trunk/checksums =================================================================== --- csw/mgar/pkg/python/trunk/checksums 2010-09-01 21:36:04 UTC (rev 10885) +++ csw/mgar/pkg/python/trunk/checksums 2010-09-01 21:42:06 UTC (rev 10886) @@ -1,4 +1,5 @@ -6bef0417e71a1a1737ccf5750420fdb3 Python-2.6.5.tar.bz2 +62c1cbc3527d042195699edd2f4993b7 0001-FFI_DEFAULT_ABI-to-use-__i386.patch +cf4e6881bb84a7ce6089e4a307f71f14 Python-2.6.6.tar.bz2 42dd6523beb94a805d5764ae1276091c faqwiz.diff 5664b3970307d7d39d8d4061e7dccbb0 libpython2.5.so.1.0-isa-i386 a87896c48b2f61b32053e6d02b07b022 libpython2.5.so.1.0-isa-sparcv8 Added: csw/mgar/pkg/python/trunk/files/0001-FFI_DEFAULT_ABI-to-use-__i386.patch =================================================================== --- csw/mgar/pkg/python/trunk/files/0001-FFI_DEFAULT_ABI-to-use-__i386.patch (rev 0) +++ csw/mgar/pkg/python/trunk/files/0001-FFI_DEFAULT_ABI-to-use-__i386.patch 2010-09-01 21:42:06 UTC (rev 10886) @@ -0,0 +1,29 @@ +From a793e4025581c9840eb053d57368aa74cb8e3e87 Mon Sep 17 00:00:00 2001 +From: Maciej Blizinski +Date: Thu, 20 May 2010 18:07:22 +0200 +Subject: [PATCH] FFI_DEFAULT_ABI to use __i386 + +--- + Modules/_ctypes/libffi/src/x86/ffitarget.h | 4 ++-- + 1 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/Modules/_ctypes/libffi/src/x86/ffitarget.h b/Modules/_ctypes/libffi/src/x86/ffitarget.h +index 8178d06..d54d210 100644 +--- a/Modules/_ctypes/libffi/src/x86/ffitarget.h ++++ b/Modules/_ctypes/libffi/src/x86/ffitarget.h +@@ -54,10 +54,10 @@ typedef enum ffi_abi { + #endif + + /* ---- Intel x86 and AMD x86-64 - */ +-#if !defined(X86_WIN32) && (defined(__i386__) || defined(__x86_64__)) ++#if !defined(X86_WIN32) && (defined(__i386__) || defined(__i386) || defined(__x86_64__)) + FFI_SYSV, + FFI_UNIX64, /* Unix variants all use the same ABI for x86-64 */ +-#ifdef __i386__ ++#if defined(__i386__) || defined(__i386) + FFI_DEFAULT_ABI = FFI_SYSV, + #else + FFI_DEFAULT_ABI = FFI_UNIX64, +-- +1.7.1 + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From chninkel at users.sourceforge.net Thu Sep 2 00:43:27 2010 From: chninkel at users.sourceforge.net (chninkel at users.sourceforge.net) Date: Wed, 01 Sep 2010 22:43:27 +0000 Subject: [csw-devel] SF.net SVN: gar:[10887] csw/mgar/pkg/openssh/trunk Message-ID: Revision: 10887 http://gar.svn.sourceforge.net/gar/?rev=10887&view=rev Author: chninkel Date: 2010-09-01 22:43:26 +0000 (Wed, 01 Sep 2010) Log Message: ----------- openssh: switched to dynamic prototype Modified Paths: -------------- csw/mgar/pkg/openssh/trunk/Makefile csw/mgar/pkg/openssh/trunk/files/changelog.CSW Removed Paths: ------------- csw/mgar/pkg/openssh/trunk/files/CSWossh.prototype csw/mgar/pkg/openssh/trunk/files/CSWosshclient.prototype csw/mgar/pkg/openssh/trunk/files/CSWosshlpk.prototype Modified: csw/mgar/pkg/openssh/trunk/Makefile =================================================================== --- csw/mgar/pkg/openssh/trunk/Makefile 2010-09-01 21:42:06 UTC (rev 10886) +++ csw/mgar/pkg/openssh/trunk/Makefile 2010-09-01 22:43:26 UTC (rev 10887) @@ -45,6 +45,36 @@ PACKAGING_PLATFORMS = solaris9-sparc solaris9-i386 solaris10-sparc solaris10-i386 +PKGFILES_CSWossh = $(sbindir)/.* +PKGFILES_CSWossh += $(docdir)/openssh/.* +PKGFILES_CSWossh += $(mandir)/man5/sshd_config.5 +PKGFILES_CSWossh += $(mandir)/man8/sftp-server.8 +PKGFILES_CSWossh += $(mandir)/man8/sshd.8 +PKGFILES_CSWossh += $(libexecdir)/sftp-server +PKGFILES_CSWossh += $(sysconfdir)/ssh/sshd_config.CSW +PKGFILES_CSWossh += $(sysconfdir)/ssh/moduli.CSW +PKGFILES_CSWossh += /var/empty +PKGFILES_CSWossh += /etc$(prefix)/init.d/cswopenssh +PKGFILES_CSWossh += /var$(prefix)/svc/manifest/network/cswopenssh.xml + +PKGFILES_CSWosshclient = $(bindir)/.* +PKGFILES_CSWosshclient += $(docdir)/openssh_client/.* +PKGFILES_CSWosshclient += $(mandir)/man1/.* +PKGFILES_CSWosshclient += $(mandir)/man5/ssh_config.5 +PKGFILES_CSWosshclient += $(mandir)/man8/ssh-keysign.8 +PKGFILES_CSWosshclient += $(libexecdir)/ssh-keysign +PKGFILES_CSWosshclient += $(sysconfdir)/ssh/ssh_config.CSW + +PROTOTYPE_MODIFIERS = setuid +PROTOTYPE_FILES_setuid = $(libexecdir)/ssh-keysign +PROTOTYPE_PERMS_setuid = 4711 + + +PRESERVECONF = /opt/csw/etc/ssh/sshd_config +PRESERVECONF += /opt/csw/etc/ssh/ssh_config +PRESERVECONF += /opt/csw/etc/ssh/moduli +INITSMF = /etc/opt/csw/init.d/cswopenssh + # The openssh package installs the server and the client CHECKPKG_OVERRIDES_CSWossh = surplus-dependency|CSWosshclient @@ -56,9 +86,8 @@ UFILES_REGEX = $(GARNAME)-(\d+(?:\.\d+)*p\d+).tar.gz DISTFILES = $(GARNAME)-$(GARVERSION).tar.gz -DISTFILES += CSWossh.prototype CSWossh.preinstall CSWossh.checkinstall -DISTFILES += CSWosshlpk.prototype CSWosshlpk.preinstall CSWosshlpk.checkinstall -DISTFILES += CSWosshclient.prototype +DISTFILES += CSWossh.preinstall CSWossh.checkinstall +DISTFILES += CSWosshlpk.preinstall CSWosshlpk.checkinstall DISTFILES += changelog.CSW DISTFILES += cswopenssh sshd.smf_wrapper cswopenssh.xml @@ -78,12 +107,13 @@ # documentation files to install (not a gar variable) DOCFILES = CREDITS ChangeLog ChangeLog.gssapi INSTALL LICENCE OVERVIEW README README.dns -DOCFILES += README.platform README.privsep README.smartcard README.tun TODO WARNING.RNG +DOCFILES += README.platform README.privsep README.tun TODO WARNING.RNG # we're using conf handling class from the cswclassutils package RUNTIME_DEP_PKGS += CSWcswclassutils + ##### Build and installation information ##### CONFIGURE_ARGS = $(DIRPATHS) @@ -133,11 +163,12 @@ @$(MAKECOOKIE) # adding documentation files -pre-package: merge-config-files merge-doc-files merge-init-files merge-contrib-files +pre-package: merge-config-files merge-doc-files merge-init-files merge-contrib-files merge-special-directories merge-contrib-files: ginstall -D "$(WORKSRC_FIRSTMOD)/contrib/ssh-copy-id" "$(PKGROOT)/$(bindir)/ssh-copy-id" ginstall -D "$(WORKSRC_FIRSTMOD)/contrib/ssh-copy-id.1" "$(PKGROOT)/$(mandir)/man1/ssh-copy-id.1" + chmod -x "$(PKGROOT)/$(mandir)/man1/ssh-copy-id.1" merge-init-files: ginstall -D "$(WORKDIR_FIRSTMOD)/cswopenssh" "$(PKGROOT)/etc/opt/csw/init.d/cswopenssh" @@ -149,19 +180,17 @@ for DOCDIR in $(foreach _PKG,$(PACKAGES),$(call catalogname,$(_PKG))); do \ ginstall -d $(PKGROOT)/$(docdir)/$$DOCDIR; \ (cd $(WORKSRC_FIRSTMOD) && ginstall $(DOCFILES) $(PKGROOT)/$(docdir)/$$DOCDIR/); \ + (cd $(PKGROOT)/$(docdir)/$$DOCDIR && chmod -x $(DOCFILES)); \ ginstall $(WORKDIR_FIRSTMOD)/changelog.CSW $(PKGROOT)/$(docdir)/$$DOCDIR/; \ done @$(MAKECOOKIE) merge-config-files: - ginstall $(PKGROOT)/$(sysconfdir)/ssh/ssh_config $(PKGROOT)/$(sysconfdir)/ssh/ssh_config.CSW - ginstall $(PKGROOT)/$(sysconfdir)/ssh/moduli $(PKGROOT)/$(sysconfdir)/ssh/moduli.CSW # we change some default value in the server config file - sed -e 's,/etc/ssh/,/opt/csw/etc/ssh/,g' \ - -e 's,/usr/libexec/,/opt/csw/libexec/,g' \ - -e 's,^ *# *UsePAM *.*,UsePAM yes,g' \ - -e 's,^ *# *PrintMotd *.*,PrintMotd no,g' \ - -e 's,^ *# *X11Forwarding *.*,X11Forwarding yes,g' "$(PKGROOT)/$(sysconfdir)/ssh/sshd_config" > "$(PKGROOT)/$(sysconfdir)/ssh/sshd_config.CSW + perl -pi -e 's,/etc/ssh/,/opt/csw/etc/ssh/,g; s,/usr/libexec/,/opt/csw/libexec/,g' "$(PKGROOT)/$(sysconfdir)/ssh/sshd_config.CSW" + perl -pi -e 's,^ *# *UsePAM *.*,UsePAM yes,g, s,^ *# *PrintMotd *.*,PrintMotd no,g; s,^ *# *X11Forwarding *.*,X11Forwarding yes,g' "$(PKGROOT)/$(sysconfdir)/ssh/sshd_config.CSW" @$(MAKECOOKIE) - +merge-special-directories: + ginstall -d $(PKGROOT)/var/empty + ginstall -d $(PKGROOT)$(sysconfdir)/CSWossh Deleted: csw/mgar/pkg/openssh/trunk/files/CSWossh.prototype =================================================================== --- csw/mgar/pkg/openssh/trunk/files/CSWossh.prototype 2010-09-01 21:42:06 UTC (rev 10886) +++ csw/mgar/pkg/openssh/trunk/files/CSWossh.prototype 2010-09-01 22:43:26 UTC (rev 10887) @@ -1,32 +0,0 @@ -d none /opt/csw/etc/pkg/CSWossh 0755 root bin -f cswinitsmf /etc/opt/csw/init.d/cswopenssh 0755 root bin -d none /opt/csw/etc/ssh 0755 root bin -f cswpreserveconf /opt/csw/etc/ssh/sshd_config.CSW 0744 root bin -f cswpreserveconf /opt/csw/etc/ssh/moduli.CSW 0644 root bin -d none /opt/csw/libexec 0755 root bin -f none /opt/csw/libexec/sftp-server 0755 root bin -f none /opt/csw/sbin/sshd 0755 root bin -f none /opt/csw/sbin/sshd.smf_wrapper 0755 root bin -d none /opt/csw/share/doc/openssh 0755 root bin -f none /opt/csw/share/doc/openssh/changelog.CSW 0644 root bin -f none /opt/csw/share/doc/openssh/CREDITS 0644 root bin -f none /opt/csw/share/doc/openssh/ChangeLog 0644 root bin -f none /opt/csw/share/doc/openssh/ChangeLog.gssapi 0644 root bin -f none /opt/csw/share/doc/openssh/INSTALL 0644 root bin -l none /opt/csw/share/doc/openssh/license=LICENCE 0644 root bin -f none /opt/csw/share/doc/openssh/LICENCE 0644 root bin -f none /opt/csw/share/doc/openssh/OVERVIEW 0644 root bin -f none /opt/csw/share/doc/openssh/README 0644 root bin -f none /opt/csw/share/doc/openssh/README.dns 0644 root bin -f none /opt/csw/share/doc/openssh/README.platform 0644 root bin -f none /opt/csw/share/doc/openssh/README.privsep 0644 root bin -f none /opt/csw/share/doc/openssh/README.tun 0644 root bin -f none /opt/csw/share/doc/openssh/TODO 0644 root bin -f none /opt/csw/share/doc/openssh/WARNING.RNG 0644 root bin -f none /opt/csw/share/man/man5/sshd_config.5 0644 root bin -f none /opt/csw/share/man/man8/sftp-server.8 0644 root bin -f none /opt/csw/share/man/man8/sshd.8 0644 root bin -d none /opt/csw/share/openssh 0755 root bin -d none /var/empty -f none /var/opt/csw/svc/manifest/network/cswopenssh.xml 0644 root sys -i checkpkg_override=checkpkg_override.CSWossh Deleted: csw/mgar/pkg/openssh/trunk/files/CSWosshclient.prototype =================================================================== --- csw/mgar/pkg/openssh/trunk/files/CSWosshclient.prototype 2010-09-01 21:42:06 UTC (rev 10886) +++ csw/mgar/pkg/openssh/trunk/files/CSWosshclient.prototype 2010-09-01 22:43:26 UTC (rev 10887) @@ -1,40 +0,0 @@ -f none /opt/csw/bin/scp 0755 root bin -f none /opt/csw/bin/sftp 0755 root bin -s none /opt/csw/bin/slogin=./ssh -f none /opt/csw/bin/ssh 0755 root bin -f none /opt/csw/bin/ssh-add 0755 root bin -f none /opt/csw/bin/ssh-agent 0755 root bin -f none /opt/csw/bin/ssh-copy-id 0755 root bin -f none /opt/csw/bin/ssh-keygen 0755 root bin -f none /opt/csw/bin/ssh-keyscan 0755 root bin -d none /opt/csw/etc/ssh 0755 root bin -f cswpreserveconf /opt/csw/etc/ssh/ssh_config.CSW 0644 root bin -d none /opt/csw/libexec 0755 root bin -f none /opt/csw/libexec/ssh-keysign 4711 root bin -d none /opt/csw/share/doc/openssh_client 0755 root bin -f none /opt/csw/share/doc/openssh_client/changelog.CSW 0644 root bin -f none /opt/csw/share/doc/openssh_client/CREDITS 0644 root bin -f none /opt/csw/share/doc/openssh_client/ChangeLog 0644 root bin -f none /opt/csw/share/doc/openssh_client/ChangeLog.gssapi 0644 root bin -f none /opt/csw/share/doc/openssh_client/INSTALL 0644 root bin -l none /opt/csw/share/doc/openssh_client/license=LICENCE -f none /opt/csw/share/doc/openssh_client/LICENCE 0644 root bin -f none /opt/csw/share/doc/openssh_client/OVERVIEW 0644 root bin -f none /opt/csw/share/doc/openssh_client/README 0644 root bin -f none /opt/csw/share/doc/openssh_client/README.dns 0644 root bin -f none /opt/csw/share/doc/openssh_client/README.platform 0644 root bin -f none /opt/csw/share/doc/openssh_client/README.privsep 0644 root bin -f none /opt/csw/share/doc/openssh_client/README.tun 0644 root bin -f none /opt/csw/share/doc/openssh_client/TODO 0644 root bin -f none /opt/csw/share/doc/openssh_client/WARNING.RNG 0644 root bin -f none /opt/csw/share/man/man1/scp.1 0644 root bin -f none /opt/csw/share/man/man1/sftp.1 0644 root bin -s none /opt/csw/share/man/man1/slogin.1=./ssh.1 -f none /opt/csw/share/man/man1/ssh-add.1 0644 root bin -f none /opt/csw/share/man/man1/ssh-agent.1 0644 root bin -f none /opt/csw/share/man/man1/ssh-copy-id.1 0644 root bin -f none /opt/csw/share/man/man1/ssh-keygen.1 0644 root bin -f none /opt/csw/share/man/man1/ssh-keyscan.1 0644 root bin -f none /opt/csw/share/man/man1/ssh.1 0644 root bin -f none /opt/csw/share/man/man5/ssh_config.5 0644 root bin -f none /opt/csw/share/man/man8/ssh-keysign.8 0644 root bin Deleted: csw/mgar/pkg/openssh/trunk/files/CSWosshlpk.prototype =================================================================== --- csw/mgar/pkg/openssh/trunk/files/CSWosshlpk.prototype 2010-09-01 21:42:06 UTC (rev 10886) +++ csw/mgar/pkg/openssh/trunk/files/CSWosshlpk.prototype 2010-09-01 22:43:26 UTC (rev 10887) @@ -1,36 +0,0 @@ -d none /opt/csw/etc/pkg/CSWosshlpk 0755 root bin -f cswinitsmf /etc/opt/csw/init.d/cswopenssh 0755 root bin -f cswpreserveconf /opt/csw/etc/ssh/sshd_config.CSW 0744 root bin -f cswpreserveconf /opt/csw/etc/ssh/moduli.CSW 0644 root bin -d none /opt/csw/libexec 0755 root bin -f none /opt/csw/libexec/sftp-server 0755 root bin -f none /opt/csw/sbin/sshd 0755 root bin -f none /opt/csw/sbin/sshd.smf_wrapper 0755 root bin -f none /opt/csw/share/Ssh.bin 0644 root bin -d none /opt/csw/share/doc/openssh_lpk 0755 root bin -f none /opt/csw/share/doc/openssh_lpk/changelog.CSW 0644 root bin -f none /opt/csw/share/doc/openssh_lpk/CREDITS 0644 root bin -f none /opt/csw/share/doc/openssh_lpk/ChangeLog 0644 root bin -f none /opt/csw/share/doc/openssh_lpk/ChangeLog.gssapi 0644 root bin -f none /opt/csw/share/doc/openssh_lpk/INSTALL 0644 root bin -l none /opt/csw/share/doc/openssh_lpk/license=LICENCE -f none /opt/csw/share/doc/openssh_lpk/LICENCE 0644 root bin -f none /opt/csw/share/doc/openssh_lpk/OVERVIEW 0644 root bin -f none /opt/csw/share/doc/openssh_lpk/README 0644 root bin -f none /opt/csw/share/doc/openssh_lpk/README.dns 0644 root bin -f none /opt/csw/share/doc/openssh_lpk/README.platform 0644 root bin -f none /opt/csw/share/doc/openssh_lpk/README.privsep 0644 root bin -f none /opt/csw/share/doc/openssh_lpk/README.smartcard 0644 root bin -f none /opt/csw/share/doc/openssh_lpk/README.tun 0644 root bin -f none /opt/csw/share/doc/openssh_lpk/TODO 0644 root bin -f none /opt/csw/share/doc/openssh_lpk/WARNING.RNG 0644 root bin -f none /opt/csw/share/doc/openssh_lpk/openssh-lpk_openldap.schema 0644 root bin -f none /opt/csw/share/doc/openssh_lpk/openssh-lpk_sun.schema 0644 root bin -f none /opt/csw/share/doc/openssh_lpk/lpk-user-example.txt 0644 root bin -f none /opt/csw/share/doc/openssh_lpk/README.lpk 0644 root bin -f none /opt/csw/share/man/man5/sshd_config.5 0644 root bin -f none /opt/csw/share/man/man8/sftp-server.8 0644 root bin -f none /opt/csw/share/man/man8/sshd.8 0644 root bin -d none /opt/csw/share/openssh 0755 root bin -d none /var/empty -f none /var/opt/csw/svc/manifest/network/cswopenssh.xml 0644 root sys Modified: csw/mgar/pkg/openssh/trunk/files/changelog.CSW =================================================================== --- csw/mgar/pkg/openssh/trunk/files/changelog.CSW 2010-09-01 21:42:06 UTC (rev 10886) +++ csw/mgar/pkg/openssh/trunk/files/changelog.CSW 2010-09-01 22:43:26 UTC (rev 10887) @@ -3,6 +3,7 @@ * New upstream release. * Removed patch applied upstream (derelativise_path_bugfix.patch and dont_derelativise_authorizedkeysfile_option.patch). + * [Build system] Switched to dynamic prototype. -- Yann Rouillard Wed, 01 Sep 2010 23:25:24 +0200 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From chninkel at users.sourceforge.net Thu Sep 2 00:45:15 2010 From: chninkel at users.sourceforge.net (chninkel at users.sourceforge.net) Date: Wed, 01 Sep 2010 22:45:15 +0000 Subject: [csw-devel] SF.net SVN: gar:[10888] csw/mgar/pkg/openssh/trunk Message-ID: Revision: 10888 http://gar.svn.sourceforge.net/gar/?rev=10888&view=rev Author: chninkel Date: 2010-09-01 22:45:15 +0000 (Wed, 01 Sep 2010) Log Message: ----------- openssh: readded openssh gsskex patch Modified Paths: -------------- csw/mgar/pkg/openssh/trunk/Makefile Added Paths: ----------- csw/mgar/pkg/openssh/trunk/files/openssh-5.6p1-gsskex-all-20100902.patch Modified: csw/mgar/pkg/openssh/trunk/Makefile =================================================================== --- csw/mgar/pkg/openssh/trunk/Makefile 2010-09-01 22:43:26 UTC (rev 10887) +++ csw/mgar/pkg/openssh/trunk/Makefile 2010-09-01 22:45:15 UTC (rev 10888) @@ -15,7 +15,7 @@ GARNAME = openssh GARVERSION = 5.6p1 GSSKEX_PATCH_VERSION = $(GARVERSION) -GSSKEX_PATCH_DATE = 20100901 +GSSKEX_PATCH_DATE = 20100902 CATEGORIES = server DESCRIPTION = OpenSSH Secure Shell Added: csw/mgar/pkg/openssh/trunk/files/openssh-5.6p1-gsskex-all-20100902.patch =================================================================== --- csw/mgar/pkg/openssh/trunk/files/openssh-5.6p1-gsskex-all-20100902.patch (rev 0) +++ csw/mgar/pkg/openssh/trunk/files/openssh-5.6p1-gsskex-all-20100902.patch 2010-09-01 22:45:15 UTC (rev 10888) @@ -0,0 +1,2933 @@ +diff -Nur openssh-5.4p1.orig/ChangeLog.gssapi openssh-5.4p1/ChangeLog.gssapi +--- openssh-5.4p1.orig/ChangeLog.gssapi 1970-01-01 01:00:00.000000000 +0100 ++++ openssh-5.4p1/ChangeLog.gssapi 2010-03-13 00:39:22.276624764 +0100 +@@ -0,0 +1,95 @@ ++20090615 ++ - [ gss-genr.c gss-serv.c kexgssc.c kexgsss.c monitor.c sshconnect2.c ++ sshd.c ] ++ Fix issues identified by Greg Hudson following a code review ++ Check return value of gss_indicate_mechs ++ Protect GSSAPI calls in monitor, so they can only be used if enabled ++ Check return values of bignum functions in key exchange ++ Use BN_clear_free to clear other side's DH value ++ Make ssh_gssapi_id_kex more robust ++ Only configure kex table pointers if GSSAPI is enabled ++ Don't leak mechanism list, or gss mechanism list ++ Cast data.length before printing ++ If serverkey isn't provided, use an empty string, rather than NULL ++ ++20090201 ++ - [ gss-genr.c gss-serv.c kex.h kexgssc.c readconf.c readconf.h ssh-gss.h ++ ssh_config.5 sshconnet2.c ] ++ Add support for the GSSAPIClientIdentity option, which allows the user ++ to specify which GSSAPI identity to use to contact a given server ++ ++20080404 ++ - [ gss-serv.c ] ++ Add code to actually implement GSSAPIStrictAcceptCheck, which had somehow ++ been omitted from a previous version of this patch. Reported by Borislav ++ Stoichkov ++ ++20070317 ++ - [ gss-serv-krb5.c ] ++ Remove C99ism, where new_ccname was being declared in the middle of a ++ function ++ ++20061220 ++ - [ servconf.c ] ++ Make default for GSSAPIStrictAcceptorCheck be Yes, to match previous, and ++ documented, behaviour. Reported by Dan Watson. ++ ++20060910 ++ - [ gss-genr.c kexgssc.c kexgsss.c kex.h monitor.c sshconnect2.c sshd.c ++ ssh-gss.h ] ++ add support for gss-group14-sha1 key exchange mechanisms ++ - [ gss-serv.c servconf.c servconf.h sshd_config sshd_config.5 ] ++ Add GSSAPIStrictAcceptorCheck option to allow the disabling of ++ acceptor principal checking on multi-homed machines. ++ ++ - [ sshd_config ssh_config ] ++ Add settings for GSSAPIKeyExchange and GSSAPITrustDNS to the sample ++ configuration files ++ - [ kexgss.c kegsss.c sshconnect2.c sshd.c ] ++ Code cleanup. Replace strlen/xmalloc/snprintf sequences with xasprintf() ++ Limit length of error messages displayed by client ++ ++20060909 ++ - [ gss-genr.c gss-serv.c ] ++ move ssh_gssapi_acquire_cred() and ssh_gssapi_server_ctx to be server ++ only, where they belong ++ ++ ++20060829 ++ - [ gss-serv-krb5.c ] ++ Fix CCAPI credentials cache name when creating KRB5CCNAME environment ++ variable ++ ++20060828 ++ - [ gss-genr.c ] ++ Avoid Heimdal context freeing problem ++ ++ ++20060818 ++ - [ gss-genr.c ssh-gss.h sshconnect2.c ] ++ Make sure that SPENGO is disabled ++ ++ ++20060421 ++ - [ gssgenr.c, sshconnect2.c ] ++ a few type changes (signed versus unsigned, int versus size_t) to ++ fix compiler errors/warnings ++ (from jbasney AT ncsa.uiuc.edu) ++ - [ kexgssc.c, sshconnect2.c ] ++ fix uninitialized variable warnings ++ (from jbasney AT ncsa.uiuc.edu) ++ - [ gssgenr.c ] ++ pass oid to gss_display_status (helpful when using GSSAPI mechglue) ++ (from jbasney AT ncsa.uiuc.edu) ++ ++ - [ gss-serv-krb5.c ] ++ #ifdef HAVE_GSSAPI_KRB5 should be #ifdef HAVE_GSSAPI_KRB5_H ++ (from jbasney AT ncsa.uiuc.edu) ++ ++ - [ readconf.c, readconf.h, ssh_config.5, sshconnect2.c ++ add client-side GssapiKeyExchange option ++ (from jbasney AT ncsa.uiuc.edu) ++ - [ sshconnect2.c ] ++ add support for GssapiTrustDns option for gssapi-with-mic ++ (from jbasney AT ncsa.uiuc.edu) ++ +diff -Nur openssh-5.4p1.orig/Makefile.in openssh-5.4p1/Makefile.in +--- openssh-5.4p1.orig/Makefile.in 2010-02-24 08:18:51.000000000 +0100 ++++ openssh-5.4p1/Makefile.in 2010-03-13 00:39:54.547584984 +0100 +@@ -74,7 +74,7 @@ + monitor_fdpass.o rijndael.o ssh-dss.o ssh-rsa.o dh.o kexdh.o \ + kexgex.o kexdhc.o kexgexc.o msg.o progressmeter.o dns.o \ + entropy.o gss-genr.o umac.o jpake.o schnorr.o \ +- ssh-pkcs11.o ++ ssh-pkcs11.o kexgssc.o + + SSHOBJS= ssh.o readconf.o clientloop.o sshtty.o \ + sshconnect.o sshconnect1.o sshconnect2.o mux.o \ +@@ -88,7 +88,7 @@ + auth2-none.o auth2-passwd.o auth2-pubkey.o auth2-jpake.o \ + monitor_mm.o monitor.o monitor_wrap.o kexdhs.o kexgexs.o \ + auth-krb5.o \ +- auth2-gss.o gss-serv.o gss-serv-krb5.o \ ++ auth2-gss.o gss-serv.o gss-serv-krb5.o kexgsss.o\ + loginrec.o auth-pam.o auth-shadow.o auth-sia.o md5crypt.o \ + audit.o audit-bsm.o platform.o sftp-server.o sftp-common.o \ + roaming_common.o roaming_serv.o +diff -Nur openssh-5.4p1.orig/auth-krb5.c openssh-5.4p1/auth-krb5.c +--- openssh-5.4p1.orig/auth-krb5.c 2009-12-21 00:49:22.000000000 +0100 ++++ openssh-5.4p1/auth-krb5.c 2010-03-13 00:39:22.287877739 +0100 +@@ -170,8 +170,13 @@ + + len = strlen(authctxt->krb5_ticket_file) + 6; + authctxt->krb5_ccname = xmalloc(len); ++#ifdef USE_CCAPI ++ snprintf(authctxt->krb5_ccname, len, "API:%s", ++ authctxt->krb5_ticket_file); ++#else + snprintf(authctxt->krb5_ccname, len, "FILE:%s", + authctxt->krb5_ticket_file); ++#endif + + #ifdef USE_PAM + if (options.use_pam) +@@ -226,15 +231,22 @@ + #ifndef HEIMDAL + krb5_error_code + ssh_krb5_cc_gen(krb5_context ctx, krb5_ccache *ccache) { +- int tmpfd, ret; ++ int ret; + char ccname[40]; + mode_t old_umask; ++#ifdef USE_CCAPI ++ char cctemplate[] = "API:krb5cc_%d"; ++#else ++ char cctemplate[] = "FILE:/tmp/krb5cc_%d_XXXXXXXXXX"; ++ int tmpfd; ++#endif + + ret = snprintf(ccname, sizeof(ccname), +- "FILE:/tmp/krb5cc_%d_XXXXXXXXXX", geteuid()); ++ cctemplate, geteuid()); + if (ret < 0 || (size_t)ret >= sizeof(ccname)) + return ENOMEM; + ++#ifndef USE_CCAPI + old_umask = umask(0177); + tmpfd = mkstemp(ccname + strlen("FILE:")); + umask(old_umask); +@@ -249,6 +261,7 @@ + return errno; + } + close(tmpfd); ++#endif + + return (krb5_cc_resolve(ctx, ccname, ccache)); + } +diff -Nur openssh-5.4p1.orig/auth.h openssh-5.4p1/auth.h +--- openssh-5.4p1.orig/auth.h 2010-03-04 11:53:35.000000000 +0100 ++++ openssh-5.4p1/auth.h 2010-03-13 00:39:22.290248539 +0100 +@@ -53,6 +53,7 @@ + int valid; /* user exists and is allowed to login */ + int attempt; + int failures; ++ int server_caused_failure; + int force_pwchange; + char *user; /* username sent by the client */ + char *service; +diff -Nur openssh-5.4p1.orig/auth2-gss.c openssh-5.4p1/auth2-gss.c +--- openssh-5.4p1.orig/auth2-gss.c 2007-12-02 12:59:45.000000000 +0100 ++++ openssh-5.4p1/auth2-gss.c 2010-03-13 00:39:22.294875029 +0100 +@@ -1,7 +1,7 @@ + /* $OpenBSD: auth2-gss.c,v 1.16 2007/10/29 00:52:45 dtucker Exp $ */ + + /* +- * Copyright (c) 2001-2003 Simon Wilkinson. All rights reserved. ++ * Copyright (c) 2001-2007 Simon Wilkinson. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions +@@ -52,6 +52,40 @@ + static void input_gssapi_exchange_complete(int type, u_int32_t plen, void *ctxt); + static void input_gssapi_errtok(int, u_int32_t, void *); + ++/* ++ * The 'gssapi_keyex' userauth mechanism. ++ */ ++static int ++userauth_gsskeyex(Authctxt *authctxt) ++{ ++ int authenticated = 0; ++ Buffer b; ++ gss_buffer_desc mic, gssbuf; ++ u_int len; ++ ++ mic.value = packet_get_string(&len); ++ mic.length = len; ++ ++ packet_check_eom(); ++ ++ ssh_gssapi_buildmic(&b, authctxt->user, authctxt->service, ++ "gssapi-keyex"); ++ ++ gssbuf.value = buffer_ptr(&b); ++ gssbuf.length = buffer_len(&b); ++ ++ /* gss_kex_context is NULL with privsep, so we can't check it here */ ++ if (!GSS_ERROR(PRIVSEP(ssh_gssapi_checkmic(gss_kex_context, ++ &gssbuf, &mic)))) ++ authenticated = PRIVSEP(ssh_gssapi_userok(authctxt->user, ++ authctxt->pw)); ++ ++ buffer_free(&b); ++ xfree(mic.value); ++ ++ return (authenticated); ++} ++ + /* + * We only support those mechanisms that we know about (ie ones that we know + * how to check local user kuserok and the like) +@@ -102,6 +136,7 @@ + + if (!present) { + xfree(doid); ++ authctxt->server_caused_failure = 1; + return (0); + } + +@@ -109,6 +144,7 @@ + if (ctxt != NULL) + ssh_gssapi_delete_ctx(&ctxt); + xfree(doid); ++ authctxt->server_caused_failure = 1; + return (0); + } + +@@ -242,7 +278,8 @@ + + packet_check_eom(); + +- authenticated = PRIVSEP(ssh_gssapi_userok(authctxt->user)); ++ authenticated = PRIVSEP(ssh_gssapi_userok(authctxt->user, ++ authctxt->pw)); + + authctxt->postponed = 0; + dispatch_set(SSH2_MSG_USERAUTH_GSSAPI_TOKEN, NULL); +@@ -277,7 +314,8 @@ + gssbuf.length = buffer_len(&b); + + if (!GSS_ERROR(PRIVSEP(ssh_gssapi_checkmic(gssctxt, &gssbuf, &mic)))) +- authenticated = PRIVSEP(ssh_gssapi_userok(authctxt->user)); ++ authenticated = ++ PRIVSEP(ssh_gssapi_userok(authctxt->user, authctxt->pw)); + else + logit("GSSAPI MIC check failed"); + +@@ -292,6 +330,12 @@ + userauth_finish(authctxt, authenticated, "gssapi-with-mic"); + } + ++Authmethod method_gsskeyex = { ++ "gssapi-keyex", ++ userauth_gsskeyex, ++ &options.gss_authentication ++}; ++ + Authmethod method_gssapi = { + "gssapi-with-mic", + userauth_gssapi, +diff -Nur openssh-5.4p1.orig/auth2.c openssh-5.4p1/auth2.c +--- openssh-5.4p1.orig/auth2.c 2009-06-22 08:11:07.000000000 +0200 ++++ openssh-5.4p1/auth2.c 2010-03-13 00:39:22.298679511 +0100 +@@ -69,6 +69,7 @@ + extern Authmethod method_kbdint; + extern Authmethod method_hostbased; + #ifdef GSSAPI ++extern Authmethod method_gsskeyex; + extern Authmethod method_gssapi; + #endif + #ifdef JPAKE +@@ -79,6 +80,7 @@ + &method_none, + &method_pubkey, + #ifdef GSSAPI ++ &method_gsskeyex, + &method_gssapi, + #endif + #ifdef JPAKE +@@ -274,6 +276,7 @@ + #endif + + authctxt->postponed = 0; ++ authctxt->server_caused_failure = 0; + + /* try to authenticate user */ + m = authmethod_lookup(method); +@@ -346,7 +349,8 @@ + } else { + + /* Allow initial try of "none" auth without failure penalty */ +- if (authctxt->attempt > 1 || strcmp(method, "none") != 0) ++ if (!authctxt->server_caused_failure && ++ (authctxt->attempt > 1 || strcmp(method, "none") != 0)) + authctxt->failures++; + if (authctxt->failures >= options.max_authtries) { + #ifdef SSH_AUDIT_EVENTS +diff -Nur openssh-5.4p1.orig/clientloop.c openssh-5.4p1/clientloop.c +--- openssh-5.4p1.orig/clientloop.c 2010-01-30 07:28:35.000000000 +0100 ++++ openssh-5.4p1/clientloop.c 2010-03-13 00:39:22.309033482 +0100 +@@ -111,6 +111,10 @@ + #include "msg.h" + #include "roaming.h" + ++#ifdef GSSAPI ++#include "ssh-gss.h" ++#endif ++ + /* import options */ + extern Options options; + +@@ -1431,6 +1435,13 @@ + /* Do channel operations unless rekeying in progress. */ + if (!rekeying) { + channel_after_select(readset, writeset); ++ ++ if (options.gss_renewal_rekey && ++ ssh_gssapi_credentials_updated(GSS_C_NO_CONTEXT)) { ++ debug("credentials updated - forcing rekey"); ++ need_rekeying = 1; ++ } ++ + if (need_rekeying || packet_need_rekeying()) { + debug("need rekeying"); + xxx_kex->done = 0; +diff -Nur openssh-5.4p1.orig/configure.ac openssh-5.4p1/configure.ac +--- openssh-5.4p1.orig/configure.ac 2010-03-05 05:04:35.000000000 +0100 ++++ openssh-5.4p1/configure.ac 2010-03-13 00:39:22.319807465 +0100 +@@ -477,6 +477,30 @@ + [Use tunnel device compatibility to OpenBSD]) + AC_DEFINE(SSH_TUN_PREPEND_AF, 1, + [Prepend the address family to IP tunnel traffic]) ++ AC_MSG_CHECKING(if we have the Security Authorization Session API) ++ AC_TRY_COMPILE([#include ], ++ [SessionCreate(0, 0);], ++ [ac_cv_use_security_session_api="yes" ++ AC_DEFINE(USE_SECURITY_SESSION_API, 1, ++ [platform has the Security Authorization Session API]) ++ LIBS="$LIBS -framework Security" ++ AC_MSG_RESULT(yes)], ++ [ac_cv_use_security_session_api="no" ++ AC_MSG_RESULT(no)]) ++ AC_MSG_CHECKING(if we have an in-memory credentials cache) ++ AC_TRY_COMPILE( ++ [#include ], ++ [cc_context_t c; ++ (void) cc_initialize (&c, 0, NULL, NULL);], ++ [AC_DEFINE(USE_CCAPI, 1, ++ [platform uses an in-memory credentials cache]) ++ LIBS="$LIBS -framework Security" ++ AC_MSG_RESULT(yes) ++ if test "x$ac_cv_use_security_session_api" = "xno"; then ++ AC_MSG_ERROR(*** Need a security framework to use the credentials cache API ***) ++ fi], ++ [AC_MSG_RESULT(no)] ++ ) + m4_pattern_allow(AU_IPv) + AC_CHECK_DECL(AU_IPv4, [], + AC_DEFINE(AU_IPv4, 0, [System only supports IPv4 audit records]) +diff -Nur openssh-5.4p1.orig/gss-genr.c openssh-5.4p1/gss-genr.c +--- openssh-5.4p1.orig/gss-genr.c 2009-06-22 08:11:07.000000000 +0200 ++++ openssh-5.4p1/gss-genr.c 2010-03-13 00:39:22.326293909 +0100 +@@ -1,7 +1,7 @@ + /* $OpenBSD: gss-genr.c,v 1.20 2009/06/22 05:39:28 dtucker Exp $ */ + + /* +- * Copyright (c) 2001-2007 Simon Wilkinson. All rights reserved. ++ * Copyright (c) 2001-2009 Simon Wilkinson. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions +@@ -39,12 +39,167 @@ + #include "buffer.h" + #include "log.h" + #include "ssh2.h" ++#include "cipher.h" ++#include "key.h" ++#include "kex.h" ++#include + + #include "ssh-gss.h" + + extern u_char *session_id2; + extern u_int session_id2_len; + ++typedef struct { ++ char *encoded; ++ gss_OID oid; ++} ssh_gss_kex_mapping; ++ ++/* ++ * XXX - It would be nice to find a more elegant way of handling the ++ * XXX passing of the key exchange context to the userauth routines ++ */ ++ ++Gssctxt *gss_kex_context = NULL; ++ ++static ssh_gss_kex_mapping *gss_enc2oid = NULL; ++ ++int ++ssh_gssapi_oid_table_ok() { ++ return (gss_enc2oid != NULL); ++} ++ ++/* ++ * Return a list of the gss-group1-sha1 mechanisms supported by this program ++ * ++ * We test mechanisms to ensure that we can use them, to avoid starting ++ * a key exchange with a bad mechanism ++ */ ++ ++char * ++ssh_gssapi_client_mechanisms(const char *host, const char *client) { ++ gss_OID_set gss_supported; ++ OM_uint32 min_status; ++ ++ if (GSS_ERROR(gss_indicate_mechs(&min_status, &gss_supported))) ++ return NULL; ++ ++ return(ssh_gssapi_kex_mechs(gss_supported, ssh_gssapi_check_mechanism, ++ host, client)); ++} ++ ++char * ++ssh_gssapi_kex_mechs(gss_OID_set gss_supported, ssh_gssapi_check_fn *check, ++ const char *host, const char *client) { ++ Buffer buf; ++ size_t i; ++ int oidpos, enclen; ++ char *mechs, *encoded; ++ u_char digest[EVP_MAX_MD_SIZE]; ++ char deroid[2]; ++ const EVP_MD *evp_md = EVP_md5(); ++ EVP_MD_CTX md; ++ ++ if (gss_enc2oid != NULL) { ++ for (i = 0; gss_enc2oid[i].encoded != NULL; i++) ++ xfree(gss_enc2oid[i].encoded); ++ xfree(gss_enc2oid); ++ } ++ ++ gss_enc2oid = xmalloc(sizeof(ssh_gss_kex_mapping) * ++ (gss_supported->count + 1)); ++ ++ buffer_init(&buf); ++ ++ oidpos = 0; ++ for (i = 0; i < gss_supported->count; i++) { ++ if (gss_supported->elements[i].length < 128 && ++ (*check)(NULL, &(gss_supported->elements[i]), host, client)) { ++ ++ deroid[0] = SSH_GSS_OIDTYPE; ++ deroid[1] = gss_supported->elements[i].length; ++ ++ EVP_DigestInit(&md, evp_md); ++ EVP_DigestUpdate(&md, deroid, 2); ++ EVP_DigestUpdate(&md, ++ gss_supported->elements[i].elements, ++ gss_supported->elements[i].length); ++ EVP_DigestFinal(&md, digest, NULL); ++ ++ encoded = xmalloc(EVP_MD_size(evp_md) * 2); ++ enclen = __b64_ntop(digest, EVP_MD_size(evp_md), ++ encoded, EVP_MD_size(evp_md) * 2); ++ ++ if (oidpos != 0) ++ buffer_put_char(&buf, ','); ++ ++ buffer_append(&buf, KEX_GSS_GEX_SHA1_ID, ++ sizeof(KEX_GSS_GEX_SHA1_ID) - 1); ++ buffer_append(&buf, encoded, enclen); ++ buffer_put_char(&buf, ','); ++ buffer_append(&buf, KEX_GSS_GRP1_SHA1_ID, ++ sizeof(KEX_GSS_GRP1_SHA1_ID) - 1); ++ buffer_append(&buf, encoded, enclen); ++ buffer_put_char(&buf, ','); ++ buffer_append(&buf, KEX_GSS_GRP14_SHA1_ID, ++ sizeof(KEX_GSS_GRP14_SHA1_ID) - 1); ++ buffer_append(&buf, encoded, enclen); ++ ++ gss_enc2oid[oidpos].oid = &(gss_supported->elements[i]); ++ gss_enc2oid[oidpos].encoded = encoded; ++ oidpos++; ++ } ++ } ++ gss_enc2oid[oidpos].oid = NULL; ++ gss_enc2oid[oidpos].encoded = NULL; ++ ++ buffer_put_char(&buf, '\0'); ++ ++ mechs = xmalloc(buffer_len(&buf)); ++ buffer_get(&buf, mechs, buffer_len(&buf)); ++ buffer_free(&buf); ++ ++ if (strlen(mechs) == 0) { ++ xfree(mechs); ++ mechs = NULL; ++ } ++ ++ return (mechs); ++} ++ ++gss_OID ++ssh_gssapi_id_kex(Gssctxt *ctx, char *name, int kex_type) { ++ int i = 0; ++ ++ switch (kex_type) { ++ case KEX_GSS_GRP1_SHA1: ++ if (strlen(name) < sizeof(KEX_GSS_GRP1_SHA1_ID)) ++ return GSS_C_NO_OID; ++ name += sizeof(KEX_GSS_GRP1_SHA1_ID) - 1; ++ break; ++ case KEX_GSS_GRP14_SHA1: ++ if (strlen(name) < sizeof(KEX_GSS_GRP14_SHA1_ID)) ++ return GSS_C_NO_OID; ++ name += sizeof(KEX_GSS_GRP14_SHA1_ID) - 1; ++ break; ++ case KEX_GSS_GEX_SHA1: ++ if (strlen(name) < sizeof(KEX_GSS_GEX_SHA1_ID)) ++ return GSS_C_NO_OID; ++ name += sizeof(KEX_GSS_GEX_SHA1_ID) - 1; ++ break; ++ default: ++ return GSS_C_NO_OID; ++ } ++ ++ while (gss_enc2oid[i].encoded != NULL && ++ strcmp(name, gss_enc2oid[i].encoded) != 0) ++ i++; ++ ++ if (gss_enc2oid[i].oid != NULL && ctx != NULL) ++ ssh_gssapi_set_oid(ctx, gss_enc2oid[i].oid); ++ ++ return gss_enc2oid[i].oid; ++} ++ + /* Check that the OID in a data stream matches that in the context */ + int + ssh_gssapi_check_oid(Gssctxt *ctx, void *data, size_t len) +@@ -197,7 +352,7 @@ + } + + ctx->major = gss_init_sec_context(&ctx->minor, +- GSS_C_NO_CREDENTIAL, &ctx->context, ctx->name, ctx->oid, ++ ctx->client_creds, &ctx->context, ctx->name, ctx->oid, + GSS_C_MUTUAL_FLAG | GSS_C_INTEG_FLAG | deleg_flag, + 0, NULL, recv_tok, NULL, send_tok, flags, NULL); + +@@ -227,8 +382,42 @@ + } + + OM_uint32 ++ssh_gssapi_client_identity(Gssctxt *ctx, const char *name) ++{ ++ gss_buffer_desc gssbuf; ++ gss_name_t gssname; ++ OM_uint32 status; ++ gss_OID_set oidset; ++ ++ gssbuf.value = (void *) name; ++ gssbuf.length = strlen(gssbuf.value); ++ ++ gss_create_empty_oid_set(&status, &oidset); ++ gss_add_oid_set_member(&status, ctx->oid, &oidset); ++ ++ ctx->major = gss_import_name(&ctx->minor, &gssbuf, ++ GSS_C_NT_USER_NAME, &gssname); ++ ++ if (!ctx->major) ++ ctx->major = gss_acquire_cred(&ctx->minor, ++ gssname, 0, oidset, GSS_C_INITIATE, ++ &ctx->client_creds, NULL, NULL); ++ ++ gss_release_name(&status, &gssname); ++ gss_release_oid_set(&status, &oidset); ++ ++ if (ctx->major) ++ ssh_gssapi_error(ctx); ++ ++ return(ctx->major); ++} ++ ++OM_uint32 + ssh_gssapi_sign(Gssctxt *ctx, gss_buffer_t buffer, gss_buffer_t hash) + { ++ if (ctx == NULL) ++ return -1; ++ + if ((ctx->major = gss_get_mic(&ctx->minor, ctx->context, + GSS_C_QOP_DEFAULT, buffer, hash))) + ssh_gssapi_error(ctx); +@@ -236,6 +425,19 @@ + return (ctx->major); + } + ++/* Priviledged when used by server */ ++OM_uint32 ++ssh_gssapi_checkmic(Gssctxt *ctx, gss_buffer_t gssbuf, gss_buffer_t gssmic) ++{ ++ if (ctx == NULL) ++ return -1; ++ ++ ctx->major = gss_verify_mic(&ctx->minor, ctx->context, ++ gssbuf, gssmic, NULL); ++ ++ return (ctx->major); ++} ++ + void + ssh_gssapi_buildmic(Buffer *b, const char *user, const char *service, + const char *context) +@@ -249,11 +451,16 @@ + } + + int +-ssh_gssapi_check_mechanism(Gssctxt **ctx, gss_OID oid, const char *host) ++ssh_gssapi_check_mechanism(Gssctxt **ctx, gss_OID oid, const char *host, ++ const char *client) + { + gss_buffer_desc token = GSS_C_EMPTY_BUFFER; + OM_uint32 major, minor; + gss_OID_desc spnego_oid = {6, (void *)"\x2B\x06\x01\x05\x05\x02"}; ++ Gssctxt *intctx = NULL; ++ ++ if (ctx == NULL) ++ ctx = &intctx; + + /* RFC 4462 says we MUST NOT do SPNEGO */ + if (oid->length == spnego_oid.length && +@@ -263,6 +470,10 @@ + ssh_gssapi_build_ctx(ctx); + ssh_gssapi_set_oid(*ctx, oid); + major = ssh_gssapi_import_name(*ctx, host); ++ ++ if (!GSS_ERROR(major) && client) ++ major = ssh_gssapi_client_identity(*ctx, client); ++ + if (!GSS_ERROR(major)) { + major = ssh_gssapi_init_ctx(*ctx, 0, GSS_C_NO_BUFFER, &token, + NULL); +@@ -272,10 +483,67 @@ + GSS_C_NO_BUFFER); + } + +- if (GSS_ERROR(major)) ++ if (GSS_ERROR(major) || intctx != NULL) + ssh_gssapi_delete_ctx(ctx); + + return (!GSS_ERROR(major)); + } + ++int ++ssh_gssapi_credentials_updated(Gssctxt *ctxt) { ++ static gss_name_t saved_name = GSS_C_NO_NAME; ++ static OM_uint32 saved_lifetime = 0; ++ static gss_OID saved_mech = GSS_C_NO_OID; ++ static gss_name_t name; ++ static OM_uint32 last_call = 0; ++ OM_uint32 lifetime, now, major, minor; ++ int equal; ++ gss_cred_usage_t usage = GSS_C_INITIATE; ++ ++ now = time(NULL); ++ ++ if (ctxt) { ++ debug("Rekey has happened - updating saved versions"); ++ ++ if (saved_name != GSS_C_NO_NAME) ++ gss_release_name(&minor, &saved_name); ++ ++ major = gss_inquire_cred(&minor, GSS_C_NO_CREDENTIAL, ++ &saved_name, &saved_lifetime, NULL, NULL); ++ ++ if (!GSS_ERROR(major)) { ++ saved_mech = ctxt->oid; ++ saved_lifetime+= now; ++ } else { ++ /* Handle the error */ ++ } ++ return 0; ++ } ++ ++ if (now - last_call < 10) ++ return 0; ++ ++ last_call = now; ++ ++ if (saved_mech == GSS_C_NO_OID) ++ return 0; ++ ++ major = gss_inquire_cred(&minor, GSS_C_NO_CREDENTIAL, ++ &name, &lifetime, NULL, NULL); ++ if (major == GSS_S_CREDENTIALS_EXPIRED) ++ return 0; ++ else if (GSS_ERROR(major)) ++ return 0; ++ ++ major = gss_compare_name(&minor, saved_name, name, &equal); ++ gss_release_name(&minor, &name); ++ if (GSS_ERROR(major)) ++ return 0; ++ ++ if (equal && (saved_lifetime < lifetime + now - 10)) ++ return 1; ++ ++ return 0; ++} ++ + #endif /* GSSAPI */ +diff -Nur openssh-5.4p1.orig/gss-serv-krb5.c openssh-5.4p1/gss-serv-krb5.c +--- openssh-5.4p1.orig/gss-serv-krb5.c 2006-09-01 07:38:36.000000000 +0200 ++++ openssh-5.4p1/gss-serv-krb5.c 2010-03-13 00:39:22.329666310 +0100 +@@ -1,7 +1,7 @@ + /* $OpenBSD: gss-serv-krb5.c,v 1.7 2006/08/03 03:34:42 deraadt Exp $ */ + + /* +- * Copyright (c) 2001-2003 Simon Wilkinson. All rights reserved. ++ * Copyright (c) 2001-2007 Simon Wilkinson. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions +@@ -120,6 +120,7 @@ + krb5_principal princ; + OM_uint32 maj_status, min_status; + int len; ++ const char *new_ccname; + + if (client->creds == NULL) { + debug("No credentials stored"); +@@ -168,11 +169,16 @@ + return; + } + +- client->store.filename = xstrdup(krb5_cc_get_name(krb_context, ccache)); ++ new_ccname = krb5_cc_get_name(krb_context, ccache); ++ + client->store.envvar = "KRB5CCNAME"; +- len = strlen(client->store.filename) + 6; +- client->store.envval = xmalloc(len); +- snprintf(client->store.envval, len, "FILE:%s", client->store.filename); ++#ifdef USE_CCAPI ++ xasprintf(&client->store.envval, "API:%s", new_ccname); ++ client->store.filename = NULL; ++#else ++ xasprintf(&client->store.envval, "FILE:%s", new_ccname); ++ client->store.filename = xstrdup(new_ccname); ++#endif + + #ifdef USE_PAM + if (options.use_pam) +@@ -184,6 +190,71 @@ + return; + } + ++int ++ssh_gssapi_krb5_updatecreds(ssh_gssapi_ccache *store, ++ ssh_gssapi_client *client) ++{ ++ krb5_ccache ccache = NULL; ++ krb5_principal principal = NULL; ++ char *name = NULL; ++ krb5_error_code problem; ++ OM_uint32 maj_status, min_status; ++ ++ if ((problem = krb5_cc_resolve(krb_context, store->envval, &ccache))) { ++ logit("krb5_cc_resolve(): %.100s", ++ krb5_get_err_text(krb_context, problem)); ++ return 0; ++ } ++ ++ /* Find out who the principal in this cache is */ ++ if ((problem = krb5_cc_get_principal(krb_context, ccache, ++ &principal))) { ++ logit("krb5_cc_get_principal(): %.100s", ++ krb5_get_err_text(krb_context, problem)); ++ krb5_cc_close(krb_context, ccache); ++ return 0; ++ } ++ ++ if ((problem = krb5_unparse_name(krb_context, principal, &name))) { ++ logit("krb5_unparse_name(): %.100s", ++ krb5_get_err_text(krb_context, problem)); ++ krb5_free_principal(krb_context, principal); ++ krb5_cc_close(krb_context, ccache); ++ return 0; ++ } ++ ++ ++ if (strcmp(name,client->exportedname.value)!=0) { ++ debug("Name in local credentials cache differs. Not storing"); ++ krb5_free_principal(krb_context, principal); ++ krb5_cc_close(krb_context, ccache); ++ krb5_free_unparsed_name(krb_context, name); ++ return 0; ++ } ++ krb5_free_unparsed_name(krb_context, name); ++ ++ /* Name matches, so lets get on with it! */ ++ ++ if ((problem = krb5_cc_initialize(krb_context, ccache, principal))) { ++ logit("krb5_cc_initialize(): %.100s", ++ krb5_get_err_text(krb_context, problem)); ++ krb5_free_principal(krb_context, principal); ++ krb5_cc_close(krb_context, ccache); ++ return 0; ++ } ++ ++ krb5_free_principal(krb_context, principal); ++ ++ if ((maj_status = gss_krb5_copy_ccache(&min_status, client->creds, ++ ccache))) { ++ logit("gss_krb5_copy_ccache() failed. Sorry!"); ++ krb5_cc_close(krb_context, ccache); ++ return 0; ++ } ++ ++ return 1; ++} ++ + ssh_gssapi_mech gssapi_kerberos_mech = { + "toWM5Slw5Ew8Mqkay+al2g==", + "Kerberos", +@@ -191,7 +262,8 @@ + NULL, + &ssh_gssapi_krb5_userok, + NULL, +- &ssh_gssapi_krb5_storecreds ++ &ssh_gssapi_krb5_storecreds, ++ &ssh_gssapi_krb5_updatecreds + }; + + #endif /* KRB5 */ +diff -Nur openssh-5.4p1.orig/gss-serv.c openssh-5.4p1/gss-serv.c +--- openssh-5.4p1.orig/gss-serv.c 2008-05-19 07:05:07.000000000 +0200 ++++ openssh-5.4p1/gss-serv.c 2010-03-13 00:39:22.335213222 +0100 +@@ -1,7 +1,7 @@ + /* $OpenBSD: gss-serv.c,v 1.22 2008/05/08 12:02:23 djm Exp $ */ + + /* +- * Copyright (c) 2001-2003 Simon Wilkinson. All rights reserved. ++ * Copyright (c) 2001-2009 Simon Wilkinson. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions +@@ -45,15 +45,20 @@ + #include "channels.h" + #include "session.h" + #include "misc.h" ++#include "servconf.h" ++#include "uidswap.h" + + #include "ssh-gss.h" ++#include "monitor_wrap.h" ++ ++extern ServerOptions options; + + static ssh_gssapi_client gssapi_client = + { GSS_C_EMPTY_BUFFER, GSS_C_EMPTY_BUFFER, +- GSS_C_NO_CREDENTIAL, NULL, {NULL, NULL, NULL}}; ++ GSS_C_NO_CREDENTIAL, GSS_C_NO_NAME, NULL, {NULL, NULL, NULL}, 0, 0}; + + ssh_gssapi_mech gssapi_null_mech = +- { NULL, NULL, {0, NULL}, NULL, NULL, NULL, NULL}; ++ { NULL, NULL, {0, NULL}, NULL, NULL, NULL, NULL, NULL}; + + #ifdef KRB5 + extern ssh_gssapi_mech gssapi_kerberos_mech; +@@ -81,25 +86,32 @@ + char lname[MAXHOSTNAMELEN]; + gss_OID_set oidset; + +- gss_create_empty_oid_set(&status, &oidset); +- gss_add_oid_set_member(&status, ctx->oid, &oidset); ++ if (options.gss_strict_acceptor) { ++ gss_create_empty_oid_set(&status, &oidset); ++ gss_add_oid_set_member(&status, ctx->oid, &oidset); ++ ++ if (gethostname(lname, MAXHOSTNAMELEN)) { ++ gss_release_oid_set(&status, &oidset); ++ return (-1); ++ } + +- if (gethostname(lname, MAXHOSTNAMELEN)) { +- gss_release_oid_set(&status, &oidset); +- return (-1); +- } ++ if (GSS_ERROR(ssh_gssapi_import_name(ctx, lname))) { ++ gss_release_oid_set(&status, &oidset); ++ return (ctx->major); ++ } ++ ++ if ((ctx->major = gss_acquire_cred(&ctx->minor, ++ ctx->name, 0, oidset, GSS_C_ACCEPT, &ctx->creds, ++ NULL, NULL))) ++ ssh_gssapi_error(ctx); + +- if (GSS_ERROR(ssh_gssapi_import_name(ctx, lname))) { + gss_release_oid_set(&status, &oidset); + return (ctx->major); ++ } else { ++ ctx->name = GSS_C_NO_NAME; ++ ctx->creds = GSS_C_NO_CREDENTIAL; + } +- +- if ((ctx->major = gss_acquire_cred(&ctx->minor, +- ctx->name, 0, oidset, GSS_C_ACCEPT, &ctx->creds, NULL, NULL))) +- ssh_gssapi_error(ctx); +- +- gss_release_oid_set(&status, &oidset); +- return (ctx->major); ++ return GSS_S_COMPLETE; + } + + /* Privileged */ +@@ -114,6 +126,29 @@ + } + + /* Unprivileged */ ++char * ++ssh_gssapi_server_mechanisms() { ++ gss_OID_set supported; ++ ++ ssh_gssapi_supported_oids(&supported); ++ return (ssh_gssapi_kex_mechs(supported, &ssh_gssapi_server_check_mech, ++ NULL, NULL)); ++} ++ ++/* Unprivileged */ ++int ++ssh_gssapi_server_check_mech(Gssctxt **dum, gss_OID oid, const char *data, ++ const char *dummy) { ++ Gssctxt *ctx = NULL; ++ int res; ++ ++ res = !GSS_ERROR(PRIVSEP(ssh_gssapi_server_ctx(&ctx, oid))); ++ ssh_gssapi_delete_ctx(&ctx); ++ ++ return (res); ++} ++ ++/* Unprivileged */ + void + ssh_gssapi_supported_oids(gss_OID_set *oidset) + { +@@ -123,7 +158,9 @@ + gss_OID_set supported; + + gss_create_empty_oid_set(&min_status, oidset); +- gss_indicate_mechs(&min_status, &supported); ++ ++ if (GSS_ERROR(gss_indicate_mechs(&min_status, &supported))) ++ return; + + while (supported_mechs[i]->name != NULL) { + if (GSS_ERROR(gss_test_oid_set_member(&min_status, +@@ -247,8 +284,48 @@ + ssh_gssapi_getclient(Gssctxt *ctx, ssh_gssapi_client *client) + { + int i = 0; ++ int equal = 0; ++ gss_name_t new_name = GSS_C_NO_NAME; ++ gss_buffer_desc ename = GSS_C_EMPTY_BUFFER; ++ ++ if (options.gss_store_rekey && client->used && ctx->client_creds) { ++ if (client->mech->oid.length != ctx->oid->length || ++ (memcmp(client->mech->oid.elements, ++ ctx->oid->elements, ctx->oid->length) !=0)) { ++ debug("Rekeyed credentials have different mechanism"); ++ return GSS_S_COMPLETE; ++ } ++ ++ if ((ctx->major = gss_inquire_cred_by_mech(&ctx->minor, ++ ctx->client_creds, ctx->oid, &new_name, ++ NULL, NULL, NULL))) { ++ ssh_gssapi_error(ctx); ++ return (ctx->major); ++ } ++ ++ ctx->major = gss_compare_name(&ctx->minor, client->name, ++ new_name, &equal); + +- gss_buffer_desc ename; ++ if (GSS_ERROR(ctx->major)) { ++ ssh_gssapi_error(ctx); ++ return (ctx->major); ++ } ++ ++ if (!equal) { ++ debug("Rekeyed credentials have different name"); ++ return GSS_S_COMPLETE; ++ } ++ ++ debug("Marking rekeyed credentials for export"); ++ ++ gss_release_name(&ctx->minor, &client->name); ++ gss_release_cred(&ctx->minor, &client->creds); ++ client->name = new_name; ++ client->creds = ctx->client_creds; ++ ctx->client_creds = GSS_C_NO_CREDENTIAL; ++ client->updated = 1; ++ return GSS_S_COMPLETE; ++ } + + client->mech = NULL; + +@@ -263,6 +340,13 @@ + if (client->mech == NULL) + return GSS_S_FAILURE; + ++ if (ctx->client_creds && ++ (ctx->major = gss_inquire_cred_by_mech(&ctx->minor, ++ ctx->client_creds, ctx->oid, &client->name, NULL, NULL, NULL))) { ++ ssh_gssapi_error(ctx); ++ return (ctx->major); ++ } ++ + if ((ctx->major = gss_display_name(&ctx->minor, ctx->client, + &client->displayname, NULL))) { + ssh_gssapi_error(ctx); +@@ -280,6 +364,8 @@ + return (ctx->major); + } + ++ gss_release_buffer(&ctx->minor, &ename); ++ + /* We can't copy this structure, so we just move the pointer to it */ + client->creds = ctx->client_creds; + ctx->client_creds = GSS_C_NO_CREDENTIAL; +@@ -327,7 +413,7 @@ + + /* Privileged */ + int +-ssh_gssapi_userok(char *user) ++ssh_gssapi_userok(char *user, struct passwd *pw) + { + OM_uint32 lmin; + +@@ -337,9 +423,11 @@ + return 0; + } + if (gssapi_client.mech && gssapi_client.mech->userok) +- if ((*gssapi_client.mech->userok)(&gssapi_client, user)) ++ if ((*gssapi_client.mech->userok)(&gssapi_client, user)) { ++ gssapi_client.used = 1; ++ gssapi_client.store.owner = pw; + return 1; +- else { ++ } else { + /* Destroy delegated credentials if userok fails */ + gss_release_buffer(&lmin, &gssapi_client.displayname); + gss_release_buffer(&lmin, &gssapi_client.exportedname); +@@ -352,14 +440,90 @@ + return (0); + } + +-/* Privileged */ +-OM_uint32 +-ssh_gssapi_checkmic(Gssctxt *ctx, gss_buffer_t gssbuf, gss_buffer_t gssmic) ++/* These bits are only used for rekeying. The unpriviledged child is running ++ * as the user, the monitor is root. ++ * ++ * In the child, we want to : ++ * *) Ask the monitor to store our credentials into the store we specify ++ * *) If it succeeds, maybe do a PAM update ++ */ ++ ++/* Stuff for PAM */ ++ ++#ifdef USE_PAM ++static int ssh_gssapi_simple_conv(int n, const struct pam_message **msg, ++ struct pam_response **resp, void *data) + { +- ctx->major = gss_verify_mic(&ctx->minor, ctx->context, +- gssbuf, gssmic, NULL); ++ return (PAM_CONV_ERR); ++} ++#endif + +- return (ctx->major); ++void ++ssh_gssapi_rekey_creds() { ++ int ok; ++ int ret; ++#ifdef USE_PAM ++ pam_handle_t *pamh = NULL; ++ struct pam_conv pamconv = {ssh_gssapi_simple_conv, NULL}; ++ char *envstr; ++#endif ++ ++ if (gssapi_client.store.filename == NULL && ++ gssapi_client.store.envval == NULL && ++ gssapi_client.store.envvar == NULL) ++ return; ++ ++ ok = PRIVSEP(ssh_gssapi_update_creds(&gssapi_client.store)); ++ ++ if (!ok) ++ return; ++ ++ debug("Rekeyed credentials stored successfully"); ++ ++ /* Actually managing to play with the ssh pam stack from here will ++ * be next to impossible. In any case, we may want different options ++ * for rekeying. So, use our own :) ++ */ ++#ifdef USE_PAM ++ if (!use_privsep) { ++ debug("Not even going to try and do PAM with privsep disabled"); ++ return; ++ } ++ ++ ret = pam_start("sshd-rekey", gssapi_client.store.owner->pw_name, ++ &pamconv, &pamh); ++ if (ret) ++ return; ++ ++ xasprintf(&envstr, "%s=%s", gssapi_client.store.envvar, ++ gssapi_client.store.envval); ++ ++ ret = pam_putenv(pamh, envstr); ++ if (!ret) ++ pam_setcred(pamh, PAM_REINITIALIZE_CRED); ++ pam_end(pamh, PAM_SUCCESS); ++#endif ++} ++ ++int ++ssh_gssapi_update_creds(ssh_gssapi_ccache *store) { ++ int ok = 0; ++ ++ /* Check we've got credentials to store */ ++ if (!gssapi_client.updated) ++ return 0; ++ ++ gssapi_client.updated = 0; ++ ++ temporarily_use_uid(gssapi_client.store.owner); ++ if (gssapi_client.mech && gssapi_client.mech->updatecreds) ++ ok = (*gssapi_client.mech->updatecreds)(store, &gssapi_client); ++ else ++ debug("No update function for this mechanism"); ++ ++ restore_uid(); ++ ++ return ok; + } + + #endif +diff -Nur openssh-5.4p1.orig/kex.c openssh-5.4p1/kex.c +--- openssh-5.4p1.orig/kex.c 2010-01-08 06:50:41.000000000 +0100 ++++ openssh-5.4p1/kex.c 2010-03-13 00:39:22.339231004 +0100 +@@ -50,6 +50,10 @@ + #include "monitor.h" + #include "roaming.h" + ++#ifdef GSSAPI ++#include "ssh-gss.h" ++#endif ++ + #if OPENSSL_VERSION_NUMBER >= 0x00907000L + # if defined(HAVE_EVP_SHA256) + # define evp_ssh_sha256 EVP_sha256 +@@ -326,6 +330,20 @@ + k->kex_type = KEX_DH_GEX_SHA256; + k->evp_md = evp_ssh_sha256(); + #endif ++#ifdef GSSAPI ++ } else if (strncmp(k->name, KEX_GSS_GEX_SHA1_ID, ++ sizeof(KEX_GSS_GEX_SHA1_ID) - 1) == 0) { ++ k->kex_type = KEX_GSS_GEX_SHA1; ++ k->evp_md = EVP_sha1(); ++ } else if (strncmp(k->name, KEX_GSS_GRP1_SHA1_ID, ++ sizeof(KEX_GSS_GRP1_SHA1_ID) - 1) == 0) { ++ k->kex_type = KEX_GSS_GRP1_SHA1; ++ k->evp_md = EVP_sha1(); ++ } else if (strncmp(k->name, KEX_GSS_GRP14_SHA1_ID, ++ sizeof(KEX_GSS_GRP14_SHA1_ID) - 1) == 0) { ++ k->kex_type = KEX_GSS_GRP14_SHA1; ++ k->evp_md = EVP_sha1(); ++#endif + } else + fatal("bad kex alg %s", k->name); + } +diff -Nur openssh-5.4p1.orig/kex.h openssh-5.4p1/kex.h +--- openssh-5.4p1.orig/kex.h 2010-02-26 21:55:05.000000000 +0100 ++++ openssh-5.4p1/kex.h 2010-03-13 00:39:22.342872379 +0100 +@@ -67,6 +67,9 @@ + KEX_DH_GRP14_SHA1, + KEX_DH_GEX_SHA1, + KEX_DH_GEX_SHA256, ++ KEX_GSS_GRP1_SHA1, ++ KEX_GSS_GRP14_SHA1, ++ KEX_GSS_GEX_SHA1, + KEX_MAX + }; + +@@ -123,6 +126,12 @@ + sig_atomic_t done; + int flags; + const EVP_MD *evp_md; ++#ifdef GSSAPI ++ int gss_deleg_creds; ++ int gss_trust_dns; ++ char *gss_host; ++ char *gss_client; ++#endif + char *client_version_string; + char *server_version_string; + int (*verify_host_key)(Key *); +@@ -146,6 +155,11 @@ + void kexgex_client(Kex *); + void kexgex_server(Kex *); + ++#ifdef GSSAPI ++void kexgss_client(Kex *); ++void kexgss_server(Kex *); ++#endif ++ + void + kex_dh_hash(char *, char *, char *, int, char *, int, u_char *, int, + BIGNUM *, BIGNUM *, BIGNUM *, u_char **, u_int *); +diff -Nur openssh-5.4p1.orig/kexgssc.c openssh-5.4p1/kexgssc.c +--- openssh-5.4p1.orig/kexgssc.c 1970-01-01 01:00:00.000000000 +0100 ++++ openssh-5.4p1/kexgssc.c 2010-03-13 00:39:22.345386953 +0100 +@@ -0,0 +1,334 @@ ++/* ++ * Copyright (c) 2001-2009 Simon Wilkinson. 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. ++ * ++ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR `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 AUTHOR 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. ++ */ ++ ++#include "includes.h" ++ ++#ifdef GSSAPI ++ ++#include "includes.h" ++ ++#include ++#include ++ ++#include ++ ++#include "xmalloc.h" ++#include "buffer.h" ++#include "ssh2.h" ++#include "key.h" ++#include "cipher.h" ++#include "kex.h" ++#include "log.h" ++#include "packet.h" ++#include "dh.h" ++ ++#include "ssh-gss.h" ++ ++void ++kexgss_client(Kex *kex) { ++ gss_buffer_desc send_tok = GSS_C_EMPTY_BUFFER; ++ gss_buffer_desc recv_tok, gssbuf, msg_tok, *token_ptr; ++ Gssctxt *ctxt; ++ OM_uint32 maj_status, min_status, ret_flags; ++ u_int klen, kout, slen = 0, hashlen, strlen; ++ DH *dh; ++ BIGNUM *dh_server_pub = NULL; ++ BIGNUM *shared_secret = NULL; ++ BIGNUM *p = NULL; ++ BIGNUM *g = NULL; ++ u_char *kbuf, *hash; ++ u_char *serverhostkey = NULL; ++ u_char *empty = ""; ++ char *msg; ++ char *lang; ++ int type = 0; ++ int first = 1; ++ int nbits = 0, min = DH_GRP_MIN, max = DH_GRP_MAX; ++ ++ /* Initialise our GSSAPI world */ ++ ssh_gssapi_build_ctx(&ctxt); ++ if (ssh_gssapi_id_kex(ctxt, kex->name, kex->kex_type) ++ == GSS_C_NO_OID) ++ fatal("Couldn't identify host exchange"); ++ ++ if (ssh_gssapi_import_name(ctxt, kex->gss_host)) ++ fatal("Couldn't import hostname"); ++ ++ if (kex->gss_client && ++ ssh_gssapi_client_identity(ctxt, kex->gss_client)) ++ fatal("Couldn't acquire client credentials"); ++ ++ switch (kex->kex_type) { ++ case KEX_GSS_GRP1_SHA1: ++ dh = dh_new_group1(); ++ break; ++ case KEX_GSS_GRP14_SHA1: ++ dh = dh_new_group14(); ++ break; ++ case KEX_GSS_GEX_SHA1: ++ debug("Doing group exchange\n"); ++ nbits = dh_estimate(kex->we_need * 8); ++ packet_start(SSH2_MSG_KEXGSS_GROUPREQ); ++ packet_put_int(min); ++ packet_put_int(nbits); ++ packet_put_int(max); ++ ++ packet_send(); ++ ++ packet_read_expect(SSH2_MSG_KEXGSS_GROUP); ++ ++ if ((p = BN_new()) == NULL) ++ fatal("BN_new() failed"); ++ packet_get_bignum2(p); ++ if ((g = BN_new()) == NULL) ++ fatal("BN_new() failed"); ++ packet_get_bignum2(g); ++ packet_check_eom(); ++ ++ if (BN_num_bits(p) < min || BN_num_bits(p) > max) ++ fatal("GSSGRP_GEX group out of range: %d !< %d !< %d", ++ min, BN_num_bits(p), max); ++ ++ dh = dh_new_group(g, p); ++ break; ++ default: ++ fatal("%s: Unexpected KEX type %d", __func__, kex->kex_type); ++ } ++ ++ /* Step 1 - e is dh->pub_key */ ++ dh_gen_key(dh, kex->we_need * 8); ++ ++ /* This is f, we initialise it now to make life easier */ ++ dh_server_pub = BN_new(); ++ if (dh_server_pub == NULL) ++ fatal("dh_server_pub == NULL"); ++ ++ token_ptr = GSS_C_NO_BUFFER; ++ ++ do { ++ debug("Calling gss_init_sec_context"); ++ ++ maj_status = ssh_gssapi_init_ctx(ctxt, ++ kex->gss_deleg_creds, token_ptr, &send_tok, ++ &ret_flags); ++ ++ if (GSS_ERROR(maj_status)) { ++ if (send_tok.length != 0) { ++ packet_start(SSH2_MSG_KEXGSS_CONTINUE); ++ packet_put_string(send_tok.value, ++ send_tok.length); ++ } ++ fatal("gss_init_context failed"); ++ } ++ ++ /* If we've got an old receive buffer get rid of it */ ++ if (token_ptr != GSS_C_NO_BUFFER) ++ xfree(recv_tok.value); ++ ++ if (maj_status == GSS_S_COMPLETE) { ++ /* If mutual state flag is not true, kex fails */ ++ if (!(ret_flags & GSS_C_MUTUAL_FLAG)) ++ fatal("Mutual authentication failed"); ++ ++ /* If integ avail flag is not true kex fails */ ++ if (!(ret_flags & GSS_C_INTEG_FLAG)) ++ fatal("Integrity check failed"); ++ } ++ ++ /* ++ * If we have data to send, then the last message that we ++ * received cannot have been a 'complete'. ++ */ ++ if (send_tok.length != 0) { ++ if (first) { ++ packet_start(SSH2_MSG_KEXGSS_INIT); ++ packet_put_string(send_tok.value, ++ send_tok.length); ++ packet_put_bignum2(dh->pub_key); ++ first = 0; ++ } else { ++ packet_start(SSH2_MSG_KEXGSS_CONTINUE); ++ packet_put_string(send_tok.value, ++ send_tok.length); ++ } ++ packet_send(); ++ gss_release_buffer(&min_status, &send_tok); ++ ++ /* If we've sent them data, they should reply */ ++ do { ++ type = packet_read(); ++ if (type == SSH2_MSG_KEXGSS_HOSTKEY) { ++ debug("Received KEXGSS_HOSTKEY"); ++ if (serverhostkey) ++ fatal("Server host key received more than once"); ++ serverhostkey = ++ packet_get_string(&slen); ++ } ++ } while (type == SSH2_MSG_KEXGSS_HOSTKEY); ++ ++ switch (type) { ++ case SSH2_MSG_KEXGSS_CONTINUE: ++ debug("Received GSSAPI_CONTINUE"); ++ if (maj_status == GSS_S_COMPLETE) ++ fatal("GSSAPI Continue received from server when complete"); ++ recv_tok.value = packet_get_string(&strlen); ++ recv_tok.length = strlen; ++ break; ++ case SSH2_MSG_KEXGSS_COMPLETE: ++ debug("Received GSSAPI_COMPLETE"); ++ packet_get_bignum2(dh_server_pub); ++ msg_tok.value = packet_get_string(&strlen); ++ msg_tok.length = strlen; ++ ++ /* Is there a token included? */ ++ if (packet_get_char()) { ++ recv_tok.value= ++ packet_get_string(&strlen); ++ recv_tok.length = strlen; ++ /* If we're already complete - protocol error */ ++ if (maj_status == GSS_S_COMPLETE) ++ packet_disconnect("Protocol error: received token when complete"); ++ } else { ++ /* No token included */ ++ if (maj_status != GSS_S_COMPLETE) ++ packet_disconnect("Protocol error: did not receive final token"); ++ } ++ break; ++ case SSH2_MSG_KEXGSS_ERROR: ++ debug("Received Error"); ++ maj_status = packet_get_int(); ++ min_status = packet_get_int(); ++ msg = packet_get_string(NULL); ++ lang = packet_get_string(NULL); ++ fatal("GSSAPI Error: \n%.400s",msg); ++ default: ++ packet_disconnect("Protocol error: didn't expect packet type %d", ++ type); ++ } ++ token_ptr = &recv_tok; ++ } else { ++ /* No data, and not complete */ ++ if (maj_status != GSS_S_COMPLETE) ++ fatal("Not complete, and no token output"); ++ } ++ } while (maj_status & GSS_S_CONTINUE_NEEDED); ++ ++ /* ++ * We _must_ have received a COMPLETE message in reply from the ++ * server, which will have set dh_server_pub and msg_tok ++ */ ++ ++ if (type != SSH2_MSG_KEXGSS_COMPLETE) ++ fatal("Didn't receive a SSH2_MSG_KEXGSS_COMPLETE when I expected it"); ++ ++ /* Check f in range [1, p-1] */ ++ if (!dh_pub_is_valid(dh, dh_server_pub)) ++ packet_disconnect("bad server public DH value"); ++ ++ /* compute K=f^x mod p */ ++ klen = DH_size(dh); ++ kbuf = xmalloc(klen); ++ kout = DH_compute_key(kbuf, dh_server_pub, dh); ++ if (kout < 0) ++ fatal("DH_compute_key: failed"); ++ ++ shared_secret = BN_new(); ++ if (shared_secret == NULL) ++ fatal("kexgss_client: BN_new failed"); ++ ++ if (BN_bin2bn(kbuf, kout, shared_secret) == NULL) ++ fatal("kexdh_client: BN_bin2bn failed"); ++ ++ memset(kbuf, 0, klen); ++ xfree(kbuf); ++ ++ switch (kex->kex_type) { ++ case KEX_GSS_GRP1_SHA1: ++ case KEX_GSS_GRP14_SHA1: ++ kex_dh_hash( kex->client_version_string, ++ kex->server_version_string, ++ buffer_ptr(&kex->my), buffer_len(&kex->my), ++ buffer_ptr(&kex->peer), buffer_len(&kex->peer), ++ (serverhostkey ? serverhostkey : empty), slen, ++ dh->pub_key, /* e */ ++ dh_server_pub, /* f */ ++ shared_secret, /* K */ ++ &hash, &hashlen ++ ); ++ break; ++ case KEX_GSS_GEX_SHA1: ++ kexgex_hash( ++ kex->evp_md, ++ kex->client_version_string, ++ kex->server_version_string, ++ buffer_ptr(&kex->my), buffer_len(&kex->my), ++ buffer_ptr(&kex->peer), buffer_len(&kex->peer), ++ (serverhostkey ? serverhostkey : empty), slen, ++ min, nbits, max, ++ dh->p, dh->g, ++ dh->pub_key, ++ dh_server_pub, ++ shared_secret, ++ &hash, &hashlen ++ ); ++ break; ++ default: ++ fatal("%s: Unexpected KEX type %d", __func__, kex->kex_type); ++ } ++ ++ gssbuf.value = hash; ++ gssbuf.length = hashlen; ++ ++ /* Verify that the hash matches the MIC we just got. */ ++ if (GSS_ERROR(ssh_gssapi_checkmic(ctxt, &gssbuf, &msg_tok))) ++ packet_disconnect("Hash's MIC didn't verify"); ++ ++ xfree(msg_tok.value); ++ ++ DH_free(dh); ++ if (serverhostkey) ++ xfree(serverhostkey); ++ BN_clear_free(dh_server_pub); ++ ++ /* save session id */ ++ if (kex->session_id == NULL) { ++ kex->session_id_len = hashlen; ++ kex->session_id = xmalloc(kex->session_id_len); ++ memcpy(kex->session_id, hash, kex->session_id_len); ++ } ++ ++ if (kex->gss_deleg_creds) ++ ssh_gssapi_credentials_updated(ctxt); ++ ++ if (gss_kex_context == NULL) ++ gss_kex_context = ctxt; ++ else ++ ssh_gssapi_delete_ctx(&ctxt); ++ ++ kex_derive_keys(kex, hash, hashlen, shared_secret); ++ BN_clear_free(shared_secret); ++ kex_finish(kex); ++} ++ ++#endif /* GSSAPI */ +diff -Nur openssh-5.4p1.orig/kexgsss.c openssh-5.4p1/kexgsss.c +--- openssh-5.4p1.orig/kexgsss.c 1970-01-01 01:00:00.000000000 +0100 ++++ openssh-5.4p1/kexgsss.c 2010-03-13 00:39:22.347367946 +0100 +@@ -0,0 +1,288 @@ ++/* ++ * Copyright (c) 2001-2009 Simon Wilkinson. 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. ++ * ++ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR `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 AUTHOR 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. ++ */ ++ ++#include "includes.h" ++ ++#ifdef GSSAPI ++ ++#include ++ ++#include ++#include ++ ++#include "xmalloc.h" ++#include "buffer.h" ++#include "ssh2.h" ++#include "key.h" ++#include "cipher.h" ++#include "kex.h" ++#include "log.h" ++#include "packet.h" ++#include "dh.h" ++#include "ssh-gss.h" ++#include "monitor_wrap.h" ++#include "servconf.h" ++ ++extern ServerOptions options; ++ ++void ++kexgss_server(Kex *kex) ++{ ++ OM_uint32 maj_status, min_status; ++ ++ /* ++ * Some GSSAPI implementations use the input value of ret_flags (an ++ * output variable) as a means of triggering mechanism specific ++ * features. Initializing it to zero avoids inadvertently ++ * activating this non-standard behaviour. ++ */ ++ ++ OM_uint32 ret_flags = 0; ++ gss_buffer_desc gssbuf, recv_tok, msg_tok; ++ gss_buffer_desc send_tok = GSS_C_EMPTY_BUFFER; ++ Gssctxt *ctxt = NULL; ++ u_int slen, klen, kout, hashlen; ++ u_char *kbuf, *hash; ++ DH *dh; ++ int min = -1, max = -1, nbits = -1; ++ BIGNUM *shared_secret = NULL; ++ BIGNUM *dh_client_pub = NULL; ++ int type = 0; ++ gss_OID oid; ++ char *mechs; ++ ++ /* Initialise GSSAPI */ ++ ++ /* If we're rekeying, privsep means that some of the private structures ++ * in the GSSAPI code are no longer available. This kludges them back ++ * into life ++ */ ++ if (!ssh_gssapi_oid_table_ok()) ++ if ((mechs = ssh_gssapi_server_mechanisms())) ++ xfree(mechs); ++ ++ debug2("%s: Identifying %s", __func__, kex->name); ++ oid = ssh_gssapi_id_kex(NULL, kex->name, kex->kex_type); ++ if (oid == GSS_C_NO_OID) ++ fatal("Unknown gssapi mechanism"); ++ ++ debug2("%s: Acquiring credentials", __func__); ++ ++ if (GSS_ERROR(PRIVSEP(ssh_gssapi_server_ctx(&ctxt, oid)))) ++ fatal("Unable to acquire credentials for the server"); ++ ++ switch (kex->kex_type) { ++ case KEX_GSS_GRP1_SHA1: ++ dh = dh_new_group1(); ++ break; ++ case KEX_GSS_GRP14_SHA1: ++ dh = dh_new_group14(); ++ break; ++ case KEX_GSS_GEX_SHA1: ++ debug("Doing group exchange"); ++ packet_read_expect(SSH2_MSG_KEXGSS_GROUPREQ); ++ min = packet_get_int(); ++ nbits = packet_get_int(); ++ max = packet_get_int(); ++ min = MAX(DH_GRP_MIN, min); ++ max = MIN(DH_GRP_MAX, max); ++ packet_check_eom(); ++ if (max < min || nbits < min || max < nbits) ++ fatal("GSS_GEX, bad parameters: %d !< %d !< %d", ++ min, nbits, max); ++ dh = PRIVSEP(choose_dh(min, nbits, max)); ++ if (dh == NULL) ++ packet_disconnect("Protocol error: no matching group found"); ++ ++ packet_start(SSH2_MSG_KEXGSS_GROUP); ++ packet_put_bignum2(dh->p); ++ packet_put_bignum2(dh->g); ++ packet_send(); ++ ++ packet_write_wait(); ++ break; ++ default: ++ fatal("%s: Unexpected KEX type %d", __func__, kex->kex_type); ++ } ++ ++ dh_gen_key(dh, kex->we_need * 8); ++ ++ do { ++ debug("Wait SSH2_MSG_GSSAPI_INIT"); ++ type = packet_read(); ++ switch(type) { ++ case SSH2_MSG_KEXGSS_INIT: ++ if (dh_client_pub != NULL) ++ fatal("Received KEXGSS_INIT after initialising"); ++ recv_tok.value = packet_get_string(&slen); ++ recv_tok.length = slen; ++ ++ if ((dh_client_pub = BN_new()) == NULL) ++ fatal("dh_client_pub == NULL"); ++ ++ packet_get_bignum2(dh_client_pub); ++ ++ /* Send SSH_MSG_KEXGSS_HOSTKEY here, if we want */ ++ break; ++ case SSH2_MSG_KEXGSS_CONTINUE: ++ recv_tok.value = packet_get_string(&slen); ++ recv_tok.length = slen; ++ break; ++ default: ++ packet_disconnect( ++ "Protocol error: didn't expect packet type %d", ++ type); ++ } ++ ++ maj_status = PRIVSEP(ssh_gssapi_accept_ctx(ctxt, &recv_tok, ++ &send_tok, &ret_flags)); ++ ++ xfree(recv_tok.value); ++ ++ if (maj_status != GSS_S_COMPLETE && send_tok.length == 0) ++ fatal("Zero length token output when incomplete"); ++ ++ if (dh_client_pub == NULL) ++ fatal("No client public key"); ++ ++ if (maj_status & GSS_S_CONTINUE_NEEDED) { ++ debug("Sending GSSAPI_CONTINUE"); ++ packet_start(SSH2_MSG_KEXGSS_CONTINUE); ++ packet_put_string(send_tok.value, send_tok.length); ++ packet_send(); ++ gss_release_buffer(&min_status, &send_tok); ++ } ++ } while (maj_status & GSS_S_CONTINUE_NEEDED); ++ ++ if (GSS_ERROR(maj_status)) { ++ if (send_tok.length > 0) { ++ packet_start(SSH2_MSG_KEXGSS_CONTINUE); ++ packet_put_string(send_tok.value, send_tok.length); ++ packet_send(); ++ } ++ fatal("accept_ctx died"); ++ } ++ ++ if (!(ret_flags & GSS_C_MUTUAL_FLAG)) ++ fatal("Mutual Authentication flag wasn't set"); ++ ++ if (!(ret_flags & GSS_C_INTEG_FLAG)) ++ fatal("Integrity flag wasn't set"); ++ ++ if (!dh_pub_is_valid(dh, dh_client_pub)) ++ packet_disconnect("bad client public DH value"); ++ ++ klen = DH_size(dh); ++ kbuf = xmalloc(klen); ++ kout = DH_compute_key(kbuf, dh_client_pub, dh); ++ if (kout < 0) ++ fatal("DH_compute_key: failed"); ++ ++ shared_secret = BN_new(); ++ if (shared_secret == NULL) ++ fatal("kexgss_server: BN_new failed"); ++ ++ if (BN_bin2bn(kbuf, kout, shared_secret) == NULL) ++ fatal("kexgss_server: BN_bin2bn failed"); ++ ++ memset(kbuf, 0, klen); ++ xfree(kbuf); ++ ++ switch (kex->kex_type) { ++ case KEX_GSS_GRP1_SHA1: ++ case KEX_GSS_GRP14_SHA1: ++ kex_dh_hash( ++ kex->client_version_string, kex->server_version_string, ++ buffer_ptr(&kex->peer), buffer_len(&kex->peer), ++ buffer_ptr(&kex->my), buffer_len(&kex->my), ++ NULL, 0, /* Change this if we start sending host keys */ ++ dh_client_pub, dh->pub_key, shared_secret, ++ &hash, &hashlen ++ ); ++ break; ++ case KEX_GSS_GEX_SHA1: ++ kexgex_hash( ++ kex->evp_md, ++ kex->client_version_string, kex->server_version_string, ++ buffer_ptr(&kex->peer), buffer_len(&kex->peer), ++ buffer_ptr(&kex->my), buffer_len(&kex->my), ++ NULL, 0, ++ min, nbits, max, ++ dh->p, dh->g, ++ dh_client_pub, ++ dh->pub_key, ++ shared_secret, ++ &hash, &hashlen ++ ); ++ break; ++ default: ++ fatal("%s: Unexpected KEX type %d", __func__, kex->kex_type); ++ } ++ ++ BN_clear_free(dh_client_pub); ++ ++ if (kex->session_id == NULL) { ++ kex->session_id_len = hashlen; ++ kex->session_id = xmalloc(kex->session_id_len); ++ memcpy(kex->session_id, hash, kex->session_id_len); ++ } ++ ++ gssbuf.value = hash; ++ gssbuf.length = hashlen; ++ ++ if (GSS_ERROR(PRIVSEP(ssh_gssapi_sign(ctxt,&gssbuf,&msg_tok)))) ++ fatal("Couldn't get MIC"); ++ ++ packet_start(SSH2_MSG_KEXGSS_COMPLETE); ++ packet_put_bignum2(dh->pub_key); ++ packet_put_string(msg_tok.value,msg_tok.length); ++ ++ if (send_tok.length != 0) { ++ packet_put_char(1); /* true */ ++ packet_put_string(send_tok.value, send_tok.length); ++ } else { ++ packet_put_char(0); /* false */ ++ } ++ packet_send(); ++ ++ gss_release_buffer(&min_status, &send_tok); ++ gss_release_buffer(&min_status, &msg_tok); ++ ++ if (gss_kex_context == NULL) ++ gss_kex_context = ctxt; ++ else ++ ssh_gssapi_delete_ctx(&ctxt); ++ ++ DH_free(dh); ++ ++ kex_derive_keys(kex, hash, hashlen, shared_secret); ++ BN_clear_free(shared_secret); ++ kex_finish(kex); ++ ++ /* If this was a rekey, then save out any delegated credentials we ++ * just exchanged. */ ++ if (options.gss_store_rekey) ++ ssh_gssapi_rekey_creds(); ++} ++#endif /* GSSAPI */ +diff -Nur openssh-5.4p1.orig/key.c openssh-5.4p1/key.c +--- openssh-5.4p1.orig/key.c 2010-03-04 11:52:18.000000000 +0100 ++++ openssh-5.4p1/key.c 2010-03-13 00:40:49.216211219 +0100 +@@ -969,7 +969,9 @@ + return KEY_RSA_CERT; + } else if (strcmp(name, "ssh-dss-cert-v00 at openssh.com") == 0) { + return KEY_DSA_CERT; +- } ++ } else if (strcmp(name, "null") == 0) { ++ return KEY_NULL; ++ } + debug2("key_type_from_name: unknown key type '%s'", name); + return KEY_UNSPEC; + } +diff -Nur openssh-5.4p1.orig/key.h openssh-5.4p1/key.h +--- openssh-5.4p1.orig/key.h 2010-02-26 21:55:05.000000000 +0100 ++++ openssh-5.4p1/key.h 2010-03-13 00:40:17.733623904 +0100 +@@ -37,6 +37,7 @@ + KEY_DSA_CERT, + KEY_RSA_CERT_V00, + KEY_DSA_CERT_V00, ++ KEY_NULL, + KEY_UNSPEC + }; + enum fp_type { +diff -Nur openssh-5.4p1.orig/monitor.c openssh-5.4p1/monitor.c +--- openssh-5.4p1.orig/monitor.c 2010-03-07 13:05:17.000000000 +0100 ++++ openssh-5.4p1/monitor.c 2010-03-13 00:39:22.367998455 +0100 +@@ -172,6 +172,8 @@ + int mm_answer_gss_accept_ctx(int, Buffer *); + int mm_answer_gss_userok(int, Buffer *); + int mm_answer_gss_checkmic(int, Buffer *); ++int mm_answer_gss_sign(int, Buffer *); ++int mm_answer_gss_updatecreds(int, Buffer *); + #endif + + #ifdef SSH_AUDIT_EVENTS +@@ -241,6 +243,7 @@ + {MONITOR_REQ_GSSSTEP, MON_ISAUTH, mm_answer_gss_accept_ctx}, + {MONITOR_REQ_GSSUSEROK, MON_AUTH, mm_answer_gss_userok}, + {MONITOR_REQ_GSSCHECKMIC, MON_ISAUTH, mm_answer_gss_checkmic}, ++ {MONITOR_REQ_GSSSIGN, MON_ONCE, mm_answer_gss_sign}, + #endif + #ifdef JPAKE + {MONITOR_REQ_JPAKE_GET_PWDATA, MON_ONCE, mm_answer_jpake_get_pwdata}, +@@ -253,6 +256,12 @@ + }; + + struct mon_table mon_dispatch_postauth20[] = { ++#ifdef GSSAPI ++ {MONITOR_REQ_GSSSETUP, 0, mm_answer_gss_setup_ctx}, ++ {MONITOR_REQ_GSSSTEP, 0, mm_answer_gss_accept_ctx}, ++ {MONITOR_REQ_GSSSIGN, 0, mm_answer_gss_sign}, ++ {MONITOR_REQ_GSSUPCREDS, 0, mm_answer_gss_updatecreds}, ++#endif + {MONITOR_REQ_MODULI, 0, mm_answer_moduli}, + {MONITOR_REQ_SIGN, 0, mm_answer_sign}, + {MONITOR_REQ_PTY, 0, mm_answer_pty}, +@@ -357,6 +366,10 @@ + /* Permit requests for moduli and signatures */ + monitor_permit(mon_dispatch, MONITOR_REQ_MODULI, 1); + monitor_permit(mon_dispatch, MONITOR_REQ_SIGN, 1); ++#ifdef GSSAPI ++ /* and for the GSSAPI key exchange */ ++ monitor_permit(mon_dispatch, MONITOR_REQ_GSSSETUP, 1); ++#endif + } else { + mon_dispatch = mon_dispatch_proto15; + +@@ -443,6 +456,10 @@ + monitor_permit(mon_dispatch, MONITOR_REQ_MODULI, 1); + monitor_permit(mon_dispatch, MONITOR_REQ_SIGN, 1); + monitor_permit(mon_dispatch, MONITOR_REQ_TERM, 1); ++#ifdef GSSAPI ++ /* and for the GSSAPI key exchange */ ++ monitor_permit(mon_dispatch, MONITOR_REQ_GSSSETUP, 1); ++#endif + } else { + mon_dispatch = mon_dispatch_postauth15; + monitor_permit(mon_dispatch, MONITOR_REQ_TERM, 1); +@@ -1691,6 +1708,13 @@ + kex->kex[KEX_DH_GRP14_SHA1] = kexdh_server; + kex->kex[KEX_DH_GEX_SHA1] = kexgex_server; + kex->kex[KEX_DH_GEX_SHA256] = kexgex_server; ++#ifdef GSSAPI ++ if (options.gss_keyex) { ++ kex->kex[KEX_GSS_GRP1_SHA1] = kexgss_server; ++ kex->kex[KEX_GSS_GRP14_SHA1] = kexgss_server; ++ kex->kex[KEX_GSS_GEX_SHA1] = kexgss_server; ++ } ++#endif + kex->server = 1; + kex->hostkey_type = buffer_get_int(m); + kex->kex_type = buffer_get_int(m); +@@ -1897,6 +1921,9 @@ + OM_uint32 major; + u_int len; + ++ if (!options.gss_authentication && !options.gss_keyex) ++ fatal("In GSSAPI monitor when GSSAPI is disabled"); ++ + goid.elements = buffer_get_string(m, &len); + goid.length = len; + +@@ -1924,6 +1951,9 @@ + OM_uint32 flags = 0; /* GSI needs this */ + u_int len; + ++ if (!options.gss_authentication && !options.gss_keyex) ++ fatal("In GSSAPI monitor when GSSAPI is disabled"); ++ + in.value = buffer_get_string(m, &len); + in.length = len; + major = ssh_gssapi_accept_ctx(gsscontext, &in, &out, &flags); +@@ -1941,6 +1971,7 @@ + monitor_permit(mon_dispatch, MONITOR_REQ_GSSSTEP, 0); + monitor_permit(mon_dispatch, MONITOR_REQ_GSSUSEROK, 1); + monitor_permit(mon_dispatch, MONITOR_REQ_GSSCHECKMIC, 1); ++ monitor_permit(mon_dispatch, MONITOR_REQ_GSSSIGN, 1); + } + return (0); + } +@@ -1952,6 +1983,9 @@ + OM_uint32 ret; + u_int len; + ++ if (!options.gss_authentication && !options.gss_keyex) ++ fatal("In GSSAPI monitor when GSSAPI is disabled"); ++ + gssbuf.value = buffer_get_string(m, &len); + gssbuf.length = len; + mic.value = buffer_get_string(m, &len); +@@ -1978,7 +2012,11 @@ + { + int authenticated; + +- authenticated = authctxt->valid && ssh_gssapi_userok(authctxt->user); ++ if (!options.gss_authentication && !options.gss_keyex) ++ fatal("In GSSAPI monitor when GSSAPI is disabled"); ++ ++ authenticated = authctxt->valid && ++ ssh_gssapi_userok(authctxt->user, authctxt->pw); + + buffer_clear(m); + buffer_put_int(m, authenticated); +@@ -1991,6 +2029,74 @@ + /* Monitor loop will terminate if authenticated */ + return (authenticated); + } ++ ++int ++mm_answer_gss_sign(int socket, Buffer *m) ++{ ++ gss_buffer_desc data; ++ gss_buffer_desc hash = GSS_C_EMPTY_BUFFER; ++ OM_uint32 major, minor; ++ u_int len; ++ ++ if (!options.gss_authentication && !options.gss_keyex) ++ fatal("In GSSAPI monitor when GSSAPI is disabled"); ++ ++ data.value = buffer_get_string(m, &len); ++ data.length = len; ++ if (data.length != 20) ++ fatal("%s: data length incorrect: %d", __func__, ++ (int) data.length); ++ ++ /* Save the session ID on the first time around */ ++ if (session_id2_len == 0) { ++ session_id2_len = data.length; ++ session_id2 = xmalloc(session_id2_len); ++ memcpy(session_id2, data.value, session_id2_len); ++ } ++ major = ssh_gssapi_sign(gsscontext, &data, &hash); ++ ++ xfree(data.value); ++ ++ buffer_clear(m); ++ buffer_put_int(m, major); ++ buffer_put_string(m, hash.value, hash.length); ++ ++ mm_request_send(socket, MONITOR_ANS_GSSSIGN, m); ++ ++ gss_release_buffer(&minor, &hash); ++ ++ /* Turn on getpwnam permissions */ ++ monitor_permit(mon_dispatch, MONITOR_REQ_PWNAM, 1); ++ ++ /* And credential updating, for when rekeying */ ++ monitor_permit(mon_dispatch, MONITOR_REQ_GSSUPCREDS, 1); ++ ++ return (0); ++} ++ ++int ++mm_answer_gss_updatecreds(int socket, Buffer *m) { ++ ssh_gssapi_ccache store; ++ int ok; ++ ++ store.filename = buffer_get_string(m, NULL); ++ store.envvar = buffer_get_string(m, NULL); ++ store.envval = buffer_get_string(m, NULL); ++ ++ ok = ssh_gssapi_update_creds(&store); ++ ++ xfree(store.filename); ++ xfree(store.envvar); ++ xfree(store.envval); ++ ++ buffer_clear(m); ++ buffer_put_int(m, ok); ++ ++ mm_request_send(socket, MONITOR_ANS_GSSUPCREDS, m); ++ ++ return(0); ++} ++ + #endif /* GSSAPI */ + + #ifdef JPAKE +diff -Nur openssh-5.4p1.orig/monitor.h openssh-5.4p1/monitor.h +--- openssh-5.4p1.orig/monitor.h 2008-11-05 06:20:46.000000000 +0100 ++++ openssh-5.4p1/monitor.h 2010-03-13 00:39:22.370058530 +0100 +@@ -53,6 +53,8 @@ + MONITOR_REQ_GSSSTEP, MONITOR_ANS_GSSSTEP, + MONITOR_REQ_GSSUSEROK, MONITOR_ANS_GSSUSEROK, + MONITOR_REQ_GSSCHECKMIC, MONITOR_ANS_GSSCHECKMIC, ++ MONITOR_REQ_GSSSIGN, MONITOR_ANS_GSSSIGN, ++ MONITOR_REQ_GSSUPCREDS, MONITOR_ANS_GSSUPCREDS, + MONITOR_REQ_PAM_START, + MONITOR_REQ_PAM_ACCOUNT, MONITOR_ANS_PAM_ACCOUNT, + MONITOR_REQ_PAM_INIT_CTX, MONITOR_ANS_PAM_INIT_CTX, +diff -Nur openssh-5.4p1.orig/monitor_wrap.c openssh-5.4p1/monitor_wrap.c +--- openssh-5.4p1.orig/monitor_wrap.c 2010-03-07 13:05:17.000000000 +0100 ++++ openssh-5.4p1/monitor_wrap.c 2010-03-13 00:39:22.375677054 +0100 +@@ -1231,7 +1231,7 @@ + } + + int +-mm_ssh_gssapi_userok(char *user) ++mm_ssh_gssapi_userok(char *user, struct passwd *pw) + { + Buffer m; + int authenticated = 0; +@@ -1248,6 +1248,51 @@ + debug3("%s: user %sauthenticated",__func__, authenticated ? "" : "not "); + return (authenticated); + } ++ ++OM_uint32 ++mm_ssh_gssapi_sign(Gssctxt *ctx, gss_buffer_desc *data, gss_buffer_desc *hash) ++{ ++ Buffer m; ++ OM_uint32 major; ++ u_int len; ++ ++ buffer_init(&m); ++ buffer_put_string(&m, data->value, data->length); ++ ++ mm_request_send(pmonitor->m_recvfd, MONITOR_REQ_GSSSIGN, &m); ++ mm_request_receive_expect(pmonitor->m_recvfd, MONITOR_ANS_GSSSIGN, &m); ++ ++ major = buffer_get_int(&m); ++ hash->value = buffer_get_string(&m, &len); ++ hash->length = len; ++ ++ buffer_free(&m); ++ ++ return(major); ++} ++ ++int ++mm_ssh_gssapi_update_creds(ssh_gssapi_ccache *store) ++{ ++ Buffer m; ++ int ok; ++ ++ buffer_init(&m); ++ ++ buffer_put_cstring(&m, store->filename ? store->filename : ""); ++ buffer_put_cstring(&m, store->envvar ? store->envvar : ""); ++ buffer_put_cstring(&m, store->envval ? store->envval : ""); ++ ++ mm_request_send(pmonitor->m_recvfd, MONITOR_REQ_GSSUPCREDS, &m); ++ mm_request_receive_expect(pmonitor->m_recvfd, MONITOR_ANS_GSSUPCREDS, &m); ++ ++ ok = buffer_get_int(&m); ++ ++ buffer_free(&m); ++ ++ return (ok); ++} ++ + #endif /* GSSAPI */ + + #ifdef JPAKE +diff -Nur openssh-5.4p1.orig/monitor_wrap.h openssh-5.4p1/monitor_wrap.h +--- openssh-5.4p1.orig/monitor_wrap.h 2009-03-05 14:58:22.000000000 +0100 ++++ openssh-5.4p1/monitor_wrap.h 2010-03-13 00:39:22.377770519 +0100 +@@ -57,8 +57,10 @@ + OM_uint32 mm_ssh_gssapi_server_ctx(Gssctxt **, gss_OID); + OM_uint32 mm_ssh_gssapi_accept_ctx(Gssctxt *, + gss_buffer_desc *, gss_buffer_desc *, OM_uint32 *); +-int mm_ssh_gssapi_userok(char *user); ++int mm_ssh_gssapi_userok(char *user, struct passwd *); + OM_uint32 mm_ssh_gssapi_checkmic(Gssctxt *, gss_buffer_t, gss_buffer_t); ++OM_uint32 mm_ssh_gssapi_sign(Gssctxt *, gss_buffer_t, gss_buffer_t); ++int mm_ssh_gssapi_update_creds(ssh_gssapi_ccache *); + #endif + + #ifdef USE_PAM +diff -Nur openssh-5.4p1.orig/readconf.c openssh-5.4p1/readconf.c +--- openssh-5.4p1.orig/readconf.c 2010-02-11 23:21:03.000000000 +0100 ++++ openssh-5.4p1/readconf.c 2010-03-13 00:39:22.384142845 +0100 +@@ -127,6 +127,7 @@ + oClearAllForwardings, oNoHostAuthenticationForLocalhost, + oEnableSSHKeysign, oRekeyLimit, oVerifyHostKeyDNS, oConnectTimeout, + oAddressFamily, oGssAuthentication, oGssDelegateCreds, ++ oGssTrustDns, oGssKeyEx, oGssClientIdentity, oGssRenewalRekey, + oServerAliveInterval, oServerAliveCountMax, oIdentitiesOnly, + oSendEnv, oControlPath, oControlMaster, oHashKnownHosts, + oTunnel, oTunnelDevice, oLocalCommand, oPermitLocalCommand, +@@ -164,10 +165,18 @@ + { "afstokenpassing", oUnsupported }, + #if defined(GSSAPI) + { "gssapiauthentication", oGssAuthentication }, ++ { "gssapikeyexchange", oGssKeyEx }, + { "gssapidelegatecredentials", oGssDelegateCreds }, ++ { "gssapitrustdns", oGssTrustDns }, ++ { "gssapiclientidentity", oGssClientIdentity }, ++ { "gssapirenewalforcesrekey", oGssRenewalRekey }, + #else + { "gssapiauthentication", oUnsupported }, ++ { "gssapikeyexchange", oUnsupported }, + { "gssapidelegatecredentials", oUnsupported }, ++ { "gssapitrustdns", oUnsupported }, ++ { "gssapiclientidentity", oUnsupported }, ++ { "gssapirenewalforcesrekey", oUnsupported }, + #endif + { "fallbacktorsh", oDeprecated }, + { "usersh", oDeprecated }, +@@ -456,10 +465,26 @@ + intptr = &options->gss_authentication; + goto parse_flag; + ++ case oGssKeyEx: ++ intptr = &options->gss_keyex; ++ goto parse_flag; ++ + case oGssDelegateCreds: + intptr = &options->gss_deleg_creds; + goto parse_flag; + ++ case oGssTrustDns: ++ intptr = &options->gss_trust_dns; ++ goto parse_flag; ++ ++ case oGssClientIdentity: ++ charptr = &options->gss_client_identity; ++ goto parse_string; ++ ++ case oGssRenewalRekey: ++ intptr = &options->gss_renewal_rekey; ++ goto parse_flag; ++ + case oBatchMode: + intptr = &options->batch_mode; + goto parse_flag; +@@ -1015,7 +1040,11 @@ + options->pubkey_authentication = -1; + options->challenge_response_authentication = -1; + options->gss_authentication = -1; ++ options->gss_keyex = -1; + options->gss_deleg_creds = -1; ++ options->gss_trust_dns = -1; ++ options->gss_renewal_rekey = -1; ++ options->gss_client_identity = NULL; + options->password_authentication = -1; + options->kbd_interactive_authentication = -1; + options->kbd_interactive_devices = NULL; +@@ -1107,8 +1136,14 @@ + options->challenge_response_authentication = 1; + if (options->gss_authentication == -1) + options->gss_authentication = 0; ++ if (options->gss_keyex == -1) ++ options->gss_keyex = 0; + if (options->gss_deleg_creds == -1) + options->gss_deleg_creds = 0; ++ if (options->gss_trust_dns == -1) ++ options->gss_trust_dns = 0; ++ if (options->gss_renewal_rekey == -1) ++ options->gss_renewal_rekey = 0; + if (options->password_authentication == -1) + options->password_authentication = 1; + if (options->kbd_interactive_authentication == -1) +diff -Nur openssh-5.4p1.orig/readconf.h openssh-5.4p1/readconf.h +--- openssh-5.4p1.orig/readconf.h 2010-02-11 23:21:03.000000000 +0100 ++++ openssh-5.4p1/readconf.h 2010-03-13 00:39:22.386055410 +0100 +@@ -44,7 +44,11 @@ + int challenge_response_authentication; + /* Try S/Key or TIS, authentication. */ + int gss_authentication; /* Try GSS authentication */ ++ int gss_keyex; /* Try GSS key exchange */ + int gss_deleg_creds; /* Delegate GSS credentials */ ++ int gss_trust_dns; /* Trust DNS for GSS canonicalization */ ++ int gss_renewal_rekey; /* Credential renewal forces rekey */ ++ char *gss_client_identity; /* Principal to initiate GSSAPI with */ + int password_authentication; /* Try password + * authentication. */ + int kbd_interactive_authentication; /* Try keyboard-interactive auth. */ +diff -Nur openssh-5.4p1.orig/servconf.c openssh-5.4p1/servconf.c +--- openssh-5.4p1.orig/servconf.c 2010-03-04 11:53:35.000000000 +0100 ++++ openssh-5.4p1/servconf.c 2010-03-13 00:39:22.394208388 +0100 +@@ -93,7 +93,10 @@ + options->kerberos_ticket_cleanup = -1; + options->kerberos_get_afs_token = -1; + options->gss_authentication=-1; ++ options->gss_keyex = -1; + options->gss_cleanup_creds = -1; ++ options->gss_strict_acceptor = -1; ++ options->gss_store_rekey = -1; + options->password_authentication = -1; + options->kbd_interactive_authentication = -1; + options->challenge_response_authentication = -1; +@@ -214,8 +217,14 @@ + options->kerberos_get_afs_token = 0; + if (options->gss_authentication == -1) + options->gss_authentication = 0; ++ if (options->gss_keyex == -1) ++ options->gss_keyex = 0; + if (options->gss_cleanup_creds == -1) + options->gss_cleanup_creds = 1; ++ if (options->gss_strict_acceptor == -1) ++ options->gss_strict_acceptor = 1; ++ if (options->gss_store_rekey == -1) ++ options->gss_store_rekey = 0; + if (options->password_authentication == -1) + options->password_authentication = 1; + if (options->kbd_interactive_authentication == -1) +@@ -306,7 +315,9 @@ + sBanner, sUseDNS, sHostbasedAuthentication, + sHostbasedUsesNameFromPacketOnly, sClientAliveInterval, + sClientAliveCountMax, sAuthorizedKeysFile, sAuthorizedKeysFile2, +- sGssAuthentication, sGssCleanupCreds, sAcceptEnv, sPermitTunnel, ++ sGssAuthentication, sGssCleanupCreds, sGssStrictAcceptor, ++ sGssKeyEx, sGssStoreRekey, ++ sAcceptEnv, sPermitTunnel, + sMatch, sPermitOpen, sForceCommand, sChrootDirectory, + sUsePrivilegeSeparation, sAllowAgentForwarding, + sZeroKnowledgePasswordAuthentication, sHostCertificate, +@@ -369,9 +380,15 @@ + #ifdef GSSAPI + { "gssapiauthentication", sGssAuthentication, SSHCFG_ALL }, + { "gssapicleanupcredentials", sGssCleanupCreds, SSHCFG_GLOBAL }, ++ { "gssapistrictacceptorcheck", sGssStrictAcceptor, SSHCFG_GLOBAL }, ++ { "gssapikeyexchange", sGssKeyEx, SSHCFG_GLOBAL }, ++ { "gssapistorecredentialsonrekey", sGssStoreRekey, SSHCFG_GLOBAL }, + #else + { "gssapiauthentication", sUnsupported, SSHCFG_ALL }, + { "gssapicleanupcredentials", sUnsupported, SSHCFG_GLOBAL }, ++ { "gssapistrictacceptorcheck", sUnsupported, SSHCFG_GLOBAL }, ++ { "gssapikeyexchange", sUnsupported, SSHCFG_GLOBAL }, ++ { "gssapistorecredentialsonrekey", sUnsupported, SSHCFG_GLOBAL }, + #endif + { "passwordauthentication", sPasswordAuthentication, SSHCFG_ALL }, + { "kbdinteractiveauthentication", sKbdInteractiveAuthentication, SSHCFG_ALL }, +@@ -925,10 +942,22 @@ + intptr = &options->gss_authentication; + goto parse_flag; + ++ case sGssKeyEx: ++ intptr = &options->gss_keyex; ++ goto parse_flag; ++ + case sGssCleanupCreds: + intptr = &options->gss_cleanup_creds; + goto parse_flag; + ++ case sGssStrictAcceptor: ++ intptr = &options->gss_strict_acceptor; ++ goto parse_flag; ++ ++ case sGssStoreRekey: ++ intptr = &options->gss_store_rekey; ++ goto parse_flag; ++ + case sPasswordAuthentication: + intptr = &options->password_authentication; + goto parse_flag; +diff -Nur openssh-5.4p1.orig/servconf.h openssh-5.4p1/servconf.h +--- openssh-5.4p1.orig/servconf.h 2010-03-04 11:53:35.000000000 +0100 ++++ openssh-5.4p1/servconf.h 2010-03-13 00:39:22.397236772 +0100 +@@ -94,7 +94,10 @@ + int kerberos_get_afs_token; /* If true, try to get AFS token if + * authenticated with Kerberos. */ + int gss_authentication; /* If true, permit GSSAPI authentication */ ++ int gss_keyex; /* If true, permit GSSAPI key exchange */ + int gss_cleanup_creds; /* If true, destroy cred cache on logout */ ++ int gss_strict_acceptor; /* If true, restrict the GSSAPI acceptor name */ ++ int gss_store_rekey; + int password_authentication; /* If true, permit password + * authentication. */ + int kbd_interactive_authentication; /* If true, permit */ +diff -Nur openssh-5.4p1.orig/ssh-gss.h openssh-5.4p1/ssh-gss.h +--- openssh-5.4p1.orig/ssh-gss.h 2007-06-12 15:40:39.000000000 +0200 ++++ openssh-5.4p1/ssh-gss.h 2010-03-13 00:39:22.400061752 +0100 +@@ -1,6 +1,6 @@ + /* $OpenBSD: ssh-gss.h,v 1.10 2007/06/12 08:20:00 djm Exp $ */ + /* +- * Copyright (c) 2001-2003 Simon Wilkinson. All rights reserved. ++ * Copyright (c) 2001-2009 Simon Wilkinson. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions +@@ -60,10 +60,22 @@ + + #define SSH_GSS_OIDTYPE 0x06 + ++#define SSH2_MSG_KEXGSS_INIT 30 ++#define SSH2_MSG_KEXGSS_CONTINUE 31 ++#define SSH2_MSG_KEXGSS_COMPLETE 32 ++#define SSH2_MSG_KEXGSS_HOSTKEY 33 ++#define SSH2_MSG_KEXGSS_ERROR 34 ++#define SSH2_MSG_KEXGSS_GROUPREQ 40 ++#define SSH2_MSG_KEXGSS_GROUP 41 ++#define KEX_GSS_GRP1_SHA1_ID "gss-group1-sha1-" ++#define KEX_GSS_GRP14_SHA1_ID "gss-group14-sha1-" ++#define KEX_GSS_GEX_SHA1_ID "gss-gex-sha1-" ++ + typedef struct { + char *filename; + char *envvar; + char *envval; ++ struct passwd *owner; + void *data; + } ssh_gssapi_ccache; + +@@ -71,8 +83,11 @@ + gss_buffer_desc displayname; + gss_buffer_desc exportedname; + gss_cred_id_t creds; ++ gss_name_t name; + struct ssh_gssapi_mech_struct *mech; + ssh_gssapi_ccache store; ++ int used; ++ int updated; + } ssh_gssapi_client; + + typedef struct ssh_gssapi_mech_struct { +@@ -83,6 +98,7 @@ + int (*userok) (ssh_gssapi_client *, char *); + int (*localname) (ssh_gssapi_client *, char **); + void (*storecreds) (ssh_gssapi_client *); ++ int (*updatecreds) (ssh_gssapi_ccache *, ssh_gssapi_client *); + } ssh_gssapi_mech; + + typedef struct { +@@ -93,10 +109,11 @@ + gss_OID oid; /* client */ + gss_cred_id_t creds; /* server */ + gss_name_t client; /* server */ +- gss_cred_id_t client_creds; /* server */ ++ gss_cred_id_t client_creds; /* both */ + } Gssctxt; + + extern ssh_gssapi_mech *supported_mechs[]; ++extern Gssctxt *gss_kex_context; + + int ssh_gssapi_check_oid(Gssctxt *, void *, size_t); + void ssh_gssapi_set_oid_data(Gssctxt *, void *, size_t); +@@ -116,16 +133,30 @@ + void ssh_gssapi_delete_ctx(Gssctxt **); + OM_uint32 ssh_gssapi_sign(Gssctxt *, gss_buffer_t, gss_buffer_t); + void ssh_gssapi_buildmic(Buffer *, const char *, const char *, const char *); +-int ssh_gssapi_check_mechanism(Gssctxt **, gss_OID, const char *); ++int ssh_gssapi_check_mechanism(Gssctxt **, gss_OID, const char *, const char *); ++OM_uint32 ssh_gssapi_client_identity(Gssctxt *, const char *); ++int ssh_gssapi_credentials_updated(Gssctxt *); + + /* In the server */ ++typedef int ssh_gssapi_check_fn(Gssctxt **, gss_OID, const char *, ++ const char *); ++char *ssh_gssapi_client_mechanisms(const char *, const char *); ++char *ssh_gssapi_kex_mechs(gss_OID_set, ssh_gssapi_check_fn *, const char *, ++ const char *); ++gss_OID ssh_gssapi_id_kex(Gssctxt *, char *, int); ++int ssh_gssapi_server_check_mech(Gssctxt **,gss_OID, const char *, ++ const char *); + OM_uint32 ssh_gssapi_server_ctx(Gssctxt **, gss_OID); +-int ssh_gssapi_userok(char *name); ++int ssh_gssapi_userok(char *name, struct passwd *); + OM_uint32 ssh_gssapi_checkmic(Gssctxt *, gss_buffer_t, gss_buffer_t); + void ssh_gssapi_do_child(char ***, u_int *); + void ssh_gssapi_cleanup_creds(void); + void ssh_gssapi_storecreds(void); + ++char *ssh_gssapi_server_mechanisms(void); ++int ssh_gssapi_oid_table_ok(); ++ ++int ssh_gssapi_update_creds(ssh_gssapi_ccache *store); + #endif /* GSSAPI */ + + #endif /* _SSH_GSS_H */ +diff -Nur openssh-5.4p1.orig/ssh_config openssh-5.4p1/ssh_config +--- openssh-5.4p1.orig/ssh_config 2010-01-12 09:40:27.000000000 +0100 ++++ openssh-5.4p1/ssh_config 2010-03-13 00:39:22.401981567 +0100 +@@ -26,6 +26,8 @@ + # HostbasedAuthentication no + # GSSAPIAuthentication no + # GSSAPIDelegateCredentials no ++# GSSAPIKeyExchange no ++# GSSAPITrustDNS no + # BatchMode no + # CheckHostIP yes + # AddressFamily any +diff -Nur openssh-5.4p1.orig/ssh_config.5 openssh-5.4p1/ssh_config.5 +--- openssh-5.4p1.orig/ssh_config.5 2010-03-05 11:31:12.000000000 +0100 ++++ openssh-5.4p1/ssh_config.5 2010-03-13 00:39:22.405912908 +0100 +@@ -478,11 +478,38 @@ + The default is + .Dq no . + Note that this option applies to protocol version 2 only. ++.It Cm GSSAPIKeyExchange ++Specifies whether key exchange based on GSSAPI may be used. When using ++GSSAPI key exchange the server need not have a host key. ++The default is ++.Dq no . ++Note that this option applies to protocol version 2 only. ++.It Cm GSSAPIClientIdentity ++If set, specifies the GSSAPI client identity that ssh should use when ++connecting to the server. The default is unset, which means that the default ++identity will be used. + .It Cm GSSAPIDelegateCredentials + Forward (delegate) credentials to the server. + The default is + .Dq no . +-Note that this option applies to protocol version 2 only. ++Note that this option applies to protocol version 2 connections using GSSAPI. ++.It Cm GSSAPIRenewalForcesRekey ++If set to ++.Dq yes ++then renewal of the client's GSSAPI credentials will force the rekeying of the ++ssh connection. With a compatible server, this can delegate the renewed ++credentials to a session on the server. ++The default is ++.Dq no . ++.It Cm GSSAPITrustDns ++Set to ++.Dq yes to indicate that the DNS is trusted to securely canonicalize ++the name of the host being connected to. If ++.Dq no, the hostname entered on the ++command line will be passed untouched to the GSSAPI library. ++The default is ++.Dq no . ++This option only applies to protocol version 2 connections using GSSAPI. + .It Cm HashKnownHosts + Indicates that + .Xr ssh 1 +diff -Nur openssh-5.4p1.orig/sshconnect2.c openssh-5.4p1/sshconnect2.c +--- openssh-5.4p1.orig/sshconnect2.c 2010-02-26 21:55:06.000000000 +0100 ++++ openssh-5.4p1/sshconnect2.c 2010-03-13 00:39:22.414196262 +0100 +@@ -106,9 +106,34 @@ + { + Kex *kex; + ++#ifdef GSSAPI ++ char *orig = NULL, *gss = NULL; ++ char *gss_host = NULL; ++#endif ++ + xxx_host = host; + xxx_hostaddr = hostaddr; + ++#ifdef GSSAPI ++ if (options.gss_keyex) { ++ /* Add the GSSAPI mechanisms currently supported on this ++ * client to the key exchange algorithm proposal */ ++ orig = myproposal[PROPOSAL_KEX_ALGS]; ++ ++ if (options.gss_trust_dns) ++ gss_host = (char *)get_canonical_hostname(1); ++ else ++ gss_host = host; ++ ++ gss = ssh_gssapi_client_mechanisms(gss_host, options.gss_client_identity); ++ if (gss) { ++ debug("Offering GSSAPI proposal: %s", gss); ++ xasprintf(&myproposal[PROPOSAL_KEX_ALGS], ++ "%s,%s", gss, orig); ++ } ++ } ++#endif ++ + if (options.ciphers == (char *)-1) { + logit("No valid ciphers for protocol version 2 given, using defaults."); + options.ciphers = NULL; +@@ -136,6 +161,17 @@ + myproposal[PROPOSAL_SERVER_HOST_KEY_ALGS] = + options.hostkeyalgorithms; + ++#ifdef GSSAPI ++ /* If we've got GSSAPI algorithms, then we also support the ++ * 'null' hostkey, as a last resort */ ++ if (options.gss_keyex && gss) { ++ orig = myproposal[PROPOSAL_SERVER_HOST_KEY_ALGS]; ++ xasprintf(&myproposal[PROPOSAL_SERVER_HOST_KEY_ALGS], ++ "%s,null", orig); ++ xfree(gss); ++ } ++#endif ++ + if (options.rekey_limit) + packet_set_rekey_limit((u_int32_t)options.rekey_limit); + +@@ -145,10 +181,26 @@ + kex->kex[KEX_DH_GRP14_SHA1] = kexdh_client; + kex->kex[KEX_DH_GEX_SHA1] = kexgex_client; + kex->kex[KEX_DH_GEX_SHA256] = kexgex_client; ++#ifdef GSSAPI ++ if (options.gss_keyex) { ++ kex->kex[KEX_GSS_GRP1_SHA1] = kexgss_client; ++ kex->kex[KEX_GSS_GRP14_SHA1] = kexgss_client; ++ kex->kex[KEX_GSS_GEX_SHA1] = kexgss_client; ++ } ++#endif + kex->client_version_string=client_version_string; + kex->server_version_string=server_version_string; + kex->verify_host_key=&verify_host_key_callback; + ++#ifdef GSSAPI ++ if (options.gss_keyex) { ++ kex->gss_deleg_creds = options.gss_deleg_creds; ++ kex->gss_trust_dns = options.gss_trust_dns; ++ kex->gss_client = options.gss_client_identity; ++ kex->gss_host = gss_host; ++ } ++#endif ++ + xxx_kex = kex; + + dispatch_run(DISPATCH_BLOCK, &kex->done, kex); +@@ -243,6 +295,7 @@ + void input_gssapi_hash(int type, u_int32_t, void *); + void input_gssapi_error(int, u_int32_t, void *); + void input_gssapi_errtok(int, u_int32_t, void *); ++int userauth_gsskeyex(Authctxt *authctxt); + #endif + + void userauth(Authctxt *, char *); +@@ -258,6 +311,10 @@ + + Authmethod authmethods[] = { + #ifdef GSSAPI ++ {"gssapi-keyex", ++ userauth_gsskeyex, ++ &options.gss_authentication, ++ NULL}, + {"gssapi-with-mic", + userauth_gssapi, + NULL, +@@ -564,19 +621,29 @@ + static u_int mech = 0; + OM_uint32 min; + int ok = 0; ++ const char *gss_host; ++ ++ if (options.gss_trust_dns) ++ gss_host = get_canonical_hostname(1); ++ else ++ gss_host = authctxt->host; + + /* Try one GSSAPI method at a time, rather than sending them all at + * once. */ + + if (gss_supported == NULL) +- gss_indicate_mechs(&min, &gss_supported); ++ if (GSS_ERROR(gss_indicate_mechs(&min, &gss_supported))) { ++ gss_supported = NULL; ++ return 0; ++ } + + /* Check to see if the mechanism is usable before we offer it */ + while (mech < gss_supported->count && !ok) { + /* My DER encoding requires length<128 */ + if (gss_supported->elements[mech].length < 128 && + ssh_gssapi_check_mechanism(&gssctxt, +- &gss_supported->elements[mech], authctxt->host)) { ++ &gss_supported->elements[mech], gss_host, ++ options.gss_client_identity)) { + ok = 1; /* Mechanism works */ + } else { + mech++; +@@ -673,8 +740,8 @@ + { + Authctxt *authctxt = ctxt; + Gssctxt *gssctxt; +- int oidlen; +- char *oidv; ++ u_int oidlen; ++ u_char *oidv; + + if (authctxt == NULL) + fatal("input_gssapi_response: no authentication context"); +@@ -784,6 +851,48 @@ + xfree(msg); + xfree(lang); + } ++ ++int ++userauth_gsskeyex(Authctxt *authctxt) ++{ ++ Buffer b; ++ gss_buffer_desc gssbuf; ++ gss_buffer_desc mic = GSS_C_EMPTY_BUFFER; ++ OM_uint32 ms; ++ ++ static int attempt = 0; ++ if (attempt++ >= 1) ++ return (0); ++ ++ if (gss_kex_context == NULL) { ++ debug("No valid Key exchange context"); ++ return (0); ++ } ++ ++ ssh_gssapi_buildmic(&b, authctxt->server_user, authctxt->service, ++ "gssapi-keyex"); ++ ++ gssbuf.value = buffer_ptr(&b); ++ gssbuf.length = buffer_len(&b); ++ ++ if (GSS_ERROR(ssh_gssapi_sign(gss_kex_context, &gssbuf, &mic))) { ++ buffer_free(&b); ++ return (0); ++ } ++ ++ packet_start(SSH2_MSG_USERAUTH_REQUEST); ++ packet_put_cstring(authctxt->server_user); ++ packet_put_cstring(authctxt->service); ++ packet_put_cstring(authctxt->method->name); ++ packet_put_string(mic.value, mic.length); ++ packet_send(); ++ ++ buffer_free(&b); ++ gss_release_buffer(&ms, &mic); ++ ++ return (1); ++} ++ + #endif /* GSSAPI */ + + int +diff -Nur openssh-5.4p1.orig/sshd.c openssh-5.4p1/sshd.c +--- openssh-5.4p1.orig/sshd.c 2010-03-07 13:05:17.000000000 +0100 ++++ openssh-5.4p1/sshd.c 2010-03-13 00:39:22.423749423 +0100 +@@ -120,6 +120,10 @@ + #include "roaming.h" + #include "version.h" + ++#ifdef USE_SECURITY_SESSION_API ++#include ++#endif ++ + #ifdef LIBWRAP + #include + #include +@@ -1577,10 +1581,13 @@ + logit("Disabling protocol version 1. Could not load host key"); + options.protocol &= ~SSH_PROTO_1; + } ++#ifndef GSSAPI ++ /* The GSSAPI key exchange can run without a host key */ + if ((options.protocol & SSH_PROTO_2) && !sensitive_data.have_ssh2_key) { + logit("Disabling protocol version 2. Could not load host key"); + options.protocol &= ~SSH_PROTO_2; + } ++#endif + if (!(options.protocol & (SSH_PROTO_1|SSH_PROTO_2))) { + logit("sshd: no hostkeys available -- exiting."); + exit(1); +@@ -1909,6 +1916,60 @@ + /* Log the connection. */ + verbose("Connection from %.500s port %d", remote_ip, remote_port); + ++#ifdef USE_SECURITY_SESSION_API ++ /* ++ * Create a new security session for use by the new user login if ++ * the current session is the root session or we are not launched ++ * by inetd (eg: debugging mode or server mode). We do not ++ * necessarily need to create a session if we are launched from ++ * inetd because Panther xinetd will create a session for us. ++ * ++ * The only case where this logic will fail is if there is an ++ * inetd running in a non-root session which is not creating ++ * new sessions for us. Then all the users will end up in the ++ * same session (bad). ++ * ++ * When the client exits, the session will be destroyed for us ++ * automatically. ++ * ++ * We must create the session before any credentials are stored ++ * (including AFS pags, which happens a few lines below). ++ */ ++ { ++ OSStatus err = 0; ++ SecuritySessionId sid = 0; ++ SessionAttributeBits sattrs = 0; ++ ++ err = SessionGetInfo(callerSecuritySession, &sid, &sattrs); ++ if (err) ++ error("SessionGetInfo() failed with error %.8X", ++ (unsigned) err); ++ else ++ debug("Current Session ID is %.8X / Session Attributes are %.8X", ++ (unsigned) sid, (unsigned) sattrs); ++ ++ if (inetd_flag && !(sattrs & sessionIsRoot)) ++ debug("Running in inetd mode in a non-root session... " ++ "assuming inetd created the session for us."); ++ else { ++ debug("Creating new security session..."); ++ err = SessionCreate(0, sessionHasTTY | sessionIsRemote); ++ if (err) ++ error("SessionCreate() failed with error %.8X", ++ (unsigned) err); ++ ++ err = SessionGetInfo(callerSecuritySession, &sid, ++ &sattrs); ++ if (err) ++ error("SessionGetInfo() failed with error %.8X", ++ (unsigned) err); ++ else ++ debug("New Session ID is %.8X / Session Attributes are %.8X", ++ (unsigned) sid, (unsigned) sattrs); ++ } ++ } ++#endif ++ + /* + * We don't want to listen forever unless the other side + * successfully authenticates itself. So we set up an alarm which is +@@ -2287,12 +2348,61 @@ + + myproposal[PROPOSAL_SERVER_HOST_KEY_ALGS] = list_hostkey_types(); + ++#ifdef GSSAPI ++ { ++ char *orig; ++ char *gss = NULL; ++ char *newstr = NULL; ++ orig = myproposal[PROPOSAL_KEX_ALGS]; ++ ++ /* ++ * If we don't have a host key, then there's no point advertising ++ * the other key exchange algorithms ++ */ ++ ++ if (strlen(myproposal[PROPOSAL_SERVER_HOST_KEY_ALGS]) == 0) ++ orig = NULL; ++ ++ if (options.gss_keyex) ++ gss = ssh_gssapi_server_mechanisms(); ++ else ++ gss = NULL; ++ ++ if (gss && orig) ++ xasprintf(&newstr, "%s,%s", gss, orig); ++ else if (gss) ++ newstr = gss; ++ else if (orig) ++ newstr = orig; ++ ++ /* ++ * If we've got GSSAPI mechanisms, then we've got the 'null' host ++ * key alg, but we can't tell people about it unless its the only ++ * host key algorithm we support ++ */ ++ if (gss && (strlen(myproposal[PROPOSAL_SERVER_HOST_KEY_ALGS])) == 0) ++ myproposal[PROPOSAL_SERVER_HOST_KEY_ALGS] = "null"; ++ ++ if (newstr) ++ myproposal[PROPOSAL_KEX_ALGS] = newstr; ++ else ++ fatal("No supported key exchange algorithms"); ++ } ++#endif ++ + /* start key exchange */ + kex = kex_setup(myproposal); + kex->kex[KEX_DH_GRP1_SHA1] = kexdh_server; + kex->kex[KEX_DH_GRP14_SHA1] = kexdh_server; + kex->kex[KEX_DH_GEX_SHA1] = kexgex_server; + kex->kex[KEX_DH_GEX_SHA256] = kexgex_server; ++#ifdef GSSAPI ++ if (options.gss_keyex) { ++ kex->kex[KEX_GSS_GRP1_SHA1] = kexgss_server; ++ kex->kex[KEX_GSS_GRP14_SHA1] = kexgss_server; ++ kex->kex[KEX_GSS_GEX_SHA1] = kexgss_server; ++ } ++#endif + kex->server = 1; + kex->client_version_string=client_version_string; + kex->server_version_string=server_version_string; +diff -Nur openssh-5.4p1.orig/sshd_config openssh-5.4p1/sshd_config +--- openssh-5.4p1.orig/sshd_config 2009-10-11 12:51:09.000000000 +0200 ++++ openssh-5.4p1/sshd_config 2010-03-13 00:39:22.426530018 +0100 +@@ -71,6 +71,8 @@ + # GSSAPI options + #GSSAPIAuthentication no + #GSSAPICleanupCredentials yes ++#GSSAPIStrictAcceptorCheck yes ++#GSSAPIKeyExchange no + + # Set this to 'yes' to enable PAM authentication, account processing, + # and session processing. If this is enabled, PAM authentication will +diff -Nur openssh-5.4p1.orig/sshd_config.5 openssh-5.4p1/sshd_config.5 +--- openssh-5.4p1.orig/sshd_config.5 2010-03-05 00:41:45.000000000 +0100 ++++ openssh-5.4p1/sshd_config.5 2010-03-13 00:39:22.430994501 +0100 +@@ -379,12 +379,40 @@ + The default is + .Dq no . + Note that this option applies to protocol version 2 only. ++.It Cm GSSAPIKeyExchange ++Specifies whether key exchange based on GSSAPI is allowed. GSSAPI key exchange ++doesn't rely on ssh keys to verify host identity. ++The default is ++.Dq no . ++Note that this option applies to protocol version 2 only. + .It Cm GSSAPICleanupCredentials + Specifies whether to automatically destroy the user's credentials cache + on logout. + The default is + .Dq yes . + Note that this option applies to protocol version 2 only. ++.It Cm GSSAPIStrictAcceptorCheck ++Determines whether to be strict about the identity of the GSSAPI acceptor ++a client authenticates against. If ++.Dq yes ++then the client must authenticate against the ++.Pa host ++service on the current hostname. If ++.Dq no ++then the client may authenticate against any service key stored in the ++machine's default store. This facility is provided to assist with operation ++on multi homed machines. ++The default is ++.Dq yes . ++Note that this option applies only to protocol version 2 GSSAPI connections, ++and setting it to ++.Dq no ++may only work with recent Kerberos GSSAPI libraries. ++.It Cm GSSAPIStoreCredentialsOnRekey ++Controls whether the user's GSSAPI credentials should be updated following a ++successful connection rekeying. This option can be used to accepted renewed ++or updated credentials from a compatible client. The default is ++.Dq no . + .It Cm HostbasedAuthentication + Specifies whether rhosts or /etc/hosts.equiv authentication together + with successful public key client host authentication is allowed This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From bdwalton at users.sourceforge.net Thu Sep 2 01:33:15 2010 From: bdwalton at users.sourceforge.net (bdwalton at users.sourceforge.net) Date: Wed, 01 Sep 2010 23:33:15 +0000 Subject: [csw-devel] SF.net SVN: gar:[10889] csw/mgar/pkg/gettext/trunk/files Message-ID: Revision: 10889 http://gar.svn.sourceforge.net/gar/?rev=10889&view=rev Author: bdwalton Date: 2010-09-01 23:33:15 +0000 (Wed, 01 Sep 2010) Log Message: ----------- gettext: add older libintl versions for backward compatibility Added Paths: ----------- csw/mgar/pkg/gettext/trunk/files/libintl.so.8.0.2.amd64 csw/mgar/pkg/gettext/trunk/files/libintl.so.8.0.2.i csw/mgar/pkg/gettext/trunk/files/libintl.so.8.0.2.s csw/mgar/pkg/gettext/trunk/files/libintl.so.8.0.2.s9 Added: csw/mgar/pkg/gettext/trunk/files/libintl.so.8.0.2.amd64 =================================================================== (Binary files differ) Property changes on: csw/mgar/pkg/gettext/trunk/files/libintl.so.8.0.2.amd64 ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Added: csw/mgar/pkg/gettext/trunk/files/libintl.so.8.0.2.i =================================================================== (Binary files differ) Property changes on: csw/mgar/pkg/gettext/trunk/files/libintl.so.8.0.2.i ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Added: csw/mgar/pkg/gettext/trunk/files/libintl.so.8.0.2.s =================================================================== (Binary files differ) Property changes on: csw/mgar/pkg/gettext/trunk/files/libintl.so.8.0.2.s ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Added: csw/mgar/pkg/gettext/trunk/files/libintl.so.8.0.2.s9 =================================================================== (Binary files differ) Property changes on: csw/mgar/pkg/gettext/trunk/files/libintl.so.8.0.2.s9 ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From bdwalton at users.sourceforge.net Thu Sep 2 03:29:33 2010 From: bdwalton at users.sourceforge.net (bdwalton at users.sourceforge.net) Date: Thu, 02 Sep 2010 01:29:33 +0000 Subject: [csw-devel] SF.net SVN: gar:[10890] csw/mgar/pkg/gettext/trunk/Makefile Message-ID: Revision: 10890 http://gar.svn.sourceforge.net/gar/?rev=10890&view=rev Author: bdwalton Date: 2010-09-02 01:29:33 +0000 (Thu, 02 Sep 2010) Log Message: ----------- gettext: make the post-install routines generic to more easily handle multiple lib version cruft Modified Paths: -------------- csw/mgar/pkg/gettext/trunk/Makefile Modified: csw/mgar/pkg/gettext/trunk/Makefile =================================================================== --- csw/mgar/pkg/gettext/trunk/Makefile 2010-09-01 23:33:15 UTC (rev 10889) +++ csw/mgar/pkg/gettext/trunk/Makefile 2010-09-02 01:29:33 UTC (rev 10890) @@ -84,6 +84,8 @@ # just until checkpkg doesn't squawk about this. CHECKPKG_OVERRIDES_CSWggettext += missing-dependency|CSWemacscommon +SHELL = /bin/bash + include gar/category.mk PATH := /opt/csw/gnu:$(PATH) @@ -93,26 +95,21 @@ post-install-isa-sparcv8: @mkdir $(INSTALLISADIR)/opt/csw/share/java @mv $(INSTALLISADIR)/opt/csw/share/gettext/libintl.jar $(INSTALLISADIR)/opt/csw/share/java - @cp $(FILEDIR)/libgettextlib-0.14.1.so.s $(INSTALLISADIR)/opt/csw/lib/libgettextlib-0.14.1.so - @cp $(FILEDIR)/libintl.so.2.s $(INSTALLISADIR)/opt/csw/lib/libintl.so.2 - @cp $(FILEDIR)/libintl.so.3.s $(INSTALLISADIR)/opt/csw/lib/libintl.so.3 - $(DONADA) + @( for f in $(FILEDIR)/*.s; do gcp $$f $(INSTALLISADIR)/opt/csw/lib/$$(gbasename $$f .s); done ) + $(MAKECOOKIE) post-install-isa-sparcv9: @rm $(INSTALLISADIR)/opt/csw/share/gettext/libintl.jar - @cp $(FILEDIR)/libgettextlib-0.14.1.so.s9 $(INSTALLISADIR)/opt/csw/lib/64/libgettextlib-0.14.1.so - @cp $(FILEDIR)/libintl.so.2.s9 $(INSTALLISADIR)/opt/csw/lib/64/libintl.so.2 - @cp $(FILEDIR)/libintl.so.3.s9 $(INSTALLISADIR)/opt/csw/lib/64/libintl.so.3 - $(DONADA) + @( for f in $(FILEDIR)/*.s9; do gcp $$f $(INSTALLISADIR)/opt/csw/lib/$$(gbasename $$f .s9); done ) + $(MAKECOOKIE) post-install-isa-i386: @mkdir $(INSTALLISADIR)/opt/csw/share/java @mv $(INSTALLISADIR)/opt/csw/share/gettext/libintl.jar $(INSTALLISADIR)/opt/csw/share/java - @cp $(FILEDIR)/libgettextlib-0.14.1.so.i $(INSTALLISADIR)/opt/csw/lib/libgettextlib-0.14.1.so - @cp $(FILEDIR)/libintl.so.2.i $(INSTALLISADIR)/opt/csw/lib/libintl.so.2 - @cp $(FILEDIR)/libintl.so.3.i $(INSTALLISADIR)/opt/csw/lib/libintl.so.3 - $(DONADA) + @( for f in $(FILEDIR)/*.i; do gcp $$f $(INSTALLISADIR)/opt/csw/lib/$$(gbasename $$f .i); done ) + $(MAKECOOKIE) post-install-isa-amd64: @rm $(INSTALLISADIR)/opt/csw/share/gettext/libintl.jar - $(DONADA) + @( for f in $(FILEDIR)/*.amd64; do gcp $$f $(INSTALLISADIR)/opt/csw/lib/$$(gbasename $$f .amd64); done ) + $(MAKECOOKIE) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From bdwalton at users.sourceforge.net Thu Sep 2 03:31:49 2010 From: bdwalton at users.sourceforge.net (bdwalton at users.sourceforge.net) Date: Thu, 02 Sep 2010 01:31:49 +0000 Subject: [csw-devel] SF.net SVN: gar:[10891] csw/mgar/pkg/gettext/trunk/files Message-ID: Revision: 10891 http://gar.svn.sourceforge.net/gar/?rev=10891&view=rev Author: bdwalton Date: 2010-09-02 01:31:49 +0000 (Thu, 02 Sep 2010) Log Message: ----------- gettext: add more legacy lib versions Added Paths: ----------- csw/mgar/pkg/gettext/trunk/files/libgettextpo.so.0.4.0.amd64 csw/mgar/pkg/gettext/trunk/files/libgettextpo.so.0.4.0.i csw/mgar/pkg/gettext/trunk/files/libgettextpo.so.0.4.0.s csw/mgar/pkg/gettext/trunk/files/libgettextpo.so.0.4.0.s9 Added: csw/mgar/pkg/gettext/trunk/files/libgettextpo.so.0.4.0.amd64 =================================================================== (Binary files differ) Property changes on: csw/mgar/pkg/gettext/trunk/files/libgettextpo.so.0.4.0.amd64 ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Added: csw/mgar/pkg/gettext/trunk/files/libgettextpo.so.0.4.0.i =================================================================== (Binary files differ) Property changes on: csw/mgar/pkg/gettext/trunk/files/libgettextpo.so.0.4.0.i ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Added: csw/mgar/pkg/gettext/trunk/files/libgettextpo.so.0.4.0.s =================================================================== (Binary files differ) Property changes on: csw/mgar/pkg/gettext/trunk/files/libgettextpo.so.0.4.0.s ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Added: csw/mgar/pkg/gettext/trunk/files/libgettextpo.so.0.4.0.s9 =================================================================== (Binary files differ) Property changes on: csw/mgar/pkg/gettext/trunk/files/libgettextpo.so.0.4.0.s9 ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From bdwalton at users.sourceforge.net Thu Sep 2 03:45:38 2010 From: bdwalton at users.sourceforge.net (bdwalton at users.sourceforge.net) Date: Thu, 02 Sep 2010 01:45:38 +0000 Subject: [csw-devel] SF.net SVN: gar:[10893] csw/mgar/pkg/gettext/trunk/Makefile Message-ID: Revision: 10893 http://gar.svn.sourceforge.net/gar/?rev=10893&view=rev Author: bdwalton Date: 2010-09-02 01:45:38 +0000 (Thu, 02 Sep 2010) Log Message: ----------- gettext: include more libs in the runtime package Modified Paths: -------------- csw/mgar/pkg/gettext/trunk/Makefile Modified: csw/mgar/pkg/gettext/trunk/Makefile =================================================================== --- csw/mgar/pkg/gettext/trunk/Makefile 2010-09-02 01:44:17 UTC (rev 10892) +++ csw/mgar/pkg/gettext/trunk/Makefile 2010-09-02 01:45:38 UTC (rev 10893) @@ -64,6 +64,7 @@ #PKGFILES_CSWggettextrt += $(call baseisadirs,$(libdir),libgettextpo\..*) #so use this for now PKGFILES_CSWggettextrt = .*/libintl\.so.* .*/libasprintf\.so.* .*/libgettextpo\.so.* +PKGFILES_CSWggettextrt = .*/libgettext.*\.so.* PKGFILES_CSWggettextrt += /opt/csw/bin/ggettext /opt/csw/bin/gngettext /opt/csw/bin/genvsubst PKGFILES_CSWggettextrt += /opt/csw/bin/ggettext.sh /opt/csw/share/java/libintl.jar PKGFILES_CSWggettextrt += /opt/csw/share/locale/.* This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From bdwalton at users.sourceforge.net Thu Sep 2 04:09:15 2010 From: bdwalton at users.sourceforge.net (bdwalton at users.sourceforge.net) Date: Thu, 02 Sep 2010 02:09:15 +0000 Subject: [csw-devel] SF.net SVN: gar:[10895] csw/mgar/pkg/gettext/trunk/Makefile Message-ID: Revision: 10895 http://gar.svn.sourceforge.net/gar/?rev=10895&view=rev Author: bdwalton Date: 2010-09-02 02:09:15 +0000 (Thu, 02 Sep 2010) Log Message: ----------- gettext: a few more checkpkg overrides Modified Paths: -------------- csw/mgar/pkg/gettext/trunk/Makefile Modified: csw/mgar/pkg/gettext/trunk/Makefile =================================================================== --- csw/mgar/pkg/gettext/trunk/Makefile 2010-09-02 01:55:23 UTC (rev 10894) +++ csw/mgar/pkg/gettext/trunk/Makefile 2010-09-02 02:09:15 UTC (rev 10895) @@ -75,6 +75,9 @@ CHECKPKG_OVERRIDES_CSWggettextel += surplus-dependency|CSWggettext # This lib is legacy from the old versions and can't be updated (easily) CHECKPKG_OVERRIDES_CSWggettext += bad-rpath-entry|/export/home/phil/build/gettext-0.14.1/gettext-tools/intl/.libs|opt/csw/lib/sparcv9/libgettextlib-0.14.1.so +# A few more legacy libs that we can't update. +CHECKPKG_OVERRIDES_CSWggettextrt += bad-rpath-entry|/opt/csw/lib/|opt/csw/lib/libgettextlib-0.17.so +CHECKPKG_OVERRIDES_CSWggettextrt += bad-rpath-entry|/opt/csw/lib/|opt/csw/lib/libgettextsrc-0.17.so # just until checkpkg doesn't squawk about this. CHECKPKG_OVERRIDES_CSWggettext += missing-dependency|CSWemacscommon This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From bdwalton at users.sourceforge.net Thu Sep 2 04:30:19 2010 From: bdwalton at users.sourceforge.net (bdwalton at users.sourceforge.net) Date: Thu, 02 Sep 2010 02:30:19 +0000 Subject: [csw-devel] SF.net SVN: gar:[10896] csw/mgar/pkg/gettext/trunk/Makefile Message-ID: Revision: 10896 http://gar.svn.sourceforge.net/gar/?rev=10896&view=rev Author: bdwalton Date: 2010-09-02 02:30:19 +0000 (Thu, 02 Sep 2010) Log Message: ----------- gettext: update dependencies for moved libs Modified Paths: -------------- csw/mgar/pkg/gettext/trunk/Makefile Modified: csw/mgar/pkg/gettext/trunk/Makefile =================================================================== --- csw/mgar/pkg/gettext/trunk/Makefile 2010-09-02 02:09:15 UTC (rev 10895) +++ csw/mgar/pkg/gettext/trunk/Makefile 2010-09-02 02:30:19 UTC (rev 10896) @@ -42,7 +42,7 @@ NOISAEXEC = 1 STRIP_LIBTOOL = 1 -RUNTIME_DEP_PKGS_CSWggettextrt = CSWiconv +RUNTIME_DEP_PKGS_CSWggettextrt = CSWiconv CSWlibxml2 CSWncurses RUNTIME_DEP_PKGS_CSWggettext = CSWggettextrt CSWiconv CSWexpat CSWncurses RUNTIME_DEP_PKGS_CSWggettext += CSWlibxml2 RUNTIME_DEP_PKGS_CSWggettextdoc = CSWggettext This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From wahwah at users.sourceforge.net Thu Sep 2 10:41:01 2010 From: wahwah at users.sourceforge.net (wahwah at users.sourceforge.net) Date: Thu, 02 Sep 2010 08:41:01 +0000 Subject: [csw-devel] SF.net SVN: gar:[10897] csw/mgar/gar/v2/bin/checkpkg Message-ID: Revision: 10897 http://gar.svn.sourceforge.net/gar/?rev=10897&view=rev Author: wahwah Date: 2010-09-02 08:41:01 +0000 (Thu, 02 Sep 2010) Log Message: ----------- mGAR v2: checkpkg, removing mentions of the -o flags. Modified Paths: -------------- csw/mgar/gar/v2/bin/checkpkg Modified: csw/mgar/gar/v2/bin/checkpkg =================================================================== --- csw/mgar/gar/v2/bin/checkpkg 2010-09-02 02:30:19 UTC (rev 10896) +++ csw/mgar/gar/v2/bin/checkpkg 2010-09-02 08:41:01 UTC (rev 10897) @@ -102,7 +102,6 @@ # - Use an pre-cached (from a catalog file?) list of md5 sums # - Don't use the data from /var/sadm/install/contents SAVE_TAGS=0 -SAVED_TAGS_FILE=error-tags.txt display_help=0 SKIP_STATS_COLLECTION=0 MD5_SUMS_CATALOG_FILE="" @@ -119,9 +118,6 @@ s) SAVE_TAGS=1 ;; - o) - SAVED_TAGS_FILE="${OPTARG}" - ;; d) DEBUG=1 ;; @@ -151,7 +147,6 @@ readonly INSTALL_CONTENTS_FILES readonly MD5_SUMS_CATALOG_FILE -readonly SAVED_TAGS_FILE readonly SAVE_TAGS readonly SKIP_STATS_COLLECTION readonly ANALYZE @@ -163,22 +158,17 @@ print 'Options:' print ' -c use an additional install/contents file' print ' -s save error tags on disk' - print ' -o save tag output to file' print ' -d display debug messages' print ' -N skip statistics collection' print ' -M use package md5sums from a catalog file' print ' -A Do not analyze the results.' print ' -p Enable profiling' print ' -q Display less messages' + print '' + print 'Error tags are saved to the sqlite database.' exit 0 fi -if [[ "${SAVE_TAGS}" -eq 1 ]]; then - if [[ -f "${SAVED_TAGS_FILE}" ]]; then - rm "${SAVED_TAGS_FILE}" - fi -fi - # a unique filename for the list of package deps and libs we see in a 'set' SETINF=$CHECKPKG_TMPDIR/checkpkg.$$.`date +%Y%m%d%H%M%S` SETLIBS=$SETINF.libs This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From wahwah at users.sourceforge.net Thu Sep 2 10:42:19 2010 From: wahwah at users.sourceforge.net (wahwah at users.sourceforge.net) Date: Thu, 02 Sep 2010 08:42:19 +0000 Subject: [csw-devel] SF.net SVN: gar:[10898] csw/mgar/gar/v2/bin/checkpkg Message-ID: Revision: 10898 http://gar.svn.sourceforge.net/gar/?rev=10898&view=rev Author: wahwah Date: 2010-09-02 08:42:19 +0000 (Thu, 02 Sep 2010) Log Message: ----------- mGAR v2: checkpkg, removing mentions of the -s flag. Modified Paths: -------------- csw/mgar/gar/v2/bin/checkpkg Modified: csw/mgar/gar/v2/bin/checkpkg =================================================================== --- csw/mgar/gar/v2/bin/checkpkg 2010-09-02 08:41:01 UTC (rev 10897) +++ csw/mgar/gar/v2/bin/checkpkg 2010-09-02 08:42:19 UTC (rev 10898) @@ -101,7 +101,6 @@ # TODO: Options to add: # - Use an pre-cached (from a catalog file?) list of md5 sums # - Don't use the data from /var/sadm/install/contents -SAVE_TAGS=0 display_help=0 SKIP_STATS_COLLECTION=0 MD5_SUMS_CATALOG_FILE="" @@ -115,9 +114,6 @@ c) INSTALL_CONTENTS_FILES="${INSTALL_CONTENTS_FILES} ${OPTARG}" ;; - s) - SAVE_TAGS=1 - ;; d) DEBUG=1 ;; @@ -147,7 +143,6 @@ readonly INSTALL_CONTENTS_FILES readonly MD5_SUMS_CATALOG_FILE -readonly SAVE_TAGS readonly SKIP_STATS_COLLECTION readonly ANALYZE readonly PROFILE @@ -157,7 +152,6 @@ print 'Usage: checkpkg [options] pkg1 [pkg2 ....]' print 'Options:' print ' -c use an additional install/contents file' - print ' -s save error tags on disk' print ' -d display debug messages' print ' -N skip statistics collection' print ' -M use package md5sums from a catalog file' This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From wahwah at users.sourceforge.net Thu Sep 2 11:56:40 2010 From: wahwah at users.sourceforge.net (wahwah at users.sourceforge.net) Date: Thu, 02 Sep 2010 09:56:40 +0000 Subject: [csw-devel] SF.net SVN: gar:[10899] csw/mgar/gar/v2/lib/python Message-ID: Revision: 10899 http://gar.svn.sourceforge.net/gar/?rev=10899&view=rev Author: wahwah Date: 2010-09-02 09:56:40 +0000 (Thu, 02 Sep 2010) Log Message: ----------- mGAR v2: checkpkg, improvements for the file name parsing function, to handle file names that don't conform to the standard. Modified Paths: -------------- csw/mgar/gar/v2/lib/python/opencsw.py csw/mgar/gar/v2/lib/python/opencsw_test.py Modified: csw/mgar/gar/v2/lib/python/opencsw.py =================================================================== --- csw/mgar/gar/v2/lib/python/opencsw.py 2010-09-02 08:42:19 UTC (rev 10898) +++ csw/mgar/gar/v2/lib/python/opencsw.py 2010-09-02 09:56:40 UTC (rev 10899) @@ -119,15 +119,28 @@ p = p[:-4] bits = p.split("-") catalogname = bits[0] - version, version_info, revision_info = ParseVersionString(bits[1]) + if len(bits) < 2: + version, version_info, revision_info = None, None, None + full_version_string = None + else: + version, version_info, revision_info = ParseVersionString(bits[1]) + full_version_string = bits[1] if len(bits) == 5: osrel, arch, vendortag = bits[2:5] - else: + elif len(bits) == 4: arch, vendortag = bits[2:4] osrel = "unspecified" + elif len(bits) == 3: + arch = bits[2] + vendortag = "UNKN" + osrel = "unspecified" + else: + arch = "unknown" + vendortag = "UNKN" + osrel = "unspecified" data = { 'catalogname': catalogname, - 'full_version_string': bits[1], + 'full_version_string': full_version_string, 'version': version, 'version_info': version_info, 'revision_info': revision_info, Modified: csw/mgar/gar/v2/lib/python/opencsw_test.py =================================================================== --- csw/mgar/gar/v2/lib/python/opencsw_test.py 2010-09-02 08:42:19 UTC (rev 10898) +++ csw/mgar/gar/v2/lib/python/opencsw_test.py 2010-09-02 09:56:40 UTC (rev 10899) @@ -117,7 +117,21 @@ self.assertEqual(catalogname, compiled["catalogname"]) self.assertEqual(pkg_version, compiled["full_version_string"]) + def testParsePackageFileName_RichpSe(self): + file_name = "RICHPse-3.5.1.pkg.gz" + parsed = opencsw.ParsePackageFileName(file_name) + self.assertEqual(parsed["version"], "3.5.1") + self.assertEqual(parsed["vendortag"], "UNKN") + self.assertEqual(parsed["arch"], "unknown") + self.assertEqual(parsed["osrel"], "unspecified") + self.assertEqual(parsed["catalogname"], "RICHPse") + def testParsePackageFileName_Nonsense(self): + """Checks if the function can sustain a non-conformant string.""" + file_name = "What if I wrote a letter to my grandma here?" + parsed = opencsw.ParsePackageFileName(file_name) + + class ParsePackageFileNameTest_2(unittest.TestCase): def setUp(self): @@ -143,6 +157,28 @@ self.assertEqual("unspecified", parsed["osrel"]) +class ParseVersionStringTest(unittest.TestCase): + + def test_NoRev(self): + data = "1.2.3" + expected = ('1.2.3', { + 'minor version': '2', + 'patchlevel': '3', + 'major version': '1'}, + {}) + self.assertEqual(expected, opencsw.ParseVersionString(data)) + + def test_Text(self): + data = "That, sir, is a frab-rication! It's wabbit season!" + opencsw.ParseVersionString(data) + + def test_Empty(self): + data = "" + opencsw.ParseVersionString(data) + expected = ('', {'major version': ''}, {}) + self.assertEqual(expected, opencsw.ParseVersionString(data)) + + class UpgradeTypeTest(unittest.TestCase): def testUpgradeType_1(self): This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From wahwah at users.sourceforge.net Thu Sep 2 12:13:43 2010 From: wahwah at users.sourceforge.net (wahwah at users.sourceforge.net) Date: Thu, 02 Sep 2010 10:13:43 +0000 Subject: [csw-devel] SF.net SVN: gar:[10900] csw/mgar/gar/v2/lib/python/checkpkg.py Message-ID: Revision: 10900 http://gar.svn.sourceforge.net/gar/?rev=10900&view=rev Author: wahwah Date: 2010-09-02 10:13:43 +0000 (Thu, 02 Sep 2010) Log Message: ----------- mGAR v2: checkpkg, deal with nonstandard architectures in a nicer way. Modified Paths: -------------- csw/mgar/gar/v2/lib/python/checkpkg.py Modified: csw/mgar/gar/v2/lib/python/checkpkg.py =================================================================== --- csw/mgar/gar/v2/lib/python/checkpkg.py 2010-09-02 09:56:40 UTC (rev 10899) +++ csw/mgar/gar/v2/lib/python/checkpkg.py 2010-09-02 10:13:43 UTC (rev 10900) @@ -934,7 +934,9 @@ def GetCommonPaths(self, arch): """Returns a list of paths for architecture, from gar/etc/commondirs*.""" # TODO: If this was cached, it could save a significant amount of time. - assert arch in ('i386', 'sparc', 'all'), "Wrong arch: %s" % repr(arch) + if arch not in ('i386', 'sparc', 'all'): + logging.warn("Wrong arch: %s", repr(arch)) + return [] if arch == 'all': archs = ('i386', 'sparc') else: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From chninkel at users.sourceforge.net Thu Sep 2 14:46:26 2010 From: chninkel at users.sourceforge.net (chninkel at users.sourceforge.net) Date: Thu, 02 Sep 2010 12:46:26 +0000 Subject: [csw-devel] SF.net SVN: gar:[10901] csw/mgar/pkg/openssh/trunk Message-ID: Revision: 10901 http://gar.svn.sourceforge.net/gar/?rev=10901&view=rev Author: chninkel Date: 2010-09-02 12:46:26 +0000 (Thu, 02 Sep 2010) Log Message: ----------- openssh: moved conf from /opt/csw/etc to /etc/opt/csw Modified Paths: -------------- csw/mgar/pkg/openssh/trunk/Makefile csw/mgar/pkg/openssh/trunk/files/changelog.CSW Modified: csw/mgar/pkg/openssh/trunk/Makefile =================================================================== --- csw/mgar/pkg/openssh/trunk/Makefile 2010-09-02 10:13:43 UTC (rev 10900) +++ csw/mgar/pkg/openssh/trunk/Makefile 2010-09-02 12:46:26 UTC (rev 10901) @@ -36,12 +36,12 @@ CATALOGNAME_CSWossh = openssh SPKG_DESC_CSWossh = OpenSSH Secure Shell server RUNTIME_DEP_PKGS_CSWossh = CSWosslrt CSWtcpwrap CSWzlib CSWkrb5lib CSWosshclient -SPKG_CLASSES_CSWossh = none cswpreserveconf cswinitsmf +SPKG_CLASSES_CSWossh = none cswmigrateconf cswpreserveconf cswinitsmf CATALOGNAME_CSWosshclient = openssh_client SPKG_DESC_CSWosshclient = OpenSSH Secure Shell client RUNTIME_DEP_PKGS_CSWosshclient = CSWosslrt CSWzlib CSWkrb5lib -SPKG_CLASSES_CSWosshclient = none cswpreserveconf +SPKG_CLASSES_CSWosshclient = none cswmigrateconf cswpreserveconf PACKAGING_PLATFORMS = solaris9-sparc solaris9-i386 solaris10-sparc solaris10-i386 @@ -53,9 +53,9 @@ PKGFILES_CSWossh += $(libexecdir)/sftp-server PKGFILES_CSWossh += $(sysconfdir)/ssh/sshd_config.CSW PKGFILES_CSWossh += $(sysconfdir)/ssh/moduli.CSW -PKGFILES_CSWossh += /var/empty -PKGFILES_CSWossh += /etc$(prefix)/init.d/cswopenssh -PKGFILES_CSWossh += /var$(prefix)/svc/manifest/network/cswopenssh.xml +PKGFILES_CSWossh += $(localstatedir)/empty +PKGFILES_CSWossh += $(sysconfdir)/init.d/cswopenssh +PKGFILES_CSWossh += $(localstatedir)/svc/manifest/network/cswopenssh.xml PKGFILES_CSWosshclient = $(bindir)/.* PKGFILES_CSWosshclient += $(docdir)/openssh_client/.* @@ -69,11 +69,14 @@ PROTOTYPE_FILES_setuid = $(libexecdir)/ssh-keysign PROTOTYPE_PERMS_setuid = 4711 +PRESERVECONF = $(sysconfdir)/ssh/sshd_config +PRESERVECONF += $(sysconfdir)/ssh/ssh_config +PRESERVECONF += $(sysconfdir)/ssh/moduli +INITSMF = $(sysconfdir)/init.d/cswopenssh -PRESERVECONF = /opt/csw/etc/ssh/sshd_config -PRESERVECONF += /opt/csw/etc/ssh/ssh_config -PRESERVECONF += /opt/csw/etc/ssh/moduli -INITSMF = /etc/opt/csw/init.d/cswopenssh +MIGRATE_FILES_CSWossh = module sshd_config +MIGRATE_FILES_CSWosshclient = ssh_config +MIGRATE_SOURCE_DIR = $(prefix)/etc/ssh # The openssh package installs the server and the client CHECKPKG_OVERRIDES_CSWossh = surplus-dependency|CSWosshclient @@ -116,12 +119,20 @@ ##### Build and installation information ##### + +# to support shared /opt/csw setup +# see http://wiki.opencsw.org/shared-opt-csw-setup +localstatedir = /var$(prefix) +sysconfdir = /etc$(prefix) + + CONFIGURE_ARGS = $(DIRPATHS) CONFIGURE_ARGS += --with-kerberos5=$(prefix) CONFIGURE_ARGS += --sysconfdir=$(sysconfdir)/ssh CONFIGURE_ARGS += --with-solaris-contracts CONFIGURE_ARGS += --with-pam CONFIGURE_ARGS += --with-tcp-wrappers=$(prefix) +CONFIGURE_ARGS += --with-privsep-path=$(localstatedir)/empty TEST_SCRIPTS = @@ -192,5 +203,5 @@ @$(MAKECOOKIE) merge-special-directories: - ginstall -d $(PKGROOT)/var/empty + ginstall -d $(PKGROOT)$(localstatedir)/empty ginstall -d $(PKGROOT)$(sysconfdir)/CSWossh Modified: csw/mgar/pkg/openssh/trunk/files/changelog.CSW =================================================================== --- csw/mgar/pkg/openssh/trunk/files/changelog.CSW 2010-09-02 10:13:43 UTC (rev 10900) +++ csw/mgar/pkg/openssh/trunk/files/changelog.CSW 2010-09-02 12:46:26 UTC (rev 10901) @@ -3,6 +3,9 @@ * New upstream release. * Removed patch applied upstream (derelativise_path_bugfix.patch and dont_derelativise_authorizedkeysfile_option.patch). + * Moved conf from /opt/csw/etc to /etc/opt/csw. + * Moved privilege separation directory from /var/empty to + /var/opt/csw/var/empty. * [Build system] Switched to dynamic prototype. -- Yann Rouillard Wed, 01 Sep 2010 23:25:24 +0200 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From chninkel at users.sourceforge.net Thu Sep 2 15:30:27 2010 From: chninkel at users.sourceforge.net (chninkel at users.sourceforge.net) Date: Thu, 02 Sep 2010 13:30:27 +0000 Subject: [csw-devel] SF.net SVN: gar:[10902] csw/mgar/pkg/openssh/trunk Message-ID: Revision: 10902 http://gar.svn.sourceforge.net/gar/?rev=10902&view=rev Author: chninkel Date: 2010-09-02 13:30:27 +0000 (Thu, 02 Sep 2010) Log Message: ----------- openssh: fixed some configuration migration errors Modified Paths: -------------- csw/mgar/pkg/openssh/trunk/Makefile Added Paths: ----------- csw/mgar/pkg/openssh/trunk/files/THIS_LOCATION_IS_DEPRECATED Modified: csw/mgar/pkg/openssh/trunk/Makefile =================================================================== --- csw/mgar/pkg/openssh/trunk/Makefile 2010-09-02 12:46:26 UTC (rev 10901) +++ csw/mgar/pkg/openssh/trunk/Makefile 2010-09-02 13:30:27 UTC (rev 10902) @@ -53,6 +53,7 @@ PKGFILES_CSWossh += $(libexecdir)/sftp-server PKGFILES_CSWossh += $(sysconfdir)/ssh/sshd_config.CSW PKGFILES_CSWossh += $(sysconfdir)/ssh/moduli.CSW +PKGFILES_CSWossh += $(prefix)/etc/ssh/THIS_LOCATION_IS_DEPRECATED PKGFILES_CSWossh += $(localstatedir)/empty PKGFILES_CSWossh += $(sysconfdir)/init.d/cswopenssh PKGFILES_CSWossh += $(localstatedir)/svc/manifest/network/cswopenssh.xml @@ -64,6 +65,7 @@ PKGFILES_CSWosshclient += $(mandir)/man8/ssh-keysign.8 PKGFILES_CSWosshclient += $(libexecdir)/ssh-keysign PKGFILES_CSWosshclient += $(sysconfdir)/ssh/ssh_config.CSW +PKGFILES_CSWosshclient += $(prefix)/etc/ssh/THIS_LOCATION_IS_DEPRECATED PROTOTYPE_MODIFIERS = setuid PROTOTYPE_FILES_setuid = $(libexecdir)/ssh-keysign @@ -74,8 +76,13 @@ PRESERVECONF += $(sysconfdir)/ssh/moduli INITSMF = $(sysconfdir)/init.d/cswopenssh -MIGRATE_FILES_CSWossh = module sshd_config +MIGRATE_FILES_CSWossh = moduli sshd_config +MIGRATE_FILES_CSWossh += ssh_host_dsa_key ssh_host_dsa_key.pub ssh_host_rsa_key ssh_host_rsa_key.pub ssh_host_key ssh_host_key.pub +MIGRATE_FILES_CSWossh += shosts.equiv +MIGRATE_FILES_CSWossh += sshrc MIGRATE_FILES_CSWosshclient = ssh_config +MIGRATE_FILES_CSWosshclient += ssh_known_hosts ssh_known_hosts2 +MIGRATE_FILES_CSWosshclient += ssh_prng_cmds MIGRATE_SOURCE_DIR = $(prefix)/etc/ssh # The openssh package installs the server and the client @@ -198,8 +205,9 @@ merge-config-files: # we change some default value in the server config file - perl -pi -e 's,/etc/ssh/,/opt/csw/etc/ssh/,g; s,/usr/libexec/,/opt/csw/libexec/,g' "$(PKGROOT)/$(sysconfdir)/ssh/sshd_config.CSW" + perl -pi -e 's,/etc/ssh/,$(sysconfdir)/ssh/,g; s,/usr/libexec/,/opt/csw/libexec/,g' "$(PKGROOT)/$(sysconfdir)/ssh/sshd_config.CSW" perl -pi -e 's,^ *# *UsePAM *.*,UsePAM yes,g, s,^ *# *PrintMotd *.*,PrintMotd no,g; s,^ *# *X11Forwarding *.*,X11Forwarding yes,g' "$(PKGROOT)/$(sysconfdir)/ssh/sshd_config.CSW" + ginstall -D "$(WORKDIR_FIRSTMOD)/THIS_LOCATION_IS_DEPRECATED" "$(PKGROOT)/$(sysconfdir)/ssh/THIS_LOCATION_IS_DEPRECATED" @$(MAKECOOKIE) merge-special-directories: Added: csw/mgar/pkg/openssh/trunk/files/THIS_LOCATION_IS_DEPRECATED =================================================================== --- csw/mgar/pkg/openssh/trunk/files/THIS_LOCATION_IS_DEPRECATED (rev 0) +++ csw/mgar/pkg/openssh/trunk/files/THIS_LOCATION_IS_DEPRECATED 2010-09-02 13:30:27 UTC (rev 10902) @@ -0,0 +1,5 @@ +This location (/opt/csw/etc) is deprecated. + +Configuration files are currently being placed in /etc/opt/csw. Please make +sure your new configuration is in /etc/opt/csw and remove the old one from +/opt/csw/etc. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From dmichelsen at users.sourceforge.net Thu Sep 2 16:14:27 2010 From: dmichelsen at users.sourceforge.net (dmichelsen at users.sourceforge.net) Date: Thu, 02 Sep 2010 14:14:27 +0000 Subject: [csw-devel] SF.net SVN: gar:[10903] csw/mgar/pkg/cpan/Heap/trunk Message-ID: Revision: 10903 http://gar.svn.sourceforge.net/gar/?rev=10903&view=rev Author: dmichelsen Date: 2010-09-02 14:14:27 +0000 (Thu, 02 Sep 2010) Log Message: ----------- cpan/Heap: Update to 0.80 and mGAR v2 Modified Paths: -------------- csw/mgar/pkg/cpan/Heap/trunk/Makefile csw/mgar/pkg/cpan/Heap/trunk/checksums Added Paths: ----------- csw/mgar/pkg/cpan/Heap/trunk/files/COPYING Removed Paths: ------------- csw/mgar/pkg/cpan/Heap/trunk/files/CSWpmheap.depend csw/mgar/pkg/cpan/Heap/trunk/files/CSWpmheap.gspec csw/mgar/pkg/cpan/Heap/trunk/files/CSWpmheap.prototype Property Changed: ---------------- csw/mgar/pkg/cpan/Heap/trunk/ Property changes on: csw/mgar/pkg/cpan/Heap/trunk ___________________________________________________________________ Modified: svn:externals - gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v1 + gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2 Modified: csw/mgar/pkg/cpan/Heap/trunk/Makefile =================================================================== --- csw/mgar/pkg/cpan/Heap/trunk/Makefile 2010-09-02 13:30:27 UTC (rev 10902) +++ csw/mgar/pkg/cpan/Heap/trunk/Makefile 2010-09-02 14:14:27 UTC (rev 10903) @@ -1,9 +1,9 @@ GARNAME = Heap -GARVERSION = 0.71 +GARVERSION = 0.80 CATEGORIES = cpan AUTHOR = JMM -DESCRIPTION = extensions for keeping data partially sorted +DESCRIPTION = Extensions for keeping data partially sorted define BLURB The Heap collection of modules provide routines that manage a heap of elements. A heap is a partially sorted structure that is always able to @@ -11,6 +11,11 @@ if a reversed compare routine is provided). endef -DISTFILES = $(call admfiles,CSWpmheap,depend prototype) +DISTFILES = COPYING +PACKAGES = CSWpmheap +CATALOGNAME = pm_heap + +ARCHALL = 1 + include gar/category.mk Modified: csw/mgar/pkg/cpan/Heap/trunk/checksums =================================================================== --- csw/mgar/pkg/cpan/Heap/trunk/checksums 2010-09-02 13:30:27 UTC (rev 10902) +++ csw/mgar/pkg/cpan/Heap/trunk/checksums 2010-09-02 14:14:27 UTC (rev 10903) @@ -1,4 +1 @@ -2b38bb73854ece35a4bbf2b23eda8685 download/CSWpmheap.gspec -6e0d583c86d7f74b43769810714242aa download/CSWpmheap.depend -d198f632bc76b9e0f4d29f4ca62bfd42 download/CSWpmheap.prototype -6934be7ffe351b3eea844d24a07ebc36 download/Heap-0.71.tar.gz +05fed19a7552dadee11c780cd68c0116 Heap-0.80.tar.gz Copied: csw/mgar/pkg/cpan/Heap/trunk/files/COPYING (from rev 10898, csw/mgar/pkg/cpan/Heap/trunk/files/CSWpmheap.gspec) =================================================================== --- csw/mgar/pkg/cpan/Heap/trunk/files/COPYING (rev 0) +++ csw/mgar/pkg/cpan/Heap/trunk/files/COPYING 2010-09-02 14:14:27 UTC (rev 10903) @@ -0,0 +1,2 @@ +This code is copyright 1998-2003 O'Reilly & Associates. It is +available on the same terms as perl itself. Deleted: csw/mgar/pkg/cpan/Heap/trunk/files/CSWpmheap.depend =================================================================== Deleted: csw/mgar/pkg/cpan/Heap/trunk/files/CSWpmheap.gspec =================================================================== --- csw/mgar/pkg/cpan/Heap/trunk/files/CSWpmheap.gspec 2010-09-02 13:30:27 UTC (rev 10902) +++ csw/mgar/pkg/cpan/Heap/trunk/files/CSWpmheap.gspec 2010-09-02 14:14:27 UTC (rev 10903) @@ -1,7 +0,0 @@ -%var bitname pm_heap -%var pkgname CSWpmheap -%var arch all -%include url file://%{PKGLIB}/csw_cpan.gspec -%copyright -This code is copyright 1998-2003 O'Reilly & Associates. It is -available on the same terms as perl itself. Deleted: csw/mgar/pkg/cpan/Heap/trunk/files/CSWpmheap.prototype =================================================================== --- csw/mgar/pkg/cpan/Heap/trunk/files/CSWpmheap.prototype 2010-09-02 13:30:27 UTC (rev 10902) +++ csw/mgar/pkg/cpan/Heap/trunk/files/CSWpmheap.prototype 2010-09-02 14:14:27 UTC (rev 10903) @@ -1,58 +0,0 @@ -d none /opt/csw/lib 0755 root bin -d none /opt/csw/lib/perl 0755 root bin -d none /opt/csw/lib/perl/csw 0755 root bin -d none /opt/csw/lib/perl/csw/auto 0755 root bin -d none /opt/csw/lib/perl/csw/auto/Heap 0755 root bin -f none /opt/csw/lib/perl/csw/auto/Heap/.packlist 0644 root bin -d none /opt/csw/share 0755 root bin -d none /opt/csw/share/man 0755 root bin -d none /opt/csw/share/man/man3 0755 root bin -f none /opt/csw/share/man/man3/Heap.3perl 0444 root bin -f none /opt/csw/share/man/man3/Heap::Binary.3perl 0444 root bin -f none /opt/csw/share/man/man3/Heap::Binomial.3perl 0444 root bin -f none /opt/csw/share/man/man3/Heap::Elem.3perl 0444 root bin -f none /opt/csw/share/man/man3/Heap::Elem::Num.3perl 0444 root bin -f none /opt/csw/share/man/man3/Heap::Elem::NumRev.3perl 0444 root bin -f none /opt/csw/share/man/man3/Heap::Elem::Ref.3perl 0444 root bin -f none /opt/csw/share/man/man3/Heap::Elem::RefRev.3perl 0444 root bin -f none /opt/csw/share/man/man3/Heap::Elem::Str.3perl 0444 root bin -f none /opt/csw/share/man/man3/Heap::Elem::StrRev.3perl 0444 root bin -f none /opt/csw/share/man/man3/Heap::Fibonacci.3perl 0444 root bin -d none /opt/csw/share/perl 0755 root bin -d none /opt/csw/share/perl/csw 0755 root bin -d none /opt/csw/share/perl/csw/Heap 0755 root bin -f none /opt/csw/share/perl/csw/Heap.pm 0444 root bin -f none /opt/csw/share/perl/csw/Heap/Binary.pm 0444 root bin -f none /opt/csw/share/perl/csw/Heap/Binomial.pm 0444 root bin -d none /opt/csw/share/perl/csw/Heap/Elem 0755 root bin -f none /opt/csw/share/perl/csw/Heap/Elem.pm 0444 root bin -f none /opt/csw/share/perl/csw/Heap/Elem/Num.pm 0444 root bin -f none /opt/csw/share/perl/csw/Heap/Elem/NumRev.pm 0444 root bin -f none /opt/csw/share/perl/csw/Heap/Elem/Ref.pm 0444 root bin -f none /opt/csw/share/perl/csw/Heap/Elem/RefRev.pm 0444 root bin -f none /opt/csw/share/perl/csw/Heap/Elem/Str.pm 0444 root bin -f none /opt/csw/share/perl/csw/Heap/Elem/StrRev.pm 0444 root bin -f none /opt/csw/share/perl/csw/Heap/Fibonacci.pm 0444 root bin -d none /opt/csw/share/perl/csw/auto 0755 root bin -d none /opt/csw/share/perl/csw/auto/Heap 0755 root bin -d none /opt/csw/share/perl/csw/auto/Heap/Binary 0755 root bin -f none /opt/csw/share/perl/csw/auto/Heap/Binary/autosplit.ix 0444 root bin -d none /opt/csw/share/perl/csw/auto/Heap/Binomial 0755 root bin -f none /opt/csw/share/perl/csw/auto/Heap/Binomial/autosplit.ix 0444 root bin -d none /opt/csw/share/perl/csw/auto/Heap/Elem 0755 root bin -d none /opt/csw/share/perl/csw/auto/Heap/Elem/Num 0755 root bin -f none /opt/csw/share/perl/csw/auto/Heap/Elem/Num/autosplit.ix 0444 root bin -d none /opt/csw/share/perl/csw/auto/Heap/Elem/NumRev 0755 root bin -f none /opt/csw/share/perl/csw/auto/Heap/Elem/NumRev/autosplit.ix 0444 root bin -d none /opt/csw/share/perl/csw/auto/Heap/Elem/Ref 0755 root bin -f none /opt/csw/share/perl/csw/auto/Heap/Elem/Ref/autosplit.ix 0444 root bin -d none /opt/csw/share/perl/csw/auto/Heap/Elem/RefRev 0755 root bin -f none /opt/csw/share/perl/csw/auto/Heap/Elem/RefRev/autosplit.ix 0444 root bin -d none /opt/csw/share/perl/csw/auto/Heap/Elem/Str 0755 root bin -f none /opt/csw/share/perl/csw/auto/Heap/Elem/Str/autosplit.ix 0444 root bin -d none /opt/csw/share/perl/csw/auto/Heap/Elem/StrRev 0755 root bin -f none /opt/csw/share/perl/csw/auto/Heap/Elem/StrRev/autosplit.ix 0444 root bin -f none /opt/csw/share/perl/csw/auto/Heap/Elem/autosplit.ix 0444 root bin -d none /opt/csw/share/perl/csw/auto/Heap/Fibonacci 0755 root bin -f none /opt/csw/share/perl/csw/auto/Heap/Fibonacci/autosplit.ix 0444 root bin -f none /opt/csw/share/perl/csw/auto/Heap/autosplit.ix 0444 root bin This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From dmichelsen at users.sourceforge.net Thu Sep 2 16:24:30 2010 From: dmichelsen at users.sourceforge.net (dmichelsen at users.sourceforge.net) Date: Thu, 02 Sep 2010 14:24:30 +0000 Subject: [csw-devel] SF.net SVN: gar:[10904] csw/mgar/pkg/cpan/HTML-Format/trunk Message-ID: Revision: 10904 http://gar.svn.sourceforge.net/gar/?rev=10904&view=rev Author: dmichelsen Date: 2010-09-02 14:24:30 +0000 (Thu, 02 Sep 2010) Log Message: ----------- cpan/HTML-Format: Update to mGAR v2 Modified Paths: -------------- csw/mgar/pkg/cpan/HTML-Format/trunk/Makefile csw/mgar/pkg/cpan/HTML-Format/trunk/checksums Added Paths: ----------- csw/mgar/pkg/cpan/HTML-Format/trunk/files/COPYING Removed Paths: ------------- csw/mgar/pkg/cpan/HTML-Format/trunk/files/CSWpmhtmlfmt.depend csw/mgar/pkg/cpan/HTML-Format/trunk/files/CSWpmhtmlfmt.gspec csw/mgar/pkg/cpan/HTML-Format/trunk/files/CSWpmhtmlfmt.prototype Property Changed: ---------------- csw/mgar/pkg/cpan/HTML-Format/trunk/ Property changes on: csw/mgar/pkg/cpan/HTML-Format/trunk ___________________________________________________________________ Modified: svn:externals - gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v1 + gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2 Modified: csw/mgar/pkg/cpan/HTML-Format/trunk/Makefile =================================================================== --- csw/mgar/pkg/cpan/HTML-Format/trunk/Makefile 2010-09-02 14:14:27 UTC (rev 10903) +++ csw/mgar/pkg/cpan/HTML-Format/trunk/Makefile 2010-09-02 14:24:30 UTC (rev 10904) @@ -3,15 +3,20 @@ CATEGORIES = cpan AUTHOR = SBURKE -DESCRIPTION = format HTML as plaintext +DESCRIPTION = Format HTML as plaintext define BLURB The HTML::FormatText is a formatter that outputs plain latin1 text. All character attributes (bold/italic/underline) are ignored. Formatting of HTML tables and forms is not implemented. endef -DISTFILES = $(call admfiles,CSWpmhtmlfmt,depend prototype) +DISTFILES = COPYING -DEPENDS += cpan/Font-AFM +PACKAGES = CSWpmhtmlformat +CATALOGANME = pm_htmlformat +DEP_PKGS = CSWpmfontafm CSWpmhtmltree + +ARCHALL = 1 + include gar/category.mk Modified: csw/mgar/pkg/cpan/HTML-Format/trunk/checksums =================================================================== --- csw/mgar/pkg/cpan/HTML-Format/trunk/checksums 2010-09-02 14:14:27 UTC (rev 10903) +++ csw/mgar/pkg/cpan/HTML-Format/trunk/checksums 2010-09-02 14:24:30 UTC (rev 10904) @@ -1,4 +1 @@ -7aaa888fbdb4a63826f4ce86694e3824 download/CSWpmhtmlfmt.gspec -239f6fa027bec1ce3e510cc02dc92d7a download/CSWpmhtmlfmt.depend -141ffb7e25f2e73a0d483e53728a82a9 download/CSWpmhtmlfmt.prototype -2d287392b77c959f06397371116c2d7e download/HTML-Format-2.04.tar.gz +2d287392b77c959f06397371116c2d7e HTML-Format-2.04.tar.gz Copied: csw/mgar/pkg/cpan/HTML-Format/trunk/files/COPYING (from rev 10898, csw/mgar/pkg/cpan/HTML-Format/trunk/files/CSWpmhtmlfmt.gspec) =================================================================== --- csw/mgar/pkg/cpan/HTML-Format/trunk/files/COPYING (rev 0) +++ csw/mgar/pkg/cpan/HTML-Format/trunk/files/COPYING 2010-09-02 14:24:30 UTC (rev 10904) @@ -0,0 +1,4 @@ +(c) 1995-2002 Gisle Aas and Sean M. Burke. All rights reserved. + +This library is free software; you can redistribute it and/or modify +it under the same terms as Perl itself. Deleted: csw/mgar/pkg/cpan/HTML-Format/trunk/files/CSWpmhtmlfmt.depend =================================================================== --- csw/mgar/pkg/cpan/HTML-Format/trunk/files/CSWpmhtmlfmt.depend 2010-09-02 14:14:27 UTC (rev 10903) +++ csw/mgar/pkg/cpan/HTML-Format/trunk/files/CSWpmhtmlfmt.depend 2010-09-02 14:24:30 UTC (rev 10904) @@ -1 +0,0 @@ -P CSWpmfontafm pm_fontafm - interface to Adobe Font Metrics files Deleted: csw/mgar/pkg/cpan/HTML-Format/trunk/files/CSWpmhtmlfmt.gspec =================================================================== --- csw/mgar/pkg/cpan/HTML-Format/trunk/files/CSWpmhtmlfmt.gspec 2010-09-02 14:14:27 UTC (rev 10903) +++ csw/mgar/pkg/cpan/HTML-Format/trunk/files/CSWpmhtmlfmt.gspec 2010-09-02 14:24:30 UTC (rev 10904) @@ -1,9 +0,0 @@ -%var bitname pm_htmlfmt -%var pkgname CSWpmhtmlfmt -%var arch all -%include url file://%{PKGLIB}/csw_cpan.gspec -%copyright -\xA9 1995-2002 Gisle Aas and Sean M. Burke. All rights reserved. - -This library is free software; you can redistribute it and/or modify -it under the same terms as Perl itself. Deleted: csw/mgar/pkg/cpan/HTML-Format/trunk/files/CSWpmhtmlfmt.prototype =================================================================== --- csw/mgar/pkg/cpan/HTML-Format/trunk/files/CSWpmhtmlfmt.prototype 2010-09-02 14:14:27 UTC (rev 10903) +++ csw/mgar/pkg/cpan/HTML-Format/trunk/files/CSWpmhtmlfmt.prototype 2010-09-02 14:24:30 UTC (rev 10904) @@ -1,19 +0,0 @@ -d none /opt/csw/lib 0755 root bin -d none /opt/csw/lib/perl 0755 root bin -d none /opt/csw/lib/perl/csw 0755 root bin -d none /opt/csw/lib/perl/csw/auto/HTML-Format 0755 root bin -f none /opt/csw/lib/perl/csw/auto/HTML-Format/.packlist 0644 root bin -d none /opt/csw/share 0755 root bin -d none /opt/csw/share/man 0755 root bin -d none /opt/csw/share/man/man3 0755 root bin -f none /opt/csw/share/man/man3/HTML::FormatPS.3perl 0444 root bin -f none /opt/csw/share/man/man3/HTML::FormatRTF.3perl 0444 root bin -f none /opt/csw/share/man/man3/HTML::FormatText.3perl 0444 root bin -f none /opt/csw/share/man/man3/HTML::Formatter.3perl 0444 root bin -d none /opt/csw/share/perl 0755 root bin -d none /opt/csw/share/perl/csw 0755 root bin -d none /opt/csw/share/perl/csw/HTML 0755 root bin -f none /opt/csw/share/perl/csw/HTML/FormatPS.pm 0444 root bin -f none /opt/csw/share/perl/csw/HTML/FormatRTF.pm 0444 root bin -f none /opt/csw/share/perl/csw/HTML/FormatText.pm 0444 root bin -f none /opt/csw/share/perl/csw/HTML/Formatter.pm 0444 root bin This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From dmichelsen at users.sourceforge.net Thu Sep 2 16:26:57 2010 From: dmichelsen at users.sourceforge.net (dmichelsen at users.sourceforge.net) Date: Thu, 02 Sep 2010 14:26:57 +0000 Subject: [csw-devel] SF.net SVN: gar:[10905] csw/mgar/pkg/cpan/HTML-Format/trunk/Makefile Message-ID: Revision: 10905 http://gar.svn.sourceforge.net/gar/?rev=10905&view=rev Author: dmichelsen Date: 2010-09-02 14:26:56 +0000 (Thu, 02 Sep 2010) Log Message: ----------- cpan/HTML-Format: Fix typo Modified Paths: -------------- csw/mgar/pkg/cpan/HTML-Format/trunk/Makefile Modified: csw/mgar/pkg/cpan/HTML-Format/trunk/Makefile =================================================================== --- csw/mgar/pkg/cpan/HTML-Format/trunk/Makefile 2010-09-02 14:24:30 UTC (rev 10904) +++ csw/mgar/pkg/cpan/HTML-Format/trunk/Makefile 2010-09-02 14:26:56 UTC (rev 10905) @@ -13,7 +13,7 @@ DISTFILES = COPYING PACKAGES = CSWpmhtmlformat -CATALOGANME = pm_htmlformat +CATALOGNAME = pm_htmlformat DEP_PKGS = CSWpmfontafm CSWpmhtmltree This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From chninkel at users.sourceforge.net Thu Sep 2 16:27:23 2010 From: chninkel at users.sourceforge.net (chninkel at users.sourceforge.net) Date: Thu, 02 Sep 2010 14:27:23 +0000 Subject: [csw-devel] SF.net SVN: gar:[10906] csw/mgar/pkg/openssh/trunk Message-ID: Revision: 10906 http://gar.svn.sourceforge.net/gar/?rev=10906&view=rev Author: chninkel Date: 2010-09-02 14:27:22 +0000 (Thu, 02 Sep 2010) Log Message: ----------- openssh: fixed last configuration migration errors (I think) Modified Paths: -------------- csw/mgar/pkg/openssh/trunk/Makefile csw/mgar/pkg/openssh/trunk/files/cswopenssh csw/mgar/pkg/openssh/trunk/files/cswopenssh.xml csw/mgar/pkg/openssh/trunk/files/sshd.smf_wrapper Modified: csw/mgar/pkg/openssh/trunk/Makefile =================================================================== --- csw/mgar/pkg/openssh/trunk/Makefile 2010-09-02 14:26:56 UTC (rev 10905) +++ csw/mgar/pkg/openssh/trunk/Makefile 2010-09-02 14:27:22 UTC (rev 10906) @@ -53,7 +53,6 @@ PKGFILES_CSWossh += $(libexecdir)/sftp-server PKGFILES_CSWossh += $(sysconfdir)/ssh/sshd_config.CSW PKGFILES_CSWossh += $(sysconfdir)/ssh/moduli.CSW -PKGFILES_CSWossh += $(prefix)/etc/ssh/THIS_LOCATION_IS_DEPRECATED PKGFILES_CSWossh += $(localstatedir)/empty PKGFILES_CSWossh += $(sysconfdir)/init.d/cswopenssh PKGFILES_CSWossh += $(localstatedir)/svc/manifest/network/cswopenssh.xml @@ -76,14 +75,15 @@ PRESERVECONF += $(sysconfdir)/ssh/moduli INITSMF = $(sysconfdir)/init.d/cswopenssh -MIGRATE_FILES_CSWossh = moduli sshd_config +MIGRATE_FILES_CSWossh = moduli sshd_config MIGRATE_FILES_CSWossh += ssh_host_dsa_key ssh_host_dsa_key.pub ssh_host_rsa_key ssh_host_rsa_key.pub ssh_host_key ssh_host_key.pub -MIGRATE_FILES_CSWossh += shosts.equiv -MIGRATE_FILES_CSWossh += sshrc +MIGRATE_FILES_CSWossh += shosts.equiv +MIGRATE_FILES_CSWossh += sshrc MIGRATE_FILES_CSWosshclient = ssh_config MIGRATE_FILES_CSWosshclient += ssh_known_hosts ssh_known_hosts2 MIGRATE_FILES_CSWosshclient += ssh_prng_cmds MIGRATE_SOURCE_DIR = $(prefix)/etc/ssh +MIGRATE_DEST_DIR = $(sysconfdir)/ssh # The openssh package installs the server and the client CHECKPKG_OVERRIDES_CSWossh = surplus-dependency|CSWosshclient @@ -102,6 +102,8 @@ DISTFILES += cswopenssh sshd.smf_wrapper cswopenssh.xml +DISTFILES += THIS_LOCATION_IS_DEPRECATED + LICENSE = LICENCE # The GSSAPI key exchange patch @@ -207,7 +209,7 @@ # we change some default value in the server config file perl -pi -e 's,/etc/ssh/,$(sysconfdir)/ssh/,g; s,/usr/libexec/,/opt/csw/libexec/,g' "$(PKGROOT)/$(sysconfdir)/ssh/sshd_config.CSW" perl -pi -e 's,^ *# *UsePAM *.*,UsePAM yes,g, s,^ *# *PrintMotd *.*,PrintMotd no,g; s,^ *# *X11Forwarding *.*,X11Forwarding yes,g' "$(PKGROOT)/$(sysconfdir)/ssh/sshd_config.CSW" - ginstall -D "$(WORKDIR_FIRSTMOD)/THIS_LOCATION_IS_DEPRECATED" "$(PKGROOT)/$(sysconfdir)/ssh/THIS_LOCATION_IS_DEPRECATED" + ginstall -D "$(WORKDIR_FIRSTMOD)/THIS_LOCATION_IS_DEPRECATED" "$(PKGROOT)/$(prefix)/etc/ssh/THIS_LOCATION_IS_DEPRECATED" @$(MAKECOOKIE) merge-special-directories: Modified: csw/mgar/pkg/openssh/trunk/files/cswopenssh =================================================================== --- csw/mgar/pkg/openssh/trunk/files/cswopenssh 2010-09-02 14:26:56 UTC (rev 10905) +++ csw/mgar/pkg/openssh/trunk/files/cswopenssh 2010-09-02 14:27:22 UTC (rev 10906) @@ -12,7 +12,7 @@ PATH=/usr/bin:/opt/csw/bin:/usr/sbin -KEYDIR=/opt/csw/etc/ssh +KEYDIR=/etc/opt/csw/ssh PIDFILE=/var/run/sshd.pid case $1 in 'start') @@ -28,7 +28,7 @@ fi fi - [ -x /opt/csw/sbin/sshd ] && [ -f /opt/csw/etc/ssh/sshd_config ] && /opt/csw/sbin/sshd & + [ -x /opt/csw/sbin/sshd ] && [ -f /etc/opt/csw/ssh/sshd_config ] && /opt/csw/sbin/sshd & ;; 'stop') # Modified: csw/mgar/pkg/openssh/trunk/files/cswopenssh.xml =================================================================== --- csw/mgar/pkg/openssh/trunk/files/cswopenssh.xml 2010-09-02 14:26:56 UTC (rev 10905) +++ csw/mgar/pkg/openssh/trunk/files/cswopenssh.xml 2010-09-02 14:27:22 UTC (rev 10906) @@ -32,7 +32,7 @@ restart_on='restart' type='path'> + value='file://localhost/etc/opt/csw/ssh/sshd_config' /> + manpath='/opt/csw/share/man'/> Modified: csw/mgar/pkg/openssh/trunk/files/sshd.smf_wrapper =================================================================== --- csw/mgar/pkg/openssh/trunk/files/sshd.smf_wrapper 2010-09-02 14:26:56 UTC (rev 10905) +++ csw/mgar/pkg/openssh/trunk/files/sshd.smf_wrapper 2010-09-02 14:27:22 UTC (rev 10906) @@ -2,7 +2,7 @@ PATH=/usr/bin:/opt/csw/bin:/usr/sbin -KEYDIR=/opt/csw/etc/ssh +KEYDIR=/etc/opt/csw/ssh PIDFILE=/var/run/sshd.pid if [ -x /opt/csw/bin/ssh-keygen ]; then if [ ! -f "$KEYDIR/ssh_host_rsa_key" ]; then This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From chninkel at users.sourceforge.net Thu Sep 2 16:28:35 2010 From: chninkel at users.sourceforge.net (chninkel at users.sourceforge.net) Date: Thu, 02 Sep 2010 14:28:35 +0000 Subject: [csw-devel] SF.net SVN: gar:[10907] csw/mgar/pkg/openssh/trunk/files Message-ID: Revision: 10907 http://gar.svn.sourceforge.net/gar/?rev=10907&view=rev Author: chninkel Date: 2010-09-02 14:28:35 +0000 (Thu, 02 Sep 2010) Log Message: ----------- openssh: removed obsolete preinstall code Modified Paths: -------------- csw/mgar/pkg/openssh/trunk/files/CSWossh.preinstall csw/mgar/pkg/openssh/trunk/files/CSWosshlpk.preinstall Modified: csw/mgar/pkg/openssh/trunk/files/CSWossh.preinstall =================================================================== --- csw/mgar/pkg/openssh/trunk/files/CSWossh.preinstall 2010-09-02 14:27:22 UTC (rev 10906) +++ csw/mgar/pkg/openssh/trunk/files/CSWossh.preinstall 2010-09-02 14:28:35 UTC (rev 10907) @@ -20,25 +20,5 @@ chroot $PKG_ROOT_DIR /usr/sbin/useradd -d /var/run -c 'sshd nonpriv userid' -s /bin/false sshd fi -# Configuration file are now under /opt/csw/etc/ssh -# instead of /opt/csw/etc -MOVE_CONF_FILE=0 -for FILE in ssh_config sshd_config moduli ssh_host_dsa_key ssh_host_dsa_key.pub ssh_host_rsa_key ssh_host_rsa_key.pub; do - if [ -f "$PKG_ROOT_DIR/opt/csw/etc/$FILE" ]; then - if [ "$MOVE_CONF_FILE" -eq 0 ]; then - echo "WARNING: Openssh configuration files location has been changed !" - echo " sshd_config and ssh_config files are now under /opt/csw/etc/ssh." - mkdir -p "$PKG_ROOT_DIR/opt/csw/etc/ssh" - chown root:bin "$PKG_ROOT_DIR/opt/csw/etc/ssh" - MOVE_CONF_FILE=1 - fi - echo "Moving file /opt/csw/etc/$FILE -> /opt/csw/etc/ssh/$FILE ..." - mv "$PKG_ROOT_DIR/opt/csw/etc/$FILE" "$PKG_ROOT_DIR/opt/csw/etc/ssh/$FILE" - fi -done - -# previous openssh package (< 4.6p1) doesn't stop openssh so we do it ourself -pkill -15 -P 1 -f "^/opt/csw/sbin/sshd$" - true Modified: csw/mgar/pkg/openssh/trunk/files/CSWosshlpk.preinstall =================================================================== --- csw/mgar/pkg/openssh/trunk/files/CSWosshlpk.preinstall 2010-09-02 14:27:22 UTC (rev 10906) +++ csw/mgar/pkg/openssh/trunk/files/CSWosshlpk.preinstall 2010-09-02 14:28:35 UTC (rev 10907) @@ -20,25 +20,5 @@ chroot $PKG_ROOT_DIR /usr/sbin/useradd -d /var/run -c 'sshd nonpriv userid' -s /bin/false sshd fi -# Configuration file are now under /opt/csw/etc/ssh -# instead of /opt/csw/etc -MOVE_CONF_FILE=0 -for FILE in ssh_config sshd_config moduli ssh_host_dsa_key ssh_host_dsa_key.pub ssh_host_rsa_key ssh_host_rsa_key.pub; do - if [ -f "$PKG_ROOT_DIR/opt/csw/etc/$FILE" ]; then - if [ "$MOVE_CONF_FILE" -eq 0 ]; then - echo "WARNING: Openssh configuration files location has been changed !" - echo " sshd_config and ssh_config files are now under /opt/csw/etc/ssh." - mkdir -p "$PKG_ROOT_DIR/opt/csw/etc/ssh" - chown root:bin "$PKG_ROOT_DIR/opt/csw/etc/ssh" - MOVE_CONF_FILE=1 - fi - echo "Moving file /opt/csw/etc/$FILE -> /opt/csw/etc/ssh/$FILE ..." - mv "$PKG_ROOT_DIR/opt/csw/etc/$FILE" "$PKG_ROOT_DIR/opt/csw/etc/ssh/$FILE" - fi -done - -# previous openssh package (< 4.6p1) doesn't stop openssh so we do it ourself -pkill -15 -P 1 -f "^/opt/csw/sbin/sshd$" - true This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From dmichelsen at users.sourceforge.net Thu Sep 2 16:57:09 2010 From: dmichelsen at users.sourceforge.net (dmichelsen at users.sourceforge.net) Date: Thu, 02 Sep 2010 14:57:09 +0000 Subject: [csw-devel] SF.net SVN: gar:[10908] csw/mgar/pkg/cpan/YAML/trunk Message-ID: Revision: 10908 http://gar.svn.sourceforge.net/gar/?rev=10908&view=rev Author: dmichelsen Date: 2010-09-02 14:57:08 +0000 (Thu, 02 Sep 2010) Log Message: ----------- cpan/YAML: Update to 0.72 Modified Paths: -------------- csw/mgar/pkg/cpan/YAML/trunk/Makefile csw/mgar/pkg/cpan/YAML/trunk/checksums Modified: csw/mgar/pkg/cpan/YAML/trunk/Makefile =================================================================== --- csw/mgar/pkg/cpan/YAML/trunk/Makefile 2010-09-02 14:28:35 UTC (rev 10907) +++ csw/mgar/pkg/cpan/YAML/trunk/Makefile 2010-09-02 14:57:08 UTC (rev 10908) @@ -1,7 +1,7 @@ GARNAME = YAML -GARVERSION = 0.68 +GARVERSION = 0.72 CATEGORIES = cpan -AUTHOR = INGY +AUTHOR = ADAMK DESCRIPTION = YAML Aint Markup Language define BLURB @@ -14,6 +14,8 @@ PACKAGES = CSWpmyaml CATALOGNAME = pm_yaml +LICENSE = LICENSE + ARCHALL = 1 include gar/category.mk Modified: csw/mgar/pkg/cpan/YAML/trunk/checksums =================================================================== --- csw/mgar/pkg/cpan/YAML/trunk/checksums 2010-09-02 14:28:35 UTC (rev 10907) +++ csw/mgar/pkg/cpan/YAML/trunk/checksums 2010-09-02 14:57:08 UTC (rev 10908) @@ -1 +1 @@ -4b4255360bb885acdba05314daa9129a download/YAML-0.68.tar.gz +35f8107367a5ba8c50965eca0ea7c370 YAML-0.72.tar.gz This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From chninkel at users.sourceforge.net Thu Sep 2 17:09:06 2010 From: chninkel at users.sourceforge.net (chninkel at users.sourceforge.net) Date: Thu, 02 Sep 2010 15:09:06 +0000 Subject: [csw-devel] SF.net SVN: gar:[10909] csw/mgar/pkg/openssh/trunk Message-ID: Revision: 10909 http://gar.svn.sourceforge.net/gar/?rev=10909&view=rev Author: chninkel Date: 2010-09-02 15:09:05 +0000 (Thu, 02 Sep 2010) Log Message: ----------- openssh: switched to cswclassutils for user/group creation (no more preinstall code !) Modified Paths: -------------- csw/mgar/pkg/openssh/trunk/Makefile csw/mgar/pkg/openssh/trunk/files/changelog.CSW Added Paths: ----------- csw/mgar/pkg/openssh/trunk/files/cswusergroup Removed Paths: ------------- csw/mgar/pkg/openssh/trunk/files/CSWossh.preinstall csw/mgar/pkg/openssh/trunk/files/CSWosshlpk.preinstall Modified: csw/mgar/pkg/openssh/trunk/Makefile =================================================================== --- csw/mgar/pkg/openssh/trunk/Makefile 2010-09-02 14:57:08 UTC (rev 10908) +++ csw/mgar/pkg/openssh/trunk/Makefile 2010-09-02 15:09:05 UTC (rev 10909) @@ -36,12 +36,10 @@ CATALOGNAME_CSWossh = openssh SPKG_DESC_CSWossh = OpenSSH Secure Shell server RUNTIME_DEP_PKGS_CSWossh = CSWosslrt CSWtcpwrap CSWzlib CSWkrb5lib CSWosshclient -SPKG_CLASSES_CSWossh = none cswmigrateconf cswpreserveconf cswinitsmf CATALOGNAME_CSWosshclient = openssh_client SPKG_DESC_CSWosshclient = OpenSSH Secure Shell client RUNTIME_DEP_PKGS_CSWosshclient = CSWosslrt CSWzlib CSWkrb5lib -SPKG_CLASSES_CSWosshclient = none cswmigrateconf cswpreserveconf PACKAGING_PLATFORMS = solaris9-sparc solaris9-i386 solaris10-sparc solaris10-i386 @@ -56,6 +54,7 @@ PKGFILES_CSWossh += $(localstatedir)/empty PKGFILES_CSWossh += $(sysconfdir)/init.d/cswopenssh PKGFILES_CSWossh += $(localstatedir)/svc/manifest/network/cswopenssh.xml +PKGFILES_CSWossh += $(prefix)/etc/pkg/CSWossh/cswusergroup PKGFILES_CSWosshclient = $(bindir)/.* PKGFILES_CSWosshclient += $(docdir)/openssh_client/.* @@ -74,6 +73,7 @@ PRESERVECONF += $(sysconfdir)/ssh/ssh_config PRESERVECONF += $(sysconfdir)/ssh/moduli INITSMF = $(sysconfdir)/init.d/cswopenssh +USERGROUP = $(prefix)/etc/pkg/CSWossh/cswusergroup MIGRATE_FILES_CSWossh = moduli sshd_config MIGRATE_FILES_CSWossh += ssh_host_dsa_key ssh_host_dsa_key.pub ssh_host_rsa_key ssh_host_rsa_key.pub ssh_host_key ssh_host_key.pub @@ -96,9 +96,10 @@ UFILES_REGEX = $(GARNAME)-(\d+(?:\.\d+)*p\d+).tar.gz DISTFILES = $(GARNAME)-$(GARVERSION).tar.gz -DISTFILES += CSWossh.preinstall CSWossh.checkinstall -DISTFILES += CSWosshlpk.preinstall CSWosshlpk.checkinstall +DISTFILES += CSWossh.checkinstall +DISTFILES += CSWosshlpk.checkinstall DISTFILES += changelog.CSW +DISTFILES += cswusergroup DISTFILES += cswopenssh sshd.smf_wrapper cswopenssh.xml @@ -157,7 +158,6 @@ CATALOGNAME_CSWosshlpk = openssh_lpk SPKG_DESC_CSWosshlpk = $(SPKG_DESC_CSWossh) with ldap public key support RUNTIME_DEP_PKGS_CSWosshlpk = $(RUNTIME_DEP_PKGS_CSWossh) CSWoldaprt - SPKG_CLASSES_CSWosshlpk = none cswpreserveconf cswinitsmf MASTER_SITES += http://openssh-lpk.googlecode.com/svn/trunk/patch/contrib/ PATCHFILES += contrib-openssh-lpk-5.2p1-0.3.9.patch CONFIGURE_ARGS += --with-ldap @@ -195,7 +195,6 @@ ginstall -D "$(WORKDIR_FIRSTMOD)/cswopenssh.xml" "$(PKGROOT)/var/opt/csw/svc/manifest/network/cswopenssh.xml" ginstall -D "$(WORKDIR_FIRSTMOD)/sshd.smf_wrapper" "$(PKGROOT)/opt/csw/sbin/sshd.smf_wrapper" - merge-doc-files: for DOCDIR in $(foreach _PKG,$(PACKAGES),$(call catalogname,$(_PKG))); do \ ginstall -d $(PKGROOT)/$(docdir)/$$DOCDIR; \ @@ -209,9 +208,10 @@ # we change some default value in the server config file perl -pi -e 's,/etc/ssh/,$(sysconfdir)/ssh/,g; s,/usr/libexec/,/opt/csw/libexec/,g' "$(PKGROOT)/$(sysconfdir)/ssh/sshd_config.CSW" perl -pi -e 's,^ *# *UsePAM *.*,UsePAM yes,g, s,^ *# *PrintMotd *.*,PrintMotd no,g; s,^ *# *X11Forwarding *.*,X11Forwarding yes,g' "$(PKGROOT)/$(sysconfdir)/ssh/sshd_config.CSW" + ginstall -D "$(WORKDIR_FIRSTMOD)/cswusergroup" "$(PKGROOT)$(prefix)/etc/pkg/CSWossh/cswusergroup" ginstall -D "$(WORKDIR_FIRSTMOD)/THIS_LOCATION_IS_DEPRECATED" "$(PKGROOT)/$(prefix)/etc/ssh/THIS_LOCATION_IS_DEPRECATED" @$(MAKECOOKIE) merge-special-directories: ginstall -d $(PKGROOT)$(localstatedir)/empty - ginstall -d $(PKGROOT)$(sysconfdir)/CSWossh + ginstall -d $(PKGROOT)$(sysconfdir)/pkg/CSWossh Deleted: csw/mgar/pkg/openssh/trunk/files/CSWossh.preinstall =================================================================== --- csw/mgar/pkg/openssh/trunk/files/CSWossh.preinstall 2010-09-02 14:57:08 UTC (rev 10908) +++ csw/mgar/pkg/openssh/trunk/files/CSWossh.preinstall 2010-09-02 15:09:05 UTC (rev 10909) @@ -1,24 +0,0 @@ -#!/bin/sh - - -#checks for /dev/random are done in checkinstall - -grep '^sshd:' $PKG_ROOT_DIR/etc/passwd >/dev/null -if [ $? -ne 0 ] ; then - getent passwd sshd >/dev/null - if [ $? -ne 0 ] ; then - NEEDUSER=1 - fi -fi - -if [ "$PKG_ROOT_DIR" = "" ] ; then - PKG_ROOT_DIR=/ -fi - -if [ "$NEEDUSER" = 1 ] ; then - echo Adding required sshd user - chroot $PKG_ROOT_DIR /usr/sbin/useradd -d /var/run -c 'sshd nonpriv userid' -s /bin/false sshd -fi - -true - Deleted: csw/mgar/pkg/openssh/trunk/files/CSWosshlpk.preinstall =================================================================== --- csw/mgar/pkg/openssh/trunk/files/CSWosshlpk.preinstall 2010-09-02 14:57:08 UTC (rev 10908) +++ csw/mgar/pkg/openssh/trunk/files/CSWosshlpk.preinstall 2010-09-02 15:09:05 UTC (rev 10909) @@ -1,24 +0,0 @@ -#!/bin/sh - - -#checks for /dev/random are done in checkinstall - -grep '^sshd:' $PKG_ROOT_DIR/etc/passwd >/dev/null -if [ $? -ne 0 ] ; then - getent passwd sshd >/dev/null - if [ $? -ne 0 ] ; then - NEEDUSER=1 - fi -fi - -if [ "$PKG_ROOT_DIR" = "" ] ; then - PKG_ROOT_DIR=/ -fi - -if [ "$NEEDUSER" = 1 ] ; then - echo Adding required sshd user - chroot $PKG_ROOT_DIR /usr/sbin/useradd -d /var/run -c 'sshd nonpriv userid' -s /bin/false sshd -fi - -true - Modified: csw/mgar/pkg/openssh/trunk/files/changelog.CSW =================================================================== --- csw/mgar/pkg/openssh/trunk/files/changelog.CSW 2010-09-02 14:57:08 UTC (rev 10908) +++ csw/mgar/pkg/openssh/trunk/files/changelog.CSW 2010-09-02 15:09:05 UTC (rev 10909) @@ -1,4 +1,4 @@ -openssh (5.6p1,REV=2010.09.01) unstable +openssh (5.6p1,REV=2010.09.02) unstable * New upstream release. * Removed patch applied upstream (derelativise_path_bugfix.patch @@ -7,8 +7,9 @@ * Moved privilege separation directory from /var/empty to /var/opt/csw/var/empty. * [Build system] Switched to dynamic prototype. + * [Build system] Switched to cswclassutils for user/group creation. - -- Yann Rouillard Wed, 01 Sep 2010 23:25:24 +0200 + -- Yann Rouillard Wed, 02 Sep 2010 23:25:24 +0200 openssh (5.4p1,REV=2010.03.25) unstable Added: csw/mgar/pkg/openssh/trunk/files/cswusergroup =================================================================== --- csw/mgar/pkg/openssh/trunk/files/cswusergroup (rev 0) +++ csw/mgar/pkg/openssh/trunk/files/cswusergroup 2010-09-02 15:09:05 UTC (rev 10909) @@ -0,0 +1 @@ +sshd:nogroup:sshd nonpriv user:/var/run:/bin/false:::NP This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From dmichelsen at users.sourceforge.net Thu Sep 2 17:20:01 2010 From: dmichelsen at users.sourceforge.net (dmichelsen at users.sourceforge.net) Date: Thu, 02 Sep 2010 15:20:01 +0000 Subject: [csw-devel] SF.net SVN: gar:[10910] csw/mgar/pkg/cpan/HTML-Format/trunk/Makefile Message-ID: Revision: 10910 http://gar.svn.sourceforge.net/gar/?rev=10910&view=rev Author: dmichelsen Date: 2010-09-02 15:20:00 +0000 (Thu, 02 Sep 2010) Log Message: ----------- cpan/HTML-Format: Add legacy package Modified Paths: -------------- csw/mgar/pkg/cpan/HTML-Format/trunk/Makefile Modified: csw/mgar/pkg/cpan/HTML-Format/trunk/Makefile =================================================================== --- csw/mgar/pkg/cpan/HTML-Format/trunk/Makefile 2010-09-02 15:09:05 UTC (rev 10909) +++ csw/mgar/pkg/cpan/HTML-Format/trunk/Makefile 2010-09-02 15:20:00 UTC (rev 10910) @@ -13,10 +13,20 @@ DISTFILES = COPYING PACKAGES = CSWpmhtmlformat -CATALOGNAME = pm_htmlformat +CATALOGNAME_CSWpmhtmlformat = pm_htmlformat -DEP_PKGS = CSWpmfontafm CSWpmhtmltree +# Legacy package +PACKAGES += CSWpmhtmlfmt +CATALOGNAME_CSWpmhtmlfmt = pm_htmlfmt +SPKG_DESC_CSWpmhtmlformat = $(DESCRIPTION) +SPKG_DESC_CSWpmhtmlfmt = Deprecated, empty stub to CSWpmhtmlformat + +DEP_PKGS_CSWpmhtmlformat = CSWpmfontafm CSWpmhtmltree +RUNTIME_DEP_PKGS_CSWpmhtmlfmt = CSWpmhtmlformat + ARCHALL = 1 +PKGFILES_CSWpmhtmlfmt = NOFILES + include gar/category.mk This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From chninkel at users.sourceforge.net Thu Sep 2 23:40:39 2010 From: chninkel at users.sourceforge.net (chninkel at users.sourceforge.net) Date: Thu, 02 Sep 2010 21:40:39 +0000 Subject: [csw-devel] SF.net SVN: gar:[10911] csw/mgar/pkg/lftp/trunk Message-ID: Revision: 10911 http://gar.svn.sourceforge.net/gar/?rev=10911&view=rev Author: chninkel Date: 2010-09-02 21:40:39 +0000 (Thu, 02 Sep 2010) Log Message: ----------- lftp: added socks5 support Modified Paths: -------------- csw/mgar/pkg/lftp/trunk/Makefile csw/mgar/pkg/lftp/trunk/files/changelog.CSW Modified: csw/mgar/pkg/lftp/trunk/Makefile =================================================================== --- csw/mgar/pkg/lftp/trunk/Makefile 2010-09-02 15:20:00 UTC (rev 10910) +++ csw/mgar/pkg/lftp/trunk/Makefile 2010-09-02 21:40:39 UTC (rev 10911) @@ -24,7 +24,7 @@ PACKAGES = CSWlftp CATALOGNAME_CSWlftp = lftp -RUNTIME_DEP_PKGS = CSWexpat CSWggettextrt CSWiconv CSWosslrt CSWreadline +RUNTIME_DEP_PKGS = CSWexpat CSWggettextrt CSWiconv CSWosslrt CSWreadline CSWlibsocks ###### Upstream and opencsw files information ####### @@ -60,6 +60,8 @@ # previous maintainer compiled with openssl # instead of gnutls, no need to change that CONFIGURE_ARGS += --without-gnutls --with-openssl=/opt/csw +# Requested see https://www.opencsw.org/mantis/view.php?id=4481 +CONFIGURE_ARGS += --with-socksdante TEST_SCRIPTS = Modified: csw/mgar/pkg/lftp/trunk/files/changelog.CSW =================================================================== --- csw/mgar/pkg/lftp/trunk/files/changelog.CSW 2010-09-02 15:20:00 UTC (rev 10910) +++ csw/mgar/pkg/lftp/trunk/files/changelog.CSW 2010-09-02 21:40:39 UTC (rev 10911) @@ -1,3 +1,9 @@ +lftp (4.0.9,REV=2010.09.02) unstable + + * Added socks5 support (closees: #4481). + + -- Yann Rouillard Thu, 02 Sep 2010 23:35:37 +0200 + lftp (4.0.9,REV=2010.06.25) unstable * New upstream release. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From chninkel at users.sourceforge.net Thu Sep 2 23:46:17 2010 From: chninkel at users.sourceforge.net (chninkel at users.sourceforge.net) Date: Thu, 02 Sep 2010 21:46:17 +0000 Subject: [csw-devel] SF.net SVN: gar:[10912] csw/mgar/pkg/openssl/trunk Message-ID: Revision: 10912 http://gar.svn.sourceforge.net/gar/?rev=10912&view=rev Author: chninkel Date: 2010-09-02 21:46:16 +0000 (Thu, 02 Sep 2010) Log Message: ----------- openssl: fixed checkpkg compliance and switched to sun studio 12 Modified Paths: -------------- csw/mgar/pkg/openssl/trunk/Makefile csw/mgar/pkg/openssl/trunk/files/CSWossl.prototype csw/mgar/pkg/openssl/trunk/files/CSWossldevel.prototype-i386 csw/mgar/pkg/openssl/trunk/files/CSWossldevel.prototype-sparc csw/mgar/pkg/openssl/trunk/files/CSWosslrt.prototype-i386 csw/mgar/pkg/openssl/trunk/files/CSWosslrt.prototype-sparc csw/mgar/pkg/openssl/trunk/files/CSWosslutils.prototype Modified: csw/mgar/pkg/openssl/trunk/Makefile =================================================================== --- csw/mgar/pkg/openssl/trunk/Makefile 2010-09-02 21:40:39 UTC (rev 10911) +++ csw/mgar/pkg/openssl/trunk/Makefile 2010-09-02 21:46:16 UTC (rev 10912) @@ -54,7 +54,7 @@ CHECKPKG_OVERRIDES_CSWosslrt += surplus-dependency|CSWcacertificates # we will not recompile old 0.9.7 version for now -ifeq ($(GARCH),sparc) +ifeq ($(shell /usr/bin/uname -p),sparc) CHECKPKG_OVERRIDES_CSWosslrt += bad-rpath-entry|/opt/csw/lib/sparcv8plus+vis|opt/csw/lib/sparcv8plus+vis/libcrypto.so.0.9.7 CHECKPKG_OVERRIDES_CSWosslrt += bad-rpath-entry|/opt/csw/lib/sparcv8plus+vis|opt/csw/lib/sparcv8plus+vis/libssl.so.0.9.7 else @@ -63,7 +63,7 @@ endif # we do ship .a files in the devel package -ifeq ($(GARCH),sparc) +ifeq ($(shell /usr/bin/uname -p),sparc) CHECKPKG_OVERRIDES_CSWossldevel += discouraged-path-in-pkgmap|/opt/csw/lib/libcrypto.a CHECKPKG_OVERRIDES_CSWossldevel += discouraged-path-in-pkgmap|/opt/csw/lib/libssl.a CHECKPKG_OVERRIDES_CSWossldevel += discouraged-path-in-pkgmap|/opt/csw/lib/sparcv8plus+vis/libcrypto.a @@ -106,9 +106,6 @@ ##### Build and installation information ##### -GARCOMPILER = SOS11 - - # The list of instructions set for which we will # provide optimized libraries and binaries EXTRA_BUILD_ISAS_i386 = pentium_pro amd64 @@ -202,4 +199,4 @@ cd $(PKGROOT) && gunzip -c $(CURDIR)/$(FILEDIR)/oldlibs.$*-$(GARCH).tar.gz | tar xvf - @$(MAKECOOKIE) -post-merge: install-certs install-oldlibs install-changelog install-doc +pre-package: install-certs install-oldlibs install-changelog install-doc Modified: csw/mgar/pkg/openssl/trunk/files/CSWossl.prototype =================================================================== --- csw/mgar/pkg/openssl/trunk/files/CSWossl.prototype 2010-09-02 21:40:39 UTC (rev 10911) +++ csw/mgar/pkg/openssl/trunk/files/CSWossl.prototype 2010-09-02 21:46:16 UTC (rev 10912) @@ -11,3 +11,4 @@ f none /opt/csw/share/doc/openssl/NEWS 644 root bin f none /opt/csw/share/doc/openssl/README.ENGINE 644 root bin f none /opt/csw/share/doc/openssl/README.CSW 644 root bin +i checkpkg_override=checkpkg_override.CSWossl Modified: csw/mgar/pkg/openssl/trunk/files/CSWossldevel.prototype-i386 =================================================================== --- csw/mgar/pkg/openssl/trunk/files/CSWossldevel.prototype-i386 2010-09-02 21:40:39 UTC (rev 10911) +++ csw/mgar/pkg/openssl/trunk/files/CSWossldevel.prototype-i386 2010-09-02 21:46:16 UTC (rev 10912) @@ -1051,3 +1051,4 @@ f none /opt/csw/share/doc/openssl_devel/NEWS 644 root bin f none /opt/csw/share/doc/openssl_devel/README.ENGINE 644 root bin f none /opt/csw/share/doc/openssl_devel/README.CSW 644 root bin +i checkpkg_override=checkpkg_override.CSWossldevel Modified: csw/mgar/pkg/openssl/trunk/files/CSWossldevel.prototype-sparc =================================================================== --- csw/mgar/pkg/openssl/trunk/files/CSWossldevel.prototype-sparc 2010-09-02 21:40:39 UTC (rev 10911) +++ csw/mgar/pkg/openssl/trunk/files/CSWossldevel.prototype-sparc 2010-09-02 21:46:16 UTC (rev 10912) @@ -1050,3 +1050,7 @@ f none /opt/csw/share/doc/openssl_devel/NEWS 644 root bin f none /opt/csw/share/doc/openssl_devel/README.ENGINE 644 root bin f none /opt/csw/share/doc/openssl_devel/README.CSW 644 root bin +i checkpkg_override=checkpkg_override.CSWossldevel +i copyright=CSWossldevel.copyright +i depend=CSWossldevel.depend +i pkginfo=CSWossldevel.pkginfo Modified: csw/mgar/pkg/openssl/trunk/files/CSWosslrt.prototype-i386 =================================================================== --- csw/mgar/pkg/openssl/trunk/files/CSWosslrt.prototype-i386 2010-09-02 21:40:39 UTC (rev 10911) +++ csw/mgar/pkg/openssl/trunk/files/CSWosslrt.prototype-i386 2010-09-02 21:46:16 UTC (rev 10912) @@ -41,3 +41,4 @@ f none /opt/csw/share/doc/openssl_rt/NEWS 644 root bin f none /opt/csw/share/doc/openssl_rt/README.ENGINE 644 root bin f none /opt/csw/share/doc/openssl_rt/README.CSW 644 root bin +i checkpkg_override=checkpkg_override.CSWosslrt Modified: csw/mgar/pkg/openssl/trunk/files/CSWosslrt.prototype-sparc =================================================================== --- csw/mgar/pkg/openssl/trunk/files/CSWosslrt.prototype-sparc 2010-09-02 21:40:39 UTC (rev 10911) +++ csw/mgar/pkg/openssl/trunk/files/CSWosslrt.prototype-sparc 2010-09-02 21:46:16 UTC (rev 10912) @@ -44,3 +44,10 @@ f none /opt/csw/share/doc/openssl_rt/NEWS 644 root bin f none /opt/csw/share/doc/openssl_rt/README.ENGINE 644 root bin f none /opt/csw/share/doc/openssl_rt/README.CSW 644 root bin +i checkpkg_override=checkpkg_override.CSWosslrt +i checkinstall=CSWosslrt.checkinstall +i copyright=CSWosslrt.copyright +i depend=CSWosslrt.depend +i pkginfo=CSWosslrt.pkginfo +i postinstall=CSWosslrt.postinstall +i preinstall=CSWosslrt.preinstall Modified: csw/mgar/pkg/openssl/trunk/files/CSWosslutils.prototype =================================================================== --- csw/mgar/pkg/openssl/trunk/files/CSWosslutils.prototype 2010-09-02 21:40:39 UTC (rev 10911) +++ csw/mgar/pkg/openssl/trunk/files/CSWosslutils.prototype 2010-09-02 21:46:16 UTC (rev 10912) @@ -74,3 +74,4 @@ f none /opt/csw/share/doc/openssl_utils/NEWS 644 root bin f none /opt/csw/share/doc/openssl_utils/README.ENGINE 644 root bin f none /opt/csw/share/doc/openssl_utils/README.CSW 644 root bin +i checkpkg_override=checkpkg_override.CSWosslutils This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From chninkel at users.sourceforge.net Fri Sep 3 00:34:13 2010 From: chninkel at users.sourceforge.net (chninkel at users.sourceforge.net) Date: Thu, 02 Sep 2010 22:34:13 +0000 Subject: [csw-devel] SF.net SVN: gar:[10914] csw/mgar/pkg/openssl/trunk/files Message-ID: Revision: 10914 http://gar.svn.sourceforge.net/gar/?rev=10914&view=rev Author: chninkel Date: 2010-09-02 22:34:12 +0000 (Thu, 02 Sep 2010) Log Message: ----------- openssl: fixed manual prototype Modified Paths: -------------- csw/mgar/pkg/openssl/trunk/files/CSWossldevel.prototype-i386 csw/mgar/pkg/openssl/trunk/files/CSWosslrt.prototype-i386 Modified: csw/mgar/pkg/openssl/trunk/files/CSWossldevel.prototype-i386 =================================================================== --- csw/mgar/pkg/openssl/trunk/files/CSWossldevel.prototype-i386 2010-09-02 22:11:13 UTC (rev 10913) +++ csw/mgar/pkg/openssl/trunk/files/CSWossldevel.prototype-i386 2010-09-02 22:34:12 UTC (rev 10914) @@ -1052,3 +1052,6 @@ f none /opt/csw/share/doc/openssl_devel/README.ENGINE 644 root bin f none /opt/csw/share/doc/openssl_devel/README.CSW 644 root bin i checkpkg_override=checkpkg_override.CSWossldevel +i copyright=CSWossldevel.copyright +i depend=CSWossldevel.depend +i pkginfo=CSWossldevel.pkginfo Modified: csw/mgar/pkg/openssl/trunk/files/CSWosslrt.prototype-i386 =================================================================== --- csw/mgar/pkg/openssl/trunk/files/CSWosslrt.prototype-i386 2010-09-02 22:11:13 UTC (rev 10913) +++ csw/mgar/pkg/openssl/trunk/files/CSWosslrt.prototype-i386 2010-09-02 22:34:12 UTC (rev 10914) @@ -42,3 +42,9 @@ f none /opt/csw/share/doc/openssl_rt/README.ENGINE 644 root bin f none /opt/csw/share/doc/openssl_rt/README.CSW 644 root bin i checkpkg_override=checkpkg_override.CSWosslrt +i checkinstall=CSWosslrt.checkinstall +i copyright=CSWosslrt.copyright +i depend=CSWosslrt.depend +i pkginfo=CSWosslrt.pkginfo +i postinstall=CSWosslrt.postinstall +i preinstall=CSWosslrt.preinstall This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From chninkel at users.sourceforge.net Fri Sep 3 00:52:23 2010 From: chninkel at users.sourceforge.net (chninkel at users.sourceforge.net) Date: Thu, 02 Sep 2010 22:52:23 +0000 Subject: [csw-devel] SF.net SVN: gar:[10915] csw/mgar/pkg/lftp/trunk/Makefile Message-ID: Revision: 10915 http://gar.svn.sourceforge.net/gar/?rev=10915&view=rev Author: chninkel Date: 2010-09-02 22:52:23 +0000 (Thu, 02 Sep 2010) Log Message: ----------- lftp: added missing autoconf call so dont_use_csw_getopt_h.patch patch is taken in account Modified Paths: -------------- csw/mgar/pkg/lftp/trunk/Makefile Modified: csw/mgar/pkg/lftp/trunk/Makefile =================================================================== --- csw/mgar/pkg/lftp/trunk/Makefile 2010-09-02 22:34:12 UTC (rev 10914) +++ csw/mgar/pkg/lftp/trunk/Makefile 2010-09-02 22:52:23 UTC (rev 10915) @@ -67,6 +67,11 @@ include gar/category.mk +# we re-run autoconf because we patched a m4 file +pre-configure: + cd $(WORKSRC) && autoconf + @$(MAKECOOKIE) + post-merge: @ginstall -D $(DOWNLOADDIR)/changelog.CSW $(PKGROOT)/$(docdir)/lftp/changelog.CSW @rm $(PKGROOT)/$(libdir)/charset.alias This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From chninkel at users.sourceforge.net Fri Sep 3 01:15:11 2010 From: chninkel at users.sourceforge.net (chninkel at users.sourceforge.net) Date: Thu, 02 Sep 2010 23:15:11 +0000 Subject: [csw-devel] SF.net SVN: gar:[10916] csw/mgar/pkg/openssl/trunk/Makefile Message-ID: Revision: 10916 http://gar.svn.sourceforge.net/gar/?rev=10916&view=rev Author: chninkel Date: 2010-09-02 23:15:11 +0000 (Thu, 02 Sep 2010) Log Message: ----------- openssl: removed unused checkpkg overrides Modified Paths: -------------- csw/mgar/pkg/openssl/trunk/Makefile Modified: csw/mgar/pkg/openssl/trunk/Makefile =================================================================== --- csw/mgar/pkg/openssl/trunk/Makefile 2010-09-02 22:52:23 UTC (rev 10915) +++ csw/mgar/pkg/openssl/trunk/Makefile 2010-09-02 23:15:11 UTC (rev 10916) @@ -57,9 +57,6 @@ ifeq ($(shell /usr/bin/uname -p),sparc) CHECKPKG_OVERRIDES_CSWosslrt += bad-rpath-entry|/opt/csw/lib/sparcv8plus+vis|opt/csw/lib/sparcv8plus+vis/libcrypto.so.0.9.7 CHECKPKG_OVERRIDES_CSWosslrt += bad-rpath-entry|/opt/csw/lib/sparcv8plus+vis|opt/csw/lib/sparcv8plus+vis/libssl.so.0.9.7 -else -CHECKPKG_OVERRIDES_CSWosslrt += bad-rpath-entry|/opt/csw/lib/sparcv8plus+vis|opt/csw/lib/amd64/libcrypto.so.0.9.7 -CHECKPKG_OVERRIDES_CSWosslrt += bad-rpath-entry|/opt/csw/lib/sparcv8plus+vis|opt/csw/lib/pentium_pro/libssl.so.0.9.7 endif # we do ship .a files in the devel package This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From bdwalton at users.sourceforge.net Fri Sep 3 04:09:17 2010 From: bdwalton at users.sourceforge.net (bdwalton at users.sourceforge.net) Date: Fri, 03 Sep 2010 02:09:17 +0000 Subject: [csw-devel] SF.net SVN: gar:[10917] csw/mgar/pkg/gettext/trunk/Makefile Message-ID: Revision: 10917 http://gar.svn.sourceforge.net/gar/?rev=10917&view=rev Author: bdwalton Date: 2010-09-03 02:09:16 +0000 (Fri, 03 Sep 2010) Log Message: ----------- gettext: one more override for a legacy lib Modified Paths: -------------- csw/mgar/pkg/gettext/trunk/Makefile Modified: csw/mgar/pkg/gettext/trunk/Makefile =================================================================== --- csw/mgar/pkg/gettext/trunk/Makefile 2010-09-02 23:15:11 UTC (rev 10916) +++ csw/mgar/pkg/gettext/trunk/Makefile 2010-09-03 02:09:16 UTC (rev 10917) @@ -78,6 +78,7 @@ # A few more legacy libs that we can't update. CHECKPKG_OVERRIDES_CSWggettextrt += bad-rpath-entry|/opt/csw/lib/|opt/csw/lib/libgettextlib-0.17.so CHECKPKG_OVERRIDES_CSWggettextrt += bad-rpath-entry|/opt/csw/lib/|opt/csw/lib/libgettextsrc-0.17.so +CHECKPKG_OVERRIDES_CSWggettextrt += bad-rpath-entry|/opt/csw/lib/|opt/csw/lib/libgettextpo.so.0.4.0 # just until checkpkg doesn't squawk about this. CHECKPKG_OVERRIDES_CSWggettext += missing-dependency|CSWemacscommon This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From chninkel at users.sourceforge.net Fri Sep 3 11:03:27 2010 From: chninkel at users.sourceforge.net (chninkel at users.sourceforge.net) Date: Fri, 03 Sep 2010 09:03:27 +0000 Subject: [csw-devel] SF.net SVN: gar:[10918] csw/mgar/pkg/openssl/trunk/Makefile Message-ID: Revision: 10918 http://gar.svn.sourceforge.net/gar/?rev=10918&view=rev Author: chninkel Date: 2010-09-03 09:03:27 +0000 (Fri, 03 Sep 2010) Log Message: ----------- openssl: fixed checkpkg overrides Modified Paths: -------------- csw/mgar/pkg/openssl/trunk/Makefile Modified: csw/mgar/pkg/openssl/trunk/Makefile =================================================================== --- csw/mgar/pkg/openssl/trunk/Makefile 2010-09-03 02:09:16 UTC (rev 10917) +++ csw/mgar/pkg/openssl/trunk/Makefile 2010-09-03 09:03:27 UTC (rev 10918) @@ -60,9 +60,9 @@ endif # we do ship .a files in the devel package -ifeq ($(shell /usr/bin/uname -p),sparc) CHECKPKG_OVERRIDES_CSWossldevel += discouraged-path-in-pkgmap|/opt/csw/lib/libcrypto.a CHECKPKG_OVERRIDES_CSWossldevel += discouraged-path-in-pkgmap|/opt/csw/lib/libssl.a +ifeq ($(shell /usr/bin/uname -p),sparc) CHECKPKG_OVERRIDES_CSWossldevel += discouraged-path-in-pkgmap|/opt/csw/lib/sparcv8plus+vis/libcrypto.a CHECKPKG_OVERRIDES_CSWossldevel += discouraged-path-in-pkgmap|/opt/csw/lib/sparcv8plus+vis/libssl.a CHECKPKG_OVERRIDES_CSWossldevel += discouraged-path-in-pkgmap|/opt/csw/lib/sparcv9/libcrypto.a This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From chninkel at users.sourceforge.net Fri Sep 3 13:17:24 2010 From: chninkel at users.sourceforge.net (chninkel at users.sourceforge.net) Date: Fri, 03 Sep 2010 11:17:24 +0000 Subject: [csw-devel] SF.net SVN: gar:[10919] csw/mgar/pkg/lftp/trunk Message-ID: Revision: 10919 http://gar.svn.sourceforge.net/gar/?rev=10919&view=rev Author: chninkel Date: 2010-09-03 11:17:24 +0000 (Fri, 03 Sep 2010) Log Message: ----------- lftp: configuration file migration from /opt/csw/etc/ to /etc/opt/csw Modified Paths: -------------- csw/mgar/pkg/lftp/trunk/Makefile csw/mgar/pkg/lftp/trunk/files/changelog.CSW Modified: csw/mgar/pkg/lftp/trunk/Makefile =================================================================== --- csw/mgar/pkg/lftp/trunk/Makefile 2010-09-03 09:03:27 UTC (rev 10918) +++ csw/mgar/pkg/lftp/trunk/Makefile 2010-09-03 11:17:24 UTC (rev 10919) @@ -51,10 +51,16 @@ PATCHFILES += dont_use_csw_getopt_h.patch -PRESERVECONF = /opt/csw/etc/lftp.conf +PRESERVECONF = $(sysconfdir)/lftp.conf +MIGRATE_FILES_CSWlftp = lftp.conf + ##### Build and installation information ##### +# to support shared /opt/csw setup +# see http://wiki.opencsw.org/shared-opt-csw-setup +localstatedir = /var$(prefix) +sysconfdir = /etc$(prefix) CONFIGURE_ARGS = $(DIRPATHS) # previous maintainer compiled with openssl Modified: csw/mgar/pkg/lftp/trunk/files/changelog.CSW =================================================================== --- csw/mgar/pkg/lftp/trunk/files/changelog.CSW 2010-09-03 09:03:27 UTC (rev 10918) +++ csw/mgar/pkg/lftp/trunk/files/changelog.CSW 2010-09-03 11:17:24 UTC (rev 10919) @@ -1,6 +1,8 @@ -lftp (4.0.10,REV=2010.09.02) unstable +lftp (4.0.10,REV=2010.09.03) unstable + * New upstream release. * Added socks5 support (closees: #4481). + * Configuration file migration from /opt/csw/etc to /etc/opt/csw. -- Yann Rouillard Thu, 02 Sep 2010 23:35:37 +0200 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From bonivart at users.sourceforge.net Fri Sep 3 13:50:47 2010 From: bonivart at users.sourceforge.net (bonivart at users.sourceforge.net) Date: Fri, 03 Sep 2010 11:50:47 +0000 Subject: [csw-devel] SF.net SVN: gar:[10920] csw/mgar/pkg/cpan/SVN-Mirror/trunk Message-ID: Revision: 10920 http://gar.svn.sourceforge.net/gar/?rev=10920&view=rev Author: bonivart Date: 2010-09-03 11:50:47 +0000 (Fri, 03 Sep 2010) Log Message: ----------- svn-mirror: update to 0.75 Modified Paths: -------------- csw/mgar/pkg/cpan/SVN-Mirror/trunk/Makefile csw/mgar/pkg/cpan/SVN-Mirror/trunk/checksums Added Paths: ----------- csw/mgar/pkg/cpan/SVN-Mirror/trunk/files/COPYING Removed Paths: ------------- csw/mgar/pkg/cpan/SVN-Mirror/trunk/files/CSWpmsvnmirror.depend csw/mgar/pkg/cpan/SVN-Mirror/trunk/files/CSWpmsvnmirror.gspec Property Changed: ---------------- csw/mgar/pkg/cpan/SVN-Mirror/trunk/ Property changes on: csw/mgar/pkg/cpan/SVN-Mirror/trunk ___________________________________________________________________ Modified: svn:externals - gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v1 + gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2 Modified: csw/mgar/pkg/cpan/SVN-Mirror/trunk/Makefile =================================================================== --- csw/mgar/pkg/cpan/SVN-Mirror/trunk/Makefile 2010-09-03 11:17:24 UTC (rev 10919) +++ csw/mgar/pkg/cpan/SVN-Mirror/trunk/Makefile 2010-09-03 11:50:47 UTC (rev 10920) @@ -1,26 +1,24 @@ GARNAME = SVN-Mirror -GARVERSION = 0.72 +GARVERSION = 0.75 CATEGORIES = cpan AUTHOR = CLKAO -DESCRIPTION = mirror remote repository to local Subversion repository +DESCRIPTION = Mirror remote repository to local Subversion repository define BLURB SVN::Mirror allows you to mirror remote repository to your local subversion repository. endef -DISTFILES = $(call admfiles,CSWpmsvnmirror,depend) +DISTFILES += COPYING -DEPENDS += utils/subversion -DEPENDS += cpan/TermReadKey -DEPENDS += cpan/SVN-Simple -DEPENDS += cpan/URI -DEPENDS += cpan/Class-Accessor -DEPENDS += cpan/File-chdir +PACKAGES = CSWpmsvnmirror +CATALOGNAME = pm_svnmirror +ARCHALL = 1 +RUNTIME_DEP_PKGS += CSWpmdatauuid CSWpmsvn CSWsvn +RUNTIME_DEP_PKGS += CSWpmsvnsimple CSWpmtermreadkey CSWpmuri + # VCP Support (disabled for now) -#DEPENDS += cpan/VCP -#DEPENDS += cpan/Data-UUID PATCHFILES += novcp.diff # Test suite takes >20m, 0.67/SPARC Modified: csw/mgar/pkg/cpan/SVN-Mirror/trunk/checksums =================================================================== --- csw/mgar/pkg/cpan/SVN-Mirror/trunk/checksums 2010-09-03 11:17:24 UTC (rev 10919) +++ csw/mgar/pkg/cpan/SVN-Mirror/trunk/checksums 2010-09-03 11:50:47 UTC (rev 10920) @@ -1,4 +1 @@ -2d73a57da67f35223f5488e308fecfe3 download/CSWpmsvnmirror.gspec -1e0f099dce15a853fb9feb3d16eb487f download/CSWpmsvnmirror.depend -e5b67a40307b06781b02468de5985261 download/SVN-Mirror-0.72.tar.gz -49082178a81aa4c5e900dd288581c202 download/novcp.diff +15c81a0958ae94e11fcb0dbb62548c98 SVN-Mirror-0.75.tar.gz Added: csw/mgar/pkg/cpan/SVN-Mirror/trunk/files/COPYING =================================================================== --- csw/mgar/pkg/cpan/SVN-Mirror/trunk/files/COPYING (rev 0) +++ csw/mgar/pkg/cpan/SVN-Mirror/trunk/files/COPYING 2010-09-03 11:50:47 UTC (rev 10920) @@ -0,0 +1,6 @@ +Copyright 2003 by Chia-liang Kao clkao at clkao.org. + +This program is free software; you can redistribute it and/or modify it +under the same terms as Perl itself. + +See . Deleted: csw/mgar/pkg/cpan/SVN-Mirror/trunk/files/CSWpmsvnmirror.depend =================================================================== --- csw/mgar/pkg/cpan/SVN-Mirror/trunk/files/CSWpmsvnmirror.depend 2010-09-03 11:17:24 UTC (rev 10919) +++ csw/mgar/pkg/cpan/SVN-Mirror/trunk/files/CSWpmsvnmirror.depend 2010-09-03 11:50:47 UTC (rev 10920) @@ -1,7 +0,0 @@ -P CSWcommon common - common files and dirs for CSW packages -P CSWpmdatauuid pm_datauuid - extension for generating unique identifiers -P CSWpmsvn pm_subversion - subversion perl language binding -P CSWpmsvnsimple pm_svnsimple - a simple interface for driving svn delta editors -P CSWpmtermreadkey pm_termreadkey - module for simple terminal control -P CSWpmuri pm_uri - Uniform Resource Identifiers (absolute and relative) -P CSWsvn subversion - Version control rethought Deleted: csw/mgar/pkg/cpan/SVN-Mirror/trunk/files/CSWpmsvnmirror.gspec =================================================================== --- csw/mgar/pkg/cpan/SVN-Mirror/trunk/files/CSWpmsvnmirror.gspec 2010-09-03 11:17:24 UTC (rev 10919) +++ csw/mgar/pkg/cpan/SVN-Mirror/trunk/files/CSWpmsvnmirror.gspec 2010-09-03 11:50:47 UTC (rev 10920) @@ -1,11 +0,0 @@ -%var bitname pm_svnmirror -%var pkgname CSWpmsvnmirror -%var arch all -%include url file://%{PKGLIB}/csw_cpan.gspec -%copyright -Copyright 2003 by Chia-liang Kao clkao at clkao.org. - -This program is free software; you can redistribute it and/or modify it -under the same terms as Perl itself. - -See . This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From chninkel at users.sourceforge.net Fri Sep 3 14:37:36 2010 From: chninkel at users.sourceforge.net (chninkel at users.sourceforge.net) Date: Fri, 03 Sep 2010 12:37:36 +0000 Subject: [csw-devel] SF.net SVN: gar:[10921] csw/mgar/pkg/vsftpd/trunk Message-ID: Revision: 10921 http://gar.svn.sourceforge.net/gar/?rev=10921&view=rev Author: chninkel Date: 2010-09-03 12:37:36 +0000 (Fri, 03 Sep 2010) Log Message: ----------- vsftpd: configuration directory migration from /opt/csw/etc/vsftpd to /etc/opt/csw/vsftpd Modified Paths: -------------- csw/mgar/pkg/vsftpd/trunk/Makefile csw/mgar/pkg/vsftpd/trunk/checksums csw/mgar/pkg/vsftpd/trunk/files/changelog.CSW Modified: csw/mgar/pkg/vsftpd/trunk/Makefile =================================================================== --- csw/mgar/pkg/vsftpd/trunk/Makefile 2010-09-03 11:50:47 UTC (rev 10920) +++ csw/mgar/pkg/vsftpd/trunk/Makefile 2010-09-03 12:37:36 UTC (rev 10921) @@ -32,11 +32,7 @@ RUNTIME_DEP_PKGS = CSWtcpwrap RUNTIME_DEP_PKGS += CSWosslrt -# adding configuration handling classes -# (init/smf classes are dynamically added in checkinstall) -#SPKG_CLASSES = none cswpreserveconf cswusergroup cswinitsmf - ###### Upstream and opencsw files information ####### # We define upstream file regex so we can be notifed of new upstream software release @@ -49,10 +45,12 @@ DISTFILES += cswvsftpd cswvsftpd.xml vsftpd.smf_wrapper DISTFILES += cswusergroup -PRESERVECONF = /opt/csw/etc/vsftpd/vsftpd.conf /opt/csw/etc/vsftpd/vsftpd.userlist -USERGROUP = /opt/csw/etc/pkg/CSWvsftpd/cswusergroup +PRESERVECONF = $(sysconfdir)/vsftpd/vsftpd.conf $(sysconfdir)/vsftpd/vsftpd.userlist +USERGROUP = /etc/opt/csw/pkg/CSWvsftpd/cswusergroup INITSMF = /etc/opt/csw/init.d/cswvsftpd +MIGRATE_FILES = vsftpd + # The vsftpd user home directory has special rights PROTOTYPE_MODIFIERS = empty PROTOTYPE_FILES_empty = \/opt\/csw\/var\/empty\/vsftpd @@ -103,6 +101,11 @@ include gar/category.mk +# to support shared /opt/csw setup +# see http://wiki.opencsw.org/shared-opt-csw-setup +localstatedir = /var$(prefix) +sysconfdir = /etc$(prefix) + # /opt/csw/include is not take in account # by vsftp build system CFLAGS += -I$(includedir) Modified: csw/mgar/pkg/vsftpd/trunk/checksums =================================================================== --- csw/mgar/pkg/vsftpd/trunk/checksums 2010-09-03 11:50:47 UTC (rev 10920) +++ csw/mgar/pkg/vsftpd/trunk/checksums 2010-09-03 12:37:36 UTC (rev 10921) @@ -1,15 +1 @@ -a2f5b70fe49839b0463c9d90af0f11dd CSWvsftpd.preinstall -eeaf77528b2da0c7730323838f30b7ef README.CSW -281c51282cabd9475cceef363bbc699b build_options.patch -778420c7a9c47afb78eff3957f5d07a5 changelog.CSW -54c1c39c6bfa8747a4457f135fd5bca1 csw_build_system.patch -57d1d89d4f4a2b63b71b80e694f05827 csw_paths.patch -36e99857f4727e99a13721c8f726c856 cswusergroup -796d46089f9e9c25c897a34e0dcfadc8 cswvsftpd -93173edf9931b8eb835c6d0177a7c6bd cswvsftpd.xml -83d13bd15ec4c0de2695640b7407c700 destdir.patch -a9a65f55cbfd01f9d72d1de25e67148d set_priv_sep_user.patch bad7b117d737a738738836041edc00db vsftpd-2.3.2.tar.gz -f6ce22a6959b93e500a4ae800295c2ee vsftpd.conf -0d4a1cf36560892adb9eb9410a01c522 vsftpd.smf_wrapper -60c736802e2ce00c531953b01e4a26f6 vsftpd.userlist Modified: csw/mgar/pkg/vsftpd/trunk/files/changelog.CSW =================================================================== --- csw/mgar/pkg/vsftpd/trunk/files/changelog.CSW 2010-09-03 11:50:47 UTC (rev 10920) +++ csw/mgar/pkg/vsftpd/trunk/files/changelog.CSW 2010-09-03 12:37:36 UTC (rev 10921) @@ -1,3 +1,10 @@ +vsftpd (2.3.2,REV=2010.09.03) UNRELEASED + + * Configuration file migration from /opt/csw/etc/vsftpd to + /etc/opt/csw/vsftpd. + + -- Yann Rouillard Fri, 03 Sep 2010 14:21:04 +0200 + vsftpd (2.3.2,REV=2010.08.31) unstable * New upstream version. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From bonivart at users.sourceforge.net Fri Sep 3 14:40:28 2010 From: bonivart at users.sourceforge.net (bonivart at users.sourceforge.net) Date: Fri, 03 Sep 2010 12:40:28 +0000 Subject: [csw-devel] SF.net SVN: gar:[10922] csw/mgar/pkg/cpan/SVK/trunk Message-ID: Revision: 10922 http://gar.svn.sourceforge.net/gar/?rev=10922&view=rev Author: bonivart Date: 2010-09-03 12:40:27 +0000 (Fri, 03 Sep 2010) Log Message: ----------- pm_svk: update to 2.2.3 Modified Paths: -------------- csw/mgar/pkg/cpan/SVK/trunk/Makefile csw/mgar/pkg/cpan/SVK/trunk/checksums Added Paths: ----------- csw/mgar/pkg/cpan/SVK/trunk/files/COPYING Removed Paths: ------------- csw/mgar/pkg/cpan/SVK/trunk/files/CSWsvk.depend Modified: csw/mgar/pkg/cpan/SVK/trunk/Makefile =================================================================== --- csw/mgar/pkg/cpan/SVK/trunk/Makefile 2010-09-03 12:37:36 UTC (rev 10921) +++ csw/mgar/pkg/cpan/SVK/trunk/Makefile 2010-09-03 12:40:27 UTC (rev 10922) @@ -1,28 +1,30 @@ GARNAME = SVK -GARVERSION = 2.2.1 +GARVERSION = 2.2.3 CATEGORIES = cpan AUTHOR = CLKAO -DESCRIPTION = a distributed version control system +DESCRIPTION = A distributed version control system define BLURB SVK is a decentralized version control system written in Perl. It uses the Subversion filesystem but provides additional features. endef -REQUIRED_PKGS = CSWpmalgannotate CSWpmalgdiff CSWpmappcli CSWpmclone CSWpmclsaccessor CSWpmclsautouse -REQUIRED_PKGS += CSWpmclsdtainherit CSWpmcompresszlib CSWpmdatahier CSWpmfiletype CSWpmfreezethaw CSWpmiodigest -REQUIRED_PKGS += CSWpmiopager CSWpmlclemktxtlex CSWpmlclemktxtsimple CSWpmlistmoreut CSWpmlog4perl -REQUIRED_PKGS += CSWpmpathclass CSWpmperlioeol CSWpmperlioviadyn CSWpmperlioviasym CSWpmpodescapes -REQUIRED_PKGS += CSWpmpodsimple CSWpmregexpshellish CSWpmsvn CSWpmsvnmirror CSWpmsvnsimple CSWpmtermreadkey -REQUIRED_PKGS += CSWpmtimedate CSWpmunivrequire CSWpmuri CSWpmyaml CSWpmyamlsyck +DISTFILES += COPYING +RUNTIME_DEP_PKGS = CSWpmalgannotate CSWpmalgdiff CSWpmappcli CSWpmclone CSWpmclsaccessor CSWpmclsautouse +RUNTIME_DEP_PKGS += CSWpmclsdtainherit CSWpmiocompress CSWpmdatahier CSWpmfiletype CSWpmfreezethaw CSWpmiodigest +RUNTIME_DEP_PKGS += CSWpmiopager CSWpmlclemktxtlex CSWpmlclemktxtsimple CSWpmlistmoreutils CSWpmlog4perl +RUNTIME_DEP_PKGS += CSWpmpathclass CSWpmperlioeol CSWpmperlioviadyn CSWpmperlioviasym +RUNTIME_DEP_PKGS += CSWpmpodsimple CSWpmregexpshellish CSWpmsvn CSWpmsvnmirror CSWpmsvnsimple CSWpmtermreadkey +RUNTIME_DEP_PKGS += CSWpmtimedate CSWpmunivrequire CSWpmuri CSWpmyaml CSWpmyamlsyck + MODDIST = $(GARNAME)-v$(GARVERSION).tar.gz WORKSRC = $(WORKDIR)/$(GARNAME)-v$(GARVERSION) PACKAGES = CSWsvk CATALOGNAME = svk - ARCHALL = 1 +SKIPTEST = 1 + include gar/category.mk - Modified: csw/mgar/pkg/cpan/SVK/trunk/checksums =================================================================== --- csw/mgar/pkg/cpan/SVK/trunk/checksums 2010-09-03 12:37:36 UTC (rev 10921) +++ csw/mgar/pkg/cpan/SVK/trunk/checksums 2010-09-03 12:40:27 UTC (rev 10922) @@ -1 +1 @@ -5778f876a744acebde5c9bff0bb865ce download/SVK-v2.2.1.tar.gz +86ad8796345400b7b0338dab7a4ca977 SVK-v2.2.3.tar.gz Added: csw/mgar/pkg/cpan/SVK/trunk/files/COPYING =================================================================== --- csw/mgar/pkg/cpan/SVK/trunk/files/COPYING (rev 0) +++ csw/mgar/pkg/cpan/SVK/trunk/files/COPYING 2010-09-03 12:40:27 UTC (rev 10922) @@ -0,0 +1,19 @@ +# This program is free software; you can redistribute it and/or +# modify it under the terms of either: +# +# a) Version 2 of the GNU General Public License. You should have +# received a copy of the GNU General Public License along with this +# program. If not, write to the Free Software Foundation, Inc., 51 +# Franklin Street, Fifth Floor, Boston, MA 02110-1301 or visit +# their web page on the internet at +# http://www.gnu.org/copyleft/gpl.html. +# +# b) Version 1 of Perl's "Artistic License". You should have received +# a copy of the Artistic License with this package, in the file +# named "ARTISTIC". The license is also available at +# http://opensource.org/licenses/artistic-license.php. +# +# This work is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. Deleted: csw/mgar/pkg/cpan/SVK/trunk/files/CSWsvk.depend =================================================================== --- csw/mgar/pkg/cpan/SVK/trunk/files/CSWsvk.depend 2010-09-03 12:37:36 UTC (rev 10921) +++ csw/mgar/pkg/cpan/SVK/trunk/files/CSWsvk.depend 2010-09-03 12:40:27 UTC (rev 10922) @@ -1,33 +0,0 @@ -P CSWpmalgannotate pm_algorithmannotate - represent a series of changes in annotate form -P CSWpmalgdiff pm_algorithmdiff - compute intelligent differences between two files/lists -P CSWpmappcli pm_appcli - Dispatcher module for command line interface programs -P CSWpmclone pm_clone - recursively copy Perl datatypes -P CSWpmclsaccessor pm_clsaccessor - Automated accessor generation -P CSWpmclsautouse pm_clsautouse - Run-time class loading on first method call -P CSWpmclsdtainherit pm_clsdtainherit - inheritable, overridable class data -P CSWpmcompresszlib pm_compresszlib - Interface to zlib compression library -P CSWpmdatahier pm_datahier - handle data in a hierarchical structure -P CSWpmfiletype pm_filetype - determine file type using magic -P CSWpmfreezethaw pm_freezethaw - converting Perl structures to strings and back. -P CSWpmiodigest pm_iodigest - calculate digests while reading or writing -P CSWpmiopager pm_iopager - Select a pager, optionally pipe it output if destination is a TTY -P CSWpmlclemktxtlex pm_lclemktxtlex - use other catalog formats in Maketext -P CSWpmlclemktxtsimple pm_lclemktxtsimple - simple interface to Locale::Maketext::Lexicon -P CSWpmlistmoreut pm_listmoreut - Provide the stuff missing in List::Util -P CSWpmlog4perl pm_log4perl - Log4j implementation for Perl -P CSWpmpathclass pm_pathclass - Cross-platform path specification manipulation -P CSWpmperlioeol pm_perlioeol - PerlIO layer for normalizing line endings -P CSWpmperlioviadyn pm_perlioviadyn - dynamic PerlIO layers -P CSWpmperlioviasym pm_perlioviasym - PerlIO layers for creating symlinks -P CSWpmpodescapes pm_podescapes - for resolving Pod E sequences -P CSWpmpodsimple pm_podsimple - framework for parsing Pod -P CSWpmregexpshellish pm_regexpshellish - shell-like regular expressions -P CSWpmsvn pm_subversion - subversion perl language binding -P CSWpmsvnmirror pm_svnmirror - mirror remote repository to local Subversion repository -P CSWpmsvnsimple pm_svnsimple - a simple interface for driving svn delta editors -P CSWpmtermreadkey pm_termreadkey - module for simple terminal control -P CSWpmtimedate pm_timedate - parse date strings into time values -P CSWpmunivrequire pm_univrequire - require modules from a variable -P CSWpmuri pm_uri - Uniform Resource Identifiers (absolute and relative) -P CSWpmyaml pm_yaml - YAML Aint Markup Language -P CSWpmyamlsyck pm_yamlsyck - Fast, lightweight YAML loader and dumper This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From bonivart at users.sourceforge.net Fri Sep 3 15:08:33 2010 From: bonivart at users.sourceforge.net (bonivart at users.sourceforge.net) Date: Fri, 03 Sep 2010 13:08:33 +0000 Subject: [csw-devel] SF.net SVN: gar:[10923] csw/mgar/pkg/cpan/Pod-Simple/trunk Message-ID: Revision: 10923 http://gar.svn.sourceforge.net/gar/?rev=10923&view=rev Author: bonivart Date: 2010-09-03 13:08:32 +0000 (Fri, 03 Sep 2010) Log Message: ----------- pm_podsimple: update to 3.14, remove pm_podescapes as dep Modified Paths: -------------- csw/mgar/pkg/cpan/Pod-Simple/trunk/Makefile csw/mgar/pkg/cpan/Pod-Simple/trunk/checksums Modified: csw/mgar/pkg/cpan/Pod-Simple/trunk/Makefile =================================================================== --- csw/mgar/pkg/cpan/Pod-Simple/trunk/Makefile 2010-09-03 12:40:27 UTC (rev 10922) +++ csw/mgar/pkg/cpan/Pod-Simple/trunk/Makefile 2010-09-03 13:08:32 UTC (rev 10923) @@ -1,7 +1,7 @@ GARNAME = Pod-Simple -GARVERSION = 3.07 +GARVERSION = 3.14 CATEGORIES = cpan -AUTHOR = ARANDAL +AUTHOR = DWHEELER DESCRIPTION = Framework for parsing Pod define BLURB @@ -13,13 +13,8 @@ DISTFILES = COPYING -# We define upstream file regex so we can be notifed of new upstream software release -UFILES_REGEX = $(GARNAME)-(\d+(?:\.\d+)*).tar.gz - PACKAGES = CSWpmpodsimple CATALOGNAME = pm_podsimple ARCHALL = 1 -RUNTIME_DEP_PKGS = CSWpmpodescapes - include gar/category.mk Modified: csw/mgar/pkg/cpan/Pod-Simple/trunk/checksums =================================================================== --- csw/mgar/pkg/cpan/Pod-Simple/trunk/checksums 2010-09-03 12:40:27 UTC (rev 10922) +++ csw/mgar/pkg/cpan/Pod-Simple/trunk/checksums 2010-09-03 13:08:32 UTC (rev 10923) @@ -1,2 +1 @@ -fc18c24e0f87b17e73977c7af25eb59a download/COPYING -8f5174c210b1caf52d2dbbcfe5e92630 download/Pod-Simple-3.07.tar.gz +10b084e7f24c4fd70bbc00e0198a20d6 Pod-Simple-3.14.tar.gz This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From rthurner at users.sourceforge.net Fri Sep 3 19:43:54 2010 From: rthurner at users.sourceforge.net (rthurner at users.sourceforge.net) Date: Fri, 03 Sep 2010 17:43:54 +0000 Subject: [csw-devel] SF.net SVN: gar:[10925] csw/mgar/pkg/apr-util/trunk/Makefile Message-ID: Revision: 10925 http://gar.svn.sourceforge.net/gar/?rev=10925&view=rev Author: rthurner Date: 2010-09-03 17:43:53 +0000 (Fri, 03 Sep 2010) Log Message: ----------- apr-uitl: correct package name Modified Paths: -------------- csw/mgar/pkg/apr-util/trunk/Makefile Modified: csw/mgar/pkg/apr-util/trunk/Makefile =================================================================== --- csw/mgar/pkg/apr-util/trunk/Makefile 2010-09-03 15:05:27 UTC (rev 10924) +++ csw/mgar/pkg/apr-util/trunk/Makefile 2010-09-03 17:43:53 UTC (rev 10925) @@ -14,7 +14,7 @@ PATCHFILES = 0001-Make-sure-to-find-newly-built-libs-earlier.patch -PACKAGES = CSWar-util +PACKAGES = CSWapr-util CATALOGNAME = apr_util LICENSE = LICENSE This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From gadavis at users.sourceforge.net Fri Sep 3 23:21:37 2010 From: gadavis at users.sourceforge.net (gadavis at users.sourceforge.net) Date: Fri, 03 Sep 2010 21:21:37 +0000 Subject: [csw-devel] SF.net SVN: gar:[10926] csw/mgar/pkg Message-ID: Revision: 10926 http://gar.svn.sourceforge.net/gar/?rev=10926&view=rev Author: gadavis Date: 2010-09-03 21:21:37 +0000 (Fri, 03 Sep 2010) Log Message: ----------- Adding new package NetCDF Modified Paths: -------------- csw/mgar/pkg/netcdf/trunk/Makefile csw/mgar/pkg/netcdf/trunk/checksums Added Paths: ----------- csw/mgar/pkg/netcdf/ Modified: csw/mgar/pkg/netcdf/trunk/Makefile =================================================================== --- csw/mgar/pkg/template/trunk/Makefile 2010-09-01 22:45:15 UTC (rev 10888) +++ csw/mgar/pkg/netcdf/trunk/Makefile 2010-09-03 21:21:37 UTC (rev 10926) @@ -11,8 +11,8 @@ ## For more information about GAR variables, please see: ## https://sourceforge.net/apps/trac/gar/wiki/GAR%20Variable%20Reference ## -GARNAME = mypkg -GARVERSION = 1.0 +GARNAME = netcdf +GARVERSION = 4.1.1 ## ## The category that your software fits in. This is not a descriptive field, but ## influences the build process. Depending on the CATEGORIES setting, different @@ -25,21 +25,23 @@ CATEGORIES = lib ## ## A one-line description of the package, which will appear in the pkginfo. -DESCRIPTION = +DESCRIPTION = machine-independent data formats for array-oriented scientific data ## ## A longer description of the package. This is only for descriptive purposes ## inside the Makefile and is not used elsewhere. define BLURB - + NetCDF (network Common Data Form) is a set of software libraries and + machine-independent data formats that support the creation, access, + and sharing of array-oriented scientific data. endef ## ## Upstream URL that should show up in the VENDOR field as well as on ## http://opencsw.org/packages/. -SPKG_SOURCEURL = +SPKG_SOURCEURL = http://www.unidata.ucar.edu/software/netcdf/ ## ## Whitespace-separated list of URLs to download the source package from. ## There are presets: $(SF_MIRRORS), $(GNU_MIRRORS) and $(GOOGLE_MIRROR). -MASTER_SITES = +MASTER_SITES = http://www.unidata.ucar.edu/downloads/netcdf/ftp/ ## ## SF_PROJ is required if you set $(MASTER_SITES) to $(SF_MIRRORS) and the ## Sourceforge project name differs from $(GARNAME). Specifies the Sourceforge @@ -123,10 +125,10 @@ ## ETCSERVICES = ## INETDCONF = ## A list of runtime package dependencies in the form of CSWfoo. -## RUNTIME_DEP_PKGS = +RUNTIME_DEP_PKGS = CSWcurlrt CSWhdf5rt ## ## A list of packages necessary to build this package -## BUILD_DEP_PKGS = $(RUNTIME_DEP_PKGS) +BUILD_DEP_PKGS = $(RUNTIME_DEP_PKGS) CSWautoconf CSWautomake CSWtetex ## ## When using non-empty $(PACKAGES): ## RUNTIME_DEP_PKGS_CSWpkgname = @@ -157,20 +159,40 @@ ## ## BUILD_ARGS is passed as an argument to gmake during the build phase. Use this ## for example, if you need to override Makefile variables. -## BUILD_ARGS = ## +## CFLAGS AND LDFLAGS are necessary due to problems with the fortran bindings when +## building 64-bit +## BUILD_ARGS = CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" +## ## Arguments passed to the ./configure script. -CONFIGURE_ARGS = $(DIRPATHS) +CONFIGURE_ARGS = $(DIRPATHS) \ + --enable-netcdf-4 \ + --enable-dap \ + --enable-ncgen4 \ + --enable-shared \ + --enable-separate-fortran \ + --enable-cxx4 \ + --enable-docs-install \ + --enable-udunits \ + --disable-logging \ + --with-hdf5=/opt/csw \ + --with-zlib=/opt/csw + ## -## BUILD64 = -## CONFIGURE_ENV = -## EXTRA_CFLAGS = +## Disabling 64 bit builds until we can tweak GAR to handle Fortran & ARCH +BUILD64 = 0 +#CONFIGURE_ENV = CC=suncc CXX=sunCC F77=sunf77 FFLAGS="-dalign" FC=sunf95 \ +# FCFLAGS="-dalign" +CONFIGURE_ENV = CC=cc CXX=CC F77=f77 FC=f95 +EXTRA_CFLAGS = -g +EXTRA_CPPFLAGS = -DsunFortran -D__FUNCTION__=__func__ -D_FILE_OFFSET_BITS=64 +EXTRA_CXXFLAGS = -g ## EXTRA_LDFLAGS = ## EXTRA_INC = ## EXTRA_LIB = ## GARFLAVOR = ## INSTALL_ARGS = -## OPT_FLAGS_SOS = -xO3 +OPT_FLAGS_SOS = -fast ## OPT_FLAGS_GCC = -O2 -pipe ## ## The compiler to use. Defaults to SOS11, can be also: SOS12, GCC3, GCC4. @@ -178,8 +200,13 @@ ## # Remove the following rules and uncomment the # include before building. -all: .DEFAULT -.DEFAULT: - @true +#all: .DEFAULT +#.DEFAULT: +# @true -#include gar/category.mk +include gar/category.mk + +pre-configure-modulated: + @(cd $(WORKSRC); autoreconf) + @$(MAKECOOKIE) + Modified: csw/mgar/pkg/netcdf/trunk/checksums =================================================================== --- csw/mgar/pkg/template/trunk/checksums 2010-09-01 22:45:15 UTC (rev 10888) +++ csw/mgar/pkg/netcdf/trunk/checksums 2010-09-03 21:21:37 UTC (rev 10926) @@ -0,0 +1 @@ +79c5ff14c80d5e18dd8f1fceeae1c8e1 netcdf-4.1.1.tar.gz This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From gadavis at users.sourceforge.net Sat Sep 4 01:58:11 2010 From: gadavis at users.sourceforge.net (gadavis at users.sourceforge.net) Date: Fri, 03 Sep 2010 23:58:11 +0000 Subject: [csw-devel] SF.net SVN: gar:[10927] csw/mgar/gar Message-ID: Revision: 10927 http://gar.svn.sourceforge.net/gar/?rev=10927&view=rev Author: gadavis Date: 2010-09-03 23:58:11 +0000 (Fri, 03 Sep 2010) Log Message: ----------- First stab at adding fortran support to GAR Modified Paths: -------------- csw/mgar/gar/v2-fortran/gar.conf.mk Added Paths: ----------- csw/mgar/gar/v2-fortran/ Modified: csw/mgar/gar/v2-fortran/gar.conf.mk =================================================================== --- csw/mgar/gar/v2/gar.conf.mk 2010-09-01 14:23:33 UTC (rev 10882) +++ csw/mgar/gar/v2-fortran/gar.conf.mk 2010-09-03 23:58:11 UTC (rev 10927) @@ -475,6 +475,16 @@ SOS11_CXX ?= $(SOS11_CC_HOME)/bin/CC SOS12_CXX ?= $(SOS12_CC_HOME)/bin/CC SOS12U1_CXX ?= $(SOS12U1_CC_HOME)/bin/CC + GCC3_F77 ?= $(GCC3_CC_HOME)/bin/g77 + GCC4_F77 ?= $(GCC4_CC_HOME)/bin/gfortran + SOS11_F77 ?= $(SOS11_CC_HOME)/bin/f77 + SOS12_F77 ?= $(SOS12_CC_HOME)/bin/f77 + SOS12U1_F77 ?= $(SOS12U1_CC_HOME)/bin/f77 + GCC3_FC ?= $(GCC3_CC_HOME)/bin/f77 + GCC4_FC ?= $(GCC4_CC_HOME)/bin/gfortran + SOS11_FC ?= $(SOS11_CC_HOME)/bin/f95 + SOS12_FC ?= $(SOS12_CC_HOME)/bin/f95 + SOS12U1_FC ?= $(SOS12U1_CC_HOME)/bin/f95 GCC3_CC_FLAGS ?= $(FLAVOR_FLAGS) $(ARCHFLAGS_$(GARCOMPILER)_$(ISA)) $(EXTRA_GCC3_CC_FLAGS) $(EXTRA_GCC_CC_FLAGS) $(EXTRA_CC_FLAGS) GCC4_CC_FLAGS ?= $(FLAVOR_FLAGS) $(ARCHFLAGS_$(GARCOMPILER)_$(ISA)) $(EXTRA_GCC4_CC_FLAGS) $(EXTRA_GCC_CC_FLAGS) $(EXTRA_CC_FLAGS) @@ -496,22 +506,44 @@ SOS11_LD_FLAGS ?= $(ARCHFLAGS_$(GARCOMPILER)_$(ISA)) $(EXTRA_SOS11_LD_FLAGS) $(EXTRA_SOS_LD_FLAGS) $(EXTRA_LD_FLAGS) -norunpath -xnorunpath SOS12_LD_FLAGS ?= $(ARCHFLAGS_$(GARCOMPILER)_$(ISA)) $(EXTRA_SOS12_LD_FLAGS) $(EXTRA_SOS_LD_FLAGS) $(EXTRA_LD_FLAGS) -norunpath SOS12U1_LD_FLAGS ?= $(ARCHFLAGS_$(GARCOMPILER)_$(ISA)) $(EXTRA_SOS12U1_LD_FLAGS) $(EXTRA_SOS_LD_FLAGS) $(EXTRA_LD_FLAGS) -norunpath + GCC3_FFLAGS ?= $(FLAVOR_FLAGS) $(ARCHFLAGS_$(GARCOMPILER)_$(ISA)) $(EXTRA_GCC3_FFLAGS) $(EXTRA_GCC_FFLAGS) $(EXTRA_FFLAGS) + GCC4_FFLAGS ?= $(FLAVOR_FLAGS) $(ARCHFLAGS_$(GARCOMPILER)_$(ISA)) $(EXTRA_GCC4_FFLAGS) $(EXTRA_GCC_FFLAGS) $(EXTRA_FFLAGS) + SOS11_FFLAGS ?= $(FLAVOR_FLAGS) $(ARCHFLAGS_$(GARCOMPILER)_$(ISA)) $(EXTRA_SOS11_FFLAGS) $(EXTRA_SOS_FFLAGS) $(EXTRA_FFLAGS) -xnorunpath + SOS12_FFLAGS ?= $(FLAVOR_FLAGS) $(ARCHFLAGS_$(GARCOMPILER)_$(ISA)) $(EXTRA_SOS12_FFLAGS) $(EXTRA_SOS_FFLAGS) $(EXTRA_FFLAGS) -xnorunpath + SOS12U1_FFLAGS ?= $(FLAVOR_FLAGS) $(ARCHFLAGS_$(GARCOMPILER)_$(ISA)) $(EXTRA_SOS12U1_FFLAGS) $(EXTRA_SOS_FFLAGS) $(EXTRA_FFLAGS) -xnorunpath + GCC3_FCFLAGS ?= $(FLAVOR_FLAGS) $(ARCHFLAGS_$(GARCOMPILER)_$(ISA)) $(EXTRA_GCC3_FCFLAGS) $(EXTRA_GCC_FCFLAGS) $(EXTRA_FCFLAGS) + GCC4_FCFLAGS ?= $(FLAVOR_FLAGS) $(ARCHFLAGS_$(GARCOMPILER)_$(ISA)) $(EXTRA_GCC4_FCFLAGS) $(EXTRA_GCC_FCFLAGS) $(EXTRA_FCFLAGS) + SOS11_FCFLAGS ?= $(FLAVOR_FLAGS) $(ARCHFLAGS_$(GARCOMPILER)_$(ISA)) $(EXTRA_SOS11_FCFLAGS) $(EXTRA_SOS_FCFLAGS) $(EXTRA_FCFLAGS) -xnorunpath + SOS12_FCFLAGS ?= $(FLAVOR_FLAGS) $(ARCHFLAGS_$(GARCOMPILER)_$(ISA)) $(EXTRA_SOS12_FCFLAGS) $(EXTRA_SOS_FCFLAGS) $(EXTRA_FCFLAGS) -xnorunpath + SOS12U1_FCFLAGS ?= $(FLAVOR_FLAGS) $(ARCHFLAGS_$(GARCOMPILER)_$(ISA)) $(EXTRA_SOS12U1_FCFLAGS) $(EXTRA_SOS_FCFLAGS) $(EXTRA_FCFLAGS) -xnorunpath # Compiler version GCC3_CC_VERSION = $(shell $(GCC3_CC) -v 2>&1| ggrep version) GCC3_CXX_VERSION = $(shell $(GCC3_CXX) -v 2>&1| ggrep version) + GCC3_F77_VERSION = $(shell $(GCC3_F77) -v 2>&1| ggrep version) + GCC4_FC_VERSION = $(shell $(GCC4_FC) -v 2>&1| ggrep version) GCC4_CC_VERSION = $(shell $(GCC4_CC) -v 2>&1| ggrep version) GCC4_CXX_VERSION = $(shell $(GCC4_CXX) -v 2>&1| ggrep version) + GCC4_F77_VERSION = $(shell $(GCC4_F77) -v 2>&1| ggrep version) + GCC4_FC_VERSION = $(shell $(GCC4_F77) -v 2>&1| ggrep version) SOS11_CC_VERSION = $(shell $(SOS11_CC) -V 2>&1| ggrep cc: | gsed -e 's/cc: //') SOS11_CXX_VERSION = $(shell $(SOS11_CXX) -V 2>&1| ggrep CC: | gsed -e 's/CC: //') + SOS11_F77_VERSION = $(shell $(SOS11_F77) -V 2>&1| ggrep f90: | gsed -e 's/f90: //') + SOS11_FC_VERSION = $(shell $(SOS11_FC) -V 2>&1| ggrep f90: | gsed -e 's/f90: //') SOS12_CC_VERSION = $(shell $(SOS12_CC) -V 2>&1| ggrep cc: | gsed -e 's/cc: //') + SOS12_F77_VERSION = $(shell $(SOS12_F77) -V 2>&1| ggrep -e 'f9[05]': | gsed -e 's/f9[05]: //') + SOS12_FC_VERSION = $(shell $(SOS12_FC) -V 2>&1| ggrep -e 'f9[05]:' | gsed -e 's/f9[05]: //') SOS12_CXX_VERSION = $(shell $(SOS12_CXX) -V 2>&1| ggrep CC: | gsed -e 's/CC: //') SOS12U1_CC_VERSION = $(shell $(SOS12U1_CC) -V 2>&1| ggrep cc: | gsed -e 's/cc: //') SOS12U1_CXX_VERSION = $(shell $(SOS12U1_CXX) -V 2>&1| ggrep CC: | gsed -e 's/CC: //') +SOS12U1_F77_VERSION = $(shell $(SOS12U1_F77) -V 2>&1| ggrep -e 'f9[05]': | gsed -e 's/f9[05]: //') + SOS12U1_FC_VERSION = $(shell $(SOS12U1_FC) -V 2>&1| ggrep -e 'f9[05]:' | gsed -e 's/f9[05]: //') CC_VERSION = $($(GARCOMPILER)_CC_VERSION) CXX_VERSION = $($(GARCOMPILER)_CXX_VERSION) +F77_VERSION = $($(GARCOMPILER)_F77_VERSION) + FC_VERSION = $($(GARCOMPILER)_FC_VERSION) # # Construct compiler options @@ -558,12 +590,17 @@ CC_HOME = $($(GARCOMPILER)_CC_HOME) CC = $($(GARCOMPILER)_CC) CXX = $($(GARCOMPILER)_CXX) +F77 = $($(GARCOMPILER)_F77) +FC = $($(GARCOMPILER)_FC) + CFLAGS ?= $(strip $($(GARCOMPILER)_CC_FLAGS) $(_CATEGORY_CFLAGS) $(EXTRA_CFLAGS)) CXXFLAGS ?= $(strip $($(GARCOMPILER)_CXX_FLAGS) $(_CATEGORY_CXXFLAGS) $(EXTRA_CXXFLAGS)) CPPFLAGS ?= $(strip $($(GARCOMPILER)_CPP_FLAGS) $(_CATEGORY_CPPFLAGS) $(EXTRA_CPPFLAGS) $(INCLUDE_FLAGS)) LDFLAGS ?= $(strip $($(GARCOMPILER)_LD_FLAGS) $(_CATEGORY_LDFLAGS) $(EXTRA_LDFLAGS) $(LINKER_FLAGS)) ASFLAGS ?= $(strip $($(GARCOMPILER)_AS_FLAGS) $(_CATEGORY_ASFLAGS) $(EXTRA_ASFLAGS)) OPTFLAGS ?= $(strip $($(GARCOMPILER)_CC_FLAGS) $(_CATEGORY_OPTFLAGS) $(EXTRA_OPTFLAGS)) +FFLAGS ?= $(strip $($(GARCOMPILER)_FFLAGS) $(_CATEGORY_FFLAGS) $(EXTRA_FFLAGS)) +FCFLAGS ?= $(strip $($(GARCOMPILER)_FCFLAGS) $(_CATEGORY_FCFLAGS) $(EXTRA_FCFLAGS)) GCC3_LD_OPTIONS = -R$(GCC3_CC_HOME)/lib $(EXTRA_GCC3_LD_OPTIONS) $(EXTRA_GCC_LD_OPTIONS) GCC4_LD_OPTIONS = -R$(abspath $(GCC4_CC_HOME)/lib/$(MM_LIBDIR)) $(EXTRA_GCC4_LD_OPTIONS) $(EXTRA_GCC_LD_OPTIONS) @@ -642,6 +679,7 @@ ifeq ($(origin COMPILER_EXPORTS), undefined) COMPILER_EXPORTS = CPPFLAGS CFLAGS CXXFLAGS LDFLAGS +COMPILER_EXPORTS += FFLAGS FCFLAGS COMPILER_EXPORTS += ASFLAGS OPTFLAGS CC CXX COMPILER_EXPORTS += CC_HOME CC_VERSION CXX_VERSION endif @@ -743,6 +781,8 @@ echo " CFLAGS = $(CFLAGS)"; \ echo " CXXFLAGS = $(CXXFLAGS)"; \ echo " CPPFLAGS = $(CPPFLAGS)"; \ + echo " FFLAGS = $(FFLAGS)"; \ + echo " FCFLAGS = $(FCFLAGS)"; \ echo " LDFLAGS = $(LDFLAGS)"; \ echo " LD_OPTIONS = $(LD_OPTIONS)"; \ echo " ASFLAGS = $(ASFLAGS)"; \ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From gadavis at users.sourceforge.net Sat Sep 4 02:16:21 2010 From: gadavis at users.sourceforge.net (gadavis at users.sourceforge.net) Date: Sat, 04 Sep 2010 00:16:21 +0000 Subject: [csw-devel] SF.net SVN: gar:[10928] csw/mgar/pkg/netcdf/branches Message-ID: Revision: 10928 http://gar.svn.sourceforge.net/gar/?rev=10928&view=rev Author: gadavis Date: 2010-09-04 00:16:21 +0000 (Sat, 04 Sep 2010) Log Message: ----------- try building with new gar v2-fortran Modified Paths: -------------- csw/mgar/pkg/netcdf/branches/gar-fortran/Makefile Added Paths: ----------- csw/mgar/pkg/netcdf/branches/gar-fortran/ Property changes on: csw/mgar/pkg/netcdf/branches/gar-fortran ___________________________________________________________________ Added: svn:ignore + cookies download work Added: svn:externals + gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2-fortran Modified: csw/mgar/pkg/netcdf/branches/gar-fortran/Makefile =================================================================== --- csw/mgar/pkg/netcdf/trunk/Makefile 2010-09-03 21:21:37 UTC (rev 10926) +++ csw/mgar/pkg/netcdf/branches/gar-fortran/Makefile 2010-09-04 00:16:21 UTC (rev 10928) @@ -162,7 +162,7 @@ ## ## CFLAGS AND LDFLAGS are necessary due to problems with the fortran bindings when ## building 64-bit -## BUILD_ARGS = CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" +## BUILD_ARGS = CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" FFLAGS="$(FFLAGS)" FCFLAGS="$(FCFLAGS)" ## ## Arguments passed to the ./configure script. CONFIGURE_ARGS = $(DIRPATHS) \ @@ -179,14 +179,13 @@ --with-zlib=/opt/csw ## -## Disabling 64 bit builds until we can tweak GAR to handle Fortran & ARCH -BUILD64 = 0 +BUILD64 = 1 #CONFIGURE_ENV = CC=suncc CXX=sunCC F77=sunf77 FFLAGS="-dalign" FC=sunf95 \ # FCFLAGS="-dalign" -CONFIGURE_ENV = CC=cc CXX=CC F77=f77 FC=f95 -EXTRA_CFLAGS = -g +#CONFIGURE_ENV = CC=cc CXX=CC F77=f77 FC=f95 +#EXTRA_CFLAGS = -g EXTRA_CPPFLAGS = -DsunFortran -D__FUNCTION__=__func__ -D_FILE_OFFSET_BITS=64 -EXTRA_CXXFLAGS = -g +#EXTRA_CXXFLAGS = -g ## EXTRA_LDFLAGS = ## EXTRA_INC = ## EXTRA_LIB = @@ -206,7 +205,3 @@ include gar/category.mk -pre-configure-modulated: - @(cd $(WORKSRC); autoreconf) - @$(MAKECOOKIE) - This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From gadavis at users.sourceforge.net Sat Sep 4 02:25:10 2010 From: gadavis at users.sourceforge.net (gadavis at users.sourceforge.net) Date: Sat, 04 Sep 2010 00:25:10 +0000 Subject: [csw-devel] SF.net SVN: gar:[10929] csw/mgar/gar/v2-fortran/gar.conf.mk Message-ID: Revision: 10929 http://gar.svn.sourceforge.net/gar/?rev=10929&view=rev Author: gadavis Date: 2010-09-04 00:25:09 +0000 (Sat, 04 Sep 2010) Log Message: ----------- Fix norunpath argument to fortran executables Modified Paths: -------------- csw/mgar/gar/v2-fortran/gar.conf.mk Modified: csw/mgar/gar/v2-fortran/gar.conf.mk =================================================================== --- csw/mgar/gar/v2-fortran/gar.conf.mk 2010-09-04 00:16:21 UTC (rev 10928) +++ csw/mgar/gar/v2-fortran/gar.conf.mk 2010-09-04 00:25:09 UTC (rev 10929) @@ -508,14 +508,14 @@ SOS12U1_LD_FLAGS ?= $(ARCHFLAGS_$(GARCOMPILER)_$(ISA)) $(EXTRA_SOS12U1_LD_FLAGS) $(EXTRA_SOS_LD_FLAGS) $(EXTRA_LD_FLAGS) -norunpath GCC3_FFLAGS ?= $(FLAVOR_FLAGS) $(ARCHFLAGS_$(GARCOMPILER)_$(ISA)) $(EXTRA_GCC3_FFLAGS) $(EXTRA_GCC_FFLAGS) $(EXTRA_FFLAGS) GCC4_FFLAGS ?= $(FLAVOR_FLAGS) $(ARCHFLAGS_$(GARCOMPILER)_$(ISA)) $(EXTRA_GCC4_FFLAGS) $(EXTRA_GCC_FFLAGS) $(EXTRA_FFLAGS) - SOS11_FFLAGS ?= $(FLAVOR_FLAGS) $(ARCHFLAGS_$(GARCOMPILER)_$(ISA)) $(EXTRA_SOS11_FFLAGS) $(EXTRA_SOS_FFLAGS) $(EXTRA_FFLAGS) -xnorunpath - SOS12_FFLAGS ?= $(FLAVOR_FLAGS) $(ARCHFLAGS_$(GARCOMPILER)_$(ISA)) $(EXTRA_SOS12_FFLAGS) $(EXTRA_SOS_FFLAGS) $(EXTRA_FFLAGS) -xnorunpath - SOS12U1_FFLAGS ?= $(FLAVOR_FLAGS) $(ARCHFLAGS_$(GARCOMPILER)_$(ISA)) $(EXTRA_SOS12U1_FFLAGS) $(EXTRA_SOS_FFLAGS) $(EXTRA_FFLAGS) -xnorunpath + SOS11_FFLAGS ?= $(FLAVOR_FLAGS) $(ARCHFLAGS_$(GARCOMPILER)_$(ISA)) $(EXTRA_SOS11_FFLAGS) $(EXTRA_SOS_FFLAGS) $(EXTRA_FFLAGS) -norunpath + SOS12_FFLAGS ?= $(FLAVOR_FLAGS) $(ARCHFLAGS_$(GARCOMPILER)_$(ISA)) $(EXTRA_SOS12_FFLAGS) $(EXTRA_SOS_FFLAGS) $(EXTRA_FFLAGS) -norunpath + SOS12U1_FFLAGS ?= $(FLAVOR_FLAGS) $(ARCHFLAGS_$(GARCOMPILER)_$(ISA)) $(EXTRA_SOS12U1_FFLAGS) $(EXTRA_SOS_FFLAGS) $(EXTRA_FFLAGS) -norunpath GCC3_FCFLAGS ?= $(FLAVOR_FLAGS) $(ARCHFLAGS_$(GARCOMPILER)_$(ISA)) $(EXTRA_GCC3_FCFLAGS) $(EXTRA_GCC_FCFLAGS) $(EXTRA_FCFLAGS) GCC4_FCFLAGS ?= $(FLAVOR_FLAGS) $(ARCHFLAGS_$(GARCOMPILER)_$(ISA)) $(EXTRA_GCC4_FCFLAGS) $(EXTRA_GCC_FCFLAGS) $(EXTRA_FCFLAGS) - SOS11_FCFLAGS ?= $(FLAVOR_FLAGS) $(ARCHFLAGS_$(GARCOMPILER)_$(ISA)) $(EXTRA_SOS11_FCFLAGS) $(EXTRA_SOS_FCFLAGS) $(EXTRA_FCFLAGS) -xnorunpath - SOS12_FCFLAGS ?= $(FLAVOR_FLAGS) $(ARCHFLAGS_$(GARCOMPILER)_$(ISA)) $(EXTRA_SOS12_FCFLAGS) $(EXTRA_SOS_FCFLAGS) $(EXTRA_FCFLAGS) -xnorunpath - SOS12U1_FCFLAGS ?= $(FLAVOR_FLAGS) $(ARCHFLAGS_$(GARCOMPILER)_$(ISA)) $(EXTRA_SOS12U1_FCFLAGS) $(EXTRA_SOS_FCFLAGS) $(EXTRA_FCFLAGS) -xnorunpath + SOS11_FCFLAGS ?= $(FLAVOR_FLAGS) $(ARCHFLAGS_$(GARCOMPILER)_$(ISA)) $(EXTRA_SOS11_FCFLAGS) $(EXTRA_SOS_FCFLAGS) $(EXTRA_FCFLAGS) -norunpath + SOS12_FCFLAGS ?= $(FLAVOR_FLAGS) $(ARCHFLAGS_$(GARCOMPILER)_$(ISA)) $(EXTRA_SOS12_FCFLAGS) $(EXTRA_SOS_FCFLAGS) $(EXTRA_FCFLAGS) -norunpath + SOS12U1_FCFLAGS ?= $(FLAVOR_FLAGS) $(ARCHFLAGS_$(GARCOMPILER)_$(ISA)) $(EXTRA_SOS12U1_FCFLAGS) $(EXTRA_SOS_FCFLAGS) $(EXTRA_FCFLAGS) -norunpath # Compiler version GCC3_CC_VERSION = $(shell $(GCC3_CC) -v 2>&1| ggrep version) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From bdwalton at users.sourceforge.net Thu Sep 2 03:55:23 2010 From: bdwalton at users.sourceforge.net (bdwalton at users.sourceforge.net) Date: Thu, 02 Sep 2010 01:55:23 +0000 Subject: [csw-devel] SF.net SVN: gar:[10894] csw/mgar/pkg/gettext/trunk/Makefile Message-ID: Revision: 10894 http://gar.svn.sourceforge.net/gar/?rev=10894&view=rev Author: bdwalton Date: 2010-09-02 01:55:23 +0000 (Thu, 02 Sep 2010) Log Message: ----------- gettext: += on the additional libs package splitting Modified Paths: -------------- csw/mgar/pkg/gettext/trunk/Makefile Modified: csw/mgar/pkg/gettext/trunk/Makefile =================================================================== --- csw/mgar/pkg/gettext/trunk/Makefile 2010-09-02 01:45:38 UTC (rev 10893) +++ csw/mgar/pkg/gettext/trunk/Makefile 2010-09-02 01:55:23 UTC (rev 10894) @@ -64,7 +64,7 @@ #PKGFILES_CSWggettextrt += $(call baseisadirs,$(libdir),libgettextpo\..*) #so use this for now PKGFILES_CSWggettextrt = .*/libintl\.so.* .*/libasprintf\.so.* .*/libgettextpo\.so.* -PKGFILES_CSWggettextrt = .*/libgettext.*\.so.* +PKGFILES_CSWggettextrt += .*/libgettext.*\.so.* PKGFILES_CSWggettextrt += /opt/csw/bin/ggettext /opt/csw/bin/gngettext /opt/csw/bin/genvsubst PKGFILES_CSWggettextrt += /opt/csw/bin/ggettext.sh /opt/csw/share/java/libintl.jar PKGFILES_CSWggettextrt += /opt/csw/share/locale/.* This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From bonivart at users.sourceforge.net Fri Sep 3 17:05:27 2010 From: bonivart at users.sourceforge.net (bonivart at users.sourceforge.net) Date: Fri, 03 Sep 2010 15:05:27 +0000 Subject: [csw-devel] SF.net SVN: gar:[10924] csw/mgar/pkg/dcc/trunk/Makefile Message-ID: Revision: 10924 http://gar.svn.sourceforge.net/gar/?rev=10924&view=rev Author: bonivart Date: 2010-09-03 15:05:27 +0000 (Fri, 03 Sep 2010) Log Message: ----------- dcc: fix ownership of map file Modified Paths: -------------- csw/mgar/pkg/dcc/trunk/Makefile Modified: csw/mgar/pkg/dcc/trunk/Makefile =================================================================== --- csw/mgar/pkg/dcc/trunk/Makefile 2010-09-03 13:08:32 UTC (rev 10923) +++ csw/mgar/pkg/dcc/trunk/Makefile 2010-09-03 15:05:27 UTC (rev 10924) @@ -46,6 +46,11 @@ SAMPLECONF += /var/opt/csw/dcc/whitecommon SAMPLECONF += /var/opt/csw/dcc/whitelist +# Fix ownership of map file +PROTOTYPE_MODIFIERS = 1 +PROTOTYPE_FILES_1 = /var/opt/csw/dcc/map +PROTOTYPE_USER_1 = dcc + SPKG_SOURCEURL = http://www.rhyolite.com/dcc/ CONFFILES = dcc_conf flod grey_flod grey_whitelist ids map.txt whiteclnt whitecommon whitelist DOCFILES = CHANGES FAQ.txt INSTALL.txt RESTRICTIONS misc/README misc/dcc.m4 misc/dccdnsbl.m4 misc/site.config.m4 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From chninkel at users.sourceforge.net Fri Sep 3 00:11:14 2010 From: chninkel at users.sourceforge.net (chninkel at users.sourceforge.net) Date: Thu, 02 Sep 2010 22:11:14 +0000 Subject: [csw-devel] SF.net SVN: gar:[10913] csw/mgar/pkg/lftp/trunk Message-ID: Revision: 10913 http://gar.svn.sourceforge.net/gar/?rev=10913&view=rev Author: chninkel Date: 2010-09-02 22:11:13 +0000 (Thu, 02 Sep 2010) Log Message: ----------- lftp: updated to 4.0.10 Modified Paths: -------------- csw/mgar/pkg/lftp/trunk/Makefile csw/mgar/pkg/lftp/trunk/checksums csw/mgar/pkg/lftp/trunk/files/changelog.CSW Modified: csw/mgar/pkg/lftp/trunk/Makefile =================================================================== --- csw/mgar/pkg/lftp/trunk/Makefile 2010-09-02 21:46:16 UTC (rev 10912) +++ csw/mgar/pkg/lftp/trunk/Makefile 2010-09-02 22:11:13 UTC (rev 10913) @@ -13,7 +13,7 @@ ###### Package information ####### GARNAME = lftp -GARVERSION = 4.0.9 +GARVERSION = 4.0.10 CATEGORIES = net DESCRIPTION = A sophisticated command-line ftp/http client Modified: csw/mgar/pkg/lftp/trunk/checksums =================================================================== --- csw/mgar/pkg/lftp/trunk/checksums 2010-09-02 21:46:16 UTC (rev 10912) +++ csw/mgar/pkg/lftp/trunk/checksums 2010-09-02 22:11:13 UTC (rev 10913) @@ -1,4 +1 @@ -75861629a62ad12236b82baa00b9126a changelog.CSW -a8baca88197dfe533c639c1fe866fa5c dont_use_csw_getopt_h.patch -0cd4072676264c6ed6f0b9b43dc89968 lftp-4.0.9.tar.gz -1a9dd9857cef5453fc14102dbc2e7713 sun_cc_no_restrict.patch +2729f41bc21130f96190d41d34bb8809 lftp-4.0.10.tar.gz Modified: csw/mgar/pkg/lftp/trunk/files/changelog.CSW =================================================================== --- csw/mgar/pkg/lftp/trunk/files/changelog.CSW 2010-09-02 21:46:16 UTC (rev 10912) +++ csw/mgar/pkg/lftp/trunk/files/changelog.CSW 2010-09-02 22:11:13 UTC (rev 10913) @@ -1,4 +1,4 @@ -lftp (4.0.9,REV=2010.09.02) unstable +lftp (4.0.10,REV=2010.09.02) unstable * Added socks5 support (closees: #4481). This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From bdwalton at users.sourceforge.net Thu Sep 2 03:44:17 2010 From: bdwalton at users.sourceforge.net (bdwalton at users.sourceforge.net) Date: Thu, 02 Sep 2010 01:44:17 +0000 Subject: [csw-devel] SF.net SVN: gar:[10892] csw/mgar/pkg/gettext/trunk Message-ID: Revision: 10892 http://gar.svn.sourceforge.net/gar/?rev=10892&view=rev Author: bdwalton Date: 2010-09-02 01:44:17 +0000 (Thu, 02 Sep 2010) Log Message: ----------- drop the legacy libs from distfiles; update makesums Modified Paths: -------------- csw/mgar/pkg/gettext/trunk/Makefile csw/mgar/pkg/gettext/trunk/checksums Modified: csw/mgar/pkg/gettext/trunk/Makefile =================================================================== --- csw/mgar/pkg/gettext/trunk/Makefile 2010-09-02 01:31:49 UTC (rev 10891) +++ csw/mgar/pkg/gettext/trunk/Makefile 2010-09-02 01:44:17 UTC (rev 10892) @@ -24,13 +24,6 @@ MASTER_SITES = $(GNU_MIRROR) DISTFILES = $(GARNAME)-$(GARVERSION).tar.gz -#Include earlier library revisions for compatibility with existing packages -DISTFILES += libgettextlib-0.14.1.so.i -DISTFILES += libgettextlib-0.14.1.so.s -DISTFILES += libintl.so.2.i -DISTFILES += libintl.so.2.s -DISTFILES += libintl.so.3.i -DISTFILES += libintl.so.3.s PATCHFILES += 0001-Use-the-auto-detected-SHELL-to-run-convert-archive.patch PATCHFILES += 0002-Update-ltmain.sh-to-prevent-libtool-stripping-runpat.patch Modified: csw/mgar/pkg/gettext/trunk/checksums =================================================================== --- csw/mgar/pkg/gettext/trunk/checksums 2010-09-02 01:31:49 UTC (rev 10891) +++ csw/mgar/pkg/gettext/trunk/checksums 2010-09-02 01:44:17 UTC (rev 10892) @@ -1,9 +1,3 @@ a772021542b5c511ea9542a06996ed64 0001-Use-the-auto-detected-SHELL-to-run-convert-archive.patch 56f02edaf64175e69988f78bb53c8753 0002-Update-ltmain.sh-to-prevent-libtool-stripping-runpat.patch 3dd55b952826d2b32f51308f2f91aa89 gettext-0.18.1.1.tar.gz -d44a9a6ec0952bad7ad07026ccb42a10 libgettextlib-0.14.1.so.i -ff0219d47dbc11034b55872172488e01 libgettextlib-0.14.1.so.s -80123ce62a2ef58afb3f6f07a12bd1c1 libintl.so.2.i -3ab768083f6ecc5cada151e49be21aa0 libintl.so.2.s -ceb5de2326a4726d3710fe1512b84592 libintl.so.3.i -88db7322e263a00f24269a7f364fdc2d libintl.so.3.s This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From jake_goerzen at users.sourceforge.net Mon Sep 6 18:57:46 2010 From: jake_goerzen at users.sourceforge.net (jake_goerzen at users.sourceforge.net) Date: Mon, 06 Sep 2010 16:57:46 +0000 Subject: [csw-devel] SF.net SVN: gar:[10930] csw/mgar/pkg/sdlmixer/trunk/Makefile Message-ID: Revision: 10930 http://gar.svn.sourceforge.net/gar/?rev=10930&view=rev Author: jake_goerzen Date: 2010-09-06 16:57:46 +0000 (Mon, 06 Sep 2010) Log Message: ----------- sdlmixer: respin package to bind with newer libmikmod Modified Paths: -------------- csw/mgar/pkg/sdlmixer/trunk/Makefile Modified: csw/mgar/pkg/sdlmixer/trunk/Makefile =================================================================== --- csw/mgar/pkg/sdlmixer/trunk/Makefile 2010-09-04 00:25:09 UTC (rev 10929) +++ csw/mgar/pkg/sdlmixer/trunk/Makefile 2010-09-06 16:57:46 UTC (rev 10930) @@ -2,7 +2,7 @@ GARVERSION = 1.2.11 CATEGORIES = lib -DESCRIPTION = multi-channel audio mixer library +DESCRIPTION = Multi-channel audio mixer library define BLURB SDL mixer supports any number of simultaneously playing channels of 16 bit stereo audio, plus a single channel of music, mixed by the popular MikMod MOD, Timidity MIDI, Ogg Vorbis, and SMPEG MP3 libraries. endef This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From bonivart at users.sourceforge.net Wed Sep 8 17:55:55 2010 From: bonivart at users.sourceforge.net (bonivart at users.sourceforge.net) Date: Wed, 08 Sep 2010 15:55:55 +0000 Subject: [csw-devel] SF.net SVN: gar:[10931] csw/mgar/pkg/cpan/Pod-Simple/trunk/Makefile Message-ID: Revision: 10931 http://gar.svn.sourceforge.net/gar/?rev=10931&view=rev Author: bonivart Date: 2010-09-08 15:55:55 +0000 (Wed, 08 Sep 2010) Log Message: ----------- pm_podsimple: remove man pages Modified Paths: -------------- csw/mgar/pkg/cpan/Pod-Simple/trunk/Makefile Modified: csw/mgar/pkg/cpan/Pod-Simple/trunk/Makefile =================================================================== --- csw/mgar/pkg/cpan/Pod-Simple/trunk/Makefile 2010-09-06 16:57:46 UTC (rev 10930) +++ csw/mgar/pkg/cpan/Pod-Simple/trunk/Makefile 2010-09-08 15:55:55 UTC (rev 10931) @@ -17,4 +17,6 @@ CATALOGNAME = pm_podsimple ARCHALL = 1 +EXTRA_MERGE_EXCLUDE_FILES = .*\/man\/man3\/.* + include gar/category.mk This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From gadavis at users.sourceforge.net Wed Sep 8 19:35:15 2010 From: gadavis at users.sourceforge.net (gadavis at users.sourceforge.net) Date: Wed, 08 Sep 2010 17:35:15 +0000 Subject: [csw-devel] SF.net SVN: gar:[10932] csw/mgar/gar/v2-fortran/gar.conf.mk Message-ID: Revision: 10932 http://gar.svn.sourceforge.net/gar/?rev=10932&view=rev Author: gadavis Date: 2010-09-08 17:35:14 +0000 (Wed, 08 Sep 2010) Log Message: ----------- Add Fortran compilers to ccenv target Modified Paths: -------------- csw/mgar/gar/v2-fortran/gar.conf.mk Modified: csw/mgar/gar/v2-fortran/gar.conf.mk =================================================================== --- csw/mgar/gar/v2-fortran/gar.conf.mk 2010-09-08 15:55:55 UTC (rev 10931) +++ csw/mgar/gar/v2-fortran/gar.conf.mk 2010-09-08 17:35:14 UTC (rev 10932) @@ -733,6 +733,8 @@ @echo @echo " C Compiler: $(CC)" @echo " C++ Compiler: $(CXX)" + @echo " F77 Compiler: $(F77)" + @echo " FC Compiler: $(FC)" @echo @echo "Compiler ISA generation matrix:" @echo This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From rthurner at users.sourceforge.net Wed Sep 8 21:57:34 2010 From: rthurner at users.sourceforge.net (rthurner at users.sourceforge.net) Date: Wed, 08 Sep 2010 19:57:34 +0000 Subject: [csw-devel] SF.net SVN: gar:[10933] csw/mgar/pkg/apache2/trunk/Makefile Message-ID: Revision: 10933 http://gar.svn.sourceforge.net/gar/?rev=10933&view=rev Author: rthurner Date: 2010-09-08 19:57:34 +0000 (Wed, 08 Sep 2010) Log Message: ----------- apache2: update dependencies Modified Paths: -------------- csw/mgar/pkg/apache2/trunk/Makefile Modified: csw/mgar/pkg/apache2/trunk/Makefile =================================================================== --- csw/mgar/pkg/apache2/trunk/Makefile 2010-09-08 17:35:14 UTC (rev 10932) +++ csw/mgar/pkg/apache2/trunk/Makefile 2010-09-08 19:57:34 UTC (rev 10933) @@ -30,8 +30,8 @@ DISTFILES += update20to22 RUNTIME_DEP_PKGS_CSWapache2 = CSWexpat CSWiconv -RUNTIME_DEP_PKGS_CSWapache2 += CSWlibnet CSWoldaprt CSWosslrt CSWsasl CSWzlib -RUNTIME_DEP_PKGS_CSWapache2 += CSWsqlite3rt +RUNTIME_DEP_PKGS_CSWapache2 += CSWoldaprt CSWosslrt CSWzlib +RUNTIME_DEP_PKGS_CSWapache2 += CSWapr CSWapr-utiSWapr-util # The SMF support: you don't need to specify cswinitsmf any more. You need to # make sure the the /etc/opt/csw/init.d/cswapache file gets installed during This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From rthurner at users.sourceforge.net Wed Sep 8 21:59:47 2010 From: rthurner at users.sourceforge.net (rthurner at users.sourceforge.net) Date: Wed, 08 Sep 2010 19:59:47 +0000 Subject: [csw-devel] SF.net SVN: gar:[10934] csw/mgar/pkg/apache2/trunk/Makefile Message-ID: Revision: 10934 http://gar.svn.sourceforge.net/gar/?rev=10934&view=rev Author: rthurner Date: 2010-09-08 19:59:47 +0000 (Wed, 08 Sep 2010) Log Message: ----------- apache2: update initsmf Modified Paths: -------------- csw/mgar/pkg/apache2/trunk/Makefile Modified: csw/mgar/pkg/apache2/trunk/Makefile =================================================================== --- csw/mgar/pkg/apache2/trunk/Makefile 2010-09-08 19:57:34 UTC (rev 10933) +++ csw/mgar/pkg/apache2/trunk/Makefile 2010-09-08 19:59:47 UTC (rev 10934) @@ -37,7 +37,7 @@ # make sure the the /etc/opt/csw/init.d/cswapache file gets installed during # the post-install stage, and add "INITSMF = /etc/opt/csw/init.d/cswapache" to # the Makefile. -INITSMF = /opt/csw/etc/init.d/cswapache2 +INITSMF = /etc/opt/csw/init.d/cswapache2 pre-configure-modulated: (cd $(WORKDIR)/$(GARNAME)-$(GARVERSION); ./buildconf) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From rthurner at users.sourceforge.net Wed Sep 8 22:24:59 2010 From: rthurner at users.sourceforge.net (rthurner at users.sourceforge.net) Date: Wed, 08 Sep 2010 20:24:59 +0000 Subject: [csw-devel] SF.net SVN: gar:[10935] csw/mgar/pkg/apache2/trunk/Makefile Message-ID: Revision: 10935 http://gar.svn.sourceforge.net/gar/?rev=10935&view=rev Author: rthurner Date: 2010-09-08 20:24:59 +0000 (Wed, 08 Sep 2010) Log Message: ----------- apache2: typo in dependencies Modified Paths: -------------- csw/mgar/pkg/apache2/trunk/Makefile Modified: csw/mgar/pkg/apache2/trunk/Makefile =================================================================== --- csw/mgar/pkg/apache2/trunk/Makefile 2010-09-08 19:59:47 UTC (rev 10934) +++ csw/mgar/pkg/apache2/trunk/Makefile 2010-09-08 20:24:59 UTC (rev 10935) @@ -31,7 +31,7 @@ RUNTIME_DEP_PKGS_CSWapache2 = CSWexpat CSWiconv RUNTIME_DEP_PKGS_CSWapache2 += CSWoldaprt CSWosslrt CSWzlib -RUNTIME_DEP_PKGS_CSWapache2 += CSWapr CSWapr-utiSWapr-util +RUNTIME_DEP_PKGS_CSWapache2 += CSWapr CSWapr-util # The SMF support: you don't need to specify cswinitsmf any more. You need to # make sure the the /etc/opt/csw/init.d/cswapache file gets installed during This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From rthurner at users.sourceforge.net Wed Sep 8 22:30:55 2010 From: rthurner at users.sourceforge.net (rthurner at users.sourceforge.net) Date: Wed, 08 Sep 2010 20:30:55 +0000 Subject: [csw-devel] SF.net SVN: gar:[10936] csw/mgar/pkg/apache2/trunk/Makefile Message-ID: Revision: 10936 http://gar.svn.sourceforge.net/gar/?rev=10936&view=rev Author: rthurner Date: 2010-09-08 20:30:55 +0000 (Wed, 08 Sep 2010) Log Message: ----------- apache2: change from /opt/csw to /etc/opt/csw Modified Paths: -------------- csw/mgar/pkg/apache2/trunk/Makefile Modified: csw/mgar/pkg/apache2/trunk/Makefile =================================================================== --- csw/mgar/pkg/apache2/trunk/Makefile 2010-09-08 20:24:59 UTC (rev 10935) +++ csw/mgar/pkg/apache2/trunk/Makefile 2010-09-08 20:30:55 UTC (rev 10936) @@ -75,8 +75,8 @@ # Copy in specialized templates copy-local-files: - @ginstall -d $(DESTDIR)/opt/csw/etc/init.d - @ginstall $(WORKDIR)/cswapache2 $(DESTDIR)/opt/csw/etc/init.d + @ginstall -d $(DESTDIR)/etc/opt/csw/init.d + @ginstall $(WORKDIR)/cswapache2 $(DESTDIR)/etc/opt/csw/init.d @ginstall $(WORKDIR)/httpd.conf.CSW $(APACHE_ROOT)/etc @ginstall $(WORKDIR)/httpd-mpm.conf.CSW $(APACHE_ROOT)/etc/extra @ginstall $(WORKDIR)/httpd-ssl.conf.CSW $(APACHE_ROOT)/etc/extra This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From rthurner at users.sourceforge.net Wed Sep 8 22:32:50 2010 From: rthurner at users.sourceforge.net (rthurner at users.sourceforge.net) Date: Wed, 08 Sep 2010 20:32:50 +0000 Subject: [csw-devel] SF.net SVN: gar:[10937] csw/mgar/pkg/apache2/trunk/Makefile Message-ID: Revision: 10937 http://gar.svn.sourceforge.net/gar/?rev=10937&view=rev Author: rthurner Date: 2010-09-08 20:32:49 +0000 (Wed, 08 Sep 2010) Log Message: ----------- apache2: try to get bdb48 into the run path Modified Paths: -------------- csw/mgar/pkg/apache2/trunk/Makefile Modified: csw/mgar/pkg/apache2/trunk/Makefile =================================================================== --- csw/mgar/pkg/apache2/trunk/Makefile 2010-09-08 20:30:55 UTC (rev 10936) +++ csw/mgar/pkg/apache2/trunk/Makefile 2010-09-08 20:32:49 UTC (rev 10937) @@ -33,6 +33,9 @@ RUNTIME_DEP_PKGS_CSWapache2 += CSWoldaprt CSWosslrt CSWzlib RUNTIME_DEP_PKGS_CSWapache2 += CSWapr CSWapr-util +# We need this to get bdb48/lib into the runpath +EXTRA_LIB = $(prefix)/bdb48/lib + # The SMF support: you don't need to specify cswinitsmf any more. You need to # make sure the the /etc/opt/csw/init.d/cswapache file gets installed during # the post-install stage, and add "INITSMF = /etc/opt/csw/init.d/cswapache" to This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From rthurner at users.sourceforge.net Wed Sep 8 23:00:51 2010 From: rthurner at users.sourceforge.net (rthurner at users.sourceforge.net) Date: Wed, 08 Sep 2010 21:00:51 +0000 Subject: [csw-devel] SF.net SVN: gar:[10938] csw/mgar/pkg/apache2/trunk/Makefile Message-ID: Revision: 10938 http://gar.svn.sourceforge.net/gar/?rev=10938&view=rev Author: rthurner Date: 2010-09-08 21:00:51 +0000 (Wed, 08 Sep 2010) Log Message: ----------- apache2: depend on bdb48 Modified Paths: -------------- csw/mgar/pkg/apache2/trunk/Makefile Modified: csw/mgar/pkg/apache2/trunk/Makefile =================================================================== --- csw/mgar/pkg/apache2/trunk/Makefile 2010-09-08 20:32:49 UTC (rev 10937) +++ csw/mgar/pkg/apache2/trunk/Makefile 2010-09-08 21:00:51 UTC (rev 10938) @@ -31,7 +31,7 @@ RUNTIME_DEP_PKGS_CSWapache2 = CSWexpat CSWiconv RUNTIME_DEP_PKGS_CSWapache2 += CSWoldaprt CSWosslrt CSWzlib -RUNTIME_DEP_PKGS_CSWapache2 += CSWapr CSWapr-util +RUNTIME_DEP_PKGS_CSWapache2 += CSWapr CSWapr-util CSWbdb48 # We need this to get bdb48/lib into the runpath EXTRA_LIB = $(prefix)/bdb48/lib This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From gadavis at users.sourceforge.net Fri Sep 10 00:49:53 2010 From: gadavis at users.sourceforge.net (gadavis at users.sourceforge.net) Date: Thu, 09 Sep 2010 22:49:53 +0000 Subject: [csw-devel] SF.net SVN: gar:[10939] csw/mgar/pkg Message-ID: Revision: 10939 http://gar.svn.sourceforge.net/gar/?rev=10939&view=rev Author: gadavis Date: 2010-09-09 22:49:53 +0000 (Thu, 09 Sep 2010) Log Message: ----------- Initial package definition for arch-independent GMT Coastlines Modified Paths: -------------- csw/mgar/pkg/gmtcoast/trunk/Makefile csw/mgar/pkg/gmtcoast/trunk/checksums Added Paths: ----------- csw/mgar/pkg/gmtcoast/ Modified: csw/mgar/pkg/gmtcoast/trunk/Makefile =================================================================== --- csw/mgar/pkg/template/trunk/Makefile 2010-09-03 21:21:37 UTC (rev 10926) +++ csw/mgar/pkg/gmtcoast/trunk/Makefile 2010-09-09 22:49:53 UTC (rev 10939) @@ -2,184 +2,37 @@ # Distributed under the terms of the GNU General Public License v2 # $Id$ -## This file contains comments to guide you through various GAR settings. -## Please remove unnecessary comments before committing your code to the code -## repository. The comments to remove are marked with double hashes. -## If you want to remove them all in-place, use: -## gsed -i -e '/^##/d' Makefile -## -## For more information about GAR variables, please see: -## https://sourceforge.net/apps/trac/gar/wiki/GAR%20Variable%20Reference -## -GARNAME = mypkg -GARVERSION = 1.0 -## -## The category that your software fits in. This is not a descriptive field, but -## influences the build process. Depending on the CATEGORIES setting, different -## Makefiles are included from gar/categories/ in your trunk directory, which -## adjust the build settings for the respective category. -## -## Possible settings are: -## apps, cpan, devel, gnome, java, kde, lang, lib, meta, net, python, server, -## utils, x11, xfce, xorg, xtra -CATEGORIES = lib -## -## A one-line description of the package, which will appear in the pkginfo. -DESCRIPTION = -## -## A longer description of the package. This is only for descriptive purposes -## inside the Makefile and is not used elsewhere. +GSHHS_VERSION = 2.1.0 + +GARNAME = gmtcoast +GARVERSION = $(GSHHS_VERSION) +CATEGORIES = apps +DESCRIPTION = Coastline Definition Files for Generic Mapping Tools define BLURB - + GMT is an open source collection of ~60 tools for manipulating geographic and Cartesian data sets (including filtering, trend fitting, gridding, projecting, etc.) and producing Encapsulated PostScript File (EPS) illustrations ranging from simple x-y plots via contour maps to artificially illuminated surfaces and 3-D perspective views. GMT supports ~30 map projections and transformations and comes with support data such as GSHHS coastlines, rivers, and political boundaries. GMT is developed and maintained by Paul Wessel and Walter H. F. Smith with help from a global set of volunteers, and is supported by the National Science Foundation. It is released under the GNU General Public License. endef -## -## Upstream URL that should show up in the VENDOR field as well as on -## http://opencsw.org/packages/. -SPKG_SOURCEURL = -## -## Whitespace-separated list of URLs to download the source package from. -## There are presets: $(SF_MIRRORS), $(GNU_MIRRORS) and $(GOOGLE_MIRROR). -MASTER_SITES = -## -## SF_PROJ is required if you set $(MASTER_SITES) to $(SF_MIRRORS) and the -## Sourceforge project name differs from $(GARNAME). Specifies the Sourceforge -## project name of the software you wish to download. -## SF_PROJ = -## -## A list of space separated patch filenames from files/ that are to be applied -## to the extracted software before the ./configure stage. Patches need to be -## included in the DISTFILES variable as well. -## PATCHFILES = -## -## Whitespace-separated list of files which comprise this build. mGAR will look -## for the files in the $(FILEDIR) (trunk/files) directory and on the -## $(MASTER_SITES). -DISTFILES = $(GARNAME)-$(GARVERSION).tar.gz -## -## We define upstream file regex so we can be notifed of new upstream software release -UFILES_REGEX = $(GARNAME)-(\d+(?:\.\d+)*).tar.gz -## -## Catalog name is the name to be used with pkg{-get,util} -i . -## It is different from the system package name, which by convention is CSWpkgname. -## CATALOGNAME = -## -## Set to 1 to mark the package as architecture-independent. -## ARCHALL = 0 -## -## A list of files / patterns that should be excluded from the package. Amends -## the default list of excluded filenames $(MERGE_EXCLUDE_DEFAULT), which -## contains things like libtool .la files and files with a leading ~. -## EXTRA_MERGE_EXCLUDE_FILES = -## -## A list of space separated package names that should be marked as -## incompatible with the current package. This will go into the depend file. -## When a user has one of the incompatible packages installed and installs -## your package, he will be prompted that the incompatible package must be -## removed. He will however not be prevented to install your package without -## removing the conflicting package first. -## INCOMPATIBLE_PKGS = -## -## The name of the license file that should be included in your package. Defaults -## to COPYING. See http://sourceforge.net/apps/trac/gar/wiki/CopyRightfor details -## on including and displaying licenses. -## LICENSE = -## -## A list of space separated package names that should be produced from your -## Makefile. This is used when a software has different components that can be -## packaged and used individually (think runtime libraries, client tools, server -## files, development headers). You don't need to set this when you just want to -## produce one package. -## -## When you set this variable to include more than one package, you also need to -## set PKGFILES_CSWpkgname for each package (except for the first one in your -## $(PACKAGES) list) to define which files go into each package. The first -## package from $(PACKAGES) one will hold all files that are not matched by -## PKGFILES_ for other packages. -## PACKAGES = -## -## If specified, GAR feeds the almost-final package prototype file to -## $(PROTOTYPE_FILTER) and reads the final package prototype file from it. -## $(PROTOTYPE_FILTER) is usually a sed/awk/perl one-liner, which was mostly used -## to prepare the prototype file for use with cswclassutils (see -## $(SPKG_CLASSES)). Now that there are convenience variables for cswclassutils, -## you will rarely have to use this. A still valid use case would be to change -## the file permissions of a file to be set-UID. -## See http://wiki.opencsw.org/cswclassutils-package for common usage information -## PROTOTYPE_FILTER = -## -## cswclassutils settings -## -## A list of action classes. Possible values are: -## none cswpreserveconf cswcpsampleconf cswpycompile cswusergroup cswinitsmf -## cswinetd cswetcservices -## The class 'cswinitsmf' must be the last class listed. When you use cswclassutils, -## you need to add CSWcswclassutils to RUNTIME_DEP_PKGS. -## SPKG_CLASSES = none -## Simplified settings for classes: -## PRESERVECONF = -## SAMPLECONF = -## INITSMF = -## USERGROUP = -## ETCSERVICES = -## INETDCONF = -## A list of runtime package dependencies in the form of CSWfoo. -## RUNTIME_DEP_PKGS = -## -## A list of packages necessary to build this package -## BUILD_DEP_PKGS = $(RUNTIME_DEP_PKGS) -## -## When using non-empty $(PACKAGES): -## RUNTIME_DEP_PKGS_CSWpkgname = -## SPKG_DESC_CSWpkgname = -## PKGFILES_CSWpkgname = -## CATALOGNAME_CSWpkgname = -## -## A list of space separated directories where objects should be stripped in -## addition to the bin/ and sbin/ directories. -## STRIP_DIRS = -## -## Define a custom target for the configure phase. When you set this, the target -## that will be used instead of configure: target, is named -## configure-$(CONFIGURE_SCRIPTS) and you will need to define it in your Makefile -## after including gar/gar.include.mk. If you want to skip the configure phase -## completely (for example when your software doesn't need to be compiled) assign -## this variable an empty value. The procedure works for configure, build, -## install and test steps. -## CONFIGURE_SCRIPTS = -## BUILD_SCRIPTS = -## INSTALL_SCRIPTS = -## TEST_SCRIPTS = -## -## Compilation settings -## -## The build directory. -## WORKSRC = $(WORKDIR)/$(GARNAME)-$(GARVERSION) -## -## BUILD_ARGS is passed as an argument to gmake during the build phase. Use this -## for example, if you need to override Makefile variables. -## BUILD_ARGS = -## -## Arguments passed to the ./configure script. -CONFIGURE_ARGS = $(DIRPATHS) -## -## BUILD64 = -## CONFIGURE_ENV = -## EXTRA_CFLAGS = -## EXTRA_LDFLAGS = -## EXTRA_INC = -## EXTRA_LIB = -## GARFLAVOR = -## INSTALL_ARGS = -## OPT_FLAGS_SOS = -xO3 -## OPT_FLAGS_GCC = -O2 -pipe -## -## The compiler to use. Defaults to SOS11, can be also: SOS12, GCC3, GCC4. -## GARCOMPILER = SOS11 -## -# Remove the following rules and uncomment the -# include before building. -all: .DEFAULT -.DEFAULT: - @true -#include gar/category.mk +SPKG_SOURCEURL = http://gmt.soest.hawaii.edu/ +MASTER_SITES = ftp://ftp.iris.washington.edu/pub/gmt/ ftp://ftp.soest.hawaii.edu/gmt/ ftp://gd.tuwien.ac.at/pub/gmt/ + +DISTFILES = GSHHS$(GSHHS_VERSION)_coast.tar.bz2 \ + GSHHS$(GSHHS_VERSION)_full.tar.bz2 \ + GSHHS$(GSHHS_VERSION)_high.tar.bz2 + +UFILES_REGEX = GSHHS(\d+(?:\.\d+)*)_(.*).tar.gz + +ARCHALL = 1 + +LICENSE = LICENSE.TXT + +## The tarball just dumps into the current directory, no archive name +WORKSRC = $(WORKDIR) + +include gar/category.mk + +install-custom: + @echo " ==> Installing $(GARNAME)" + @rm -rf $(DESTDIR)$(datadir)/coast + @ginstall -d $(DESTDIR)$(datadir)/coast + @cp -r $(WORKSRC)/share/coast/* $(DESTDIR)$(datadir)/coast/ + @$(MAKECOOKIE) Modified: csw/mgar/pkg/gmtcoast/trunk/checksums =================================================================== --- csw/mgar/pkg/template/trunk/checksums 2010-09-03 21:21:37 UTC (rev 10926) +++ csw/mgar/pkg/gmtcoast/trunk/checksums 2010-09-09 22:49:53 UTC (rev 10939) @@ -0,0 +1,3 @@ +1f84a99effe96e12fb60f31fa3cf35bb GSHHS2.1.0_coast.tar.bz2 +da679a412056e401bb624a213d4b11d6 GSHHS2.1.0_full.tar.bz2 +51128a3c545fd48364a2da830ebce1b6 GSHHS2.1.0_high.tar.bz2 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From gadavis at users.sourceforge.net Fri Sep 10 01:36:11 2010 From: gadavis at users.sourceforge.net (gadavis at users.sourceforge.net) Date: Thu, 09 Sep 2010 23:36:11 +0000 Subject: [csw-devel] SF.net SVN: gar:[10940] csw/mgar/pkg/gmtcoast/trunk/Makefile Message-ID: Revision: 10940 http://gar.svn.sourceforge.net/gar/?rev=10940&view=rev Author: gadavis Date: 2010-09-09 23:36:11 +0000 (Thu, 09 Sep 2010) Log Message: ----------- Add in missing SCRIPTS variables that somehow disappeared from initial checkin Modified Paths: -------------- csw/mgar/pkg/gmtcoast/trunk/Makefile Modified: csw/mgar/pkg/gmtcoast/trunk/Makefile =================================================================== --- csw/mgar/pkg/gmtcoast/trunk/Makefile 2010-09-09 22:49:53 UTC (rev 10939) +++ csw/mgar/pkg/gmtcoast/trunk/Makefile 2010-09-09 23:36:11 UTC (rev 10940) @@ -25,6 +25,11 @@ LICENSE = LICENSE.TXT +CONFIGURE_SCRIPTS = +BUILD_SCRIPTS = +INSTALL_SCRIPTS = custom +TEST_SCRIPTS = + ## The tarball just dumps into the current directory, no archive name WORKSRC = $(WORKDIR) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From gadavis at users.sourceforge.net Fri Sep 10 06:39:42 2010 From: gadavis at users.sourceforge.net (gadavis at users.sourceforge.net) Date: Fri, 10 Sep 2010 04:39:42 +0000 Subject: [csw-devel] SF.net SVN: gar:[10941] csw/mgar/pkg/gmtcoast/tags/gmt_gmtcoast-2.1.0, REV= 2010.09.10/ Message-ID: Revision: 10941 http://gar.svn.sourceforge.net/gar/?rev=10941&view=rev Author: gadavis Date: 2010-09-10 04:39:42 +0000 (Fri, 10 Sep 2010) Log Message: ----------- gmtcoast: Tag as release 2.1.0,REV=2010.09.10 for project 'gmt' Added Paths: ----------- csw/mgar/pkg/gmtcoast/tags/gmt_gmtcoast-2.1.0,REV=2010.09.10/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From gadavis at users.sourceforge.net Fri Sep 10 07:19:06 2010 From: gadavis at users.sourceforge.net (gadavis at users.sourceforge.net) Date: Fri, 10 Sep 2010 05:19:06 +0000 Subject: [csw-devel] SF.net SVN: gar:[10942] csw/mgar/pkg/netcdf/branches/gar-fortran/Makefile Message-ID: Revision: 10942 http://gar.svn.sourceforge.net/gar/?rev=10942&view=rev Author: gadavis Date: 2010-09-10 05:19:06 +0000 (Fri, 10 Sep 2010) Log Message: ----------- Switch compiler to GCC4 due to redistribution problems with fortran to c libraries in Studio. Disable 64 bit build due to problems with Fortran bindings in test phase Modified Paths: -------------- csw/mgar/pkg/netcdf/branches/gar-fortran/Makefile Modified: csw/mgar/pkg/netcdf/branches/gar-fortran/Makefile =================================================================== --- csw/mgar/pkg/netcdf/branches/gar-fortran/Makefile 2010-09-10 04:39:42 UTC (rev 10941) +++ csw/mgar/pkg/netcdf/branches/gar-fortran/Makefile 2010-09-10 05:19:06 UTC (rev 10942) @@ -125,10 +125,10 @@ ## ETCSERVICES = ## INETDCONF = ## A list of runtime package dependencies in the form of CSWfoo. -RUNTIME_DEP_PKGS = CSWcurlrt CSWhdf5rt +RUNTIME_DEP_PKGS = CSWcurlrt CSWhdf5rt CSWgcc4gfortranrt ## ## A list of packages necessary to build this package -BUILD_DEP_PKGS = $(RUNTIME_DEP_PKGS) CSWautoconf CSWautomake CSWtetex +BUILD_DEP_PKGS = $(RUNTIME_DEP_PKGS) CSWautoconf CSWautomake CSWtetex CSWgcc4gfortran ## ## When using non-empty $(PACKAGES): ## RUNTIME_DEP_PKGS_CSWpkgname = @@ -162,7 +162,7 @@ ## ## CFLAGS AND LDFLAGS are necessary due to problems with the fortran bindings when ## building 64-bit -## BUILD_ARGS = CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" FFLAGS="$(FFLAGS)" FCFLAGS="$(FCFLAGS)" +BUILD_ARGS = CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" FFLAGS="$(FFLAGS)" FCFLAGS="$(FCFLAGS)" ## ## Arguments passed to the ./configure script. CONFIGURE_ARGS = $(DIRPATHS) \ @@ -178,30 +178,51 @@ --with-hdf5=/opt/csw \ --with-zlib=/opt/csw +## 64 bit build fails in fortran binding tests +BUILD64 = 0 +## CONFIGURE_ENV = + +## Needed for "Large file support" in NetCDF +EXTRA_CPPFLAGS = -D_FILE_OFFSET_BITS=64 + ## -BUILD64 = 1 -#CONFIGURE_ENV = CC=suncc CXX=sunCC F77=sunf77 FFLAGS="-dalign" FC=sunf95 \ -# FCFLAGS="-dalign" -#CONFIGURE_ENV = CC=cc CXX=CC F77=f77 FC=f95 -#EXTRA_CFLAGS = -g -EXTRA_CPPFLAGS = -DsunFortran -D__FUNCTION__=__func__ -D_FILE_OFFSET_BITS=64 -#EXTRA_CXXFLAGS = -g -## EXTRA_LDFLAGS = +## The compiler to use. Defaults to SOS11, can be also: SOS12, GCC3, GCC4. +## Use GCC4 since the fortran to C binding process with Sun Studio require +## non-redistributable libs in /opt/SUNWspro +GARCOMPILER = GCC4 + +## Add GCC4 lib dir to CFLAGS and friends because gcc3core_rt puts it's +## libgcc_s.so in /opt/csw/lib and this breaks the build in all sorts of weird +## places. +## Rationale: Automake keeps wanting to put /opt/csw/lib in the front of the +## -L options during the linking phase, so the GCC3 libgcc_s gets pulled in +## first and an unresolved symbol error occurs. By adding to the +## CFLAGS/FFLAGS/FCFLAGS/CXXFLAGS, it is pulled in before AM_LDFLAGS in the +## linking stage in most automake-generated Makefiles. Ugly hack but it works. +## +## Adding -dalign to *FLAGS in attempt to fix bus error in nf_test/ftst_vars4 +## in fuction nf_put_vlen_element +EXTRA_CFLAGS = -L/opt/csw/gcc4/lib/$(MM_LIBDIR) -dalign +EXTRA_FFLAGS= -L/opt/csw/gcc4/lib/$(MM_LIBDIR) -dalign +EXTRA_FCFLAGS = -L/opt/csw/gcc4/lib/$(MM_LIBDIR) -dalign +EXTRA_CXXFLAGS = -L/opt/csw/gcc4/lib/$(MM_LIBDIR) -dalign + +## Need to figure out a way to get the runtime linker in some tests to work +## Next line is an ugly hack, need to ask the GAR Cabal for ideas. +## EXTRA_LDFLAGS = -R/opt/csw/gcc4/lib/$(MM_LIBDIR) + ## EXTRA_INC = ## EXTRA_LIB = ## GARFLAVOR = ## INSTALL_ARGS = -OPT_FLAGS_SOS = -fast +#OPT_FLAGS_SOS = -fast -g ## OPT_FLAGS_GCC = -O2 -pipe -## -## The compiler to use. Defaults to SOS11, can be also: SOS12, GCC3, GCC4. -## GARCOMPILER = SOS11 -## -# Remove the following rules and uncomment the -# include before building. -#all: .DEFAULT -#.DEFAULT: -# @true + include gar/category.mk +## During the 32-bit sparc build, the C++ bindings were barfing with an error +## about undefined symbol __sync_fetch_and_add_4 in libnetcdf_c++ +## Per http://www.mail-archive.com/maintainers at lists.opencsw.org/msg06095.html +## replacing -march=v8 with -m32 seems to solve the problem +ARCHFLAGS_GCC4_sparcv8 = -m32 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From gadavis at users.sourceforge.net Fri Sep 10 07:22:01 2010 From: gadavis at users.sourceforge.net (gadavis at users.sourceforge.net) Date: Fri, 10 Sep 2010 05:22:01 +0000 Subject: [csw-devel] SF.net SVN: gar:[10943] csw/mgar/pkg/netcdf/branches/gar-fortran/Makefile Message-ID: Revision: 10943 http://gar.svn.sourceforge.net/gar/?rev=10943&view=rev Author: gadavis Date: 2010-09-10 05:22:00 +0000 (Fri, 10 Sep 2010) Log Message: ----------- Nuke excessive comments Modified Paths: -------------- csw/mgar/pkg/netcdf/branches/gar-fortran/Makefile Modified: csw/mgar/pkg/netcdf/branches/gar-fortran/Makefile =================================================================== --- csw/mgar/pkg/netcdf/branches/gar-fortran/Makefile 2010-09-10 05:19:06 UTC (rev 10942) +++ csw/mgar/pkg/netcdf/branches/gar-fortran/Makefile 2010-09-10 05:22:00 UTC (rev 10943) @@ -2,169 +2,21 @@ # Distributed under the terms of the GNU General Public License v2 # $Id$ -## This file contains comments to guide you through various GAR settings. -## Please remove unnecessary comments before committing your code to the code -## repository. The comments to remove are marked with double hashes. -## If you want to remove them all in-place, use: -## gsed -i -e '/^##/d' Makefile -## -## For more information about GAR variables, please see: -## https://sourceforge.net/apps/trac/gar/wiki/GAR%20Variable%20Reference -## GARNAME = netcdf GARVERSION = 4.1.1 -## -## The category that your software fits in. This is not a descriptive field, but -## influences the build process. Depending on the CATEGORIES setting, different -## Makefiles are included from gar/categories/ in your trunk directory, which -## adjust the build settings for the respective category. -## -## Possible settings are: -## apps, cpan, devel, gnome, java, kde, lang, lib, meta, net, python, server, -## utils, x11, xfce, xorg, xtra CATEGORIES = lib -## -## A one-line description of the package, which will appear in the pkginfo. DESCRIPTION = machine-independent data formats for array-oriented scientific data -## -## A longer description of the package. This is only for descriptive purposes -## inside the Makefile and is not used elsewhere. -define BLURB - NetCDF (network Common Data Form) is a set of software libraries and - machine-independent data formats that support the creation, access, - and sharing of array-oriented scientific data. -endef -## -## Upstream URL that should show up in the VENDOR field as well as on -## http://opencsw.org/packages/. SPKG_SOURCEURL = http://www.unidata.ucar.edu/software/netcdf/ -## -## Whitespace-separated list of URLs to download the source package from. -## There are presets: $(SF_MIRRORS), $(GNU_MIRRORS) and $(GOOGLE_MIRROR). MASTER_SITES = http://www.unidata.ucar.edu/downloads/netcdf/ftp/ -## -## SF_PROJ is required if you set $(MASTER_SITES) to $(SF_MIRRORS) and the -## Sourceforge project name differs from $(GARNAME). Specifies the Sourceforge -## project name of the software you wish to download. -## SF_PROJ = -## -## A list of space separated patch filenames from files/ that are to be applied -## to the extracted software before the ./configure stage. Patches need to be -## included in the DISTFILES variable as well. -## PATCHFILES = -## -## Whitespace-separated list of files which comprise this build. mGAR will look -## for the files in the $(FILEDIR) (trunk/files) directory and on the -## $(MASTER_SITES). DISTFILES = $(GARNAME)-$(GARVERSION).tar.gz -## -## We define upstream file regex so we can be notifed of new upstream software release UFILES_REGEX = $(GARNAME)-(\d+(?:\.\d+)*).tar.gz -## -## Catalog name is the name to be used with pkg{-get,util} -i . -## It is different from the system package name, which by convention is CSWpkgname. -## CATALOGNAME = -## -## Set to 1 to mark the package as architecture-independent. -## ARCHALL = 0 -## -## A list of files / patterns that should be excluded from the package. Amends -## the default list of excluded filenames $(MERGE_EXCLUDE_DEFAULT), which -## contains things like libtool .la files and files with a leading ~. -## EXTRA_MERGE_EXCLUDE_FILES = -## -## A list of space separated package names that should be marked as -## incompatible with the current package. This will go into the depend file. -## When a user has one of the incompatible packages installed and installs -## your package, he will be prompted that the incompatible package must be -## removed. He will however not be prevented to install your package without -## removing the conflicting package first. -## INCOMPATIBLE_PKGS = -## -## The name of the license file that should be included in your package. Defaults -## to COPYING. See http://sourceforge.net/apps/trac/gar/wiki/CopyRightfor details -## on including and displaying licenses. ## LICENSE = -## -## A list of space separated package names that should be produced from your -## Makefile. This is used when a software has different components that can be -## packaged and used individually (think runtime libraries, client tools, server -## files, development headers). You don't need to set this when you just want to -## produce one package. -## -## When you set this variable to include more than one package, you also need to -## set PKGFILES_CSWpkgname for each package (except for the first one in your -## $(PACKAGES) list) to define which files go into each package. The first -## package from $(PACKAGES) one will hold all files that are not matched by -## PKGFILES_ for other packages. -## PACKAGES = -## -## If specified, GAR feeds the almost-final package prototype file to -## $(PROTOTYPE_FILTER) and reads the final package prototype file from it. -## $(PROTOTYPE_FILTER) is usually a sed/awk/perl one-liner, which was mostly used -## to prepare the prototype file for use with cswclassutils (see -## $(SPKG_CLASSES)). Now that there are convenience variables for cswclassutils, -## you will rarely have to use this. A still valid use case would be to change -## the file permissions of a file to be set-UID. -## See http://wiki.opencsw.org/cswclassutils-package for common usage information -## PROTOTYPE_FILTER = -## -## cswclassutils settings -## -## A list of action classes. Possible values are: -## none cswpreserveconf cswcpsampleconf cswpycompile cswusergroup cswinitsmf -## cswinetd cswetcservices -## The class 'cswinitsmf' must be the last class listed. When you use cswclassutils, -## you need to add CSWcswclassutils to RUNTIME_DEP_PKGS. -## SPKG_CLASSES = none -## Simplified settings for classes: -## PRESERVECONF = -## SAMPLECONF = -## INITSMF = -## USERGROUP = -## ETCSERVICES = -## INETDCONF = -## A list of runtime package dependencies in the form of CSWfoo. RUNTIME_DEP_PKGS = CSWcurlrt CSWhdf5rt CSWgcc4gfortranrt -## -## A list of packages necessary to build this package BUILD_DEP_PKGS = $(RUNTIME_DEP_PKGS) CSWautoconf CSWautomake CSWtetex CSWgcc4gfortran -## -## When using non-empty $(PACKAGES): -## RUNTIME_DEP_PKGS_CSWpkgname = -## SPKG_DESC_CSWpkgname = -## PKGFILES_CSWpkgname = -## CATALOGNAME_CSWpkgname = -## -## A list of space separated directories where objects should be stripped in -## addition to the bin/ and sbin/ directories. -## STRIP_DIRS = -## -## Define a custom target for the configure phase. When you set this, the target -## that will be used instead of configure: target, is named -## configure-$(CONFIGURE_SCRIPTS) and you will need to define it in your Makefile -## after including gar/gar.include.mk. If you want to skip the configure phase -## completely (for example when your software doesn't need to be compiled) assign -## this variable an empty value. The procedure works for configure, build, -## install and test steps. -## CONFIGURE_SCRIPTS = -## BUILD_SCRIPTS = -## INSTALL_SCRIPTS = -## TEST_SCRIPTS = -## -## Compilation settings -## -## The build directory. -## WORKSRC = $(WORKDIR)/$(GARNAME)-$(GARVERSION) -## -## BUILD_ARGS is passed as an argument to gmake during the build phase. Use this -## for example, if you need to override Makefile variables. -## ## CFLAGS AND LDFLAGS are necessary due to problems with the fortran bindings when ## building 64-bit BUILD_ARGS = CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" FFLAGS="$(FFLAGS)" FCFLAGS="$(FCFLAGS)" -## -## Arguments passed to the ./configure script. + CONFIGURE_ARGS = $(DIRPATHS) \ --enable-netcdf-4 \ --enable-dap \ @@ -180,13 +32,10 @@ ## 64 bit build fails in fortran binding tests BUILD64 = 0 -## CONFIGURE_ENV = ## Needed for "Large file support" in NetCDF EXTRA_CPPFLAGS = -D_FILE_OFFSET_BITS=64 -## -## The compiler to use. Defaults to SOS11, can be also: SOS12, GCC3, GCC4. ## Use GCC4 since the fortran to C binding process with Sun Studio require ## non-redistributable libs in /opt/SUNWspro GARCOMPILER = GCC4 @@ -206,19 +55,8 @@ EXTRA_FFLAGS= -L/opt/csw/gcc4/lib/$(MM_LIBDIR) -dalign EXTRA_FCFLAGS = -L/opt/csw/gcc4/lib/$(MM_LIBDIR) -dalign EXTRA_CXXFLAGS = -L/opt/csw/gcc4/lib/$(MM_LIBDIR) -dalign - -## Need to figure out a way to get the runtime linker in some tests to work -## Next line is an ugly hack, need to ask the GAR Cabal for ideas. -## EXTRA_LDFLAGS = -R/opt/csw/gcc4/lib/$(MM_LIBDIR) - -## EXTRA_INC = -## EXTRA_LIB = -## GARFLAVOR = -## INSTALL_ARGS = -#OPT_FLAGS_SOS = -fast -g ## OPT_FLAGS_GCC = -O2 -pipe - include gar/category.mk ## During the 32-bit sparc build, the C++ bindings were barfing with an error This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From gadavis at users.sourceforge.net Fri Sep 10 07:22:55 2010 From: gadavis at users.sourceforge.net (gadavis at users.sourceforge.net) Date: Fri, 10 Sep 2010 05:22:55 +0000 Subject: [csw-devel] SF.net SVN: gar:[10944] csw/mgar/pkg/netcdf/branches/gar-fortran/Makefile Message-ID: Revision: 10944 http://gar.svn.sourceforge.net/gar/?rev=10944&view=rev Author: gadavis Date: 2010-09-10 05:22:55 +0000 (Fri, 10 Sep 2010) Log Message: ----------- Add license Modified Paths: -------------- csw/mgar/pkg/netcdf/branches/gar-fortran/Makefile Modified: csw/mgar/pkg/netcdf/branches/gar-fortran/Makefile =================================================================== --- csw/mgar/pkg/netcdf/branches/gar-fortran/Makefile 2010-09-10 05:22:00 UTC (rev 10943) +++ csw/mgar/pkg/netcdf/branches/gar-fortran/Makefile 2010-09-10 05:22:55 UTC (rev 10944) @@ -10,7 +10,7 @@ MASTER_SITES = http://www.unidata.ucar.edu/downloads/netcdf/ftp/ DISTFILES = $(GARNAME)-$(GARVERSION).tar.gz UFILES_REGEX = $(GARNAME)-(\d+(?:\.\d+)*).tar.gz -## LICENSE = +LICENSE = COPYRIGHT RUNTIME_DEP_PKGS = CSWcurlrt CSWhdf5rt CSWgcc4gfortranrt BUILD_DEP_PKGS = $(RUNTIME_DEP_PKGS) CSWautoconf CSWautomake CSWtetex CSWgcc4gfortran ## CFLAGS AND LDFLAGS are necessary due to problems with the fortran bindings when This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From gadavis at users.sourceforge.net Fri Sep 10 08:22:52 2010 From: gadavis at users.sourceforge.net (gadavis at users.sourceforge.net) Date: Fri, 10 Sep 2010 06:22:52 +0000 Subject: [csw-devel] SF.net SVN: gar:[10945] csw/mgar/pkg/netcdf/branches/gar-fortran/Makefile Message-ID: Revision: 10945 http://gar.svn.sourceforge.net/gar/?rev=10945&view=rev Author: gadavis Date: 2010-09-10 06:22:52 +0000 (Fri, 10 Sep 2010) Log Message: ----------- Add runtime deps, readd -mcpu=v8 to archflags to prevent v8+ build Modified Paths: -------------- csw/mgar/pkg/netcdf/branches/gar-fortran/Makefile Modified: csw/mgar/pkg/netcdf/branches/gar-fortran/Makefile =================================================================== --- csw/mgar/pkg/netcdf/branches/gar-fortran/Makefile 2010-09-10 05:22:55 UTC (rev 10944) +++ csw/mgar/pkg/netcdf/branches/gar-fortran/Makefile 2010-09-10 06:22:52 UTC (rev 10945) @@ -11,8 +11,10 @@ DISTFILES = $(GARNAME)-$(GARVERSION).tar.gz UFILES_REGEX = $(GARNAME)-(\d+(?:\.\d+)*).tar.gz LICENSE = COPYRIGHT -RUNTIME_DEP_PKGS = CSWcurlrt CSWhdf5rt CSWgcc4gfortranrt -BUILD_DEP_PKGS = $(RUNTIME_DEP_PKGS) CSWautoconf CSWautomake CSWtetex CSWgcc4gfortran +RUNTIME_DEP_PKGS = CSWcurlrt CSWhdf5rt CSWgcc4gfortranrt CSWzlib CSWgcc4corert \ + CSWoldaprt CSWlibcares CSWlibidn CSWgcc4g++rt CSWosslrt + +BUILD_DEP_PKGS = $(RUNTIME_DEP_PKGS) CSWtetex CSWgcc4gfortran ## CFLAGS AND LDFLAGS are necessary due to problems with the fortran bindings when ## building 64-bit BUILD_ARGS = CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" FFLAGS="$(FFLAGS)" FCFLAGS="$(FCFLAGS)" @@ -31,7 +33,7 @@ --with-zlib=/opt/csw ## 64 bit build fails in fortran binding tests -BUILD64 = 0 +#BUILD64 = 0 ## Needed for "Large file support" in NetCDF EXTRA_CPPFLAGS = -D_FILE_OFFSET_BITS=64 @@ -63,4 +65,4 @@ ## about undefined symbol __sync_fetch_and_add_4 in libnetcdf_c++ ## Per http://www.mail-archive.com/maintainers at lists.opencsw.org/msg06095.html ## replacing -march=v8 with -m32 seems to solve the problem -ARCHFLAGS_GCC4_sparcv8 = -m32 +ARCHFLAGS_GCC4_sparcv8 = -m32 -mcpu=v8 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From dmichelsen at users.sourceforge.net Fri Sep 10 12:55:06 2010 From: dmichelsen at users.sourceforge.net (dmichelsen at users.sourceforge.net) Date: Fri, 10 Sep 2010 10:55:06 +0000 Subject: [csw-devel] SF.net SVN: gar:[10946] csw/mgar/pkg/pca/trunk Message-ID: Revision: 10946 http://gar.svn.sourceforge.net/gar/?rev=10946&view=rev Author: dmichelsen Date: 2010-09-10 10:55:05 +0000 (Fri, 10 Sep 2010) Log Message: ----------- pca: Update to 20100910-01 Modified Paths: -------------- csw/mgar/pkg/pca/trunk/Makefile csw/mgar/pkg/pca/trunk/checksums Modified: csw/mgar/pkg/pca/trunk/Makefile =================================================================== --- csw/mgar/pkg/pca/trunk/Makefile 2010-09-10 06:22:52 UTC (rev 10945) +++ csw/mgar/pkg/pca/trunk/Makefile 2010-09-10 10:55:05 UTC (rev 10946) @@ -1,5 +1,5 @@ GARNAME = pca -GARVERSION = 20100727-01 +GARVERSION = 20100910-01 CATEGORIES = utils DESCRIPTION = Patch Check Advanced Modified: csw/mgar/pkg/pca/trunk/checksums =================================================================== --- csw/mgar/pkg/pca/trunk/checksums 2010-09-10 06:22:52 UTC (rev 10945) +++ csw/mgar/pkg/pca/trunk/checksums 2010-09-10 10:55:05 UTC (rev 10946) @@ -1,5 +1 @@ -4376789925fa9002d0567d739f717748 0001-prefer-opencsw-perl.diff -fc014aaacd778fd17c212d4f0f60c8fb 0002-Add-etc-opt-csw-as-config-location.patch -6f2f2376eba0a788795dd43d68ad32d1 COPYING -c9272b4888eea55d18bb2143fffb0bf1 pca-20100727-01 -12de68ff8f67b4bb8b095e5646402208 pca.conf +9e19a91b241fa9be475dc8c010c61fa5 pca-20100910-01 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From dmichelsen at users.sourceforge.net Fri Sep 10 15:47:39 2010 From: dmichelsen at users.sourceforge.net (dmichelsen at users.sourceforge.net) Date: Fri, 10 Sep 2010 13:47:39 +0000 Subject: [csw-devel] SF.net SVN: gar:[10947] csw/mgar/pkg/cpan/BerkeleyDB/tags/BerkeleyDB-0.42, REV=2010.03.15/ Message-ID: Revision: 10947 http://gar.svn.sourceforge.net/gar/?rev=10947&view=rev Author: dmichelsen Date: 2010-09-10 13:47:39 +0000 (Fri, 10 Sep 2010) Log Message: ----------- cpan/BerkeleyDB: Tag 0.42,REV=2010.03.15 Added Paths: ----------- csw/mgar/pkg/cpan/BerkeleyDB/tags/BerkeleyDB-0.42,REV=2010.03.15/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From dmichelsen at users.sourceforge.net Fri Sep 10 17:01:08 2010 From: dmichelsen at users.sourceforge.net (dmichelsen at users.sourceforge.net) Date: Fri, 10 Sep 2010 15:01:08 +0000 Subject: [csw-devel] SF.net SVN: gar:[10948] csw/mgar/pkg/cpan/BerkeleyDB/trunk Message-ID: Revision: 10948 http://gar.svn.sourceforge.net/gar/?rev=10948&view=rev Author: dmichelsen Date: 2010-09-10 15:01:08 +0000 (Fri, 10 Sep 2010) Log Message: ----------- cpan/BerkeleyDB: Update to 0.43 and compile against bdb 4.8 Modified Paths: -------------- csw/mgar/pkg/cpan/BerkeleyDB/trunk/Makefile csw/mgar/pkg/cpan/BerkeleyDB/trunk/checksums csw/mgar/pkg/cpan/BerkeleyDB/trunk/files/CSWpmberkeleydb.config.in.diff Modified: csw/mgar/pkg/cpan/BerkeleyDB/trunk/Makefile =================================================================== --- csw/mgar/pkg/cpan/BerkeleyDB/trunk/Makefile 2010-09-10 13:47:39 UTC (rev 10947) +++ csw/mgar/pkg/cpan/BerkeleyDB/trunk/Makefile 2010-09-10 15:01:08 UTC (rev 10948) @@ -1,5 +1,5 @@ GARNAME = BerkeleyDB -GARVERSION = 0.42 +GARVERSION = 0.43 CATEGORIES = cpan AUTHOR = PMQS @@ -16,8 +16,8 @@ PATCHFILES = CSWpmberkeleydb.config.in.diff NOISALIST = 1 -EXTRA_LIB = /opt/csw/bdb47/lib +EXTRA_LIB = /opt/csw/bdb48/lib -RUNTIME_DEP_PKGS = CSWbdb47 +RUNTIME_DEP_PKGS = CSWbdb48 include gar/category.mk Modified: csw/mgar/pkg/cpan/BerkeleyDB/trunk/checksums =================================================================== --- csw/mgar/pkg/cpan/BerkeleyDB/trunk/checksums 2010-09-10 13:47:39 UTC (rev 10947) +++ csw/mgar/pkg/cpan/BerkeleyDB/trunk/checksums 2010-09-10 15:01:08 UTC (rev 10948) @@ -1,3 +1 @@ -4b9c1f6e62b6ef40e6bdc673a3a30a32 BerkeleyDB-0.42.tar.gz -bf78b3346925446f99c2a7f081322109 COPYING -2061f2f285714a1b6a014c5254e69b92 CSWpmberkeleydb.config.in.diff +3d0cf0651ed8cd3fc36e328d5924a1e9 BerkeleyDB-0.43.tar.gz Modified: csw/mgar/pkg/cpan/BerkeleyDB/trunk/files/CSWpmberkeleydb.config.in.diff =================================================================== --- csw/mgar/pkg/cpan/BerkeleyDB/trunk/files/CSWpmberkeleydb.config.in.diff 2010-09-10 13:47:39 UTC (rev 10947) +++ csw/mgar/pkg/cpan/BerkeleyDB/trunk/files/CSWpmberkeleydb.config.in.diff 2010-09-10 15:01:08 UTC (rev 10948) @@ -6,7 +6,7 @@ #INCLUDE = /usr/local/include #INCLUDE = ../.. -INCLUDE = /usr/local/BerkeleyDB/include -+INCLUDE = /opt/csw/bdb47/include ++INCLUDE = /opt/csw/bdb48/include # 2. Where is libdb? # @@ -15,7 +15,7 @@ #LIB = /usr/local/lib #LIB = ../.. -LIB = /usr/local/BerkeleyDB/lib -+LIB = /opt/csw/bdb47/lib ++LIB = /opt/csw/bdb48/lib # 3. Is the library called libdb? # @@ -24,6 +24,6 @@ # you have picked. -#DBNAME = -ldb-3.0 -+DBNAME = -ldb-4.7 ++DBNAME = -ldb-4.8 # end of file config.in This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From dmichelsen at users.sourceforge.net Mon Sep 13 13:33:53 2010 From: dmichelsen at users.sourceforge.net (dmichelsen at users.sourceforge.net) Date: Mon, 13 Sep 2010 11:33:53 +0000 Subject: [csw-devel] SF.net SVN: gar:[10949] csw/mgar/pkg/cpan/HTML-Scrubber/trunk Message-ID: Revision: 10949 http://gar.svn.sourceforge.net/gar/?rev=10949&view=rev Author: dmichelsen Date: 2010-09-13 11:33:52 +0000 (Mon, 13 Sep 2010) Log Message: ----------- cpan/HTML-Scrubber: Update to mGAR v2 Modified Paths: -------------- csw/mgar/pkg/cpan/HTML-Scrubber/trunk/Makefile Removed Paths: ------------- csw/mgar/pkg/cpan/HTML-Scrubber/trunk/files/CSWpmhtmlscrubber.depend csw/mgar/pkg/cpan/HTML-Scrubber/trunk/files/CSWpmhtmlscrubber.gspec Property Changed: ---------------- csw/mgar/pkg/cpan/HTML-Scrubber/trunk/ Property changes on: csw/mgar/pkg/cpan/HTML-Scrubber/trunk ___________________________________________________________________ Modified: svn:externals - gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v1 + gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2 Modified: csw/mgar/pkg/cpan/HTML-Scrubber/trunk/Makefile =================================================================== --- csw/mgar/pkg/cpan/HTML-Scrubber/trunk/Makefile 2010-09-10 15:01:08 UTC (rev 10948) +++ csw/mgar/pkg/cpan/HTML-Scrubber/trunk/Makefile 2010-09-13 11:33:52 UTC (rev 10949) @@ -3,7 +3,7 @@ CATEGORIES = cpan AUTHOR = PODMASTER -DESCRIPTION = extension for scrubbing/sanitizing html +DESCRIPTION = Perl extension for scrubbing/sanitizing html define BLURB If you wanna "scrub" or "sanitize" html input in a reliable an flexible fashion, then this module is for you. I wasn't satisfied with @@ -11,8 +11,13 @@ write something similar that works directly with HTML::Parser. endef -DISTFILES += CSWpmhtmlscrubber.gspec CSWpmhtmlscrubber.depend +PACKAGES = CSWpmhtmlscrubber +CATALOGNAME = pm_htmlscrubber -DEPENDS += cpan/HTML-Parser +DEP_PKGS = CSWpmhtmlparser +LICENSE = LICENSE + +ARCHALL = 1 + include gar/category.mk Deleted: csw/mgar/pkg/cpan/HTML-Scrubber/trunk/files/CSWpmhtmlscrubber.depend =================================================================== --- csw/mgar/pkg/cpan/HTML-Scrubber/trunk/files/CSWpmhtmlscrubber.depend 2010-09-10 15:01:08 UTC (rev 10948) +++ csw/mgar/pkg/cpan/HTML-Scrubber/trunk/files/CSWpmhtmlscrubber.depend 2010-09-13 11:33:52 UTC (rev 10949) @@ -1 +0,0 @@ -P CSWpmhtmlparser pm_htmlparser - HTML parser class Deleted: csw/mgar/pkg/cpan/HTML-Scrubber/trunk/files/CSWpmhtmlscrubber.gspec =================================================================== --- csw/mgar/pkg/cpan/HTML-Scrubber/trunk/files/CSWpmhtmlscrubber.gspec 2010-09-10 15:01:08 UTC (rev 10948) +++ csw/mgar/pkg/cpan/HTML-Scrubber/trunk/files/CSWpmhtmlscrubber.gspec 2010-09-13 11:33:52 UTC (rev 10949) @@ -1,5 +0,0 @@ -%var bitname pm_htmlscrubber -%var pkgname CSWpmhtmlscrubber -%var arch all -%include url file://%{PKGLIB}/csw_cpan.gspec -%copyright url file://%{WORKSRC}/LICENSE This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From dmichelsen at users.sourceforge.net Mon Sep 13 13:45:59 2010 From: dmichelsen at users.sourceforge.net (dmichelsen at users.sourceforge.net) Date: Mon, 13 Sep 2010 11:45:59 +0000 Subject: [csw-devel] SF.net SVN: gar:[10950] csw/mgar/pkg/cpan/HTML-Template/trunk Message-ID: Revision: 10950 http://gar.svn.sourceforge.net/gar/?rev=10950&view=rev Author: dmichelsen Date: 2010-09-13 11:45:59 +0000 (Mon, 13 Sep 2010) Log Message: ----------- cpan/HTML-Template: Update to mGAR v2 Modified Paths: -------------- csw/mgar/pkg/cpan/HTML-Template/trunk/Makefile csw/mgar/pkg/cpan/HTML-Template/trunk/checksums Removed Paths: ------------- csw/mgar/pkg/cpan/HTML-Template/trunk/files/CSWpmhtmltmpl.gspec csw/mgar/pkg/cpan/HTML-Template/trunk/files/CSWpmhtmltmpl.prototype Property Changed: ---------------- csw/mgar/pkg/cpan/HTML-Template/trunk/ Property changes on: csw/mgar/pkg/cpan/HTML-Template/trunk ___________________________________________________________________ Modified: svn:externals - gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v1 + gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2 Modified: csw/mgar/pkg/cpan/HTML-Template/trunk/Makefile =================================================================== --- csw/mgar/pkg/cpan/HTML-Template/trunk/Makefile 2010-09-13 11:33:52 UTC (rev 10949) +++ csw/mgar/pkg/cpan/HTML-Template/trunk/Makefile 2010-09-13 11:45:59 UTC (rev 10950) @@ -15,8 +15,11 @@ HTML - from the data, which you generate in the Perl script. endef -DISTFILES += $(call admfiles,CSWpmhtmltmpl,prototype) +PACKAGES = CSWpmhtmltmpl +CATALOGNAME = pm_htmltemplate -CONFIGURE_ARGS = -n +LICENSE = GPL +ARCHALL = 1 + include gar/category.mk Modified: csw/mgar/pkg/cpan/HTML-Template/trunk/checksums =================================================================== --- csw/mgar/pkg/cpan/HTML-Template/trunk/checksums 2010-09-13 11:33:52 UTC (rev 10949) +++ csw/mgar/pkg/cpan/HTML-Template/trunk/checksums 2010-09-13 11:45:59 UTC (rev 10950) @@ -1,3 +1 @@ -2c49d8b4031a867041e12a88627d5127 download/CSWpmhtmltmpl.gspec -417f876832b4876b67730477579fd964 download/CSWpmhtmltmpl.prototype -cbf88a486b36284be55765ac7357c187 download/HTML-Template-2.9.tar.gz +cbf88a486b36284be55765ac7357c187 HTML-Template-2.9.tar.gz Deleted: csw/mgar/pkg/cpan/HTML-Template/trunk/files/CSWpmhtmltmpl.gspec =================================================================== --- csw/mgar/pkg/cpan/HTML-Template/trunk/files/CSWpmhtmltmpl.gspec 2010-09-13 11:33:52 UTC (rev 10949) +++ csw/mgar/pkg/cpan/HTML-Template/trunk/files/CSWpmhtmltmpl.gspec 2010-09-13 11:45:59 UTC (rev 10950) @@ -1,5 +0,0 @@ -%var bitname pm_htmltemplate -%var pkgname CSWpmhtmltmpl -%var arch all -%include url file://%{PKGLIB}/csw_cpan.gspec -%copyright url file://%{WORKSRC}/GPL Deleted: csw/mgar/pkg/cpan/HTML-Template/trunk/files/CSWpmhtmltmpl.prototype =================================================================== --- csw/mgar/pkg/cpan/HTML-Template/trunk/files/CSWpmhtmltmpl.prototype 2010-09-13 11:33:52 UTC (rev 10949) +++ csw/mgar/pkg/cpan/HTML-Template/trunk/files/CSWpmhtmltmpl.prototype 2010-09-13 11:45:59 UTC (rev 10950) @@ -1,15 +0,0 @@ -d none /opt/csw/lib 0755 root bin -d none /opt/csw/lib/perl 0755 root bin -d none /opt/csw/lib/perl/csw 0755 root bin -d none /opt/csw/lib/perl/csw/auto 0755 root bin -d none /opt/csw/lib/perl/csw/auto/HTML 0755 root bin -d none /opt/csw/lib/perl/csw/auto/HTML/Template 0755 root bin -f none /opt/csw/lib/perl/csw/auto/HTML/Template/.packlist 0644 root bin -d none /opt/csw/share 0755 root bin -d none /opt/csw/share/man 0755 root bin -d none /opt/csw/share/man/man3 0755 root bin -f none /opt/csw/share/man/man3/HTML::Template.3perl 0444 root bin -d none /opt/csw/share/perl 0755 root bin -d none /opt/csw/share/perl/csw 0755 root bin -d none /opt/csw/share/perl/csw/HTML 0755 root bin -f none /opt/csw/share/perl/csw/HTML/Template.pm 0444 root bin This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From dmichelsen at users.sourceforge.net Mon Sep 13 13:51:22 2010 From: dmichelsen at users.sourceforge.net (dmichelsen at users.sourceforge.net) Date: Mon, 13 Sep 2010 11:51:22 +0000 Subject: [csw-devel] SF.net SVN: gar:[10951] csw/mgar/pkg/cpan Message-ID: Revision: 10951 http://gar.svn.sourceforge.net/gar/?rev=10951&view=rev Author: dmichelsen Date: 2010-09-13 11:51:22 +0000 (Mon, 13 Sep 2010) Log Message: ----------- cpan/Mail-Sender: Initial commit Added Paths: ----------- csw/mgar/pkg/cpan/Mail-Sender/ csw/mgar/pkg/cpan/Mail-Sender/branches/ csw/mgar/pkg/cpan/Mail-Sender/tags/ csw/mgar/pkg/cpan/Mail-Sender/trunk/ csw/mgar/pkg/cpan/Mail-Sender/trunk/Makefile csw/mgar/pkg/cpan/Mail-Sender/trunk/checksums csw/mgar/pkg/cpan/Mail-Sender/trunk/files/ csw/mgar/pkg/cpan/Mail-Sender/trunk/files/0001-Don-t-ask-questions.patch csw/mgar/pkg/cpan/Mail-Sender/trunk/files/COPYING Property changes on: csw/mgar/pkg/cpan/Mail-Sender/trunk ___________________________________________________________________ Added: svn:ignore + cookies download work Added: svn:externals + gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2 Added: csw/mgar/pkg/cpan/Mail-Sender/trunk/Makefile =================================================================== --- csw/mgar/pkg/cpan/Mail-Sender/trunk/Makefile (rev 0) +++ csw/mgar/pkg/cpan/Mail-Sender/trunk/Makefile 2010-09-13 11:51:22 UTC (rev 10951) @@ -0,0 +1,21 @@ +GARNAME = Mail-Sender +GARVERSION = 0.8.16 +CATEGORIES = cpan +AUTHOR = JENDA + +DESCRIPTION = Module for sending mails with attachments through an SMTP server +define BLURB +endef + +DISTFILES = COPYING +PATCHFILES = 0001-Don-t-ask-questions.patch + +PACKAGES = CSWpmmailsender +CATALOGNAME = pm_mailsender + +DEP_PKGS = CSWpmfileremove CSWpmiostringy CSWpmtimedate CSWpmdigesthmac CSWpmmailtools CSWpmuri CSWpmmimetypes + +ARCHALL = 1 + +include gar/category.mk + Added: csw/mgar/pkg/cpan/Mail-Sender/trunk/checksums =================================================================== --- csw/mgar/pkg/cpan/Mail-Sender/trunk/checksums (rev 0) +++ csw/mgar/pkg/cpan/Mail-Sender/trunk/checksums 2010-09-13 11:51:22 UTC (rev 10951) @@ -0,0 +1 @@ +e5d88236202b3d39567ade7d560797b0 Mail-Sender-0.8.16.tar.gz Added: csw/mgar/pkg/cpan/Mail-Sender/trunk/files/0001-Don-t-ask-questions.patch =================================================================== --- csw/mgar/pkg/cpan/Mail-Sender/trunk/files/0001-Don-t-ask-questions.patch (rev 0) +++ csw/mgar/pkg/cpan/Mail-Sender/trunk/files/0001-Don-t-ask-questions.patch 2010-09-13 11:51:22 UTC (rev 10951) @@ -0,0 +1,25 @@ +From df895cf263b747cf383180289c0fa87fe45bdc37 Mon Sep 17 00:00:00 2001 +From: Dagobert Michelsen +Date: Mon, 13 Sep 2010 13:31:26 +0200 +Subject: [PATCH] Don't ask questions + +--- + Config.PL | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/Config.PL b/Config.PL +index a89d837..0e14cbc 100644 +--- a/Config.PL ++++ b/Config.PL +@@ -72,7 +72,7 @@ nmake.exe may be found at ftp://ftp.microsoft.com/Softlib/MSLFILES/nmake15.exe\n + } + + print "\nSpecify$new defaults for Mail::Sender? (y/N) "; +-$res = ; ++# $res = ; + exit unless $res =~ /^y$/i; + + if (! $configfile) { +-- +1.7.1 + Added: csw/mgar/pkg/cpan/Mail-Sender/trunk/files/COPYING =================================================================== --- csw/mgar/pkg/cpan/Mail-Sender/trunk/files/COPYING (rev 0) +++ csw/mgar/pkg/cpan/Mail-Sender/trunk/files/COPYING 2010-09-13 11:51:22 UTC (rev 10951) @@ -0,0 +1,4 @@ +Copyright (c) 1997-2003 Jan Krynicky . All rights reserved. +This program is free software; you can redistribute it and/or modify it under +the same terms as Perl itself with only one exception, you are not allowed +to use the module for SPAM. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From dmichelsen at users.sourceforge.net Mon Sep 13 13:54:08 2010 From: dmichelsen at users.sourceforge.net (dmichelsen at users.sourceforge.net) Date: Mon, 13 Sep 2010 11:54:08 +0000 Subject: [csw-devel] SF.net SVN: gar:[10952] csw/mgar/pkg/cpan/Mail-Sendmail/trunk Message-ID: Revision: 10952 http://gar.svn.sourceforge.net/gar/?rev=10952&view=rev Author: dmichelsen Date: 2010-09-13 11:54:07 +0000 (Mon, 13 Sep 2010) Log Message: ----------- cpan/Mail-Sendmail: Update to mGAR v2 Modified Paths: -------------- csw/mgar/pkg/cpan/Mail-Sendmail/trunk/Makefile csw/mgar/pkg/cpan/Mail-Sendmail/trunk/checksums Added Paths: ----------- csw/mgar/pkg/cpan/Mail-Sendmail/trunk/files/COPYING Removed Paths: ------------- csw/mgar/pkg/cpan/Mail-Sendmail/trunk/files/CSWpmmailsendmail.gspec Property Changed: ---------------- csw/mgar/pkg/cpan/Mail-Sendmail/trunk/ Property changes on: csw/mgar/pkg/cpan/Mail-Sendmail/trunk ___________________________________________________________________ Modified: svn:externals - gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v1 + gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2 Modified: csw/mgar/pkg/cpan/Mail-Sendmail/trunk/Makefile =================================================================== --- csw/mgar/pkg/cpan/Mail-Sendmail/trunk/Makefile 2010-09-13 11:51:22 UTC (rev 10951) +++ csw/mgar/pkg/cpan/Mail-Sendmail/trunk/Makefile 2010-09-13 11:54:07 UTC (rev 10952) @@ -3,15 +3,22 @@ CATEGORIES = cpan AUTHOR = MIVKOVIC -DESCRIPTION = simple platform independent mailer +DESCRIPTION = Simple platform independent mailer define BLURB Mail::Sendmail contains mainly &sendmail, which takes a hash with the message to send and sends it. It is intended to be very easy to setup and use. See also "FEATURES" below. endef -DISTFILES += CSWpmmailsendmail.gspec +DISTFILES = COPYING +PACKAGES = CSWpmmailsendmail +CATALOGNAME = pm_mailsendmail + +DEPS_PKGS = CSWpmmimebase64 + +ARCHALL = 1 + # Skip sending test email PATCHFILES = test.diff Modified: csw/mgar/pkg/cpan/Mail-Sendmail/trunk/checksums =================================================================== --- csw/mgar/pkg/cpan/Mail-Sendmail/trunk/checksums 2010-09-13 11:51:22 UTC (rev 10951) +++ csw/mgar/pkg/cpan/Mail-Sendmail/trunk/checksums 2010-09-13 11:54:07 UTC (rev 10952) @@ -1,3 +1 @@ -95e273944104b91d674e13f3c0baf614 download/CSWpmmailsendmail.gspec -038f261afd091d8fad347d6c66d2833d download/Mail-Sendmail-0.79.tar.gz -5d84534de7f77beb1a83f4cf296e6b12 download/test.diff +038f261afd091d8fad347d6c66d2833d Mail-Sendmail-0.79.tar.gz Added: csw/mgar/pkg/cpan/Mail-Sendmail/trunk/files/COPYING =================================================================== --- csw/mgar/pkg/cpan/Mail-Sendmail/trunk/files/COPYING (rev 0) +++ csw/mgar/pkg/cpan/Mail-Sendmail/trunk/files/COPYING 2010-09-13 11:54:07 UTC (rev 10952) @@ -0,0 +1,4 @@ + You can use this module freely. (Someone complained this is too vague. + So, more precisely: do whatever you want with it, but be warned that + terrible things will happen to you if you use it badly, like for sending + spam, or ...?) Deleted: csw/mgar/pkg/cpan/Mail-Sendmail/trunk/files/CSWpmmailsendmail.gspec =================================================================== --- csw/mgar/pkg/cpan/Mail-Sendmail/trunk/files/CSWpmmailsendmail.gspec 2010-09-13 11:51:22 UTC (rev 10951) +++ csw/mgar/pkg/cpan/Mail-Sendmail/trunk/files/CSWpmmailsendmail.gspec 2010-09-13 11:54:07 UTC (rev 10952) @@ -1,4 +0,0 @@ -%var bitname pm_mailsendmail -%var pkgname CSWpmmailsendmail -%var arch all -%include url file://%{PKGLIB}/csw_cpan.gspec This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From dmichelsen at users.sourceforge.net Mon Sep 13 14:03:48 2010 From: dmichelsen at users.sourceforge.net (dmichelsen at users.sourceforge.net) Date: Mon, 13 Sep 2010 12:03:48 +0000 Subject: [csw-devel] SF.net SVN: gar:[10953] csw/mgar/pkg/cpan/Mail-SPF-Query/trunk Message-ID: Revision: 10953 http://gar.svn.sourceforge.net/gar/?rev=10953&view=rev Author: dmichelsen Date: 2010-09-13 12:03:48 +0000 (Mon, 13 Sep 2010) Log Message: ----------- cpan/Mail-SPF-Query: Update to mGAR v2, intermediate commit, tests still fail Modified Paths: -------------- csw/mgar/pkg/cpan/Mail-SPF-Query/trunk/Makefile csw/mgar/pkg/cpan/Mail-SPF-Query/trunk/checksums Added Paths: ----------- csw/mgar/pkg/cpan/Mail-SPF-Query/trunk/files/COPYING Removed Paths: ------------- csw/mgar/pkg/cpan/Mail-SPF-Query/trunk/files/CSWpmmailspfqry.gspec Property Changed: ---------------- csw/mgar/pkg/cpan/Mail-SPF-Query/trunk/ Property changes on: csw/mgar/pkg/cpan/Mail-SPF-Query/trunk ___________________________________________________________________ Modified: svn:externals - gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v1 + gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2 Modified: csw/mgar/pkg/cpan/Mail-SPF-Query/trunk/Makefile =================================================================== --- csw/mgar/pkg/cpan/Mail-SPF-Query/trunk/Makefile 2010-09-13 11:54:07 UTC (rev 10952) +++ csw/mgar/pkg/cpan/Mail-SPF-Query/trunk/Makefile 2010-09-13 12:03:48 UTC (rev 10953) @@ -1,17 +1,24 @@ GARNAME = Mail-SPF-Query -GARVERSION = 1.997 +GARVERSION = 1.999.1 CATEGORIES = cpan -AUTHOR = FREESIDE +AUTHOR = JMEHNLE -DESCRIPTION = query sender policy framework +DESCRIPTION = Query Sender Policy Framework for an IP,email,helo define BLURB The SPF protocol relies on sender domains to describe their designated outbound mailers in DNS. Given an email address, Mail::SPF::Query determines the legitimacy of an SMTP client IP. endef -DISTFILES += CSWpmmailspfqry.gspec CSWpmmailspfqry.depend +MASTER_SITES = $(addsuffix mail-spf-query/,$(CPAN_MIRRORS)) -DEPENDS += cpan/Net-DNS cpan/Net-CIDR-Lite cpan/Sys-Hostname-Long cpan/URI +DISTFILES = COPYING +PACKAGES = CSWpmmailspfqry +CATALOGNAME = pm_mailspfqry + +DEP_PKGS = CSWpmnetcidrlite CSWpmnetdns CSWpmsyshostnamelong CSWpmuri + +ARCHALL = 1 + include gar/category.mk Modified: csw/mgar/pkg/cpan/Mail-SPF-Query/trunk/checksums =================================================================== --- csw/mgar/pkg/cpan/Mail-SPF-Query/trunk/checksums 2010-09-13 11:54:07 UTC (rev 10952) +++ csw/mgar/pkg/cpan/Mail-SPF-Query/trunk/checksums 2010-09-13 12:03:48 UTC (rev 10953) @@ -1,3 +1 @@ -84decc6a7569fa0635995b58fbfa879d download/CSWpmmailspfqry.gspec -4941871f63dd182d5842fa11354cda73 download/CSWpmmailspfqry.depend -9e110d00520e0fe174c25c0734a8baf6 download/Mail-SPF-Query-1.997.tar.gz +6d62d024d1614fa1fa4f43bd39ee7bf0 Mail-SPF-Query-1.999.1.tar.gz Copied: csw/mgar/pkg/cpan/Mail-SPF-Query/trunk/files/COPYING (from rev 10948, csw/mgar/pkg/cpan/Mail-SPF-Query/trunk/files/CSWpmmailspfqry.gspec) =================================================================== --- csw/mgar/pkg/cpan/Mail-SPF-Query/trunk/files/COPYING (rev 0) +++ csw/mgar/pkg/cpan/Mail-SPF-Query/trunk/files/COPYING 2010-09-13 12:03:48 UTC (rev 10953) @@ -0,0 +1,4 @@ +Released under the same terms as Perl. + +Copyright (C) 2003 Meng Weng Wong + Deleted: csw/mgar/pkg/cpan/Mail-SPF-Query/trunk/files/CSWpmmailspfqry.gspec =================================================================== --- csw/mgar/pkg/cpan/Mail-SPF-Query/trunk/files/CSWpmmailspfqry.gspec 2010-09-13 11:54:07 UTC (rev 10952) +++ csw/mgar/pkg/cpan/Mail-SPF-Query/trunk/files/CSWpmmailspfqry.gspec 2010-09-13 12:03:48 UTC (rev 10953) @@ -1,9 +0,0 @@ -%var bitname pm_mailspfqry -%var pkgname CSWpmmailspfqry -%var arch all -%include url file://%{PKGLIB}/csw_cpan.gspec -%copyright -Released under the same terms as Perl. - -Copyright (C) 2003 Meng Weng Wong - This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From bonivart at users.sourceforge.net Mon Sep 13 15:54:13 2010 From: bonivart at users.sourceforge.net (bonivart at users.sourceforge.net) Date: Mon, 13 Sep 2010 13:54:13 +0000 Subject: [csw-devel] SF.net SVN: gar:[10954] csw/mgar/pkg/cpan Message-ID: Revision: 10954 http://gar.svn.sourceforge.net/gar/?rev=10954&view=rev Author: bonivart Date: 2010-09-13 13:54:12 +0000 (Mon, 13 Sep 2010) Log Message: ----------- pm_dbfile: initial commit Added Paths: ----------- csw/mgar/pkg/cpan/DB_File/ csw/mgar/pkg/cpan/DB_File/branches/ csw/mgar/pkg/cpan/DB_File/tags/ csw/mgar/pkg/cpan/DB_File/trunk/ csw/mgar/pkg/cpan/DB_File/trunk/Makefile csw/mgar/pkg/cpan/DB_File/trunk/checksums csw/mgar/pkg/cpan/DB_File/trunk/files/ csw/mgar/pkg/cpan/DB_File/trunk/files/0001-add-bdb48-include-dir.patch csw/mgar/pkg/cpan/DB_File/trunk/files/COPYING Property changes on: csw/mgar/pkg/cpan/DB_File/trunk ___________________________________________________________________ Added: svn:ignore + cookies download work Added: svn:externals + gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2 Added: csw/mgar/pkg/cpan/DB_File/trunk/Makefile =================================================================== --- csw/mgar/pkg/cpan/DB_File/trunk/Makefile (rev 0) +++ csw/mgar/pkg/cpan/DB_File/trunk/Makefile 2010-09-13 13:54:12 UTC (rev 10954) @@ -0,0 +1,20 @@ +GARNAME = DB_File +GARVERSION = 1.820 +CATEGORIES = cpan +AUTHOR = PMQS + +DESCRIPTION = Perl5 access to Berkeley DB version 1.x +define BLURB + Perl5 access to Berkeley DB version 1.x +endef + +DISTFILES += COPYING + +PACKAGES = CSWpmdbfile +CATALOGNAME = pm_dbfile + +PATCHFILES += 0001-add-bdb48-include-dir.patch + +CONFIGURE_ARGS = $(DIRPATHS) + +include gar/category.mk Added: csw/mgar/pkg/cpan/DB_File/trunk/checksums =================================================================== --- csw/mgar/pkg/cpan/DB_File/trunk/checksums (rev 0) +++ csw/mgar/pkg/cpan/DB_File/trunk/checksums 2010-09-13 13:54:12 UTC (rev 10954) @@ -0,0 +1 @@ +28979bee29d8075b0dffab02fe29df6e DB_File-1.820.tar.gz Added: csw/mgar/pkg/cpan/DB_File/trunk/files/0001-add-bdb48-include-dir.patch =================================================================== --- csw/mgar/pkg/cpan/DB_File/trunk/files/0001-add-bdb48-include-dir.patch (rev 0) +++ csw/mgar/pkg/cpan/DB_File/trunk/files/0001-add-bdb48-include-dir.patch 2010-09-13 13:54:12 UTC (rev 10954) @@ -0,0 +1,25 @@ +From 6d697175848d0c15f2d451307a24df68babd13af Mon Sep 17 00:00:00 2001 +From: Peter Bonivart +Date: Mon, 13 Sep 2010 15:16:37 +0200 +Subject: [PATCH] add-bdb48-include-dir + +--- + Makefile.PL | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/Makefile.PL b/Makefile.PL +index a586a04..6cb8fbd 100644 +--- a/Makefile.PL ++++ b/Makefile.PL +@@ -44,7 +44,7 @@ my $WALL = '' ; + WriteMakefile( + NAME => 'DB_File', + LIBS => ["-L${LIB_DIR} $LIBS"], +- INC => "-I$INC_DIR", ++ INC => "-I$INC_DIR -I/opt/csw/bdb48/include", + VERSION_FROM => 'DB_File.pm', + XS_VERSION => eval MM->parse_version('DB_File.pm'), + XSPROTOARG => '-noprototypes', +-- +1.7.1 + Added: csw/mgar/pkg/cpan/DB_File/trunk/files/COPYING =================================================================== --- csw/mgar/pkg/cpan/DB_File/trunk/files/COPYING (rev 0) +++ csw/mgar/pkg/cpan/DB_File/trunk/files/COPYING 2010-09-13 13:54:12 UTC (rev 10954) @@ -0,0 +1,3 @@ + Copyright (c) 1995-2009 Paul Marquess. All rights reserved. This + program is free software; you can redistribute it and/or modify + it under the same terms as Perl itself. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From wahwah at users.sourceforge.net Mon Sep 13 16:05:15 2010 From: wahwah at users.sourceforge.net (wahwah at users.sourceforge.net) Date: Mon, 13 Sep 2010 14:05:15 +0000 Subject: [csw-devel] SF.net SVN: gar:[10955] csw/mgar/gar/v2/lib/python Message-ID: Revision: 10955 http://gar.svn.sourceforge.net/gar/?rev=10955&view=rev Author: wahwah Date: 2010-09-13 14:05:15 +0000 (Mon, 13 Sep 2010) Log Message: ----------- mGAR v2: Added error tags and overrides to the HTML report. Modified Paths: -------------- csw/mgar/gar/v2/lib/python/pkg-review-template.html csw/mgar/gar/v2/lib/python/pkgdb.py Modified: csw/mgar/gar/v2/lib/python/pkg-review-template.html =================================================================== --- csw/mgar/gar/v2/lib/python/pkg-review-template.html 2010-09-13 13:54:12 UTC (rev 10954) +++ csw/mgar/gar/v2/lib/python/pkg-review-template.html 2010-09-13 14:05:15 UTC (rev 10955) @@ -50,6 +50,18 @@ margin: 0px; padding: 2px; } +ul.error_tags li { + list-style: none; + background-color: #FDD; + padding: 0px; + margin: 0px; +} +ul.overrides li { + list-style: none; + background-color: #FFD; + padding: 0px; + margin: 0px; +} @@ -75,6 +87,8 @@