aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2016-04-08 12:14:56 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-04-08 12:14:56 +0000
commit574c97a27e611601373bb3899c0ec08e9f20a56d (patch)
tree2fa7f7c532d9a01cc2c36debcc8179c0dedb9d1e /main
parent5b54456c2d17a38528091f566714a9cf82176b23 (diff)
downloadaports-574c97a27e611601373bb3899c0ec08e9f20a56d.tar.bz2
aports-574c97a27e611601373bb3899c0ec08e9f20a56d.tar.xz
main/ca-certificates: clean up /etc/ssl/certs in deinstall
fixes #5382
Diffstat (limited to 'main')
-rw-r--r--main/ca-certificates/APKBUILD3
-rw-r--r--main/ca-certificates/ca-certificates.post-deinstall7
2 files changed, 9 insertions, 1 deletions
diff --git a/main/ca-certificates/APKBUILD b/main/ca-certificates/APKBUILD
index 808dced2f3..a839d5ce69 100644
--- a/main/ca-certificates/APKBUILD
+++ b/main/ca-certificates/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ca-certificates
pkgver=20160104
-pkgrel=3
+pkgrel=4
pkgdesc="Common CA certificates PEM files"
url="http://packages.debian.org/sid/ca-certificates"
arch="all"
@@ -12,6 +12,7 @@ makedepends="python"
subpackages="$pkgname-doc"
options="!fhs"
triggers="ca-certificates.trigger=/usr/share/ca-certificates:/usr/local/share/ca-certificates:/etc/ssl/certs:/etc/ca-certificates/update.d"
+install="$pkgname.post-deinstall"
source="http://ftp.no.debian.org/debian/pool/main/c/$pkgname/${pkgname}_${pkgver}.tar.xz
fix-manpage.patch
update-ca.c
diff --git a/main/ca-certificates/ca-certificates.post-deinstall b/main/ca-certificates/ca-certificates.post-deinstall
new file mode 100644
index 0000000000..ead634716c
--- /dev/null
+++ b/main/ca-certificates/ca-certificates.post-deinstall
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+# clean up broken symlinks and ca-certificates.crt store
+find -L /etc/ssl/certs -maxdepth 1 \( -type l -o -name ca-certificates.crt \) \
+ -delete
+rmdir /etc/ssl/certs 2>/dev/null || true
+