From boris@brooknet.com.au  Mon Jan 10 08:16:35 2005
Return-Path: <boris@brooknet.com.au>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 036B516A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 10 Jan 2005 08:16:35 +0000 (GMT)
Received: from bloodwood.hunterlink.net.au (smtp-local.hunterlink.net.au [203.12.144.17])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 7CFB743D1F
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 10 Jan 2005 08:16:33 +0000 (GMT)
	(envelope-from boris@brooknet.com.au)
Received: from localhost (ppp2F4E.dyn.pacific.net.au [61.8.47.78])
	by bloodwood.hunterlink.net.au (8.12.8/8.12.8) with ESMTP id j0A8GT3q009917
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 10 Jan 2005 19:16:30 +1100
Received: by localhost (Postfix, from userid 0)
	id 7B4031448; Mon, 10 Jan 2005 19:17:08 +1100 (EST)
Message-Id: <20050110081708.7B4031448@localhost>
Date: Mon, 10 Jan 2005 19:17:08 +1100 (EST)
From: Sam Lawrance <boris@brooknet.com.au>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [NEW PORT] archivers/orange: Extract Microsoft Cabinet files from self-extracting installers
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         76030
>Category:       ports
>Synopsis:       [NEW PORT] archivers/orange: Extract Microsoft Cabinet files from self-extracting installers
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 10 08:20:23 GMT 2005
>Closed-Date:    Fri Jan 14 00:13:22 GMT 2005
>Last-Modified:  Fri Jan 14 00:13:22 GMT 2005
>Originator:     Sam Lawrance
>Release:        FreeBSD 5.3-STABLE i386
>Organization:
>Environment:
System: FreeBSD dirk.no.domain 5.3-STABLE FreeBSD 5.3-STABLE #1: Sat Jan  1 22:56:44 EST
>Description:
Orange is a tool and library for squeezing out juicy installable
Microsoft Cabinet Files from self-extracting installers for Microsoft
Windows.

Supported installers include VISE, InstallShield, Setup Factory and more.

WWW: http://synce.sourceforge.net

Note:
  * This port is required for the update of synce-kde

>How-To-Repeat:
>Fix:

