diff options
-rw-r--r-- | testing/crunch/APKBUILD | 41 | ||||
-rw-r--r-- | testing/crunch/crunch-3.4-destdir.patch | 25 |
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
|