From 02216c59d520c7dfc03710d14791f0461e8a1a5a Mon Sep 17 00:00:00 2001 From: mezz Date: Mon, 6 Aug 2007 19:07:30 +0000 Subject: -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 --- security/gcipher/Makefile | 64 +++++++++++++++++++++++++++ security/gcipher/distinfo | 3 ++ security/gcipher/files/patch-Const.py | 9 ++++ security/gcipher/files/patch-gcipher | 16 +++++++ security/gcipher/files/patch-gcipher.desktop | 14 ++++++ security/gcipher/pkg-descr | 7 +++ security/gcipher/pkg-plist | 65 ++++++++++++++++++++++++++++ 7 files changed, 178 insertions(+) create mode 100644 security/gcipher/Makefile create mode 100644 security/gcipher/distinfo create mode 100644 security/gcipher/files/patch-Const.py create mode 100644 security/gcipher/files/patch-gcipher create mode 100644 security/gcipher/files/patch-gcipher.desktop create mode 100644 security/gcipher/pkg-descr create mode 100644 security/gcipher/pkg-plist (limited to 'security/gcipher') 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 +# +# $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 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 "] +-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 -- cgit v1.2.3