diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-15 17:42:00 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-15 17:42:00 +0100 |
commit | 348119885fed856ebe0465ff51eaa2afbcbc38aa (patch) | |
tree | 910a13f9f53601a94d831e33a10b03403da235c0 /sys-fs/cryptsetup | |
parent | b3a248dc1595e1a159ccd683ce7ef6744463d61c (diff) |
sys-fs/cryptsetup : revision bump, mark as stable
Diffstat (limited to 'sys-fs/cryptsetup')
-rw-r--r-- | sys-fs/cryptsetup/cryptsetup-1.7.5-r2.ebuild (renamed from sys-fs/cryptsetup/cryptsetup-1.7.5-r1.ebuild) | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/sys-fs/cryptsetup/cryptsetup-1.7.5-r1.ebuild b/sys-fs/cryptsetup/cryptsetup-1.7.5-r2.ebuild index 503731c5..243c42a8 100644 --- a/sys-fs/cryptsetup/cryptsetup-1.7.5-r1.ebuild +++ b/sys-fs/cryptsetup/cryptsetup-1.7.5-r2.ebuild @@ -14,7 +14,7 @@ SRC_URI="mirror://kernel/linux/utils/${PN}/v$(get_version_component_range 1-2)/$ LICENSE="GPL-2+" SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +KEYWORDS="amd64" CRYPTO_BACKENDS="+gcrypt kernel nettle openssl" # we don't support nss since it doesn't allow cryptsetup to be built statically # and it's missing ripemd160 support so it can't provide full backward compatibility @@ -110,6 +110,13 @@ src_test() { default } +pkg_preinst() { + # backup dmcrypt configuration file, avoid etc-update + if [[ -f ""${ROOT}"etc/conf.d/dmcrypt" ]]; then + cp -avx ""${ROOT}"etc/conf.d/dmcrypt" ""${ROOT}"etc/conf.d/dmcrypt.backup" + fi +} + src_install() { default if use static ; then @@ -119,8 +126,15 @@ src_install() { fi prune_libtool_files --modules - newconfd "${FILESDIR}"/1.6.7-dmcrypt.confd dmcrypt + newconfd "${FILESDIR}"/1.6.7-dmcrypt.confd dmcrypt.example # install as example newinitd "${FILESDIR}"/1.6.7-dmcrypt.rc dmcrypt use python && cd python && distutils-r1_src_install } + +pkg_postinst() { + # restore dmcrypt configuration file, avoid etc-update + if [[ -f ""${ROOT}"etc/conf.d/dmcrypt.backup" ]]; then + cp -avx ""${ROOT}"etc/conf.d/dmcrypt.backup" ""${ROOT}"etc/conf.d/dmcrypt" + fi +} |