From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Jun 3 16:30:02 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 0425119D for ; Mon, 3 Jun 2013 16:30:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id DDC0F18C6 for ; Mon, 3 Jun 2013 16:30:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r53GU132082637 for ; Mon, 3 Jun 2013 16:30:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r53GU1sR082636; Mon, 3 Jun 2013 16:30:01 GMT (envelope-from gnats) Resent-Date: Mon, 3 Jun 2013 16:30:01 GMT Resent-Message-Id: <201306031630.r53GU1sR082636@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Vivek Khera Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 89E05194 for ; Mon, 3 Jun 2013 16:29:18 +0000 (UTC) (envelope-from vivek@kcilink.com) Received: from yertle.kcilink.com (yertle-comcast.kcilink.com [74.92.149.58]) by mx1.freebsd.org (Postfix) with ESMTP id 2791F18C0 for ; Mon, 3 Jun 2013 16:29:17 +0000 (UTC) Received: from projects.int.kcilink.com (projects.int.kcilink.com [192.168.7.25]) by yertle.kcilink.com (Postfix) with ESMTP id 50BD18A00E for ; Mon, 3 Jun 2013 12:19:40 -0400 (EDT) Received: by projects.int.kcilink.com (Postfix, from userid 120) id 4881C1713A; Mon, 3 Jun 2013 12:19:40 -0400 (EDT) Message-Id: <20130603161940.4881C1713A@projects.int.kcilink.com> Date: Mon, 3 Jun 2013 12:19:40 -0400 (EDT) From: Vivek Khera To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/179263: new port www/mod_authnz_crowd X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Vivek Khera List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Jun 2013 16:30:02 -0000 >Number: 179263 >Category: ports >Synopsis: new port www/mod_authnz_crowd >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Jun 03 16:30:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Vivek Khera >Release: FreeBSD 9.1-RELEASE amd64 >Organization: >Environment: System: FreeBSD projects.int.kcilink.com 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243864: Tue Dec 4 12:09:48 EST 2012 khera@yertle.int.kcilink.com:/usr/obj/u/yertle1/sources/usr9/src/sys/KCI64 amd64 >Description: This is a new port for an Apache 2.2 module to connect the authentication and authorization functionality to an Atlassian Crowd user login manager server. The only thing I'm not sure on how to do with the port is to tell the configure script to link with -L/usr/local/lib. I set LDFLAGS to do this, but the actual build of the code does not require that. I propose the module be in the ports tree as www/mod_authnz_crowd >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # . # ./distinfo # ./pkg-descr # ./scripts # ./scripts/configure # ./Makefile # ./files # ./files/patch-configure.ac # ./files/patch-svn-Makefile.am # ./files/patch-src-Makefile.am # echo c - . mkdir -p . > /dev/null 2>&1 echo x - ./distinfo sed 's/^X//' >./distinfo << 'aec8793adfd5b7c3f00e62ae41a09ac2' XSHA256 (mod_authnz_crowd-2.0.2.tar.gz) = 941edf2aea51528ef85c4f9897561f36178e8143ba717309c133134ec05299ac XSIZE (mod_authnz_crowd-2.0.2.tar.gz) = 25398 aec8793adfd5b7c3f00e62ae41a09ac2 echo x - ./pkg-descr sed 's/^X//' >./pkg-descr << '0e313719ff012ceaf97a028d51caa8f5' XApache 2.2 connector for Atlassian Crowd to provide authentication and Xauthorization support using Basic Auth. X XWWW: https://confluence.atlassian.com/display/CROWD/Integrating+Crowd+with+Apache 0e313719ff012ceaf97a028d51caa8f5 echo c - ./scripts mkdir -p ./scripts > /dev/null 2>&1 echo x - ./scripts/configure sed 's/^X//' >./scripts/configure << '514b015929f5bf4d8ce646ad4f86654b' X#!/bin/sh Xcd ${WRKSRC} Xautoreconf --install 514b015929f5bf4d8ce646ad4f86654b echo x - ./Makefile sed 's/^X//' >./Makefile << '464ef7c6571951809b23e262cbe26e19' X# New ports collection makefile for: mod_authnz_crowd X# Date created: 2013-06-03 X# Whom: Vick Khera X# X# $FreeBSD: $ X# X XPORTNAME= mod_authnz_crowd XPORTVERSION= 2.0.2 XCATEGORIES= www XMASTER_SITES= http://downloads.atlassian.com/software/crowd/downloads/cwdapache/ X XMAINTAINER= vivek@khera.org XCOMMENT= Apache 2.2.x module to use Atlassian Crowd for authentication XLICENSE= AL2 X XLIB_DEPENDS= svn_client:${PORTSDIR}/devel/subversion \ X curl:${PORTSDIR}/ftp/curl X XUSE_AUTOTOOLS= autoconf:env automake:env libtool:env XGNU_CONFIGURE= yes XUSE_GNOME= libxml2 XUSE_APACHE= 22 XMAKE_JOBS_SAFE= yes X XLDFLAGS= -L${PREFIX}/lib X XPLIST_FILES= ${APACHEMODDIR}/mod_authnz_crowd.so \ X ${APACHEMODDIR}/mod_authz_svn_crowd.so X X.include X 464ef7c6571951809b23e262cbe26e19 echo c - ./files mkdir -p ./files > /dev/null 2>&1 echo x - ./files/patch-configure.ac sed 's/^X//' >./files/patch-configure.ac << '8b68467318dabb6dddd2c6c539868a01' X--- configure.ac.orig 2011-03-29 01:51:33.000000000 -0400 X+++ configure.ac 2013-06-03 09:23:24.222715655 -0400 X@@ -1,5 +1,6 @@ X AC_INIT([mod_authnz_crowd], [2.0.2], [support@atlassian.com]) X AM_INIT_AUTOMAKE([-Wall -Werror foreign]) X+AM_PROG_AR X AC_PROG_CC X AC_PROG_LIBTOOL X AC_CONFIG_HEADERS([config.h]) X@@ -12,7 +13,7 @@ X X AC_CHECK_LIB([apr-1], [apr_pool_pre_cleanup_register], [], [AC_MSG_ERROR([apr_pool_pre_cleanup_register was not found in libapr-1])]) X X-AC_CHECK_FILE([/usr/local/apache2/include/httpd.h], [APACHE_INCLUDE_DIR="/usr/local/apache2/include"], [ X+AC_CHECK_FILE([/usr/local/include/apache22/httpd.h], [APACHE_INCLUDE_DIR="/usr/local/include/apache22"], [ X AC_CHECK_FILE([/usr/include/httpd/httpd.h], [APACHE_INCLUDE_DIR="/usr/include/httpd"], [ X AC_CHECK_FILE([/usr/include/apache2/httpd.h], [APACHE_INCLUDE_DIR="/usr/include/apache2"], [ X AC_MSG_ERROR([Could not locate Apache include directory]) X@@ -21,7 +22,7 @@ X ]) X AC_SUBST([APACHE_INCLUDE_DIR]) X X-AC_PATH_PROG([HTTPD], [httpd], , [/usr/local/apache2/bin:/usr/sbin]) X+AC_PATH_PROG([HTTPD], [httpd], , [/usr/local/apache2/bin:/usr/local/sbin]) X APACHE_BIN_DIR=`AS_DIRNAME($HTTPD)` X AC_SUBST([APACHE_BIN_DIR]) X X@@ -32,7 +33,7 @@ X ]) X AC_SUBST([SVN_DIR]) X X-AC_CHECK_FILE([/usr/libexec/apache2/mod_dav.so], [APACHE_MODULES_DIR="/usr/libexec/apache2"], [ X+AC_CHECK_FILE([/usr/local/libexec/apache22/mod_dav.so], [APACHE_MODULES_DIR="/usr/local/libexec/apache22"], [ X AC_CHECK_FILE([/usr/lib64/httpd/modules/mod_dav.so], [APACHE_MODULES_DIR="/usr/lib64/httpd/modules"], [ X AC_CHECK_FILE([/usr/lib/httpd/modules/mod_dav.so], [APACHE_MODULES_DIR="/usr/lib/httpd/modules"], [ X AC_CHECK_FILE([/usr/lib/apache2/modules/mod_dav.so], [APACHE_MODULES_DIR="/usr/lib/apache2/modules"], [ X@@ -43,7 +44,7 @@ X ]) X AC_SUBST([APACHE_MODULES_DIR]) X X-AC_CHECK_FILE([/usr/local/apache2/conf/httpd.conf], [HTTPD_CONF="/usr/local/apache2/conf/httpd.conf"], [ X+AC_CHECK_FILE([/usr/local/etc/apache22/httpd.conf], [HTTPD_CONF="/usr/local/etc/apache22/httpd.conf"], [ X AC_CHECK_FILE([/etc/httpd/conf/httpd.conf], [HTTPD_CONF="/etc/httpd/conf/httpd.conf"], [ X AC_CHECK_FILE([/etc/apache2/httpd.conf], [HTTPD_CONF="/etc/apache2/httpd.conf"], [ X AC_MSG_ERROR([Could not locate Apache configuration file]) X@@ -52,7 +53,7 @@ X ]) X AC_SUBST([HTTPD_CONF]) X X-AC_CHECK_FILE([/usr/local/apache2/bin/apxs], [APXS="/usr/local/apache2/bin/apxs"], [ X+AC_CHECK_FILE([/usr/local/sbin/apxs], [APXS="/usr/local/sbin/apxs"], [ X AC_CHECK_FILE([/usr/sbin/apxs], [APXS="/usr/sbin/apxs"], [ X AC_CHECK_FILE([/usr/bin/apxs2], [APXS="/usr/bin/apxs2"], [ X AC_MSG_ERROR([Could not locate Apache apxs binary]) X@@ -61,7 +62,7 @@ X ]) X AC_SUBST([APXS]) X X-AC_CHECK_FILE([/usr/local/apache2/bin/apachectl], [APACHECTL="/usr/local/apache2/bin/apachectl"], [ X+AC_CHECK_FILE([/usr/local/sbin/apachectl], [APACHECTL="/usr/local/sbin/apachectl"], [ X AC_CHECK_FILE([/usr/sbin/apache2ctl], [APACHECTL="/usr/sbin/apache2ctl"], [ X AC_CHECK_FILE([/usr/sbin/apachectl], [APACHECTL="/usr/sbin/apachectl"], [ X AC_MSG_ERROR([Could not locate Apache apachectl binary]) 8b68467318dabb6dddd2c6c539868a01 echo x - ./files/patch-svn-Makefile.am sed 's/^X//' >./files/patch-svn-Makefile.am << 'a26c8554a15e71ecb0cd9e56fd35aad0' X--- src/svn/Makefile.am.orig 2011-03-29 01:51:32.000000000 -0400 X+++ src/svn/Makefile.am 2013-06-03 09:25:03.596662495 -0400 X@@ -1,6 +1,6 @@ X lib_LTLIBRARIES = mod_authz_svn_crowd.la X mod_authz_svn_crowd_la_SOURCES = mod_authz_svn_crowd.c X mod_authz_svn_crowd_la_LDFLAGS = -module X-AM_CFLAGS = `apr-1-config --cflags` X+AM_CFLAGS = `apr-1-config --cflags | sed -e 's/O[[:digit:]]/O1/'` X AM_CPPFLAGS = -I@APACHE_INCLUDE_DIR@ `apr-1-config --cppflags --includes` -I@SVN_DIR@/include/subversion-1 X-CFLAGS=-g -O1 # -O2 causes mysterious crashes X+#CFLAGS=-g -O1 # -O2 causes mysterious crashes a26c8554a15e71ecb0cd9e56fd35aad0 echo x - ./files/patch-src-Makefile.am sed 's/^X//' >./files/patch-src-Makefile.am << 'a179af6d6b2a19d1f420aa50f81d4270' X--- src/Makefile.am.orig 2011-03-29 01:51:32.000000000 -0400 X+++ src/Makefile.am 2013-06-03 09:24:56.212277928 -0400 X@@ -3,9 +3,9 @@ X lib_LTLIBRARIES = mod_authnz_crowd.la X 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 X mod_authnz_crowd_la_LDFLAGS = -module -lcurl `xml2-config --libs` X-AM_CFLAGS = `apr-1-config --cflags` X+AM_CFLAGS = `apr-1-config --cflags | sed -e 's/O[[:digit:]]/O1/'` X AM_CPPFLAGS = -I@APACHE_INCLUDE_DIR@ `apr-1-config --cppflags --includes` `xml2-config --cflags` X-CFLAGS=-g -O1 # -O2 causes mysterious crashes X+#CFLAGS=-g -O1 # -O2 causes mysterious crashes X TESTS = test.py X TESTS_ENVIRONMENT = APACHE_BIN_DIR=@APACHE_BIN_DIR@ X a179af6d6b2a19d1f420aa50f81d4270 exit >Release-Note: >Audit-Trail: >Unformatted: