summaryrefslogtreecommitdiff
path: root/user/chntpw/APKBUILD
blob: 7a943885f3f0e2a9a94d2c615e3389f1a62c3786 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Contributor: CyberLeo <cyberleo@cyberleo.net>
# Maintainer: CyberLeo <cyberleo@cyberleo.net>
pkgname=chntpw
pkgver=140201
pkgrel=0
pkgdesc="Change passwords in Windows SAM files"
url="https://pogostick.net/~pnh/ntpasswd/"
arch="all"
options="!check"  # No test suite.
license="(LGPL-2.1-only AND GPL-2.0-only)"
depends=""
makedepends=""
source="http://pogostick.net/~pnh/ntpasswd/$pkgname-source-$pkgver.zip
	stdint.patch
	chntpw-080526-correct-test-for-failing-open-syscall.patch
	chntpw-110511-detect-failure-to-write-key.patch
	chntpw-110511-reged-no-deref-null.patch
	chntpw-110511-robustness.patch
	chntpw-140201-get_abs_path.patch
	getopt-signed-char-return.patch
	"

build() {
	make CC="${CC:-gcc}" CFLAGS="$CFLAGS" \
		chntpw cpnt reged
}

package() {
	install -d "$pkgdir"/usr/bin
	install chntpw cpnt reged "$pkgdir"/usr/bin/
}

sha512sums="a26d747f6e077d1bb3e9b8077781f8c37dd978e07b7426495862f15c9004572b706c34736fc4d1ed8856b1a43335d726b4d87c688f7f9a11fd6cc3a74d71a7fa  chntpw-source-140201.zip
3ed747119d125b3e4dc8dbb2a697d411ef2f4403ec84c60177d8e35389bc695bb0c65f7aa4314ca320ffceec87e60e2a0c81d52544b90463fe23aa7d4a50df67  stdint.patch
1332407858eb20e0f1304472bc458789ef78638059137b91ff0b7bac9619740e8a608aace0330ace363853b5c02642fdbbc66bc47dac19f6807dae57cdaca4ca  chntpw-080526-correct-test-for-failing-open-syscall.patch
a570451f52943a2ccdced349c5fe4e82e1a338dd6d0067ddaf18dc328b2c3ee3976d08827eee866b4654ccbda93ad95dcbabaddd0b6487a1e4112b66fc63bde1  chntpw-110511-detect-failure-to-write-key.patch
c61ea69ea1f039e470f501fddd1d3674ee7427e9084361a1aba03402d302a07efd1a2630e16f479bd3cef13b17e85c14cbfff53cb33bccb470465276b1b7ac22  chntpw-110511-reged-no-deref-null.patch
bcc314545272b5be04612e435a2f9dd13cbf065cfbd80aed2ed57147ee9e73b2478cd18e95cbaa7ad3b5dfcf4788a3026b5ddd767f89ea9c80ba7a2efc7ea8c4  chntpw-110511-robustness.patch
1bb5939d2cfd3718b9e630998b250c3c37d50d5769463f4f8456ede9fa4521e1bf9d9f05986883df36418d91bef591b34a81cd36bfacca053160e4d95c03cb4b  chntpw-140201-get_abs_path.patch
85bbe9c7f21362cdff6becd94fe402d051a770105ec2eeb61e1936693e0a39ee03b6e971843c251f7768499444711392d966227f6126c328f7f58055cafe38d7  getopt-signed-char-return.patch"