ports/105353: [NEW PORT] devel/osslsigncode: OpenSSL-based signcode utility

Nick Barkas snb at threerings.net
Fri Nov 10 01:20:27 UTC 2006


>Number:         105353
>Category:       ports
>Synopsis:       [NEW PORT] devel/osslsigncode: OpenSSL-based signcode utility
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 10 01:20:21 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Nick Barkas
>Release:        FreeBSD 5.4-RELEASE-p20 i386
>Organization:
Three Rings Design
>Environment:
System: FreeBSD mail.earth.threerings.net 5.4-RELEASE-p20 FreeBSD 5.4-RELEASE-p20 #12: Thu Sep 28 14:09:16 PDT 2006 root at mail.earth.threerings.net:/usr/obj/usr/src/sys/GENERIC i386
>Description:
Platform-independent tool for Authenticode signing of EXE/CAB files - uses
OpenSSL and libcurl. It also supports timestamping.

WWW: http://sourceforge.net/projects/osslsigncode/
>How-To-Repeat:
>Fix:

# 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:
#
#	osslsigncode/
#	osslsigncode/files
#	osslsigncode/files/patch-osslsigncode.c
#	osslsigncode/distinfo
#	osslsigncode/pkg-descr
#	osslsigncode/Makefile
#
echo c - osslsigncode/
mkdir -p osslsigncode/ > /dev/null 2>&1
echo c - osslsigncode/files
mkdir -p osslsigncode/files > /dev/null 2>&1
echo x - osslsigncode/files/patch-osslsigncode.c
sed 's/^X//' >osslsigncode/files/patch-osslsigncode.c << 'END-of-osslsigncode/files/patch-osslsigncode.c'
X--- osslsigncode.c.orig	Fri Jan 21 04:23:44 2005
X+++ osslsigncode.c	Thu Nov  9 15:31:37 2006
X@@ -610,9 +610,10 @@
X         
X         BIO_write(hash, indata + i, st.st_size - i);
X 
X-	/* pad (with 0's) pe file to 8 byte boundary */
X+	/* pad (with 0's) pe file to 8 byte boundary, but do not pad at all if 
X+	   already aligned on 8 byte boundary. See http://sourceforge.net/tracker/index.php?func=detail&aid=1422627&group_id=129143&atid=713906 */
X 	len = 8 - st.st_size % 8;
X-	if (len > 0) {
X+	if (len > 0 && len != 8) {
X 	  memset(buf, 0, len);
X 	  BIO_write(hash, buf, len);
X 	  st.st_size += len;
END-of-osslsigncode/files/patch-osslsigncode.c
echo x - osslsigncode/distinfo
sed 's/^X//' >osslsigncode/distinfo << 'END-of-osslsigncode/distinfo'
XMD5 (osslsigncode-1.2.tar.gz) = e97a583463feddcce524cc4067a57e04
XSHA256 (osslsigncode-1.2.tar.gz) = 5cd55fa974b06bf89ee128137a969e58a8c6ea1df20b100ddb6b23a58682bec8
XSIZE (osslsigncode-1.2.tar.gz) = 83752
END-of-osslsigncode/distinfo
echo x - osslsigncode/pkg-descr
sed 's/^X//' >osslsigncode/pkg-descr << 'END-of-osslsigncode/pkg-descr'
XPlatform-independent tool for Authenticode signing of EXE/CAB files - uses
XOpenSSL and libcurl. It also supports timestamping.
X
XWWW: http://sourceforge.net/projects/osslsigncode/
END-of-osslsigncode/pkg-descr
echo x - osslsigncode/Makefile
sed 's/^X//' >osslsigncode/Makefile << 'END-of-osslsigncode/Makefile'
X# New ports collection makefile for:	osslsigncode
X# Date created:		9 November 2006
X# Whom:			snb at threerings.net
X#
X# $FreeBSD$
X#
X
XPORTNAME=	osslsigncode
XPORTVERSION=	1.2
XCATEGORIES=	security devel
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	${PORTNAME}
X
XMAINTAINER=	snb at threerings.net
XCOMMENT=	OpenSSL-based signcode utility
X
XPKG_PLIST=	bin/osslsigncode
X
XCPPFLAGS=       -I${LOCALBASE}/include
XLDFLAGS=        -L${LOCALBASE}/lib
XCONFIGURE_ENV=  CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
XGNU_CONFIGURE=	yes
XUSE_GMAKE=	yes
XUSE_OPENSSL=	yes
X
X.if !defined(WITHOUT_CURL)
XLIB_DEPENDS+=	curl.3:${PORTSDIR}/ftp/curl
X.endif
X
X.include <bsd.port.mk>
END-of-osslsigncode/Makefile
exit


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list