Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Mar 2014 16:59:33 +0000 (UTC)
From:      Olli Hauer <ohauer@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r347665 - in head/www/mod_auth_kerb2: . files
Message-ID:  <201403091659.s29GxXOD051732@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ohauer
Date: Sun Mar  9 16:59:33 2014
New Revision: 347665
URL: http://svnweb.freebsd.org/changeset/ports/347665
QAT: https://qat.redports.org/buildarchive/r347665/

Log:
  - add stage support

Modified:
  head/www/mod_auth_kerb2/Makefile
  head/www/mod_auth_kerb2/files/patch-Makefile.in

Modified: head/www/mod_auth_kerb2/Makefile
==============================================================================
--- head/www/mod_auth_kerb2/Makefile	Sun Mar  9 16:58:57 2014	(r347664)
+++ head/www/mod_auth_kerb2/Makefile	Sun Mar  9 16:59:33 2014	(r347665)
@@ -12,9 +12,8 @@ PKGNAMESUFFIX=	2
 MAINTAINER=	apache@FreeBSD.org
 COMMENT=	Apache module for authenticating users with Kerberos v5
 
-NO_STAGE=	yes
 USE_APACHE=	22
-USE_GMAKE=	yes
+USES=		gmake
 GNU_CONFIGURE=	yes
 
 PORTSCOUT=	limit:^5.4
@@ -37,4 +36,11 @@ LIB_DEPENDS+=		libgssapi_krb5.so:${PORTS
 CONFIGURE_ARGS+=	--with-krb5=${LOCALBASE} --without-krb4
 .endif
 
+post-patch:
+	${REINPLACE_CMD} -e 's|@APXS_STAGE@|-S LIBEXECDIR=${STAGEDIR}${PREFIX}/${APACHEMODDIR}|' \
+		${WRKSRC}/Makefile.in
+
+pre-install:
+	@${MKDIR} ${STAGEDIR}${PREFIX}/${APACHEMODDIR}
+
 .include <bsd.port.mk>

Modified: head/www/mod_auth_kerb2/files/patch-Makefile.in
==============================================================================
--- head/www/mod_auth_kerb2/files/patch-Makefile.in	Sun Mar  9 16:58:57 2014	(r347664)
+++ head/www/mod_auth_kerb2/files/patch-Makefile.in	Sun Mar  9 16:59:33 2014	(r347665)
@@ -1,19 +1,20 @@
---- ./Makefile.in.orig	2008-12-02 09:07:10.000000000 -0500
-+++ ./Makefile.in	2012-11-28 09:50:58.000000000 -0500
-@@ -1,6 +1,6 @@
+--- ./Makefile.in.orig	2008-12-02 15:07:10.000000000 +0100
++++ ./Makefile.in	2014-03-09 17:54:19.000000000 +0100
+@@ -1,6 +1,7 @@
  APXS = @APXS@
++APXS_STAGE=	@APXS_STAGE@
  KRB5_CPPFLAGS = @KRB5_CPPFLAGS@
 -KRB5_LDFLAGS = @KRB5_LDFLAGS@
 +KRB5_LDFLAGS = @KRB5_LDFLAGS@ -lgssapi_krb5
  KRB4_CPPFLAGS = @KRB4_CPPFLAGS@
  KRB4_LDFLAGS = @KRB4_LDFLAGS@
  LIB_resolv = @LIB_resolv@
-@@ -16,7 +16,7 @@
+@@ -16,7 +17,7 @@
  	./apxs.sh "${CPPFLAGS}" "${LDFLAGS}" "${SPNEGO_SRCS}" "${APXS}" "-c" "src/mod_auth_kerb.c"
  
  install:
 -	./apxs.sh "${CPPFLAGS}" "${LDFLAGS}" "${SPNEGO_SRCS}" "${APXS}" "-c -i" "src/mod_auth_kerb.c"
-+	./apxs.sh "${CPPFLAGS}" "${LDFLAGS}" "${SPNEGO_SRCS}" "${APXS}" "-c -i -a" "src/mod_auth_kerb.c"
++	${APXS} $(APXS_STAGE) -i -n auth_kerb src/mod_auth_kerb.la
  
  clean:
  	for i in . src spnegokrb5; do \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403091659.s29GxXOD051732>