diff options
Diffstat (limited to 'community/chntpw')
-rw-r--r-- | community/chntpw/APKBUILD | 32 | ||||
-rw-r--r-- | community/chntpw/stdint.patch | 11 |
2 files changed, 43 insertions, 0 deletions
diff --git a/community/chntpw/APKBUILD b/community/chntpw/APKBUILD new file mode 100644 index 0000000000..e878a787f6 --- /dev/null +++ b/community/chntpw/APKBUILD @@ -0,0 +1,32 @@ +# Contributor: Fabian Affolter <fabian@affolter-engineering.ch> +# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> +pkgname=chntpw +pkgver=140201 +pkgrel=1 +pkgdesc="Change passwords in Windows SAM files" +url="http://pogostick.net/~pnh/ntpasswd/" +arch="all" +license="GPL2" +makedepends="libressl-dev" +source="http://pogostick.net/~pnh/ntpasswd/$pkgname-source-$pkgver.zip + stdint.patch" +builddir="$srcdir/$pkgname-$pkgver" + +build() { + cd "$builddir" + make CC="${CC:-gcc}" CFLAGS="$CFLAGS -DUSEOPENSSL" LIBS="-lcrypto" \ + chntpw cpnt reged || return 1 +} + +package() { + cd "$builddir" + install -d "$pkgdir"/usr/bin + install chntpw cpnt reged "$pkgdir"/usr/bin/ +} + +md5sums="d60bc657206b07ad84d926649d6417dc chntpw-source-140201.zip +7219b4f860212e85de39ba1937e2c296 stdint.patch" +sha256sums="96e20905443e24cba2f21e51162df71dd993a1c02bfa12b1be2d0801a4ee2ccc chntpw-source-140201.zip +9d392cdf598d4a9e9ddd3ae1b538ed1d8bd63fb27e23d4e4c9b13110b808a723 stdint.patch" +sha512sums="a26d747f6e077d1bb3e9b8077781f8c37dd978e07b7426495862f15c9004572b706c34736fc4d1ed8856b1a43335d726b4d87c688f7f9a11fd6cc3a74d71a7fa chntpw-source-140201.zip +3ed747119d125b3e4dc8dbb2a697d411ef2f4403ec84c60177d8e35389bc695bb0c65f7aa4314ca320ffceec87e60e2a0c81d52544b90463fe23aa7d4a50df67 stdint.patch" diff --git a/community/chntpw/stdint.patch b/community/chntpw/stdint.patch new file mode 100644 index 0000000000..841e25ed70 --- /dev/null +++ b/community/chntpw/stdint.patch @@ -0,0 +1,11 @@ +--- ./ntreg.h.orig ++++ ./ntreg.h +@@ -25,6 +25,8 @@ + #ifndef _INCLUDE_NTREG_H + #define _INCLUDE_NTREG_H 1 + ++#include <stdint.h> ++ + #define SZ_MAX 4096 /* Max unicode strlen before we truncate */ + + #define KEY_ROOT 0x2c /* Type ID of ROOT key node */ |