1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00

- add stage support

This commit is contained in:
Olli Hauer 2014-03-09 16:59:33 +00:00
parent 837771195f
commit 7d5e9e156e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=347665
2 changed files with 14 additions and 7 deletions

View File

@ -12,9 +12,8 @@ PKGNAMESUFFIX= 2
MAINTAINER= apache@FreeBSD.org MAINTAINER= apache@FreeBSD.org
COMMENT= Apache module for authenticating users with Kerberos v5 COMMENT= Apache module for authenticating users with Kerberos v5
NO_STAGE= yes
USE_APACHE= 22 USE_APACHE= 22
USE_GMAKE= yes USES= gmake
GNU_CONFIGURE= yes GNU_CONFIGURE= yes
PORTSCOUT= limit:^5.4 PORTSCOUT= limit:^5.4
@ -37,4 +36,11 @@ LIB_DEPENDS+= libgssapi_krb5.so:${PORTSDIR}/security/krb5
CONFIGURE_ARGS+= --with-krb5=${LOCALBASE} --without-krb4 CONFIGURE_ARGS+= --with-krb5=${LOCALBASE} --without-krb4
.endif .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> .include <bsd.port.mk>

View File

@ -1,19 +1,20 @@
--- ./Makefile.in.orig 2008-12-02 09:07:10.000000000 -0500 --- ./Makefile.in.orig 2008-12-02 15:07:10.000000000 +0100
+++ ./Makefile.in 2012-11-28 09:50:58.000000000 -0500 +++ ./Makefile.in 2014-03-09 17:54:19.000000000 +0100
@@ -1,6 +1,6 @@ @@ -1,6 +1,7 @@
APXS = @APXS@ APXS = @APXS@
+APXS_STAGE= @APXS_STAGE@
KRB5_CPPFLAGS = @KRB5_CPPFLAGS@ KRB5_CPPFLAGS = @KRB5_CPPFLAGS@
-KRB5_LDFLAGS = @KRB5_LDFLAGS@ -KRB5_LDFLAGS = @KRB5_LDFLAGS@
+KRB5_LDFLAGS = @KRB5_LDFLAGS@ -lgssapi_krb5 +KRB5_LDFLAGS = @KRB5_LDFLAGS@ -lgssapi_krb5
KRB4_CPPFLAGS = @KRB4_CPPFLAGS@ KRB4_CPPFLAGS = @KRB4_CPPFLAGS@
KRB4_LDFLAGS = @KRB4_LDFLAGS@ KRB4_LDFLAGS = @KRB4_LDFLAGS@
LIB_resolv = @LIB_resolv@ 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" ./apxs.sh "${CPPFLAGS}" "${LDFLAGS}" "${SPNEGO_SRCS}" "${APXS}" "-c" "src/mod_auth_kerb.c"
install: install:
- ./apxs.sh "${CPPFLAGS}" "${LDFLAGS}" "${SPNEGO_SRCS}" "${APXS}" "-c -i" "src/mod_auth_kerb.c" - ./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: clean:
for i in . src spnegokrb5; do \ for i in . src spnegokrb5; do \