Skip to content

Commit 2e0b899

Browse files
committed
Quick and dirty fix for make dist
1 parent eddff51 commit 2e0b899

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

contrib/mod_auth_gssapi.spec

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
Name: mod_auth_gssapi
2+
Version: 1.0.0
3+
Release: 1%{?dist}
4+
Summary: A GSSAPI Authentication module for Apache
5+
6+
Group: System Environment/Daemons
7+
License: MIT
8+
URL: https://github.com/modauthgssapi/mod_auth_gssapi
9+
Source0: https://github.com/modauthgssapi/%{name}/releases/download/v%{version}/%name-%{version}.tar.gz
10+
11+
BuildRequires: httpd-devel, krb5-devel
12+
Requires: httpd-mmn = %{_httpd_mmn}
13+
Requires: krb5-libs >= 1.11.5
14+
15+
%description
16+
The modauht_gssapi module is an authentication service that implements the
17+
SPNEGO based HTTP Authentication protocol defined in RFC4559.
18+
19+
%prep
20+
%setup -q
21+
22+
23+
%build
24+
export APXS=%{_httpd_apxs}
25+
%configure
26+
make %{?_smp_mflags}
27+
28+
29+
%install
30+
make install DESTDIR=%{buildroot}%{_httpd_moddir}
31+
install -m 755 .libs/%{name}.so %{buildroot}%{_httpd_moddir}
32+
33+
# Apache configuration for the module
34+
echo "LoadModule auth_gssapi_module modules/mod_auth_gssapi.so" > 10-auth_gssapi.conf
35+
mkdir -p %{buildroot}%{_httpd_modconfdir}
36+
install -m 644 10-auth_gssapi.conf %{buildroot}%{_httpd_modconfdir}
37+
38+
%files
39+
%doc
40+
%defattr(-,root,root)
41+
%doc README COPYING
42+
%config(noreplace) %{_httpd_modconfdir}/10-auth_gssapi.conf
43+
%{_httpd_moddir}/mod_auth_gssapi.so
44+
45+
%changelog
46+
* Tue Jun 24 2014 Simo Sorce <simo@redhat.com> 1.0.0-1
47+
- First spec

src/Makefile.am

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
EXTRA_DIST = mod_auth_gssapi.c sessions.c crypto.c mod_auth_gssapi.h sessions.h crypto.h
2+
13
all-local:
24
@APXS@ -c ${LIBS} ${CFLAGS} mod_auth_gssapi.c sessions.c crypto.c
35

0 commit comments

Comments
 (0)