summaryrefslogtreecommitdiffstats
path: root/security/gcipher
diff options
context:
space:
mode:
authormezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2007-08-07 03:07:30 +0800
committermezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2007-08-07 03:07:30 +0800
commit02216c59d520c7dfc03710d14791f0461e8a1a5a (patch)
tree8181925af4848075d9453fa943a1f854bde6148c /security/gcipher
parentaa0845cfb3c57b441e18b7816d72927d0f746d41 (diff)
downloadmarcuscom-ports-02216c59d520c7dfc03710d14791f0461e8a1a5a.tar
marcuscom-ports-02216c59d520c7dfc03710d14791f0461e8a1a5a.tar.gz
marcuscom-ports-02216c59d520c7dfc03710d14791f0461e8a1a5a.tar.bz2
marcuscom-ports-02216c59d520c7dfc03710d14791f0461e8a1a5a.tar.lz
marcuscom-ports-02216c59d520c7dfc03710d14791f0461e8a1a5a.tar.xz
marcuscom-ports-02216c59d520c7dfc03710d14791f0461e8a1a5a.tar.zst
marcuscom-ports-02216c59d520c7dfc03710d14791f0461e8a1a5a.zip
-share/gnome/ -> share/.
-Fix a few of hardcore paths such as respect PREFIX. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@9359 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'security/gcipher')
-rw-r--r--security/gcipher/Makefile64
-rw-r--r--security/gcipher/distinfo3
-rw-r--r--security/gcipher/files/patch-Const.py9
-rw-r--r--security/gcipher/files/patch-gcipher16
-rw-r--r--security/gcipher/files/patch-gcipher.desktop14
-rw-r--r--security/gcipher/pkg-descr7
-rw-r--r--security/gcipher/pkg-plist65
7 files changed, 178 insertions, 0 deletions
diff --git a/security/gcipher/Makefile b/security/gcipher/Makefile
new file mode 100644
index 000000000..92a77f22b
--- /dev/null
+++ b/security/gcipher/Makefile
@@ -0,0 +1,64 @@
+# New ports collection makefile for: gcipher
+# Date created: 25 June 2003
+# Whom: Shannon -jj Behrens <jjinux@yahoo.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= gcipher
+PORTVERSION= 1.0
+PORTREVISION= 8
+CATEGORIES= security gnome
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+
+MAINTAINER= jjinux@yahoo.com
+COMMENT= A simple encryption tool
+
+RUN_DEPENDS= ${PYTHON_SITELIBDIR}/gtk-2.0/gnome/__init__.py:${PORTSDIR}/x11-toolkits/py-gnome2
+
+USE_PYTHON= yes
+USE_XLIB= yes
+USE_GNOME= libgnomeui
+
+GCIPHER_PREFIX= ${PREFIX}/share/gcipher
+
+MAN1= gcipher.1
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \
+ ${WRKSRC}/src/Const.py ${WRKSRC}/src/gcipher
+
+do-build:
+ (cd ${WRKSRC}/src; \
+ ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py .)
+
+do-install:
+ ${MKDIR} \
+ ${GCIPHER_PREFIX}/lib/cipher \
+ ${GCIPHER_PREFIX}/lib/ciphergui \
+ ${GCIPHER_PREFIX}/plugins/cipher \
+ ${GCIPHER_PREFIX}/plugins/ciphergui
+
+ (cd ${WRKSRC}; \
+ ${INSTALL_MAN} gcipher.1 ${PREFIX}/man/man1; \
+ ${INSTALL_DATA} CONTRIB LICENSE README "${GCIPHER_PREFIX}")
+
+ (cd ${WRKSRC}/src; \
+ ${INSTALL_SCRIPT} gcipher ${PREFIX}/bin/gcipher; \
+ ${INSTALL_DATA} gcipher.desktop ${PREFIX}/share/applications; \
+ for i in `${FIND} . -name '*.py' \
+ -o -name '*.pyc' \
+ -o -name '*.glade' \
+ -o -name '*.gladep'`; do \
+ ${INSTALL_DATA} "$$i" "${GCIPHER_PREFIX}/lib/$$i"; \
+ done)
+
+ (cd ${WRKSRC}/plugins; \
+ for i in `${FIND} . -name '*.py' \
+ -o -name '*.glade' \
+ -o -name '*.gladep'`; do \
+ ${INSTALL_DATA} "$$i" "${GCIPHER_PREFIX}/plugins/$$i"; \
+ done)
+
+.include <bsd.port.mk>
diff --git a/security/gcipher/distinfo b/security/gcipher/distinfo
new file mode 100644
index 000000000..1ae681e04
--- /dev/null
+++ b/security/gcipher/distinfo
@@ -0,0 +1,3 @@
+MD5 (gcipher-1.0.tar.gz) = b5600f7a5f2a9ae87b228a28ab17d0e9
+SHA256 (gcipher-1.0.tar.gz) = a06b5b34dc88b00cd713e5834b5b240e7df344df41f3200f6e2b5693b28bc369
+SIZE (gcipher-1.0.tar.gz) = 18125
diff --git a/security/gcipher/files/patch-Const.py b/security/gcipher/files/patch-Const.py
new file mode 100644
index 000000000..b4b94da30
--- /dev/null
+++ b/security/gcipher/files/patch-Const.py
@@ -0,0 +1,9 @@
+diff -ur ../gcipher-1.0.orig/src/Const.py ./src/Const.py
+--- ../gcipher-1.0.orig/src/Const.py Wed Jun 25 14:03:43 2003
++++ ./src/Const.py Wed Jun 25 14:05:59 2003
+@@ -9,4 +9,4 @@
+ Read Help/Contents to learn how to use gcipher
+ as a command line filter or as a network proxy."""
+ AUTHORS = ["Shannon -jj Behrens <jjinux@yahoo.com>"]
+-GLADEDIR = "."
++GLADEDIR = "%%PREFIX%%/share/gcipher/lib"
diff --git a/security/gcipher/files/patch-gcipher b/security/gcipher/files/patch-gcipher
new file mode 100644
index 000000000..fd720b42b
--- /dev/null
+++ b/security/gcipher/files/patch-gcipher
@@ -0,0 +1,16 @@
+diff -ur ../gcipher-1.0.orig/src/gcipher ./src/gcipher
+--- ../gcipher-1.0.orig/src/gcipher Wed Jun 25 14:03:43 2003
++++ ./src/gcipher Wed Jun 25 14:06:14 2003
+@@ -1,10 +1,10 @@
+-#!/usr/bin/python
++#!/usr/local/bin/python
+
+ """This is the main executable script."""
+
+ # Edit the path below if you need to port GCipher.
+ import sys
+-# sys.path.append("/usr/share/gcipher/lib")
++sys.path.append("%%PREFIX%%/share/gnome/gcipher/lib")
+
+ from os import environ
+ from os.path import join
diff --git a/security/gcipher/files/patch-gcipher.desktop b/security/gcipher/files/patch-gcipher.desktop
new file mode 100644
index 000000000..fa076993d
--- /dev/null
+++ b/security/gcipher/files/patch-gcipher.desktop
@@ -0,0 +1,14 @@
+diff -ur ../gcipher-1.0.orig/src/gcipher.desktop ./src/gcipher.desktop
+--- ../gcipher-1.0.orig/src/gcipher.desktop Wed Jun 25 15:07:51 2003
++++ ./src/gcipher.desktop Wed Jun 25 15:08:47 2003
+@@ -4,8 +4,8 @@
+ Name[en_US.ISO8859-15]=GCipher
+ Comment[en_US.ISO8859-15]=A simple encryption tool
+ Exec=gcipher
+-Icon=/usr/share/pixmaps/gnome-lockscreen.png
++Icon=gnome-lockscreen.png
+ Terminal=false
+ Type=Application
+ StartupNotify=true
+-Categories=GNOME;Application;Utility;X-Red-Hat-Base;
++Categories=Application;Cryptography;
diff --git a/security/gcipher/pkg-descr b/security/gcipher/pkg-descr
new file mode 100644
index 000000000..0319dfec8
--- /dev/null
+++ b/security/gcipher/pkg-descr
@@ -0,0 +1,7 @@
+This is a simple encryption tool to work with home-grown encryption algorithms.
+It can run as either a GUI, a command-line application, or a network proxy.
+
+WWW: http://gcipher.sourceforge.net
+
+- Shannon -jj Behrens
+jjinux@yahoo.com
diff --git a/security/gcipher/pkg-plist b/security/gcipher/pkg-plist
new file mode 100644
index 000000000..2295e286e
--- /dev/null
+++ b/security/gcipher/pkg-plist
@@ -0,0 +1,65 @@
+bin/gcipher
+share/applications/gcipher.desktop
+share/gcipher/CONTRIB
+share/gcipher/LICENSE
+share/gcipher/README
+share/gcipher/lib/cipher/__init__.pyc
+share/gcipher/lib/cipher/Ceasar.py
+share/gcipher/lib/cipher/CharacterCipher.py
+share/gcipher/lib/cipher/Gie.py
+share/gcipher/lib/cipher/KeyedCipher.py
+share/gcipher/lib/cipher/Rot.py
+share/gcipher/lib/cipher/Tools.py
+share/gcipher/lib/cipher/Vigenere.py
+share/gcipher/lib/cipher/__init__.py
+share/gcipher/lib/cipher/KeyedCipher.pyc
+share/gcipher/lib/cipher/Vigenere.pyc
+share/gcipher/lib/cipher/CharacterCipher.pyc
+share/gcipher/lib/cipher/Tools.pyc
+share/gcipher/lib/cipher/Gie.pyc
+share/gcipher/lib/cipher/Ceasar.pyc
+share/gcipher/lib/cipher/Rot.pyc
+share/gcipher/lib/AutomaticClass.py
+share/gcipher/lib/Const.py
+share/gcipher/lib/GtkAttributesFacade.py
+share/gcipher/lib/LibGladeApplication.py
+share/gcipher/lib/MainCLI.py
+share/gcipher/lib/MainGUI.py
+share/gcipher/lib/Proxy.py
+share/gcipher/lib/gcipher.glade
+share/gcipher/lib/gcipher.gladep
+share/gcipher/lib/ciphergui/__init__.pyc
+share/gcipher/lib/ciphergui/Ceasar.py
+share/gcipher/lib/ciphergui/CipherGUIList.py
+share/gcipher/lib/ciphergui/Gie.py
+share/gcipher/lib/ciphergui/KeyDialog.py
+share/gcipher/lib/ciphergui/Rot.py
+share/gcipher/lib/ciphergui/Vigenere.py
+share/gcipher/lib/ciphergui/__init__.py
+share/gcipher/lib/ciphergui/rot.glade
+share/gcipher/lib/ciphergui/rot.gladep
+share/gcipher/lib/ciphergui/vigenere.glade
+share/gcipher/lib/ciphergui/vigenere.gladep
+share/gcipher/lib/ciphergui/CipherGUIList.pyc
+share/gcipher/lib/ciphergui/Vigenere.pyc
+share/gcipher/lib/ciphergui/KeyDialog.pyc
+share/gcipher/lib/ciphergui/Gie.pyc
+share/gcipher/lib/ciphergui/Ceasar.pyc
+share/gcipher/lib/ciphergui/Rot.pyc
+share/gcipher/lib/Const.pyc
+share/gcipher/lib/MainCLI.pyc
+share/gcipher/lib/AutomaticClass.pyc
+share/gcipher/lib/MainGUI.pyc
+share/gcipher/lib/LibGladeApplication.pyc
+share/gcipher/lib/GtkAttributesFacade.pyc
+share/gcipher/lib/Proxy.pyc
+share/gcipher/plugins/cipher/Identity.py
+share/gcipher/plugins/ciphergui/Identity.py
+share/gcipher/plugins/ciphergui/PluginCipherGUIList.py
+@dirrm share/gcipher/lib/cipher
+@dirrm share/gcipher/lib/ciphergui
+@dirrm share/gcipher/lib
+@dirrm share/gcipher/plugins/cipher
+@dirrm share/gcipher/plugins/ciphergui
+@dirrm share/gcipher/plugins
+@dirrm share/gcipher