4 changed files with 78 additions and 0 deletions
@ -0,0 +1,21 @@
|
||||
# Maintainer: Nathan <ndowens@artixlinux.org> |
||||
# Maintainer: Artoo <artoos@artixlinux.org> |
||||
|
||||
pkgname=veracrypt-openrc |
||||
pkgver=20211122 |
||||
pkgrel=1 |
||||
pkgdesc="OpenRC veracrypt init script" |
||||
arch=('any') |
||||
url="https://gitea.artixlinux.org/artixlinux/packages-openrc" |
||||
license=('GPL2') |
||||
groups=('openrc-galaxy') |
||||
provides=('init-veracrypt') |
||||
depends=('openrc' 'veracrypt') |
||||
conflicts=('init-veracrypt') |
||||
source=("veracrypt.initd") |
||||
sha256sums=('9d36240b698b97d6384ea3d4b282b1765f301adb71c5e80e190aa0e985ca1e53') |
||||
|
||||
package() { |
||||
install -Dm755 "${srcdir}"/veracrypt.initd "${pkgdir}"/etc/init.d/veracrypt |
||||
} |
||||
|
@ -0,0 +1,18 @@
|
||||
#!/usr/bin/openrc-run |
||||
# Copyright 1999-2020 Gentoo Authors |
||||
# Distributed under the terms of the GNU General Public License v2 |
||||
|
||||
depend() { |
||||
after localmount |
||||
need device-mapper |
||||
} |
||||
|
||||
stop() { |
||||
# Try to remove any dm-crypt mappings |
||||
if [ -x /usr/bin/veracrypt ]; then |
||||
ebegin "Removing veracrypt mappings" |
||||
! /usr/bin/veracrypt -l > /dev/null 2>&1 || /usr/bin/veracrypt -d |
||||
eend $? |
||||
fi |
||||
} |
||||
|
@ -0,0 +1,21 @@
|
||||
# Maintainer: Nathan <ndowens@artixlinux.org> |
||||
# Maintainer: Artoo <artoos@artixlinux.org> |
||||
|
||||
pkgname=veracrypt-openrc |
||||
pkgver=20211122 |
||||
pkgrel=1 |
||||
pkgdesc="OpenRC veracrypt init script" |
||||
arch=('any') |
||||
url="https://gitea.artixlinux.org/artixlinux/packages-openrc" |
||||
license=('GPL2') |
||||
groups=('openrc-galaxy') |
||||
provides=('init-veracrypt') |
||||
depends=('openrc' 'veracrypt') |
||||
conflicts=('init-veracrypt') |
||||
source=("veracrypt.initd") |
||||
sha256sums=('9d36240b698b97d6384ea3d4b282b1765f301adb71c5e80e190aa0e985ca1e53') |
||||
|
||||
package() { |
||||
install -Dm755 "${srcdir}"/veracrypt.initd "${pkgdir}"/etc/init.d/veracrypt |
||||
} |
||||
|
@ -0,0 +1,18 @@
|
||||
#!/usr/bin/openrc-run |
||||
# Copyright 1999-2020 Gentoo Authors |
||||
# Distributed under the terms of the GNU General Public License v2 |
||||
|
||||
depend() { |
||||
after localmount |
||||
need device-mapper |
||||
} |
||||
|
||||
stop() { |
||||
# Try to remove any dm-crypt mappings |
||||
if [ -x /usr/bin/veracrypt ]; then |
||||
ebegin "Removing veracrypt mappings" |
||||
! /usr/bin/veracrypt -l > /dev/null 2>&1 || /usr/bin/veracrypt -d |
||||
eend $? |
||||
fi |
||||
} |
||||
|
Loading…
Reference in new issue