aboutsummaryrefslogtreecommitdiffstats
path: root/main/ca-certificates/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-10-15 08:27:28 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-10-15 08:28:59 +0000
commit9478886233d1c78f702cd06744cda520919af611 (patch)
tree28784f9fe07bf2b9f00a74385c8e51cd68fa8835 /main/ca-certificates/APKBUILD
parentb27e8afcc7db7ceea1ad5976786f3a8833379da7 (diff)
downloadaports-9478886233d1c78f702cd06744cda520919af611.tar.bz2
aports-9478886233d1c78f702cd06744cda520919af611.tar.xz
main/ca-certificates: replace update-ca-certificates implementation
Use C implementation to avoid Lua dependency. https://github.com/xynopsis/update_ca_cert
Diffstat (limited to 'main/ca-certificates/APKBUILD')
-rw-r--r--main/ca-certificates/APKBUILD19
1 files changed, 11 insertions, 8 deletions
diff --git a/main/ca-certificates/APKBUILD b/main/ca-certificates/APKBUILD
index 8c458b62b7..af08b7ca99 100644
--- a/main/ca-certificates/APKBUILD
+++ b/main/ca-certificates/APKBUILD
@@ -7,24 +7,27 @@ _nmu="+nmu${pkgver#*_p}"
[ "$_nmu" = "+nmu${pkgver}" ] && _nmu=""
_ver=${pkgver}
-pkgrel=0
+pkgrel=1
pkgdesc="Common CA certificates PEM files"
url="http://packages.debian.org/sid/ca-certificates"
-arch="noarch"
+arch="all"
license="MPL 2.0 GPL2+"
-depends="run-parts openssl lua5.2 lua5.2-posix"
+depends="openssl"
makedepends="python"
subpackages="$pkgname-doc"
options="!fhs"
triggers="ca-certificates.trigger=/usr/share/ca-certificates:/usr/local/share/ca-certificates:/etc/ssl/certs"
source="http://ftp.no.debian.org/debian/pool/main/c/$pkgname/${pkgname}_${_ver}.tar.xz
- update-ca-certificates
+ update-ca.c
"
_builddir="$srcdir"/$pkgname-$_ver
build () {
cd "$_builddir"
make || return 1
+
+ ${CC:-gcc} ${CFLAGS} -o update-ca-certificates "$srcdir"/update-ca.c \
+ ${LDFLAGS} || return 1
}
package() {
@@ -50,7 +53,7 @@ package() {
# http://bugs.alpinelinux.org/issues/2715
# http://bugs.alpinelinux.org/issues/2846
- install -m755 "$srcdir"/update-ca-certificates "$pkgdir"/usr/sbin \
+ install -m755 update-ca-certificates "$pkgdir"/usr/sbin \
|| return 1
mkdir -p "$pkgdir"/etc/apk/protected_paths.d
@@ -62,8 +65,8 @@ EOF
}
md5sums="717455f13fb31fd014a11a468ea3895d ca-certificates_20150426.tar.xz
-0c2fb9aa695d9d857fecd1c236930016 update-ca-certificates"
+10414777ecc6ee6c542e6389179eaa00 update-ca.c"
sha256sums="37dbaa93ed64cc4ae93ac295f9248fbc741bd51376438cfb1257f17efab5494f ca-certificates_20150426.tar.xz
-b95a80d5881a3ffeea3f36599503a141f9c5a433bc9646d673225658ebc032a1 update-ca-certificates"
+ad8fda22d18ad57a1b8c7e8fb204fc74966c7908bda00e3465ad9cd306ec4df1 update-ca.c"
sha512sums="920dfc512c018c5338bf07b6a6afcb664d9bfba659d4233ca9e87471d5e0ed05de054c96f3d7e6091549aa6deb46106a79f7f982696081f9b2164e18133eb34d ca-certificates_20150426.tar.xz
-ce0e6317af25a5433a4fef28db6afd0ef985089f4a6b9eb13ac1ca454de854ae3de18029fed1e385651317cb237581a38d3792c42f5f30ec12667609d689b4e1 update-ca-certificates"
+32f823236d665fd0bfd9f2afb387527036275047b7003fb82c9fa654e40616e967ed3a1eb2c850844c88efb835c1454112b5b1d10d2c3bc82c85c96563223790 update-ca.c"