diff options
author | rakuco <rakuco@FreeBSD.org> | 2014-06-26 03:55:04 +0800 |
---|---|---|
committer | rakuco <rakuco@FreeBSD.org> | 2014-06-26 03:55:04 +0800 |
commit | dff3585571821171e2de99152ad137255b60a4ae (patch) | |
tree | 3dd8ad16f5977eb91edcab5933f537db2e43f662 /www | |
parent | fcc17763f843db5bcc7d5f626d772bdbf5283a2d (diff) | |
download | freebsd-ports-gnome-dff3585571821171e2de99152ad137255b60a4ae.tar.gz freebsd-ports-gnome-dff3585571821171e2de99152ad137255b60a4ae.tar.zst freebsd-ports-gnome-dff3585571821171e2de99152ad137255b60a4ae.zip |
- Support staging.
- Depend on www/mod_dav_svn so the port can be built as a package.
PR: 190716
Submitted by: Vick Khera <vivek@khera.org> (maintainer)
Diffstat (limited to 'www')
-rw-r--r-- | www/mod_authnz_crowd/Makefile | 21 | ||||
-rw-r--r-- | www/mod_authnz_crowd/files/patch-src__Makefile.am | 6 |
2 files changed, 16 insertions, 11 deletions
diff --git a/www/mod_authnz_crowd/Makefile b/www/mod_authnz_crowd/Makefile index dd3978981a8e..dbf899424cb5 100644 --- a/www/mod_authnz_crowd/Makefile +++ b/www/mod_authnz_crowd/Makefile @@ -3,7 +3,7 @@ PORTNAME= mod_authnz_crowd PORTVERSION= 2.2.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= www MASTER_SITES= http://downloads.atlassian.com/software/crowd/downloads/cwdapache/ DIST_SUBDIR= apache2 @@ -16,6 +16,8 @@ LICENSE= APACHE20 LIB_DEPENDS= libsvn_client-1.so:${PORTSDIR}/devel/subversion \ libcurl.so:${PORTSDIR}/ftp/curl +RUN_DEPENDS= ${LOCALBASE}/${APACHEMODDIR}/mod_dav_svn.so:${PORTSDIR}/www/mod_dav_svn + USE_AUTOTOOLS= autoconf:env automake:env libtool:env GNU_CONFIGURE= yes USE_GNOME= libxml2 @@ -23,8 +25,6 @@ USE_GCC= any USE_APACHE= 22 MAKE_JOBS_SAFE= yes -MANUAL_PACKAGE_BUILD= requires subversion build with MOD_DAV_SVN. - SUB_FILES= pkg-message zzz_authnz_crowd.conf SUB_LIST+= APACHEETCDIR=${APACHEETCDIR} \ APACHEMODDIR=${APACHEMODDIR} @@ -35,12 +35,17 @@ PLIST_FILES= ${APACHEMODDIR}/mod_authnz_crowd.so \ LDFLAGS+= -L${PREFIX}/lib -NO_STAGE= yes +post-patch: + ${REINPLACE_CMD} -e 's|@APXS_STAGE@|-S LIBEXECDIR=${STAGEDIR}${PREFIX}/${APACHEMODDIR}|' \ + ${WRKSRC}/src/Makefile.am + +pre-install: + @${MKDIR} ${STAGEDIR}${PREFIX}/${APACHEMODDIR} + @${MKDIR} ${STAGEDIR}${PREFIX}/${APACHEETCDIR}/Includes + + post-install: ${INSTALL_DATA} ${WRKDIR}/zzz_authnz_crowd.conf \ - ${PREFIX}/${APACHEETCDIR}/Includes/ - @${ECHO_CMD} - @${CAT} ${PKGMESSAGE} - @${ECHO_CMD} + ${STAGEDIR}${PREFIX}/${APACHEETCDIR}/Includes/ .include <bsd.port.mk> diff --git a/www/mod_authnz_crowd/files/patch-src__Makefile.am b/www/mod_authnz_crowd/files/patch-src__Makefile.am index 57e2ed69728a..8987f3df2307 100644 --- a/www/mod_authnz_crowd/files/patch-src__Makefile.am +++ b/www/mod_authnz_crowd/files/patch-src__Makefile.am @@ -24,6 +24,6 @@ - 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 ++ @APXS@ @APXS_STAGE@ -i mod_authnz_crowd.la ++ @APXS@ @APXS_STAGE@ -e -n dav_svn modules/mod_dav_svn.so ++ @APXS@ @APXS_STAGE@ -i svn/mod_authz_svn_crowd.la |