Bug 85486 - [NEW PORT]: security/ncrypt
Summary: [NEW PORT]: security/ncrypt
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Renato Botelho
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-30 16:40 UTC by Frank J. Laszlo
Modified: 2005-09-06 13:50 UTC (History)
0 users

See Also:


Attachments
ncrypt-0.7.0.shar (2.54 KB, text/plain)
2005-08-30 16:40 UTC, Frank J. Laszlo
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Frank J. Laszlo 2005-08-30 16:40:19 UTC
	This is a SHell ARchive of a new port called security/ncrypt. It is a 
	symmetrical file encryptor/decryptor that gives you the choice of the top 
	three candidates for AES as the encryption algorithm (Rijndael, Serpent, 
	Twofish), tries to minimize exposure of the plaintext password in memory,
	and can safely erase the plaintext version from the hard drive.
Comment 1 Frank Laszlo 2005-08-30 17:26:16 UTC
Please close this PR, This does not compile on 4.x and will require 
further patching/testing. I will
resubmit a PR when it has been completed. Thanks

__________________________________________________
Frank Laszlo
System Administrator
The VonOstin Group
Email:  laszlof@tvog.net
WWW:    http://www.vonostingroup.com
Mobile: 248-863-7584
Comment 2 Jean-Yves Lefort freebsd_committer freebsd_triage 2005-08-30 22:29:03 UTC
State Changed
From-To: open->suspended

Submitter: please submit a followup to this PR instead, thanks.
Comment 3 Renato Botelho freebsd_committer freebsd_triage 2005-09-05 20:27:30 UTC
State Changed
From-To: suspended->feedback

Propose a new patch to submitter 


Comment 4 Renato Botelho freebsd_committer freebsd_triage 2005-09-05 20:27:30 UTC
Responsible Changed
From-To: freebsd-ports-bugs->garga

Grabbed.
Comment 5 Renato Botelho freebsd_committer freebsd_triage 2005-09-05 20:29:03 UTC
I propose this port, that works fine on 4, 5 and 6.x. Do you approve?

--- ncrypt.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:
#
#	./ncrypt
#	./ncrypt/Makefile
#	./ncrypt/distinfo
#	./ncrypt/files
#	./ncrypt/files/patch-ncrypt.c
#	./ncrypt/files/patch-getopt.c
#	./ncrypt/pkg-descr
#
echo c - ./ncrypt
mkdir -p ./ncrypt > /dev/null 2>&1
echo x - ./ncrypt/Makefile
sed 's/^X//' >./ncrypt/Makefile << 'END-of-./ncrypt/Makefile'
X# New ports collection makefile for:	ncrypt
X# Date created:			30 Aug 2005
X# Whom:				Frank Laszlo <laszlof@vonostingroup.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	ncrypt
XPORTVERSION=	0.7.0
XCATEGORIES=	security
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	${PORTNAME}
XEXTRACT_SUFX=	.tgz
X
XMAINTAINER=	laszlof@vonostingroup.com
XCOMMENT=	Advanced AES file encryption tool
X
XUSE_REINPLACE=	yes
XGNU_CONFIGURE=	yes
XUSE_AUTOMAKE_VER=	19
XUSE_ACLOCAL_VER=	19
XUSE_AUTOCONF_VER=	259
X
XPLIST_FILES=	bin/ncrypt bin/nrm
X
X.include <bsd.port.pre.mk>
X
Xpost-configure:
X	@${REINPLACE_CMD} -E 's,^(CC|CFLAGS) =,\1 \?=,g' \
X		${WRKSRC}/Makefile
X.if (${OSVERSION} < 500000)
X	@${REINPLACE_CMD} -e 's,stdint.h,inttypes.h,g' \
X		${WRKSRC}/standard.h
X	@${REINPLACE_CMD} -e 's,O_SYNC,O_FSYNC,g' \
X		${WRKSRC}/wipe_file.c
X.endif
X.if (${OSVERSION} < 501000)
X	@${REINPLACE_CMD} -e 's,ifndef WIN32,if (!defined(__FreeBSD__)),g' \
X		${WRKSRC}/ncrypt.c
X.endif
X
X.include <bsd.port.post.mk>
END-of-./ncrypt/Makefile
echo x - ./ncrypt/distinfo
sed 's/^X//' >./ncrypt/distinfo << 'END-of-./ncrypt/distinfo'
XMD5 (ncrypt-0.7.0.tgz) = 423d6d0fb607d63dce788f11f74cb59f
XSIZE (ncrypt-0.7.0.tgz) = 172283
END-of-./ncrypt/distinfo
echo c - ./ncrypt/files
mkdir -p ./ncrypt/files > /dev/null 2>&1
echo x - ./ncrypt/files/patch-ncrypt.c
sed 's/^X//' >./ncrypt/files/patch-ncrypt.c << 'END-of-./ncrypt/files/patch-ncrypt.c'
X--- ncrypt.c.orig	Tue Aug 30 10:57:04 2005
X+++ ncrypt.c	Tue Aug 30 10:57:30 2005
X@@ -17,6 +17,7 @@
X #include <sys/stat.h>
X #include <sys/mman.h>
X #include <unistd.h>
X+#include <getopt.h>
X #include "ncrypt.h"
X #include "config.h"
X #include "encrypt_file.h"
END-of-./ncrypt/files/patch-ncrypt.c
echo x - ./ncrypt/files/patch-getopt.c
sed 's/^X//' >./ncrypt/files/patch-getopt.c << 'END-of-./ncrypt/files/patch-getopt.c'
X--- getopt.c.orig	Tue Aug 30 11:15:09 2005
X+++ getopt.c	Tue Aug 30 11:15:23 2005
X@@ -46,6 +46,7 @@
X #endif
X 
X #include <stdio.h>
X+#include <string.h>
X 
X /* Comment out all this code if we are using the GNU C Library, and are not
X    actually compiling the library itself.  This code is part of the GNU C
END-of-./ncrypt/files/patch-getopt.c
echo x - ./ncrypt/pkg-descr
sed 's/^X//' >./ncrypt/pkg-descr << 'END-of-./ncrypt/pkg-descr'
XNCrypt is intended to give you security in an insecure environment.
XIf you are wanting to encrypt files (particularly on a multi-user
Xsystem where you don't have root), wishing to hide your activites
Xfrom prying eyes, and want to "cover your tracks", then NCrypt is
Xfor you.
X
XWWW: http://ncrypt.sourceforge.net/
END-of-./ncrypt/pkg-descr
exit
--- ncrypt.shar ends here ---

-- 
Renato Botelho <garga @ FreeBSD.org>
               <freebsd @ galle.com.br>
GnuPG Key: http://www.FreeBSD.org/~garga/pubkey.asc

While most peoples' opinions change, the conviction of their
correctness never does.
Comment 6 Frank Laszlo 2005-09-06 13:33:05 UTC
Looks great, Thanks! Please Commit.

__________________________________________________
Frank Laszlo
System Administrator
The VonOstin Group
Email:  laszlof@tvog.net
WWW:    http://www.vonostingroup.com
Mobile: 248-863-7584



Renato Botelho wrote:

>I propose this port, that works fine on 4, 5 and 6.x. Do you approve?
>
>--- ncrypt.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:
>#
>#	./ncrypt
>#	./ncrypt/Makefile
>#	./ncrypt/distinfo
>#	./ncrypt/files
>#	./ncrypt/files/patch-ncrypt.c
>#	./ncrypt/files/patch-getopt.c
>#	./ncrypt/pkg-descr
>#
>echo c - ./ncrypt
>mkdir -p ./ncrypt > /dev/null 2>&1
>echo x - ./ncrypt/Makefile
>sed 's/^X//' >./ncrypt/Makefile << 'END-of-./ncrypt/Makefile'
>X# New ports collection makefile for:	ncrypt
>X# Date created:			30 Aug 2005
>X# Whom:				Frank Laszlo <laszlof@vonostingroup.com>
>X#
>X# $FreeBSD$
>X#
>X
>XPORTNAME=	ncrypt
>XPORTVERSION=	0.7.0
>XCATEGORIES=	security
>XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
>XMASTER_SITE_SUBDIR=	${PORTNAME}
>XEXTRACT_SUFX=	.tgz
>X
>XMAINTAINER=	laszlof@vonostingroup.com
>XCOMMENT=	Advanced AES file encryption tool
>X
>XUSE_REINPLACE=	yes
>XGNU_CONFIGURE=	yes
>XUSE_AUTOMAKE_VER=	19
>XUSE_ACLOCAL_VER=	19
>XUSE_AUTOCONF_VER=	259
>X
>XPLIST_FILES=	bin/ncrypt bin/nrm
>X
>X.include <bsd.port.pre.mk>
>X
>Xpost-configure:
>X	@${REINPLACE_CMD} -E 's,^(CC|CFLAGS) =,\1 \?=,g' \
>X		${WRKSRC}/Makefile
>X.if (${OSVERSION} < 500000)
>X	@${REINPLACE_CMD} -e 's,stdint.h,inttypes.h,g' \
>X		${WRKSRC}/standard.h
>X	@${REINPLACE_CMD} -e 's,O_SYNC,O_FSYNC,g' \
>X		${WRKSRC}/wipe_file.c
>X.endif
>X.if (${OSVERSION} < 501000)
>X	@${REINPLACE_CMD} -e 's,ifndef WIN32,if (!defined(__FreeBSD__)),g' \
>X		${WRKSRC}/ncrypt.c
>X.endif
>X
>X.include <bsd.port.post.mk>
>END-of-./ncrypt/Makefile
>echo x - ./ncrypt/distinfo
>sed 's/^X//' >./ncrypt/distinfo << 'END-of-./ncrypt/distinfo'
>XMD5 (ncrypt-0.7.0.tgz) = 423d6d0fb607d63dce788f11f74cb59f
>XSIZE (ncrypt-0.7.0.tgz) = 172283
>END-of-./ncrypt/distinfo
>echo c - ./ncrypt/files
>mkdir -p ./ncrypt/files > /dev/null 2>&1
>echo x - ./ncrypt/files/patch-ncrypt.c
>sed 's/^X//' >./ncrypt/files/patch-ncrypt.c << 'END-of-./ncrypt/files/patch-ncrypt.c'
>X--- ncrypt.c.orig	Tue Aug 30 10:57:04 2005
>X+++ ncrypt.c	Tue Aug 30 10:57:30 2005
>X@@ -17,6 +17,7 @@
>X #include <sys/stat.h>
>X #include <sys/mman.h>
>X #include <unistd.h>
>X+#include <getopt.h>
>X #include "ncrypt.h"
>X #include "config.h"
>X #include "encrypt_file.h"
>END-of-./ncrypt/files/patch-ncrypt.c
>echo x - ./ncrypt/files/patch-getopt.c
>sed 's/^X//' >./ncrypt/files/patch-getopt.c << 'END-of-./ncrypt/files/patch-getopt.c'
>X--- getopt.c.orig	Tue Aug 30 11:15:09 2005
>X+++ getopt.c	Tue Aug 30 11:15:23 2005
>X@@ -46,6 +46,7 @@
>X #endif
>X 
>X #include <stdio.h>
>X+#include <string.h>
>X 
>X /* Comment out all this code if we are using the GNU C Library, and are not
>X    actually compiling the library itself.  This code is part of the GNU C
>END-of-./ncrypt/files/patch-getopt.c
>echo x - ./ncrypt/pkg-descr
>sed 's/^X//' >./ncrypt/pkg-descr << 'END-of-./ncrypt/pkg-descr'
>XNCrypt is intended to give you security in an insecure environment.
>XIf you are wanting to encrypt files (particularly on a multi-user
>Xsystem where you don't have root), wishing to hide your activites
>Xfrom prying eyes, and want to "cover your tracks", then NCrypt is
>Xfor you.
>X
>XWWW: http://ncrypt.sourceforge.net/
>END-of-./ncrypt/pkg-descr
>exit
>--- ncrypt.shar ends here ---
>
>  
>
Comment 7 Renato Botelho freebsd_committer freebsd_triage 2005-09-06 13:50:26 UTC
State Changed
From-To: feedback->closed

New port added. Thanks!