svn commit: r347673 - in head/www/mod_layout22: . files
Olli Hauer
ohauer at FreeBSD.org
Sun Mar 9 17:42:57 UTC 2014
Author: ohauer
Date: Sun Mar 9 17:42:56 2014
New Revision: 347673
URL: http://svnweb.freebsd.org/changeset/ports/347673
QAT: https://qat.redports.org/buildarchive/r347673/
Log:
add stage support
Modified:
head/www/mod_layout22/Makefile
head/www/mod_layout22/files/patch-Makefile
Modified: head/www/mod_layout22/Makefile
==============================================================================
--- head/www/mod_layout22/Makefile Sun Mar 9 17:21:48 2014 (r347672)
+++ head/www/mod_layout22/Makefile Sun Mar 9 17:42:56 2014 (r347673)
@@ -11,7 +11,6 @@ PKGNAMEPREFIX= ${APACHE_PKGNAMEPREFIX}
MAINTAINER= apache at FreeBSD.org
COMMENT= Apache2.2 module to wrap served pages with a header and/or footer
-
CONFLICTS= mod_layout-3.* mod_layout-4.*
PORTSCOUT= limit:^5
@@ -21,11 +20,15 @@ LATEST_LINK= mod_layout22
MAKE_ARGS+= builddir=${WRKSRC}
-NO_STAGE= yes
+post-patch:
+ ${REINPLACE_CMD} -e 's|@APXS_STAGE@|-S LIBEXECDIR=${STAGEDIR}${PREFIX}/${APACHEMODDIR}|' \
+ ${WRKSRC}/Makefile
+
+pre-install:
+ @${MKDIR} ${STAGEDIR}${PREFIX}/${APACHEMODDIR}
+
post-install:
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}/
- ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/README
-.endif
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}/README
.include <bsd.port.mk>
Modified: head/www/mod_layout22/files/patch-Makefile
==============================================================================
--- head/www/mod_layout22/files/patch-Makefile Sun Mar 9 17:21:48 2014 (r347672)
+++ head/www/mod_layout22/files/patch-Makefile Sun Mar 9 17:42:56 2014 (r347673)
@@ -1,6 +1,6 @@
---- Makefile.orig 2007-02-21 22:29:07.000000000 +0100
-+++ Makefile 2008-08-31 21:53:05.000000000 +0200
-@@ -1,10 +1,10 @@
+--- ./Makefile.orig 2008-01-07 07:44:50.000000000 +0100
++++ ./Makefile 2014-03-09 18:38:09.000000000 +0100
+@@ -1,10 +1,11 @@
##
## Makefile -- Build procedure for mod_layout Apache module
##
@@ -10,6 +10,18 @@
# the used tools
-APXS=apxs
+APXS=${LOCALBASE}/sbin/apxs
++APXS_STAGE= @APXS_STAGE@
APACHECTL=apachectl
CC=`$(APXS) -q CC`
INC=-I`$(APXS) -q INCLUDEDIR` `$(APXS) -q CFLAGS` #-DLAYOUT_FILEOWNER_NAME
+@@ -57,8 +58,8 @@
+ header.o : header.c
+ $(APXS) -c header.c
+ # install the shared object file into Apache
+-install:
+- $(APXS) -iac $(INCLUDES) $(LIBS) $(SRC)
++install: mod_layout.so
++ $(APXS) $(APXS_STAGE) -i -n layout mod_layout.la
+ @echo "+--------------------------------------------------------+"; \
+ echo "| All done. |"; \
+ echo "| |"; \
More information about the svn-ports-all
mailing list