diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-12-30 19:11:38 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-12-30 19:11:38 +0000 |
commit | d0defd6d815264c7cb00d0f7d6d709719f86cae6 (patch) | |
tree | 08afa714204744e2eb338c6121ebc12fa0aeac75 /sys-fs/cryptsetup | |
parent | bbf9c9ff9112fc7d5a7da28e5d72f8173b723f85 (diff) |
sys-fs/cryptsetup : revision bump
Diffstat (limited to 'sys-fs/cryptsetup')
-rw-r--r-- | sys-fs/cryptsetup/cryptsetup-1.7.5-r3.ebuild (renamed from sys-fs/cryptsetup/cryptsetup-1.7.5-r2.ebuild) | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/sys-fs/cryptsetup/cryptsetup-1.7.5-r2.ebuild b/sys-fs/cryptsetup/cryptsetup-1.7.5-r3.ebuild index 243c42a8..ec89c087 100644 --- a/sys-fs/cryptsetup/cryptsetup-1.7.5-r2.ebuild +++ b/sys-fs/cryptsetup/cryptsetup-1.7.5-r3.ebuild @@ -110,13 +110,6 @@ 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 @@ -132,9 +125,14 @@ src_install() { use python && cd python && distutils-r1_src_install } +pkg_preinst() { + if [[ -f ""${ROOT}"etc/conf.d/dmcrypt" ]]; then + mv ""${ROOT}"etc/conf.d/dmcrypt" ""${ROOT}"etc/conf.d/dmcrypt.bak" + fi +} + 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" + if [[ -f ""${ROOT}"etc/conf.d/dmcrypt.bak" ]]; then + mv ""${ROOT}"etc/conf.d/dmcrypt.bak" ""${ROOT}"etc/conf.d/dmcrypt" fi } |