aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2016-11-19 10:12:49 +0000
committerJakub Jirutka <jakub@jirutka.cz>2016-11-29 15:03:47 +0100
commit41010a200a2d2c61bea2175c17b3155e4c809670 (patch)
tree6e121156798b76902a706a1ee4c4f1e5b8d48b79 /unmaintained
parent32e65351bf37498cdecd385118dc7ca3eaf13115 (diff)
downloadaports-41010a200a2d2c61bea2175c17b3155e4c809670.tar.bz2
aports-41010a200a2d2c61bea2175c17b3155e4c809670.tar.xz
unmaintained/chntpw: clean-up and switch libressl
Diffstat (limited to 'unmaintained')
-rw-r--r--unmaintained/chntpw/APKBUILD29
1 files changed, 7 insertions, 22 deletions
diff --git a/unmaintained/chntpw/APKBUILD b/unmaintained/chntpw/APKBUILD
index f95508d291..e878a787f6 100644
--- a/unmaintained/chntpw/APKBUILD
+++ b/unmaintained/chntpw/APKBUILD
@@ -1,40 +1,25 @@
-# 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/
}