Import libperseus.

PERSEUS library is an open source technology whose aim is to secure any
kind of communication streams against illegitimate or abusive
eavesdropping except for Nation State Security offices, provided that a
suitable, huge computing power is used (from tens of hours with a
supercomputer).

ok jasper@
This commit is contained in:
pea 2011-03-29 12:14:21 +00:00
parent b7b1a20e30
commit 1afb97b6bb
6 changed files with 87 additions and 0 deletions

View File

@ -0,0 +1,40 @@
# $OpenBSD: Makefile,v 1.1.1.1 2011/03/29 12:14:21 pea Exp $
COMMENT = library to secure any kind of communication streams
DISTNAME = libperseus-1.0.2
CATEGORIES = security
SHARED_LIBS = perseus 0.0
MASTER_SITES = ${HOMEPAGE}/files/
HOMEPAGE = http://libperseus.googlecode.com/
MAINTAINER = Pierre-Emmanuel Andre <pea@openbsd.org>
# GPL/LGPL/MPL
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP = Yes
WANTLIB = c m
EXTRACT_SUFX = .tgz
USE_LIBTOOL = Yes
WRKDIST = ${WRKDIR}
CFLAGS += -fPIC
do-regress:
@cd ${WRKBUILD} && ./perseus_test2
do-install:
${INSTALL_DATA} ${WRKBUILD}/perseus.h ${PREFIX}/include
${INSTALL_DATA} ${WRKBUILD}/${FULLPKGNAME}.so ${PREFIX}/lib/libperseus.so.${LIBperseus_VERSION}
${INSTALL_PROGRAM} ${WRKBUILD}/perseus_test ${PREFIX}/bin
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (libperseus-1.0.2.tgz) = ICRrucCzEuC8Mga9B50Tpw==
RMD160 (libperseus-1.0.2.tgz) = jHNGcsECxZtdIvT46gLCcIIF3W4=
SHA1 (libperseus-1.0.2.tgz) = eOrfNeQxJBYA6mfQr5wFmCB+87I=
SHA256 (libperseus-1.0.2.tgz) = p7GAUtRHa5LsVzqLTvnoJiPTCgDCCokaHNCuVIjQP6E=
SIZE (libperseus-1.0.2.tgz) = 16156

View File

@ -0,0 +1,28 @@
$OpenBSD: patch-Makefile,v 1.1.1.1 2011/03/29 12:14:21 pea Exp $
--- Makefile.orig Mon Jan 31 09:36:58 2011
+++ Makefile Thu Mar 17 17:32:21 2011
@@ -1,18 +1,18 @@
-CC=gcc
+CC?=gcc
JAVAC=javac
-CFLAGS= -O3 -ansi -Wall -g -fPIC
+CFLAGS?= -O3 -ansi -Wall -fPIC
+LDFLAGS= -lm
SRC = perseus.c perseus_test.c perseus_test2.c
OBJ = $(SRC:.c=.o)
-LIBNAME = "libperseus-1.0.1"
+LIBNAME = "libperseus-1.0.2"
-.SILENT:
all: $(OBJ)
$(CC) $(CFLAGS) -o $(LIBNAME).so perseus.o -shared
- $(CC) $(CFLAGS) perseus.o perseus_test.o -o perseus_test
- $(CC) $(CFLAGS) perseus.o perseus_test2.o -o perseus_test2
+ $(CC) $(CFLAGS) $(LDFLAGS) perseus.o perseus_test.o -o perseus_test
+ $(CC) $(CFLAGS) $(LDFLAGS) perseus.o perseus_test2.o -o perseus_test2
java: $(OBJ)
cd java && make

View File

@ -0,0 +1,8 @@
PERSEUS library is an open source technology whose aim is to secure any
kind of communication streams against illegitimate or abusive
eavesdropping except for Nation State Security offices, provided that a
suitable, huge computing power is used (from tens of hours with a
supercomputer). PERSEUS enables to provide at the same time users' needs
for privacy and confidentiality while preserving the ability of security
agencies (police, defense, national security...) to eavesdrop
communications of really bad actors (terrorists, child pornographs...).

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2011/03/29 12:14:21 pea Exp $
@lib lib/libperseus.so.${LIBperseus_VERSION}

View File

@ -0,0 +1,4 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2011/03/29 12:14:21 pea Exp $
%%SHARED%%
@bin bin/perseus_test
include/perseus.h