Skip to content
Snippets Groups Projects
Commit 41010a20 authored by Fabian Affolter's avatar Fabian Affolter Committed by Jakub Jirutka
Browse files

unmaintained/chntpw: clean-up and switch libressl

parent 32e65351
No related branches found
No related tags found
No related merge requests found
# Contributor: # Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=chntpw pkgname=chntpw
pkgver=140201 pkgver=140201
pkgrel=0 pkgrel=1
pkgdesc="Change passwords in Windows SAM files" pkgdesc="Change passwords in Windows SAM files"
url="http://pogostick.net/~pnh/ntpasswd/" url="http://pogostick.net/~pnh/ntpasswd/"
arch="all" arch="all"
license="GPL2" license="GPL2"
depends="" makedepends="libressl-dev"
depends_dev=""
makedepends="$depends_dev openssl-dev"
install=""
subpackages=""
source="http://pogostick.net/~pnh/ntpasswd/$pkgname-source-$pkgver.zip source="http://pogostick.net/~pnh/ntpasswd/$pkgname-source-$pkgver.zip
stdint.patch stdint.patch"
" builddir="$srcdir/$pkgname-$pkgver"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() { build() {
cd "$_builddir" cd "$builddir"
make CC="${CC:-gcc}" CFLAGS="$CFLAGS -DUSEOPENSSL" LIBS="-lcrypto" \ make CC="${CC:-gcc}" CFLAGS="$CFLAGS -DUSEOPENSSL" LIBS="-lcrypto" \
chntpw cpnt reged || return 1 chntpw cpnt reged || return 1
} }
package() { package() {
cd "$_builddir" cd "$builddir"
install -d "$pkgdir"/usr/bin install -d "$pkgdir"/usr/bin
install chntpw cpnt reged "$pkgdir"/usr/bin/ install chntpw cpnt reged "$pkgdir"/usr/bin/
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment