[csw-devel] SF.net SVN: gar:[18614] csw/mgar/pkg/jpilot/trunk

pfelecan at users.sourceforge.net pfelecan at users.sourceforge.net
Tue Jul 3 09:34:35 CEST 2012


Revision: 18614
          http://gar.svn.sourceforge.net/gar/?rev=18614&view=rev
Author:   pfelecan
Date:     2012-07-03 07:34:35 +0000 (Tue, 03 Jul 2012)
Log Message:
-----------
jpilot/trunk: kludge to install a file with name encoded in latin-1

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

Added Paths:
-----------
    csw/mgar/pkg/jpilot/trunk/files/CSWjpilot.postinstall
    csw/mgar/pkg/jpilot/trunk/files/CSWjpilot.preremove

Modified: csw/mgar/pkg/jpilot/trunk/Makefile
===================================================================
--- csw/mgar/pkg/jpilot/trunk/Makefile	2012-07-02 15:48:17 UTC (rev 18613)
+++ csw/mgar/pkg/jpilot/trunk/Makefile	2012-07-03 07:34:35 UTC (rev 18614)
@@ -12,8 +12,10 @@
    who run the most popular Operating Systems in the World, Linux and Unix.
 endef
 
-MASTER_SITES = http://jpilot.org/
-DISTFILES  = $(DISTNAME).tar.gz
+MASTER_SITES	=	http://jpilot.org/
+DISTFILES		=	$(DISTNAME).tar.gz
+DISTFILES		+=	CSWjpilot.postinstall
+DISTFILES		+=	CSWjpilot.preremove
 
 GARCOMPILER			=	GNU
 
@@ -75,6 +77,14 @@
 
 PATH := /opt/csw/gnu:$(PATH)
 
+post-install-modulated:
+	mv $(DESTDIR)/$(sharedstatedir)/$(NAME)/Ma\xF1anaDB.pdb $(DESTDIR)/$(sharedstatedir)/$(NAME)/MananaDB.pdb
+	$(MAKECOOKIE)
+
 # this is private and not available publicly
 mydependencies:
 	$(HOME)/bin/ocswdeplist --package $(NAME)
+
+# Local Variables:
+# coding: latin-1
+# End:

Added: csw/mgar/pkg/jpilot/trunk/files/CSWjpilot.postinstall
===================================================================
--- csw/mgar/pkg/jpilot/trunk/files/CSWjpilot.postinstall	                        (rev 0)
+++ csw/mgar/pkg/jpilot/trunk/files/CSWjpilot.postinstall	2012-07-03 07:34:35 UTC (rev 18614)
@@ -0,0 +1,23 @@
+# $Id$
+
+Error()
+{
+	echo "postinstall: anomaly : $1" >&2
+	exit 1
+}
+
+Warning()
+{
+    echo "warning:" "$1" >&2
+}
+
+/usr/sbin/chroot ${PKG_INSTALL_ROOT:-/} /usr/bin/mv /opt/csw/share/jpilot/MananaDB.pdb /opt/csw/share/jpilot/Ma\xF1anaDB.pdb ||
+Warning "cannot move Manana database!"
+
+exit 0
+
+# Local Variables:
+# mode: shell-script
+# coding: latin-1
+# mode: font-lock
+# End:

Added: csw/mgar/pkg/jpilot/trunk/files/CSWjpilot.preremove
===================================================================
--- csw/mgar/pkg/jpilot/trunk/files/CSWjpilot.preremove	                        (rev 0)
+++ csw/mgar/pkg/jpilot/trunk/files/CSWjpilot.preremove	2012-07-03 07:34:35 UTC (rev 18614)
@@ -0,0 +1,23 @@
+# $Id$
+
+Error()
+{
+	echo "preremove: anomaly : $1" >&2
+	exit 1
+}
+
+Warning()
+{
+    echo "warning:" "$1" >&2
+}
+
+/usr/sbin/chroot ${PKG_INSTALL_ROOT:-/} /usr/bin/mv /opt/csw/share/jpilot/Ma\xF1anaDB.pdb /opt/csw/share/jpilot/MananaDB.pdb ||
+Warning "cannot move Manana database!"
+
+exit 0
+
+# Local Variables:
+# mode: shell-script
+# coding: latin-1
+# mode: font-lock
+# End:

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