[csw-devel] SF.net SVN: gar:[13186] csw/mgar/pkg

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Fri Feb 4 12:46:53 CET 2011


Revision: 13186
          http://gar.svn.sourceforge.net/gar/?rev=13186&view=rev
Author:   dmichelsen
Date:     2011-02-04 11:46:53 +0000 (Fri, 04 Feb 2011)

Log Message:
-----------
mod_auth_kerb: Initial commit

Added Paths:
-----------
    csw/mgar/pkg/mod_auth_kerb/
    csw/mgar/pkg/mod_auth_kerb/Makefile
    csw/mgar/pkg/mod_auth_kerb/branches/
    csw/mgar/pkg/mod_auth_kerb/tags/
    csw/mgar/pkg/mod_auth_kerb/trunk/
    csw/mgar/pkg/mod_auth_kerb/trunk/Makefile
    csw/mgar/pkg/mod_auth_kerb/trunk/checksums
    csw/mgar/pkg/mod_auth_kerb/trunk/files/
    csw/mgar/pkg/mod_auth_kerb/trunk/files/0001-Fix-install-destination.patch
    csw/mgar/pkg/mod_auth_kerb/trunk/files/CSWap2modauthkerb.postinstall
    csw/mgar/pkg/mod_auth_kerb/trunk/files/CSWap2modauthkerb.preremove

Copied: csw/mgar/pkg/mod_auth_kerb/Makefile (from rev 13185, csw/mgar/pkg/template/Makefile)
===================================================================
--- csw/mgar/pkg/mod_auth_kerb/Makefile	                        (rev 0)
+++ csw/mgar/pkg/mod_auth_kerb/Makefile	2011-02-04 11:46:53 UTC (rev 13186)
@@ -0,0 +1,15 @@
+# vim: ft=make ts=4 sw=4 noet
+
+default:
+	@echo "You are in the pkg/ directory."
+
+%:
+	$(MAKE) -C trunk $* 
+
+paranoid-%:
+	$(MAKE) -C trunk $* || exit 2 
+
+export BUILDLOG ?= $(shell pwd)/buildlog.txt
+
+report-%:
+	$(MAKE) -C trunk $* || echo "	*** make $* in $$i failed ***" >> $(BUILDLOG) 


Property changes on: csw/mgar/pkg/mod_auth_kerb/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/mod_auth_kerb/trunk/Makefile
===================================================================
--- csw/mgar/pkg/mod_auth_kerb/trunk/Makefile	                        (rev 0)
+++ csw/mgar/pkg/mod_auth_kerb/trunk/Makefile	2011-02-04 11:46:53 UTC (rev 13186)
@@ -0,0 +1,55 @@
+NAME = mod_auth_kerb
+VERSION = 5.4
+CATEGORIES = server
+
+DESCRIPTION = Apache Kerberos authentication module
+define BLURB
+  This is the Apache RADIUS authentication module. It allows any Apache web-server
+  to become a RADIUS client for authentication and accounting requests. You will,
+  however, need to supply your own RADIUS server to perform the actual authentication.
+endef
+
+SF_PROJ = modauthkerb
+MASTER_SITES = $(SF_MIRROR)
+DISTFILES  = $(NAME)-$(VERSION).tar.gz
+DISTFILES += CSWap2modauthkerb.postinstall
+DISTFILES += CSWap2modauthkerb.preremove
+
+PATCHFILES += 0001-Fix-install-destination.patch
+
+UFILES_REGEX = $(NAME)-(\d+(?:\.\d+)*).tar.gz
+
+VENDOR_URL = http://modauthkerb.sourceforge.net/
+LICENSE = LICENSE
+
+PACKAGES = CSWap2modauthkerb
+CATALOGNAME = ap2_mod_auth_kerb
+RUNTIME_DEP_PKGS_CSWap2modauthkerb += CSWkrb5lib
+RUNTIME_DEP_PKGS_CSWap2modauthkerb += CSWapache2
+CHECKPKG_OVERRIDES_CSWap2modauthkerb += surplus-dependency|CSWapache2
+
+# That path is almost ok
+CHECKPKG_OVERRIDES_CSWap2modauthkerb += bad-rpath-entry|/opt/csw/lib/|opt/csw/apache2/libexec/mod_auth_kerb.so
+
+# Apache paths
+AP2_ROOT      = $(prefix)/apache2
+AP2_LIBEXEC   = $(DESTDIR)$(AP2_ROOT)/libexec
+
+CONFIGURE_ARGS += $(DIRPATHS)
+CONFIGURE_ARGS += --without-krb4
+CONFIGURE_ARGS += --with-krb5=$(prefix)
+CONFIGURE_ARGS += --with-apache=$(prefix)/apache2
+
+# The package does not provide a check
+TEST_SCRIPTS =
+
+INSTALL_OVERRIDE_VARS = AP2_LIBEXEC
+INSTALL_OVERRIDE_VAR_AP2_LIBEXEC = $(AP2_LIBEXEC)
+
+include gar/category.mk
+
+pre-install-modulated:
+	ginstall -d $(AP2_LIBEXEC)
+	ginstall -d $(DESTDIR)$(docdir)/$(CATALOGNAME)
+	ginstall $(WORKSRC)/README $(WORKSRC)/INSTALL $(DESTDIR)$(docdir)/$(CATALOGNAME)
+	@$(MAKECOOKIE)


Property changes on: csw/mgar/pkg/mod_auth_kerb/trunk/Makefile
___________________________________________________________________
Added: svn:keywords
   + Id

Added: csw/mgar/pkg/mod_auth_kerb/trunk/checksums
===================================================================
--- csw/mgar/pkg/mod_auth_kerb/trunk/checksums	                        (rev 0)
+++ csw/mgar/pkg/mod_auth_kerb/trunk/checksums	2011-02-04 11:46:53 UTC (rev 13186)
@@ -0,0 +1 @@
+642b81763ad3ca81dba359cb952da5e3  mod_auth_kerb-5.4.tar.gz