--- orange-0.2.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	orange
#	orange/Makefile
#	orange/distinfo
#	orange/pkg-descr
#	orange/pkg-plist
#	orange/files
#	orange/files/patch-inno.h
#
echo c - orange
mkdir -p orange > /dev/null 2>&1
echo x - orange/Makefile
sed 's/^X//' >orange/Makefile << 'END-of-orange/Makefile'
X# New ports collection makefile for:	orange
X# Date Created:				January 2005
X# Whom:					Sam Lawrance <boris@brooknet.com.au>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	orange
XPORTVERSION=	0.2
XCATEGORIES=	archivers
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	synce
X
XMAINTAINER=	boris@brooknet.com.au
XCOMMENT=	Extract Microsoft Cabinet files from self-extracting installers
X
XLIB_DEPENDS=	synce.0:${PORTSDIR}/palm/synce-libsynce \
X		rapi.2:${PORTSDIR}/palm/synce-librapi2 \
X		dynamite.0:${PORTSDIR}/archivers/dynamite \
X		unshield.0:${PORTSDIR}/archivers/unshield
X
XGNU_CONFIGURE=	yes
XCONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
XCONFIGURE_ARGS=	--with-libsynce=${LOCALBASE}
XUSE_ICONV=	yes
XUSE_LIBTOOL_VER=15
XUSE_REINPLACE=	yes
XINSTALLS_SHLIB=	yes
X
X.include <bsd.port.pre.mk>
X
Xpost-patch:
X	@${REINPLACE_CMD} -e 's|-Werror||' \
X		${WRKSRC}/lib/Makefile.in \
X		${WRKSRC}/src/Makefile.in
X.if ${OSVERSION} < 500000
X	@${REINPLACE_CMD} -e 's|<stdint.h>|<inttypes.h>|' ${WRKSRC}/lib/inno.h
X.endif
X
X.include <bsd.port.post.mk>
END-of-orange/Makefile
echo x - orange/distinfo
sed 's/^X//' >orange/distinfo << 'END-of-orange/distinfo'
XMD5 (orange-0.2.tar.gz) = 50863dd7b29112049bf52b83e6c8c2a2
XSIZE (orange-0.2.tar.gz) = 214255
END-of-orange/distinfo
echo x - orange/pkg-descr
sed 's/^X//' >orange/pkg-descr << 'END-of-orange/pkg-descr'
XOrange is a tool and library for squeezing out juicy installable
XMicrosoft Cabinet Files from self-extracting installers for Microsoft
XWindows.
X
XSupported installers include VISE, InstallShield, Setup Factory and more.
X
XWWW: http://synce.sourceforge.net
END-of-orange/pkg-descr
echo x - orange/pkg-plist
sed 's/^X//' >orange/pkg-plist << 'END-of-orange/pkg-plist'
Xbin/orange
Xinclude/liborange.h
Xlib/liborange.so.0
Xlib/liborange.so
Xlib/liborange.la
Xlib/liborange.a
END-of-orange/pkg-plist
echo c - orange/files
mkdir -p orange/files > /dev/null 2>&1
echo x - orange/files/patch-inno.h
sed 's/^X//' >orange/files/patch-inno.h << 'END-of-orange/files/patch-inno.h'
X--- lib/inno.h.orig	Mon Sep  8 17:17:28 2003
X+++ lib/inno.h	Mon Jan 10 05:07:47 2005
X@@ -3,7 +3,7 @@
X #define __inno_h__
X 
X #include <stdbool.h>
X-#include <stdint.h>
X+#include <inttypes.h>
X #include <stdio.h>
X #include <zlib.h>
X 
X@@ -100,7 +100,7 @@
X   uint32_t NumUninstallDeleteEntries; 
X   uint32_t NumRunEntries; 
X   uint32_t NumUninstallRunEntries;  
X-  P uint8_t stuff[0x35];
X+  uint8_t P stuff[0x35];
X } TSetupHeader;
X 
X #define SETUP_HEADER_SIZE   0xd9
X@@ -144,9 +144,9 @@
X 
X typedef struct
X {
X-  P uint32_t WinVersion;
X-  P uint32_t NTVersion;
X-  P uint16_t Word;
X+  uint32_t P WinVersion;
X+  uint32_t P NTVersion;
X+  uint16_t P Word;
X } TSetupVersionData;
X 
X #if 0
X@@ -173,12 +173,12 @@
X     char* InstallFontName;
X     char* Components; 
X     char* Tasks;
X-    P TSetupVersionData MinVersion;
X-    P TSetupVersionData OnlyBelowVersion;
X+    TSetupVersionData P MinVersion;
X+    TSetupVersionData P OnlyBelowVersion;
X     uint32_t LocationEntry;
X     uint32_t Attribs;
X     uint32_t ExternalSize;
X-    P char stuff[4];
X+    char P stuff[4];
X #if 0
X     Options: set of (foConfirmOverwrite, foUninsNeverUninstall, foRestartReplace,
X       foDeleteAfterInstall, foRegisterServer, foRegisterTypeLib, foSharedFile,
X@@ -191,7 +191,7 @@
X #endif
X } TSetupFileEntry;
X 
X-P typedef struct
X+typedef struct
X {
X   uint32_t FirstDisk;
X   uint32_t LastDisk;
X@@ -202,7 +202,7 @@
X   uint32_t Date;
X   uint32_t FileVersionMS;
X   uint32_t FileVersionLS;
X-} TSetupFileLocationEntry;
X+} P TSetupFileLocationEntry;
X 
X #define SETUP_FILE_LOCATION_ENTRY_SIZE  0x29
X 
END-of-orange/files/patch-inno.h
exit
--- orange-0.2.shar ends here ---

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: edwin 
State-Changed-When: Fri Jan 14 00:13:19 GMT 2005 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=76030 
>Unformatted:
