aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--security/ccrypt/Makefile16
-rw-r--r--security/ccrypt/distinfo6
-rw-r--r--security/ccrypt/files/patch-Makefile.in16
-rw-r--r--security/ccrypt/files/patch-doc::Makefile.in20
-rw-r--r--security/ccrypt/files/patch-src-main.c13
-rw-r--r--security/ccrypt/files/patch-src-platform.h12
-rw-r--r--security/ccrypt/pkg-plist3
7 files changed, 52 insertions, 34 deletions
diff --git a/security/ccrypt/Makefile b/security/ccrypt/Makefile
index 021ee73cfebd..ea01cee431de 100644
--- a/security/ccrypt/Makefile
+++ b/security/ccrypt/Makefile
@@ -7,15 +7,25 @@
#
PORTNAME= ccrypt
-PORTVERSION= 1.7
+PORTVERSION= 1.8
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
- http://quasar.mathstat.uottawa.ca/~selinger/ccrypt/download/
+ http://www.mathstat.dal.ca/~selinger/ccrypt/download/
MASTER_SITE_SUBDIR= ${PORTNAME}
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= corky1951@comcast.net
COMMENT= A command-line utility for encrypting and decrypting files and streams
+.if !defined(WITHOUT_NLS)
+USE_GNOME= intltool
+USE_GETTEXT= yes
+PLIST_SUB+= NLS=""
+.else
+USE_PERL5_BUILD= yes
+CONFIGURE_ARGS+= --disable-nls
+PLIST_SUB+= NLS="@comment "
+.endif
+
GNU_CONFIGURE= yes
MAN1= ccrypt.1
diff --git a/security/ccrypt/distinfo b/security/ccrypt/distinfo
index 88da47c6ae06..c674afccbb8e 100644
--- a/security/ccrypt/distinfo
+++ b/security/ccrypt/distinfo
@@ -1,3 +1,3 @@
-MD5 (ccrypt-1.7.tar.gz) = 19526e31a7d234e29d54dbcc876605d5
-SHA256 (ccrypt-1.7.tar.gz) = 1bf974c9ee5f20332f0117c5b80784825f505f1a24eb57a10c8195c3ad16540e
-SIZE (ccrypt-1.7.tar.gz) = 214189
+MD5 (ccrypt-1.8.tar.gz) = c8be3f35b8dddf3310ca043cd9817620
+SHA256 (ccrypt-1.8.tar.gz) = efd0487ebd21b7aee5c0d6c205d638c29880f3c4163d4bdfa9477c7838f61677
+SIZE (ccrypt-1.8.tar.gz) = 665596
diff --git a/security/ccrypt/files/patch-Makefile.in b/security/ccrypt/files/patch-Makefile.in
index 91ac67716abf..6c1fa446bb1e 100644
--- a/security/ccrypt/files/patch-Makefile.in
+++ b/security/ccrypt/files/patch-Makefile.in
@@ -1,11 +1,11 @@
---- Makefile.in.orig Mon Mar 29 06:58:19 2004
-+++ Makefile.in Sun Jan 23 09:55:14 2005
-@@ -150,7 +150,7 @@
+--- Makefile.in.orig 2009-06-05 07:59:43.000000000 -0700
++++ Makefile.in 2009-06-10 18:06:23.000000000 -0700
+@@ -251,7 +251,7 @@
sharedstatedir = @sharedstatedir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
--SUBDIRS = src emacs doc check
-+SUBDIRS = src doc check
- EXTRA_DIST = README.win
- all: config.h
- $(MAKE) $(AM_MAKEFLAGS) all-recursive
+-SUBDIRS = m4 po intl src emacs doc check
++SUBDIRS = m4 po intl src doc check
+ EXTRA_DIST = m4/ChangeLog config.rpath README-WIN intltool-extract.in \
+ intltool-merge.in intltool-update.in
+
diff --git a/security/ccrypt/files/patch-doc::Makefile.in b/security/ccrypt/files/patch-doc::Makefile.in
deleted file mode 100644
index 6cfb5a16d6df..000000000000
--- a/security/ccrypt/files/patch-doc::Makefile.in
+++ /dev/null
@@ -1,20 +0,0 @@
---- doc/Makefile.in.orig Mon Mar 29 06:58:19 2004
-+++ doc/Makefile.in Sun Jan 23 09:59:41 2005
-@@ -274,7 +274,7 @@
- check: check-am
- all-am: Makefile $(MANS) $(DATA)
- installdirs:
-- $(mkdir_p) $(DESTDIR)$(man1dir) $(DESTDIR)$(htmldir)
-+ $(mkdir_p) $(DESTDIR)$(man1dir)
- install: install-am
- install-exec: install-exec-am
- install-data: install-data-am
-@@ -316,7 +316,7 @@
-
- info-am:
-
--install-data-am: install-htmlDATA install-man
-+install-data-am: install-man
- @$(NORMAL_INSTALL)
- $(MAKE) $(AM_MAKEFLAGS) install-data-hook
-
diff --git a/security/ccrypt/files/patch-src-main.c b/security/ccrypt/files/patch-src-main.c
new file mode 100644
index 000000000000..0241affcb291
--- /dev/null
+++ b/security/ccrypt/files/patch-src-main.c
@@ -0,0 +1,13 @@
+--- src/main.c.orig 2009-06-05 07:58:59.000000000 -0700
++++ src/main.c 2009-06-10 16:56:56.000000000 -0700
+@@ -519,10 +519,6 @@
+ }
+ }
+
+- /* reset stdin/stdout to binary mode under Windows */
+- setmode(0,O_BINARY);
+- setmode(1,O_BINARY);
+-
+ /* if --keyref given, check encryption keys against named file */
+ if (cmd.keyref && (cmd.mode == ENCRYPT || cmd.mode == KEYCHANGE)) {
+ f = fopen(cmd.keyref, "rb");
diff --git a/security/ccrypt/files/patch-src-platform.h b/security/ccrypt/files/patch-src-platform.h
new file mode 100644
index 000000000000..157bd95022d7
--- /dev/null
+++ b/security/ccrypt/files/patch-src-platform.h
@@ -0,0 +1,12 @@
+--- src/platform.h.orig 2009-06-05 07:39:49.000000000 -0700
++++ src/platform.h 2009-06-10 17:18:40.000000000 -0700
+@@ -78,9 +78,6 @@
+
+ #else /* on a POSIX system, map these to no-ops */
+
+-static inline void setmode(int fd, int mode) {
+- return;
+-}
+ #ifndef O_BINARY
+ #define O_BINARY 0
+ #endif /* O_BINARY */
diff --git a/security/ccrypt/pkg-plist b/security/ccrypt/pkg-plist
index 7ebe31ebbd7a..9774d42fa083 100644
--- a/security/ccrypt/pkg-plist
+++ b/security/ccrypt/pkg-plist
@@ -2,7 +2,10 @@ bin/ccat
bin/ccdecrypt
bin/ccencrypt
bin/ccrypt
+%%NLS%%share/locale/de/LC_MESSAGES/ccrypt.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/ccrypt.mo
%%PORTDOCS%%share/doc/ccrypt/README
%%PORTDOCS%%share/doc/ccrypt/ccrypt.html
%%PORTDOCS%%share/doc/ccrypt/cypfaq01.txt
%%PORTDOCS%%@dirrm share/doc/ccrypt
+