Added: csw/mgar/pkg/mod_auth_kerb/trunk/files/0001-Fix-install-destination.patch
===================================================================
--- csw/mgar/pkg/mod_auth_kerb/trunk/files/0001-Fix-install-destination.patch	                        (rev 0)
+++ csw/mgar/pkg/mod_auth_kerb/trunk/files/0001-Fix-install-destination.patch	2011-02-04 11:46:53 UTC (rev 13186)
@@ -0,0 +1,37 @@
+From f60dd9c4b6212a72c125f40f4112795ee22c2fe9 Mon Sep 17 00:00:00 2001
+From: Dagobert Michelsen <dam at opencsw.org>
+Date: Fri, 4 Feb 2011 12:25:23 +0100
+Subject: [PATCH] Fix install destination
+
+---
+ Makefile.in |    2 +-
+ apxs.sh     |    2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/Makefile.in b/Makefile.in
+index 36f6046..6c1cb62 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -16,7 +16,7 @@ src/mod_auth_kerb.so: src/mod_auth_kerb.c $(SPNEGO_SRCS)
+ 	./apxs.sh "${CPPFLAGS}" "${LDFLAGS}" "${SPNEGO_SRCS}" "${APXS}" "-c" "src/mod_auth_kerb.c"
+ 
+ install:
+-	./apxs.sh "${CPPFLAGS}" "${LDFLAGS}" "${SPNEGO_SRCS}" "${APXS}" "-c -i" "src/mod_auth_kerb.c"
++	./apxs.sh "${CPPFLAGS}" "${LDFLAGS}" "" "${APXS}" "-i -S LIBEXECDIR=$(AP2_LIBEXEC)" "src/mod_auth_kerb.la"
+ 
+ clean:
+ 	for i in . src spnegokrb5; do \
+diff --git a/apxs.sh b/apxs.sh
+index cdb3e65..dfe893a 100755
+--- a/apxs.sh
++++ b/apxs.sh
+@@ -1,5 +1,5 @@
+ #!/bin/sh
+ cppflags=`[ -n "$1" ] && echo $1 | sed -e 's/\([^ ]*\)/-Wc,\1/g'`
+ ldflags=`[ -n "$2"  ] && echo $2 | sed -e 's/\([^ ]*\)/-Wl,\1/g'`
+-ret=eval "$4" $5 $cppflags $ldflags src/mod_auth_kerb.c $3
++ret=eval "$4" $5 $cppflags $ldflags $6 $3
+ exit $ret
+-- 
+1.7.3.2
+

Added: csw/mgar/pkg/mod_auth_kerb/trunk/files/CSWap2modauthkerb.postinstall
===================================================================
--- csw/mgar/pkg/mod_auth_kerb/trunk/files/CSWap2modauthkerb.postinstall	                        (rev 0)
+++ csw/mgar/pkg/mod_auth_kerb/trunk/files/CSWap2modauthkerb.postinstall	2011-02-04 11:46:53 UTC (rev 13186)
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+CSW_PREFIX=${PKG_INSTALL_ROOT}/opt/csw
+AP2_PREFIX=$CSW_PREFIX/apache2
+AP2_BINDIR=$AP2_PREFIX/sbin
+AP2_LIBEXEC=$AP2_PREFIX/libexec
+AP2_CONFDIR=$AP2_PREFIX/etc
+AP2_EXTRADIR=$AP2_CONFDIR/extra
+AP2_CONFIG=$AP2_CONFDIR/httpd.conf
+
+# Enable the auth_kerb modules
+PKG_INSTALL_ROOT=${PKG_INSTALL_ROOT:-'/'}
+chroot $PKG_INSTALL_ROOT \
+    $AP2_BINDIR/apxs -S LIBEXECDIR=$AP2_LIBEXEC -e -a -n \
+    auth_kerb mod_auth_kerb.so
+
+# Finito
+cat <<END
+
+NOTICE: mod_auth_kerb is enabled in httpd.conf but the server was not restarted.
+        Please check your configuration and restart apache.
+
+END
+
+exit 0

Added: csw/mgar/pkg/mod_auth_kerb/trunk/files/CSWap2modauthkerb.preremove
===================================================================
--- csw/mgar/pkg/mod_auth_kerb/trunk/files/CSWap2modauthkerb.preremove	                        (rev 0)
+++ csw/mgar/pkg/mod_auth_kerb/trunk/files/CSWap2modauthkerb.preremove	2011-02-04 11:46:53 UTC (rev 13186)
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+CSW_PREFIX=${PKG_INSTALL_ROOT}/opt/csw
+AP2_PREFIX=$CSW_PREFIX/apache2
+AP2_BINDIR=$AP2_PREFIX/sbin
+AP2_LIBEXEC=$AP2_PREFIX/libexec
+AP2_CONFDIR=$AP2_PREFIX/etc
+AP2_EXTRADIR=$AP2_CONFDIR/extra
+AP2_CONFIG=$AP2_CONFDIR/httpd.conf
+
+# Disable the auth_kerb modules
+PKG_INSTALL_ROOT=${PKG_INSTALL_ROOT:-'/'}
+chroot $PKG_INSTALL_ROOT \
+    $AP2_BINDIR/apxs -S LIBEXECDIR=$AP2_LIBEXEC -e -A -n \
+    auth_kerb mod_auth_kerb.so
+
+cat <<END
+
+NOTICE: mod_auth_kerb is disabled in httpd.conf but the server was not restarted.
+        Please check your configuration and restart apache.
+
+END
+
+exit 0


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list