diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-10-14 11:22:45 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-10-14 11:22:45 +0100 |
commit | ba34ae5a178ff5b2a184f54f7e9d5d59fd9f03ec (patch) | |
tree | 4a74b3a5704b1db8484b30088423e90700e1cc1d /packages/sys-fs/cryptsetup/cryptsetup-1.7.5.exheres-0 | |
parent | 1e778bb5ef17ae4a92d5fee63680a97569c01e0d (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-0 | 19 |
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 +} |