ports/79289: New port: security/qca

Vsevolod Stakhov vsevolod at highsecure.ru
Sun Mar 27 23:50:03 UTC 2005


>Number:         79289
>Category:       ports
>Synopsis:       New port: security/qca
>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:   Sun Mar 27 23:50:02 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Vsevolod A. Stakhov
>Release:        FreeBSD 5.3-STABLE i386
>Organization:
>Environment:
System: FreeBSD nemezida.highsecure.ru 5.3-STABLE FreeBSD 5.3-STABLE #2: Fri Jan 28 02:15:40 MSK 2005 root at nemezida.highsecure.ru:/mnt/data/usr/obj/mnt/data/usr/src/sys/NK i386


>Description:
QCA is a straightforward and cross-platform crypto API, using Qt datatypes and 
conventions. QCA is required for building net/psi from version 0.9.3.
>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:
#
#	qca
#	qca/files
#	qca/files/patch-configure
#	qca/Makefile
#	qca/pkg-descr
#	qca/distinfo
#	qca/pkg-plist
#
echo c - qca
mkdir -p qca > /dev/null 2>&1
echo c - qca/files
mkdir -p qca/files > /dev/null 2>&1
echo x - qca/files/patch-configure
sed 's/^X//' >qca/files/patch-configure << 'END-of-qca/files/patch-configure'
X--- configure.orig	Wed Dec 10 03:06:43 2003
X+++ configure	Sun Mar 27 23:43:58 2005
X@@ -17,12 +17,10 @@
X while [ $# -gt 0 ]; do
X 	case "$1" in
X 		--prefix=*)
X-			PREFIX=`expr "${1}" : "--prefix=\(.*\)"`
X 			shift
X 			;;
X 
X 		--qtdir=*)
X-			QTDIR=`expr "${1}" : "--qtdir=\(.*\)"`
X 			shift
X 			;;
X 
X@@ -76,7 +74,7 @@
X 		echo Warning: qmake not in \$QTDIR/bin/qmake
X 		echo trying to find it in \$PATH
X 	fi
X-	qm=`type -p qmake`
X+	qm=`which qmake`
X 	if [ -x "$qm" ]; then
X 		if [ "$QC_DEBUG" = "Y" ]; then
X 			echo qmake found in $qm
X@@ -477,13 +475,6 @@
X 	echo
X 	exit 1;
X fi
X-cat >Makefile.tmp <<EOT
X-export QTDIR = $QTDIR
X-EOT
X-cat Makefile >> Makefile.tmp
X-rm -f Makefile
X-cp -f Makefile.tmp Makefile
X-rm -f Makefile.tmp
X 
X echo
X echo Good, your configure finished.  Now run \'make\'.
END-of-qca/files/patch-configure
echo x - qca/Makefile
sed 's/^X//' >qca/Makefile << 'END-of-qca/Makefile'
X# New ports collection makefile for:	qca
X# Date created:				27 March 2005
X# Whom:					Vsevolod Stakhov <vsevolod at highsecure.ru>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	qca
XPORTVERSION=	1.0
XCATEGORIES=	security
XMASTER_SITES=	http://psi.affinix.com/beta/
X
XMAINTAINER=	vsevolod at highsecure.ru
XCOMMENT=	Straightforward and cross-platform crypto API
X
XBUILD_DEPENDS=	qmake:${PORTSDIR}/devel/qmake
XQT_NONSTANDARD=	yes
XHAS_CONFIGURE=	yes
XUSE_INSTALL_SCRIPT=	yes
XUSE_BZIP2=	yes
XUSE_QT_VER=	3
XUSE_X_PREFIX=	yes
X
XCONFIGURE_ENV=	QMAKESPEC=${LOCALBASE}/share/qt/mkspecs/freebsd-g++
XCONFIGURE_ARGS=	--qtdir=${X11BASE}
XMAKE_ARGS+=	QTDIR=${X11BASE} \
X		QMAKESPEC=${LOCALBASE}/share/qt/mkspecs/freebsd-g++
X
Xdo-install:
X	${TEST} -d ${X11BASE}/include/plugins/qca || ${MKDIR} ${X11BASE}/include/plugins/qca
X	${INSTALL_SCRIPT} ${WRKSRC}/src/qca.h ${WRKSRC}/src/qcaprovider.h ${X11BASE}/include/plugins/qca
X	${INSTALL_SCRIPT} -m 755 ${WRKSRC}/libqca.so.1.0.0 ${X11BASE}/lib
X	${LN} -sf ${X11BASE}/lib/libqca.so.1.0.0 ${X11BASE}/lib/libqca.so.1
X	${LN} -sf ${X11BASE}/lib/libqca.so.1.0.0 ${X11BASE}/lib/libqca.so
X
X.include <bsd.port.mk>
END-of-qca/Makefile
echo x - qca/pkg-descr
sed 's/^X//' >qca/pkg-descr << 'END-of-qca/pkg-descr'
XQCA aims to provide a straightforward and cross-platform crypto API, using Qt
Xdatatypes and conventions 
X
XWWW: http://psi.affinix.com/
END-of-qca/pkg-descr
echo x - qca/distinfo
sed 's/^X//' >qca/distinfo << 'END-of-qca/distinfo'
XSize (qca-1.0.tar.bz2) = 30677
XMD5 (qca-1.0.tar.bz2) = ee44022eb0e5b8b5df64c62630f6e6b6
END-of-qca/distinfo
echo x - qca/pkg-plist
sed 's/^X//' >qca/pkg-plist << 'END-of-qca/pkg-plist'
Xlib/libqca.so
Xlib/libqca.so.1
Xlib/libqca.so.1.0.0
Xinclude/plugins/qca/qca.h
Xinclude/plugins/qca/qcaprovider.h
X
X at dirrm include/plugins/qca
END-of-qca/pkg-plist
exit

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



More information about the freebsd-ports-bugs mailing list