[csw-devel] SF.net SVN: gar:[14403] csw/mgar/pkg/php5/trunk/Makefile

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Tue Apr 26 04:01:12 CEST 2011


Revision: 14403
          http://gar.svn.sourceforge.net/gar/?rev=14403&view=rev
Author:   bdwalton
Date:     2011-04-26 02:01:12 +0000 (Tue, 26 Apr 2011)

Log Message:
-----------
php5/trunk: move php.ini to proper location, add migration handler

Modified Paths:
--------------
    csw/mgar/pkg/php5/trunk/Makefile

Modified: csw/mgar/pkg/php5/trunk/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/Makefile	2011-04-25 17:35:14 UTC (rev 14402)
+++ csw/mgar/pkg/php5/trunk/Makefile	2011-04-26 02:01:12 UTC (rev 14403)
@@ -64,7 +64,10 @@
 # of sqlite...
 BUILD_DEP_PKGS += CSWsqlite
 
-PRESERVECONF = $(prefix)/php5/lib/php.ini
+PRESERVECONF = /etc/$(prefix)/php5/php.ini
+MIGRATE_FILES_CSWphp5 = "php.ini"
+MIGRATE_SOURCE_DIR = /opt/csw/php5/lib
+MIGRATE_DEST_DIR = $(sysconfdir)
 
 define php5_subpackage
 PACKAGES += CSWphp5-$(1)
@@ -86,7 +89,7 @@
 CHECKPKG_OVERRIDES_CSWphp5 += file-with-bad-content|/usr/local|root/opt/csw/php5/lib/php/PEAR/Config.php
 CHECKPKG_OVERRIDES_CSWphp5 += file-with-bad-content|/usr/local|root/opt/csw/php5/bin/php-cgi
 # verify these...
-CHECKPKG_OVERRIDES_CSWphp5 += file-with-bad-content|/usr/local|root/opt/csw/php5/lib/php.ini.CSW
+CHECKPKG_OVERRIDES_CSWphp5 += file-with-bad-content|/usr/local|root/etc/opt/csw/php5/php.ini.CSW
 
 PACKAGES += CSWphp5-dev
 CATALOGNAME_CSWphp5-dev   = php5_dev
@@ -206,8 +209,8 @@
 NOISALIST = 1
 STRIP_LIBTOOL = 1
 
+sysconfdir = /etc/$(prefix)/php5
 
-
 CONFIGURE_ARGS += --prefix=$(prefix)/php5
 ## build this static, php can not run without it.
 ## it is more efficient to have this built into the php binary
@@ -215,6 +218,7 @@
 CONFIGURE_ARGS += --disable-static
 CONFIGURE_ARGS += --enable-xml
 CONFIGURE_ARGS += --with-libxml-dir=$(prefix)
+CONFIGURE_ARGS += --with-config-file-path=$(sysconfdir)
 
 ifeq ($(SAPI),ap2)
 CONFIGURE_ARGS += --enable-bcmath=shared
@@ -319,7 +323,7 @@
 	@$(MAKECOOKIE)
 
 post-install-modulated: AP2SYSCONF=/opt/csw/apache2/etc/httpd.conf
-post-install-modulated: INIDEST=$(DESTDIR)$(prefix)/php5/lib/php.ini
+post-install-modulated: INIDEST=$(DESTDIR)/etc$(prefix)/php5/php.ini
 post-install-modulated:
 	@rm -f $(DESTDIR)$(AP2SYSCONF)
 	@cp $(WORKSRC)/php.ini-production $(INIDEST)


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