summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
}