aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2013-02-20 14:26:04 +0000
committerFabian Affolter <fabian@affolter-engineering.ch>2013-03-04 09:50:13 +0000
commit0389a26d3bbcbc99f58dc48db46e79d81103346e (patch)
tree33dc7db226d31eb08e254c0b3aa9105213ca68bb
parentf8f6d51717a3c120092475c5c01f318f8d690a9b (diff)
downloadaports-0389a26d3bbcbc99f58dc48db46e79d81103346e.tar.bz2
aports-0389a26d3bbcbc99f58dc48db46e79d81103346e.tar.xz
testing/crunch: new aport
Crunch is a wordlist generator where you can specify a standard character set or a character set you specify. crunch can generate all possible combinations and permutations. Website: http://sourceforge.net/projects/crunch-wordlist/
-rw-r--r--testing/crunch/APKBUILD41
-rw-r--r--testing/crunch/crunch-3.4-destdir.patch25
2 files changed, 66 insertions, 0 deletions
diff --git a/testing/crunch/APKBUILD b/testing/crunch/APKBUILD
new file mode 100644
index 0000000000..9db89b1394
--- /dev/null
+++ b/testing/crunch/APKBUILD
@@ -0,0 +1,41 @@
+# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
+# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
+pkgname=crunch
+pkgver=3.4
+pkgrel=0
+pkgdesc="A wordlist generator"
+url="http://sourceforge.net/projects/crunch-wordlist/"
+arch="all"
+license="GPL2"
+depends=""
+depends_dev=""
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-doc"
+source="http://downloads.sourceforge.net/project/crunch-wordlist/crunch-wordlist/$pkgname-$pkgver.tgz
+ crunch-3.4-destdir.patch"
+
+_builddir="$srcdir"/$pkgname-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p2 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" geninstall || return 1
+ rm -f "$pkgdir"/usr/lib/*.la
+}
+
+md5sums="3f658a60d8227025df12cfb4ff4b9e15 crunch-3.4.tgz
+a75466c9dae86223f913f622208eef86 crunch-3.4-destdir.patch"
diff --git a/testing/crunch/crunch-3.4-destdir.patch b/testing/crunch/crunch-3.4-destdir.patch
new file mode 100644
index 0000000000..09dcf9a48c
--- /dev/null
+++ b/testing/crunch/crunch-3.4-destdir.patch
@@ -0,0 +1,25 @@
+--- src/crunch-3.4/Makefile.orig
++++ src/crunch-3.4/Makefile
+@@ -58,16 +58,16 @@
+ # Install generic target
+ geninstall: build
+ @echo "Creating directories..."
+- $(INSTALL) -d -m 755 $(INSTALL_OPTIONS) $(BINDIR)
+- $(INSTALL) -d -m 755 $(INSTALL_OPTIONS) $(MANDIR)
++ $(INSTALL) -d -m 755 $(DESTDIR)$(BINDIR)
++ $(INSTALL) -d -m 755 $(DESTDIR)$(MANDIR)
+ @echo "Copying binary..."
+- $(INSTALL) crunch -m 755 $(INSTALL_OPTIONS) $(BINDIR)
++ $(INSTALL) crunch -m 755 $(DESTDIR)$(BINDIR)
+ @echo "Copying charset.lst..."
+- $(INSTALL) charset.lst -m 644 $(INSTALL_OPTIONS) $(BINDIR)
++ $(INSTALL) charset.lst -m 644 $(DESTDIR)$(BINDIR)
+ @echo "Copying GPL.TXT..."
+- $(INSTALL) GPL.TXT -m 644 $(INSTALL_OPTIONS) $(BINDIR)
++ $(INSTALL) GPL.TXT -m 644 $(DESTDIR)$(BINDIR)
+ @echo "Installing man page..."
+- $(INSTALL) crunch.1 -m 644 $(INSTALL_OPTIONS) $(MANDIR)
++ $(INSTALL) crunch.1 -m 644 $(DESTDIR)$(MANDIR)
+ @echo ""
+
+ # Install BT specific target