SF.net SVN: gar:[25022] csw/mgar/pkg/apache24/trunk
cgrzemba at users.sourceforge.net
cgrzemba at users.sourceforge.net
Tue May 26 15:07:09 CEST 2015
Revision: 25022
http://sourceforge.net/p/gar/code/25022
Author: cgrzemba
Date: 2015-05-26 13:07:09 +0000 (Tue, 26 May 2015)
Log Message:
-----------
apache24/trunk: add 64bit module config
Modified Paths:
--------------
csw/mgar/pkg/apache24/trunk/Makefile
Added Paths:
-----------
csw/mgar/pkg/apache24/trunk/files/CSWapache24.postinstall
Modified: csw/mgar/pkg/apache24/trunk/Makefile
===================================================================
--- csw/mgar/pkg/apache24/trunk/Makefile 2015-05-26 12:15:34 UTC (rev 25021)
+++ csw/mgar/pkg/apache24/trunk/Makefile 2015-05-26 13:07:09 UTC (rev 25022)
@@ -43,6 +43,9 @@
RUNTIME_DEP_PKGS_CSWapache24 += CSWlibapr1-0
RUNTIME_DEP_PKGS_CSWapache24 += CSWlibldap2-4-2
RUNTIME_DEP_PKGS_CSWapache24 += CSWlibxml2-2
+RUNTIME_DEP_PKGS_CSWapache24 += CSWopenldap
+RUNTIME_DEP_PKGS_CSWapache24 += CSWlighttpd
+EXTRA_MERGE_DIRS_isa-amd64 += /etc/opt/csw/64/apache2/extra
# This is because /opt/csw/sbin/sparcv9 is missing, most certainly an checkpkg issue
CHECKPKG_OVERRIDES_CSWapache24 += missing-dependency|CSWbonnie++|or|CSWcollectd|or|CSWleafnode|or|CSWlighttpd|or|CSWlogrotate|or|CSWopenldap|or|CSWproftpd|or|CSWsysstat|or|CSWzabbix-agent|or|CSWzabbix-server
@@ -98,8 +101,15 @@
BUILD64 = 1
+# ifeq ($(MEMORYMODEL),64)
+# MODULE_CONF=$(DESTDIR)$(sysconfdir)/64/apache2/extra/module.load
+# else
+# MODULE_CONF=$(DESTDIR)$(sysconfdir)/apache2/extra/module.load
+# endif
+MODULE_CONF=$(DESTDIR)$(sysconfdir)/$(MM_LIBDIR)/apache2/extra/module.load
+
# Build Configuration
-CONFIGURE_ARGS = --with-apr=$(prefix)
+CONFIGURE_ARGS += --with-apr=$(prefix)
CONFIGURE_ARGS += --with-pcre=$(bindir)/pcre-config
CONFIGURE_ARGS += --with-libxml2=$(includedir)/libxml2
CONFIGURE_ARGS-32 += --with-lua=$(prefix)
@@ -115,7 +125,6 @@
CONFIGURE_ARGS += --with-ssl
# As requested in https://www.opencsw.org/mantis/view.php?id=5152
CONFIGURE_ARGS += --enable-proxy-html
-
CONFIGURE_ARGS += $(CONFIGURE_ARGS-$(MEMORYMODEL))
EXTRA_CFLAGS += -DSSL_EXPERIMENTAL -DSSL_ENGINE
@@ -144,6 +153,16 @@
perl -pi -e 's|/usr/local/apache2|/etc/opt/csw/apache2|g' $(DESTDIR)$(sysconfdir)/apache2/httpd.conf
perl -pi -e 's|usr/local/etc/apache|etc/opt/csw/apache2|g' $(DESTDIR)$(mandir)/man1/*
perl -pi -e 's|/usr/local/apache2|/etc/opt/csw/apache2|g' $(DESTDIR)$(mandir)/man8/*
+ ginstall -d $(dir $(MODULE_CONF))
+ (cd $(DESTDIR)$(sysconfdir)/apache2 && \
+ grep LoadModule httpd.conf > $(MODULE_CONF) && \
+ gsed -e '/^#LoadModule/d' -i httpd.conf; \
+ gsed -e '/^LoadModule/d' -i httpd.conf; \
+ gsed -e '/# LoadModule/a <IfDefine 64bit>\n\Include $(sysconfdir)/64/apache2/extra/modules.load\n\</IfDefine>\n\<IfDefine !64bit>\n\Include $(sysconfdir)/apache2/extra/modules.load\n\</IfDefine>' -i httpd.conf; \
+ )
ginstall -D -m 0755 $(WORKDIR)/cswapache24 $(DESTDIR)/etc/opt/csw/init.d/cswapache24
+ gsed -e '/#FMRI/a [ \$${ENABLE64} = "true" ] && MM=/64' -i $(DESTDIR)/etc/opt/csw/init.d/cswapache24
+ gsed -e '/#FMRI/a ENABLE64=\$$(/usr/bin/svcprop -p config/enable_64bit ${SMF_FMRI})' -i $(DESTDIR)/etc/opt/csw/init.d/cswapache24
+ gsed -e '/APACHECTL=/s/sbin/sbin\$${MM}/' -i $(DESTDIR)/etc/opt/csw/init.d/cswapache24
echo "# create server.(crt|csr)/server.key" > $(DESTDIR)$(sysconfdir)/apache2/server
@$(MAKECOOKIE)
Added: csw/mgar/pkg/apache24/trunk/files/CSWapache24.postinstall
===================================================================
--- csw/mgar/pkg/apache24/trunk/files/CSWapache24.postinstall (rev 0)
+++ csw/mgar/pkg/apache24/trunk/files/CSWapache24.postinstall 2015-05-26 13:07:09 UTC (rev 25022)
@@ -0,0 +1 @@
+[ -x /usr/sbin/svccfg ] && /usr/sbin/svccfg -s cswapache24 'setprop config/enable_64bit = :boolean false'
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list