freebsd-ports/www/mod_authnz_crowd/files/patch-src__Makefile.am
Olli Hauer 5f75b3782f - upgrade version 2.2.2
PR:		ports/185775
Submitted by:	Vivek Khera <vivek@khera.org> (maintainer)
2014-01-14 20:31:13 +00:00

29 lines
1.5 KiB
Text

--- src/Makefile.am-dist 2013-09-25 02:41:53.000000000 -0400
+++ src/Makefile.am 2014-01-14 11:20:54.178664699 -0500
@@ -3,9 +3,9 @@
lib_LTLIBRARIES = mod_authnz_crowd.la
mod_authnz_crowd_la_SOURCES = mod_authnz_crowd.c mod_authnz_crowd.h crowd_client.c crowd_client.h cache.c cache.h util.c util.h
mod_authnz_crowd_la_LDFLAGS = -module -lcurl `xml2-config --libs`
-AM_CFLAGS = `apr-1-config --cflags`
+AM_CFLAGS = `apr-1-config --cflags | sed -e 's/O[[:digit:]]/O1/'`
AM_CPPFLAGS = -I@APACHE_INCLUDE_DIR@ `apr-1-config --cppflags --includes` `xml2-config --cflags`
-CFLAGS=-g -Wmissing-prototypes -O1 # -O2 causes mysterious crashes
+#CFLAGS=-g -Wmissing-prototypes -O1 # -O2 causes mysterious crashes
TESTS = test.py
TESTS_ENVIRONMENT = APACHE_BIN_DIR=@APACHE_BIN_DIR@
@@ -18,11 +18,6 @@
APACHE_MODULES_DIR=@APACHE_MODULES_DIR@ CURDIR=$(CURDIR) envsubst < httpd/conf/httpd_svn.conf.in > httpd/conf/httpd_svn.conf
install:
- cp @HTTPD_CONF@ /tmp/httpd.conf.bak
- @APXS@ -i -a mod_authnz_crowd.la
- @APXS@ -e -a -n dav_svn modules/mod_dav_svn.so
- @APXS@ -i -a svn/mod_authz_svn_crowd.la
- if [ -e /etc/apache2/mods-enabled/dav.load ]; then mv /etc/apache2/mods-enabled/dav.load /etc/apache2/mods-enabled/1dav.load; fi
- if [ -e /etc/apache2/mods-enabled/dav_svn.load ]; then mv /etc/apache2/mods-enabled/dav_svn.load /etc/apache2/mods-enabled/1dav_svn.load; fi
- @APACHECTL@ configtest || mv /tmp/httpd.conf.bak @HTTPD_CONF@
- @APACHECTL@ graceful
+ @APXS@ -i mod_authnz_crowd.la
+ @APXS@ -e -n dav_svn modules/mod_dav_svn.so
+ @APXS@ -i svn/mod_authz_svn_crowd.la