summaryrefslogtreecommitdiff
path: root/packages/sys-fs/cryptsetup/cryptsetup-1.7.5.exheres-0
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-10-14 11:22:45 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-10-14 11:22:45 +0100
commitba34ae5a178ff5b2a184f54f7e9d5d59fd9f03ec (patch)
tree4a74b3a5704b1db8484b30088423e90700e1cc1d /packages/sys-fs/cryptsetup/cryptsetup-1.7.5.exheres-0
parent1e778bb5ef17ae4a92d5fee63680a97569c01e0d (diff)
sys-fs/cryptsetup : add openrc parts
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
+}