Port to apache 2.4
Mattias Ellert
10 years ago
0 | gridsite (1.7.21-2) unstable; urgency=low | |
1 | ||
2 | * Port to apache 2.4 (Closes: #666832, #669855) | |
3 | * Correct package description (Closes: #698519) | |
4 | ||
5 | -- Mattias Ellert <mattias.ellert@fysast.uu.se> Fri, 31 May 2013 13:59:38 +0200 | |
6 | ||
0 | 7 | gridsite (1.7.21-1) unstable; urgency=low |
1 | 8 | |
2 | 9 | * Latest upstream release |
1 | 1 | Section: net |
2 | 2 | Priority: optional |
3 | 3 | Maintainer: Mattias Ellert <mattias.ellert@fysast.uu.se> |
4 | Build-Depends: debhelper, apache2-threaded-dev, libxml2-dev, libcurl4-openssl-dev, libssl-dev, doxygen, sharutils | |
5 | Standards-Version: 3.9.3 | |
4 | Build-Depends: debhelper, apache2-dev (>= 2.4), libxml2-dev, libcurl4-openssl-dev, libssl-dev, doxygen, sharutils, dh-apache2 | |
5 | Standards-Version: 3.9.4 | |
6 | 6 | Homepage: http://www.gridsite.org/ |
7 | 7 | Vcs-Svn: http://svn.nordugrid.org/repos/packaging/debian/gridsite |
8 | 8 | Vcs-Browser: http://svn.nordugrid.org/trac/packaging/browser/debian/gridsite |
9 | DM-Upload-Allowed: yes | |
10 | 9 | |
11 | 10 | Package: gridsite |
12 | 11 | Architecture: any |
13 | Depends: libgridsite1.7 (= ${binary:Version}), apache2.2-bin, ${shlibs:Depends}, ${misc:Depends} | |
14 | Recommends: apache2 | httpd | |
12 | Depends: libgridsite1.7 (= ${binary:Version}), apache2-bin (>= 2.4), ${shlibs:Depends}, ${misc:Depends} | |
13 | Recommends: ${misc:Recommends} | |
15 | 14 | Description: Grid Security for the Web, Web platforms for Grids |
16 | 15 | GridSite was originally a web application developed for managing and |
17 | 16 | formatting the content of the http://www.gridpp.ac.uk/ website. Over |
60 | 59 | web server and a toolkit for Grid credentials, GACL access control |
61 | 60 | lists and HTTP(S) protocol operations. |
62 | 61 | . |
63 | This package, gridsite-setuid, contains the setuid gsexec program. | |
62 | This package, gridsite-gsexec, contains the setuid gsexec program. | |
64 | 63 | |
65 | 64 | Package: libgridsite-dev |
66 | 65 | Architecture: any |
0 | mod src/mod_gridsite.so | |
1 | mod debian/gridsite.load | |
2 | conf debian/gridsite.conf | |
3 | site debian/gridsite.site |
0 | debian/tmp/usr/lib/apache2/modules/mod_gridsite.so | |
1 | 0 | debian/tmp/usr/lib/gridsite/cgi-bin/gridsite-copy.cgi |
2 | 1 | debian/tmp/usr/lib/gridsite/cgi-bin/gridsite-storage.cgi |
3 | 2 | debian/tmp/usr/lib/gridsite/cgi-bin/real-gridsite-admin.cgi |
5 | 4 | debian/tmp/etc/grid-security/dn-lists |
6 | 5 | debian/tmp/var/cache/mod_gridsite |
7 | 6 | debian/tmp/usr/share/man/man8/mod_gridsite.8* |
8 | debian/tmp/etc/apache2/mods-available/zgridsite.conf | |
9 | debian/tmp/etc/apache2/mods-available/zgridsite.load | |
10 | debian/tmp/etc/apache2/sites-available/gridsite | |
11 | 7 | debian/tmp/var/lib/gridsite |
2 | 2 | gridsite: non-etc-file-marked-as-conffile *var/lib/gridsite/.gacl |
3 | 3 | gridsite: non-etc-file-marked-as-conffile *var/lib/gridsite/gridsitefoot.txt |
4 | 4 | gridsite: non-etc-file-marked-as-conffile *var/lib/gridsite/gridsitehead.txt |
5 | ||
6 | # This module depends on the ssl module which is in apache2-bin | |
7 | gridsite: apache2-module-depends-on-real-apache2-package apache2-bin | |
8 | gridsite: web-application-depends-on-apache2-data-package apache2-bin | |
9 | ||
10 | # This package contains both the module and the application | |
11 | gridsite: non-standard-apache2-module-package-name gridsite != libapache2-mod-gridsite |
0 | #!/bin/bash | |
1 | ||
2 | set -e | |
3 | ||
4 | #DEBHELPER# | |
5 | ||
6 | if [ "$1" != "remove" -a "$1" != "purge" ]; then | |
7 | exit 0 | |
8 | fi | |
9 | ||
10 | if [ -e /etc/apache2/apache2.conf ]; then | |
11 | a2dissite gridsite || true | |
12 | a2dismod zgridsite || true | |
13 | fi | |
14 | ||
15 | exit 0 |
0 | diff -rupN org.gridsite.core.ORIG/src/mod_gridsite.c org.gridsite.core/src/mod_gridsite.c | |
1 | --- org.gridsite.core.ORIG/src/mod_gridsite.c 2012-09-13 18:21:12.000000000 +0200 | |
2 | +++ org.gridsite.core/src/mod_gridsite.c 2012-09-13 18:21:24.000000000 +0200 | |
3 | @@ -3237,12 +3237,14 @@ static int mod_gridsite_perm_handler(req | |
4 | ||
5 | apr_table_setn(r->notes, "GRST_PERM", apr_psprintf(r->pool, "%d", perm)); | |
6 | ||
7 | - cred = user->firstcred; | |
8 | - if ((cred != NULL) && (strncmp(cred->auri, "dn:", 3) == 0)) | |
9 | - { | |
10 | - apr_table_setn(r->notes, "GRST_CRED_AURI_0", | |
11 | - apr_psprintf(r->pool, "%s", cred->auri)); | |
12 | - } | |
13 | + if (user != NULL) { | |
14 | + cred = user->firstcred; | |
15 | + if ((cred != NULL) && (strncmp(cred->auri, "dn:", 3) == 0)) | |
16 | + { | |
17 | + apr_table_setn(r->notes, "GRST_CRED_AURI_0", | |
18 | + apr_psprintf(r->pool, "%s", cred->auri)); | |
19 | + } | |
20 | + } | |
21 | ||
22 | ||
23 | if (((mod_gridsite_dir_cfg *) cfg)->envs) |
0 | diff -ur org.gridsite.core.orig/src/mod_gridsite.c org.gridsite.core/src/mod_gridsite.c | |
1 | --- org.gridsite.core.orig/src/mod_gridsite.c 2012-03-22 11:04:05.000000000 +0100 | |
2 | +++ org.gridsite.core/src/mod_gridsite.c 2013-05-31 14:43:17.410053306 +0200 | |
3 | @@ -2075,7 +2075,7 @@ | |
4 | ||
5 | if (strcasecmp(a->cmd->name, "GridSiteUserGroup") == 0) | |
6 | { | |
7 | - if (!(unixd_config.suexec_enabled)) | |
8 | + if (!(ap_unixd_config.suexec_enabled)) | |
9 | return "Using GridSiteUserGroup will " | |
10 | "require rebuilding Apache with suexec support!"; | |
11 | ||
12 | @@ -3054,7 +3054,7 @@ | |
13 | r->per_dir_config, REMOTE_DOUBLE_REV, NULL); | |
14 | if ((remotehost != NULL) && (*remotehost != '\0')) | |
15 | { | |
16 | - cred = GRSTgaclCredCreate("ip:", r->connection->remote_ip); | |
17 | + cred = GRSTgaclCredCreate("ip:", r->connection->client_ip); | |
18 | GRSTgaclCredSetNotAfter(cred, GRST_MAX_TIME_T); | |
19 | ||
20 | if (user == NULL) user = GRSTgaclUserNew(cred); | |
21 | @@ -3576,7 +3576,7 @@ | |
22 | * Log information about CRL | |
23 | * (A little bit complicated because of ASN.1 and BIOs...) | |
24 | */ | |
25 | - if (s->loglevel >= APLOG_DEBUG) { | |
26 | + if (s->log.level >= APLOG_DEBUG) { | |
27 | char buff[512]; /* should be plenty */ | |
28 | BIO *bio = BIO_new(BIO_s_mem()); | |
29 | ||
30 | @@ -3673,7 +3673,7 @@ | |
31 | ASN1_INTEGER *sn = revoked->serialNumber; | |
32 | ||
33 | if (!ASN1_INTEGER_cmp(sn, X509_get_serialNumber(cert))) { | |
34 | - if (s->loglevel >= APLOG_DEBUG) { | |
35 | + if (s->log.level >= APLOG_DEBUG) { | |
36 | char *cp = X509_NAME_oneline(issuer, NULL, 0); | |
37 | char *serial = i2s_ASN1_INTEGER(NULL,sn); | |
38 | ||
39 | @@ -3724,7 +3724,7 @@ | |
40 | /* | |
41 | * Log verification information | |
42 | */ | |
43 | - if (s->loglevel >= APLOG_DEBUG) | |
44 | + if (s->log.level >= APLOG_DEBUG) | |
45 | { | |
46 | X509 *cert = X509_STORE_CTX_get_current_cert(ctx); | |
47 | char *sname = X509_NAME_oneline(X509_get_subject_name(cert), NULL, 0); | |
48 | @@ -4407,7 +4407,7 @@ | |
49 | SSL_CTX_set_verify(ctx, ctx->verify_mode, | |
50 | GRST_callback_SSLVerify_wrapper); | |
51 | ||
52 | - if (main_server->loglevel >= APLOG_DEBUG) | |
53 | + if (main_server->log.level >= APLOG_DEBUG) | |
54 | ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, main_server, | |
55 | "Set mod_ssl verify callbacks to GridSite wrappers"); | |
56 | } | |
57 | @@ -4417,7 +4417,7 @@ | |
58 | ||
59 | path = ap_server_root_relative(pPool, sessionsdir); | |
60 | apr_dir_make_recursive(path, APR_UREAD | APR_UWRITE | APR_UEXECUTE, pPool); | |
61 | - chown(path, unixd_config.user_id, unixd_config.group_id); | |
62 | + chown(path, ap_unixd_config.user_id, ap_unixd_config.group_id); | |
63 | ||
64 | return OK; | |
65 | } | |
66 | @@ -4433,7 +4433,7 @@ | |
67 | vasprintf(&mesg, fmt, ap); | |
68 | va_end(ap); | |
69 | ||
70 | - ap_log_error(file, line, level, | |
71 | + ap_log_error(file, line, 0, level, | |
72 | 0, mod_gridsite_log_func_server, "%s", mesg); | |
73 | ||
74 | free(mesg); |
0 | 0 | cgi-bin-location.patch |
1 | 1 | gridsite-ldflags.patch |
2 | gridsite-httpd24.patch | |
3 | gridsite-cred-segfault.patch |
69 | 69 | cd src && \ |
70 | 70 | $(MAKE) install prefix=$(INSTALLDIR)$(_prefix) |
71 | 71 | |
72 | mv $(INSTALLDIR)$(_libdir)/httpd $(INSTALLDIR)$(_libdir)/apache2 | |
72 | # Let dh_apache2 handle module installation | |
73 | rm -rf mv $(INSTALLDIR)$(_libdir)/httpd | |
73 | 74 | |
74 | 75 | # Let debhelper do the compression |
75 | 76 | gunzip $(INSTALLDIR)$(_mandir)/man*/* |
92 | 93 | |
93 | 94 | mkdir -p $(INSTALLDIR)$(_sysconfdir)/grid-security/dn-lists |
94 | 95 | mkdir -p $(INSTALLDIR)$(_localstatedir)/cache/mod_gridsite |
95 | ||
96 | # Copy in apache configuration, we must name it zgridsite.conf | |
97 | # so it is loaded after mod_ssl in ssl.conf | |
98 | mkdir -p $(INSTALLDIR)$(_sysconfdir)/apache2/mods-available | |
99 | install -m 0644 debian/gridsite.conf \ | |
100 | $(INSTALLDIR)$(_sysconfdir)/apache2/mods-available/zgridsite.conf | |
101 | install -m 0644 debian/gridsite.load \ | |
102 | $(INSTALLDIR)$(_sysconfdir)/apache2/mods-available/zgridsite.load | |
103 | mkdir -p $(INSTALLDIR)$(_sysconfdir)/apache2/sites-available | |
104 | install -m 0644 debian/gridsite.site \ | |
105 | $(INSTALLDIR)$(_sysconfdir)/apache2/sites-available/gridsite | |
106 | 96 | |
107 | 97 | mkdir -p $(INSTALLDIR)$(_datadir)/apache2/icons |
108 | 98 | uudecode -o $(INSTALLDIR)$(_datadir)/apache2/icons/gridsitelogo.png \ |
138 | 128 | dh_installdocs -a |
139 | 129 | dh_installchangelogs -a |
140 | 130 | dh_install -a --fail-missing |
131 | dh_apache2 -a | |
141 | 132 | dh_installman -a |
142 | 133 | dh_lintian -a |
143 | 134 | dh_link -a |