blob: 34d1f0d0ec789f3f0ea5b3d3c2d9f7919c1df261 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Maintainer: Axel McLaren <scm(at)axml(dot)uk>
_pkgbase=loop-aes
pkgname=loop-aes-dkms
_pkgname=loop-AES
pkgver=3.8e
pkgrel=1
pkgdesc="loop Linux kernel module that has AES,Twofish,Blowfish,Serpent cipher built-in (DKMS version)"
arch=('i686' 'x86_64')
license=('GPL2')
url="https://loop-aes.sourceforge.net"
depends=('dkms' 'linux' 'util-linux-aes')
conflicts=("${_pkgbase}")
install=${pkgname}.install
source=(https://downloads.sourceforge.net/project/${_pkgbase}/${_pkgbase}/v${pkgver}/${_pkgname}-v${pkgver}.tar.bz2{,.sign}
'dkms.patch')
sha256sums=('b9ac5ae42273554dc9d60fe2d6f2ed4b2587a0fc230f0a7720ee65d0526713f3'
'SKIP'
'6dbf652fb60735460e7128b47b4f856d1de780f68be74ed4a7ce524548ac1ff6')
validpgpkeys=('12D64C3ADCDA0AA427BDACDFF0733C808132F189') # Jari Ruusu (2013) <jariruusu@users.sourceforge.net>
prepare() {
cd "${_pkgname}-v${pkgver}"
sed "s:%ORIGINAL_VERSION%:v${pkgver}:" "${srcdir}"/dkms.patch | patch -p0
}
package() {
mkdir -p "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}
cp -r ${_pkgname}-v${pkgver}/* "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/
# Set name and version
sed -e "s/@PKGNAME@/${_pkgbase}/" \
-e "s/@PKGVER@/${pkgver}/" \
-i "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/dkms.conf
install -d -m 0755 "${pkgdir}/usr/lib/modprobe.d"
install -d -m 0755 "${pkgdir}/usr/lib/modules-load.d"
install -d -m 0755 "${pkgdir}/usr/share/doc/${pkgname}"
cd "${_pkgname}-v${pkgver}"
install -D -m 0755 loop-aes-keygen "${pkgdir}/usr/bin/loop-aes-keygen"
install -D -m 0644 loop-aes-keygen.1 "${pkgdir}/usr/share/man/man1/loop-aes-keygen.1"
install -m 0644 ChangeLog README "${pkgdir}/usr/share/doc/${pkgname}"
echo "blacklist loop" > "${pkgdir}/usr/lib/modprobe.d/loop.conf"
echo "alias loop loop-aes" >> "${pkgdir}/usr/lib/modprobe.d/loop.conf"
echo "loop-aes" > "${pkgdir}/usr/lib/modules-load.d/loop.conf"
echo "loop_serpent" >> "${pkgdir}/usr/lib/modules-load.d/loop.conf"
echo "loop_twofish" >> "${pkgdir}/usr/lib/modules-load.d/loop.conf"
echo "loop_blowfish" >> "${pkgdir}/usr/lib/modules-load.d/loop.conf"
}
|