Browse Source

[trunk] -> [community] 'veracrypt-openrc-20211122-1' add

master
artoo 6 months ago
parent
commit
b56a6faf4e
  1. 21
      trunk/PKGBUILD
  2. 18
      trunk/veracrypt.initd
  3. 21
      x86_64/community/PKGBUILD
  4. 18
      x86_64/community/veracrypt.initd

21
trunk/PKGBUILD

@ -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
}

18
trunk/veracrypt.initd

@ -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
}

21
x86_64/community/PKGBUILD

@ -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
}

18
x86_64/community/veracrypt.initd

@ -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…
Cancel
Save