packages: proftpd-mod_gss/mod_gss.conf (NEW), proftpd-mod_gss/proftpd-mod_g...

baggins baggins at pld-linux.org
Thu Sep 16 18:20:59 CEST 2010


Author: baggins                      Date: Thu Sep 16 16:20:59 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- initial revision

---- Files affected:
packages/proftpd-mod_gss:
   mod_gss.conf (NONE -> 1.1)  (NEW), proftpd-mod_gss-heimdal.patch (NONE -> 1.1)  (NEW), proftpd-mod_gss.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/proftpd-mod_gss/mod_gss.conf
diff -u /dev/null packages/proftpd-mod_gss/mod_gss.conf:1.1
--- /dev/null	Thu Sep 16 18:20:59 2010
+++ packages/proftpd-mod_gss/mod_gss.conf	Thu Sep 16 18:20:54 2010
@@ -0,0 +1,14 @@
+LoadModule mod_gss.c
+
+<IfModule mod_gss.c>
+	# You MUST uncomment this directive if you set GSSEngine to on
+#	CommandBufferSize	1023
+
+#	GSSEngine on
+#	# Require GSS on both control and data channels
+#	# GSSRequired on
+#	GSSkeytab /etc/ftpd/proftpd.keytab
+#	GSSLog /var/log/gssftp.log
+</IfModule>
+
+LoadModule mod_auth_gss.c

================================================================
Index: packages/proftpd-mod_gss/proftpd-mod_gss-heimdal.patch
diff -u /dev/null packages/proftpd-mod_gss/proftpd-mod_gss-heimdal.patch:1.1
--- /dev/null	Thu Sep 16 18:20:59 2010
+++ packages/proftpd-mod_gss/proftpd-mod_gss-heimdal.patch	Thu Sep 16 18:20:54 2010
@@ -0,0 +1,29 @@
+--- mod_gss-1.3.3/mod_auth_gss.c.in~	2009-07-07 20:54:07.000000000 +0200
++++ mod_gss-1.3.3/mod_auth_gss.c.in	2010-09-16 17:45:01.604204673 +0200
+@@ -145,7 +145,7 @@
+ 
+     /* compare authnid vs authzid UPENN example */
+ #ifdef HAVE_HEIMDAL_KERBEROS
+-    kerr = krb5_principal2principalname(pn,p);
++    kerr = _krb5_principal2principalname(pn,p);
+     if (kerr) { 
+         gss_log("GSSAPI-AUTH Could not parse krb5 name (%s).",error_message(kerr));
+         krb5_free_context(kc);
+@@ -213,7 +213,7 @@
+ 
+     /* compare authnid vs authzid UPENN example */
+ #ifdef HAVE_HEIMDAL_KERBEROS
+-    kerr = krb5_principal2principalname(pn,p);
++    kerr = _krb5_principal2principalname(pn,p);
+     if (kerr) {
+         gss_log("GSSAPI-UPENN Could not parse krb5 name (%s).",error_message(kerr));
+         krb5_free_context(kc);
+@@ -284,7 +284,7 @@
+ 
+     /* compare authnid vs authzid UPENN example */
+ #ifdef HAVE_HEIMDAL_KERBEROS
+-    kerr = krb5_principal2principalname(pn,p);
++    kerr = _krb5_principal2principalname(pn,p);
+     if (kerr) {
+         gss_log("GSSAPI-UPENN Could not parse krb5 name (%s).",error_message(kerr));
+         krb5_free_context(kc);

================================================================
Index: packages/proftpd-mod_gss/proftpd-mod_gss.spec
diff -u /dev/null packages/proftpd-mod_gss/proftpd-mod_gss.spec:1.1
--- /dev/null	Thu Sep 16 18:20:59 2010
+++ packages/proftpd-mod_gss/proftpd-mod_gss.spec	Thu Sep 16 18:20:54 2010
@@ -0,0 +1,88 @@
+# $Revision$, $Date$
+%define		mod_name	mod_gss
+Summary:	mod_gss module for proftpd
+Summary(pl.UTF-8):	Moduł mod_gss dla proftpd
+Name:		proftpd-%{mod_name}
+Version:	1.3.3
+Release:	0.1
+License:	GPL v2+
+Group:		Daemons
+Source0:	http://dl.sourceforge.net/gssmod/%{mod_name}-%{version}.tar.gz
+# Source0-md5:	dc44e44193f943387763bd7fb363a0e9
+Source1:	%{mod_name}.conf
+Patch0:		%{name}-heimdal.patch
+URL:		http://gssmod.sourceforge.net/
+BuildRequires:	heimdal-devel
+BuildRequires:	proftpd-devel >= 1:1.3.1
+BuildRequires:	rpmbuild(macros) >= 1.268
+Requires(post,postun):	grep
+Requires:	proftpd >= 1:1.3.0
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		_sysconfdir		/etc/ftpd
+%define		_libexecdir		%{_prefix}/%{_lib}/proftpd
+
+%description
+This module provides support for the GSSAPI security mechanism,
+as described in RFC2228.
+
+%prep
+%setup -q -n %{mod_name}-%{version}
+%patch0 -p1
+
+%build
+%configure \
+	--enable-heimdal
+
+%{__cc} %{rpmcflags} -fPIC -I/usr/include/proftpd \
+	-shared -lgssapi -lkrb5 -lcom_err -lasn1 -lroken \
+	%{rpmldflags} \
+	mod_auth_gss.c -o mod_auth_gss.so
+
+%{__cc} %{rpmcflags} -fPIC -I/usr/include/proftpd \
+	-shared -lgssapi -lkrb5 -lcom_err -lasn1 -lroken \
+	%{rpmldflags} \
+	mod_gss.c -o mod_gss.so
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_libexecdir},%{_sysconfdir}/conf.d}
+
+install mod_auth_gss.so $RPM_BUILD_ROOT%{_libexecdir}
+install mod_gss.so $RPM_BUILD_ROOT%{_libexecdir}
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/%{mod_name}.conf
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+if grep -iEqs "^ServerType[[:space:]]+inetd" %{_sysconfdir}/proftpd.conf; then
+	%service -q rc-inetd reload
+elif grep -iEqs "^ServerType[[:space:]]+standalone" %{_sysconfdir}/proftpd.conf; then
+	%service -q proftpd restart
+fi
+
+%postun
+if [ "$1" = "0" ]; then
+	if grep -iEqs "^ServerType[[:space:]]+inetd" %{_sysconfdir}/proftpd.conf; then
+		%service -q rc-inetd reload
+	elif grep -iEqs "^ServerType[[:space:]]+standalone" %{_sysconfdir}/proftpd.conf; then
+		%service -q proftpd restart
+	fi
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc README.* mod_gss.html rfc*.txt
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/%{mod_name}.conf
+%attr(755,root,root) %{_libexecdir}/mod_*gss.so
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2010/09/16 16:20:54  baggins
+- initial revision
+
================================================================


More information about the pld-cvs-commit mailing list