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>
pkgname=chntpw
pkgver=140201
pkgrel=0
pkgrel=1
pkgdesc="Change passwords in Windows SAM files"
url="http://pogostick.net/~pnh/ntpasswd/"
arch="all"
license="GPL2"
depends=""
depends_dev=""
makedepends="$depends_dev openssl-dev"
install=""
subpackages=""
makedepends="libressl-dev"
source="http://pogostick.net/~pnh/ntpasswd/$pkgname-source-$pkgver.zip
stdint.patch
"
_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
}
stdint.patch"
builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$_builddir"
cd "$builddir"
make CC="${CC:-gcc}" CFLAGS="$CFLAGS -DUSEOPENSSL" LIBS="-lcrypto" \
chntpw cpnt reged || return 1
}
package() {
cd "$_builddir"
cd "$builddir"
install -d "$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