summaryrefslogtreecommitdiff
path: root/packages/sys-fs/cryptsetup/cryptsetup-1.7.5.exheres-0
diff options
context:
space:
mode:
Diffstat (limited to 'packages/sys-fs/cryptsetup/cryptsetup-1.7.5.exheres-0')
-rw-r--r--packages/sys-fs/cryptsetup/cryptsetup-1.7.5.exheres-019
1 files changed, 19 insertions, 0 deletions
diff --git a/packages/sys-fs/cryptsetup/cryptsetup-1.7.5.exheres-0 b/packages/sys-fs/cryptsetup/cryptsetup-1.7.5.exheres-0
index 65f6cec..363457c 100644
--- a/packages/sys-fs/cryptsetup/cryptsetup-1.7.5.exheres-0
+++ b/packages/sys-fs/cryptsetup/cryptsetup-1.7.5.exheres-0
@@ -3,6 +3,8 @@
# Copyright 2011-2012 Wulf C. Krueger <philantrop@exherbo.org>
# Distributed under the terms of the GNU General Public License v2
+require openrc-service
+
SUMMARY="Userland utilities for dm-crypt"
HOMEPAGE="https://gitlab.com/${PN}/${PN}"
DOWNLOADS="mirror://kernel/linux/utils/${PN}/v$(ever range 1-2)/${PNV}.tar.xz"
@@ -71,3 +73,20 @@ src_configure() {
fi)
}
+src_install() {
+ default
+
+ install_openrc_files
+}
+
+pkg_preinst() {
+ if [[ -f ""${ROOT}"etc/conf.d/dmcrypt" ]]; then
+ edo mv ""${ROOT}"etc/conf.d/dmcrypt" ""${ROOT}"etc/conf.d/dmcrypt.bak"
+ fi
+}
+
+pkg_postinst() {
+ if [[ -f ""${ROOT}"etc/conf.d/dmcrypt.bak" ]]; then
+ edo mv ""${ROOT}"etc/conf.d/dmcrypt.bak" ""${ROOT}"etc/conf.d/dmcrypt"
+ fi
+}