aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2001-12-12 14:12:02 +0800
committerijliao <ijliao@FreeBSD.org>2001-12-12 14:12:02 +0800
commitef0b48efb8296e0981b6adb4e9b5a7843b692e64 (patch)
tree996139616e0a699e83347a3c3ce3f2acea8ddc0e /textproc
parentf4f923f67d2c309e6f3e63c40b83d7d7340d727d (diff)
downloadfreebsd-ports-gnome-ef0b48efb8296e0981b6adb4e9b5a7843b692e64.tar.gz
freebsd-ports-gnome-ef0b48efb8296e0981b6adb4e9b5a7843b692e64.tar.zst
freebsd-ports-gnome-ef0b48efb8296e0981b6adb4e9b5a7843b692e64.zip
add rotix
A program to generate rotational obfuscations PR: 32608 Submitted by: lintux@lintux.cx
Diffstat (limited to 'textproc')
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/rotix/Makefile29
-rw-r--r--textproc/rotix/distinfo1
-rw-r--r--textproc/rotix/files/patch-Makefile37
-rw-r--r--textproc/rotix/files/patch-Makefile.settings19
-rw-r--r--textproc/rotix/files/patch-rotix.c33
-rw-r--r--textproc/rotix/pkg-comment1
-rw-r--r--textproc/rotix/pkg-descr6
-rw-r--r--textproc/rotix/pkg-plist2
9 files changed, 129 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index 2cae75dbe5dd..6f8ac08681cd 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -196,6 +196,7 @@
SUBDIR += replaceit
SUBDIR += rman
SUBDIR += rot
+ SUBDIR += rotix
SUBDIR += rtf2htm
SUBDIR += ruby-csv
SUBDIR += ruby-erb
diff --git a/textproc/rotix/Makefile b/textproc/rotix/Makefile
new file mode 100644
index 000000000000..d25df33e743c
--- /dev/null
+++ b/textproc/rotix/Makefile
@@ -0,0 +1,29 @@
+# ex:ts=8
+# New ports collection makefile for: rotix
+# Date created: Dec 8, 2001
+# Whom: lintux@debian.org
+#
+# $FreeBSD$
+#
+
+PORTNAME= rotix
+PORTVERSION= 0.8
+CATEGORIES= textproc
+MASTER_SITES= http://elektron.its.tudelft.nl/~hemmin98/
+
+MAINTAINER= lintux@debian.org
+
+LIB_DEPENDS= intl:${PORTSDIR}/devel/gettext
+
+USE_GMAKE= yes
+
+MAN1= rotix.1
+
+post-patch:
+ @${PERL} -pi -e "s,%%CFLAGS%%,${CFLAGS},g ; \
+ s,%%LOCALBASE%%,${LOCALBASE},g ; \
+ s,%%INSTALL_PROGRAM%%,${INSTALL_PROGRAM},g ; \
+ s,%%INSTALL_MAN%%,${INSTALL_MAN},g ; \
+ s,%%INSTALL_DATA%%,${INSTALL_DATA},g" ${WRKSRC}/Makefile
+
+.include <bsd.port.mk>
diff --git a/textproc/rotix/distinfo b/textproc/rotix/distinfo
new file mode 100644
index 000000000000..e42e9b357ec0
--- /dev/null
+++ b/textproc/rotix/distinfo
@@ -0,0 +1 @@
+MD5 (rotix-0.8.tar.gz) = 76c7a5ce1b2bd416076600cdc7db20b6
diff --git a/textproc/rotix/files/patch-Makefile b/textproc/rotix/files/patch-Makefile
new file mode 100644
index 000000000000..55a4398ffd70
--- /dev/null
+++ b/textproc/rotix/files/patch-Makefile
@@ -0,0 +1,37 @@
+--- Makefile.orig Sat Nov 10 22:57:10 2001
++++ Makefile Wed Dec 12 14:03:34 2001
+@@ -33,17 +33,17 @@
+ ifdef DEBUG
+ CFLAGS = -g3
+ else
+-CFLAGS = -O3
++CFLAGS = %%CFLAGS%%
+ endif
+
+ ifdef I18N
+-CFLAGS += -DPACKAGE=\"${PACKAGE}\" -D LOCALEDIR=\"${LOCALEDIR}\"
++CFLAGS += -DPACKAGE=\"${PACKAGE}\" -D LOCALEDIR=\"${LOCALEDIR}\" -I%%LOCALBASE%%/include
+ endif
+
+ all : rotix po
+
+ rotix : rot.o help.o rotix.o
+- gcc -Wall $(CFLAGS) -o rotix rot.o help.o rotix.o
++ gcc -Wall $(CFLAGS) -o rotix rot.o help.o rotix.o -L%%LOCALBASE%%/lib -lintl
+ ifdef STRIP
+ ifndef DEBUG
+ strip rotix
+@@ -78,10 +78,10 @@
+ rm -f po/*.mo
+
+ install: rotix po
+- install -D --mode=0755 rotix $(DESTDIR)$(BINDIR)/rotix
+- install -D --mode=0644 rotix.1 $(DESTDIR)$(MANDIR)/man1/rotix.1
++ %%INSTALL_PROGRAM%% rotix $(DESTDIR)$(BINDIR)
++ %%INSTALL_MAN%% rotix.1 $(DESTDIR)$(MANDIR)/man1
+ ifdef I18N
+- install -D --mode=0644 po/NL.mo $(DESTDIR)$(LOCALEDIR)/nl/LC_MESSAGES/rotix.mo
++ %%INSTALL_DATA%% po/NL.mo $(DESTDIR)$(LOCALEDIR)/nl/LC_MESSAGES/rotix.mo
+ endif
+
+ uninstall:
diff --git a/textproc/rotix/files/patch-Makefile.settings b/textproc/rotix/files/patch-Makefile.settings
new file mode 100644
index 000000000000..08f564800bbd
--- /dev/null
+++ b/textproc/rotix/files/patch-Makefile.settings
@@ -0,0 +1,19 @@
+--- Makefile.settings.orig Wed Dec 12 13:47:06 2001
++++ Makefile.settings Wed Dec 12 13:48:46 2001
+@@ -13,7 +13,7 @@
+
+ # PREFIX: This is the prefix for installing Rotix. Default is /usr/local.
+ # Alternative could be /usr.
+-PREFIX=/usr/local
++#PREFIX=/usr/local
+
+ # DESTDIR: Used when creating packages.
+ DESTDIR=
+@@ -27,5 +27,5 @@
+ PACKAGE=rotix
+
+ # LOCALEDIR: If your LOCALEDIR is somewhere else, change the path.
+-LOCALEDIR=/usr/share/locale
+-
++LOCALEDIR=${PREFIX}/share/locale
++
diff --git a/textproc/rotix/files/patch-rotix.c b/textproc/rotix/files/patch-rotix.c
new file mode 100644
index 000000000000..47e440778929
--- /dev/null
+++ b/textproc/rotix/files/patch-rotix.c
@@ -0,0 +1,33 @@
+--- rotix.c Fri Nov 9 17:39:12 2001
++++ rotix.c Fri Dec 7 15:35:26 2001
+@@ -26,9 +26,11 @@
+ /* System includes. */
+ #include <stdio.h>
+ #include <stdlib.h>
+-#include <getopt.h>
++#include <unistd.h>
+ #include <string.h>
+
++#define getopt_long( a, b, c, d, e ) getopt( a, b, c )
++
+ /* I18N */
+ #include <libintl.h>
+ #define _(String) gettext (String)
+@@ -46,7 +47,7 @@
+ int i = 1, rotor = 13, option = 0;
+ char *arg = NULL, option_flags = 0, rotate_flags = 0;
+
+- /* The struct used to determine which options are called. */
++ /* The struct used to determine which options are called.
+ static struct option rotix_options[] = {
+ { "file", 1, NULL, 'f' },
+ { "rot", 1, NULL, 'r' },
+@@ -57,7 +58,7 @@
+ { "help", 0, NULL, 'h' },
+ { "version", 0, NULL, 'v' },
+ { NULL, 0, NULL, 0 }
+- };
++ }; */
+
+
+ /* A 2-bit character array, to obfuscate a character */
diff --git a/textproc/rotix/pkg-comment b/textproc/rotix/pkg-comment
new file mode 100644
index 000000000000..7eb7466efc57
--- /dev/null
+++ b/textproc/rotix/pkg-comment
@@ -0,0 +1 @@
+A program to generate rotational obfuscations
diff --git a/textproc/rotix/pkg-descr b/textproc/rotix/pkg-descr
new file mode 100644
index 000000000000..b992d20a25bd
--- /dev/null
+++ b/textproc/rotix/pkg-descr
@@ -0,0 +1,6 @@
+Rotix allows you to generate rotational obfuscations, like the world-famous
+ROT-13. Note that this is not an encryption pack.
+
+Install Rotix if you want to generate ROT-13 variants.
+
+WWW: http://elektron.its.tudelft.nl/~hemmin98/rotix.html
diff --git a/textproc/rotix/pkg-plist b/textproc/rotix/pkg-plist
new file mode 100644
index 000000000000..cd6e97ec7842
--- /dev/null
+++ b/textproc/rotix/pkg-plist
@@ -0,0 +1,2 @@
+bin/rotix
+share/locale/nl/LC_MESSAGES/rotix.mo