Magellan Linux

Contents of /trunk/core/cryptsetup/cryptsetup-2.0.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 30629 - (show annotations) (download)
Thu Feb 8 09:01:50 2018 UTC (6 years, 2 months ago) by niro
File size: 1460 byte(s)
auto added: ver bump to 2.0.1-r1
1 # $Id$
2
3 PNAME="cryptsetup"
4 PVER="2.0.1"
5 PBUILD="r1"
6
7 PCAT="sys-fs"
8
9 DESCRIPTION="Userspace setup tool for transparent encryption of block devices using dm-crypt."
10 HOMEPAGE="http://code.google.com/p/cryptsetup/"
11
12 DEPEND=">= sys-fs/device-mapper-2.02
13 >= app-crypt/libgcrypt-1.8
14 >= app-crypt/libgpg-error-1.20
15 >= dev-libs/popt-1.16
16 >= sys-fs/udev-237
17 >= sys-fs/e2fsprogs-1.42
18 >= sys-libs/libuuid-2.31"
19
20 SDEPEND=">= sys-dev/automake-4
21 >= sys-dev/autoconf-5"
22
23 SRCFILE="${PNAME}-{PVER}.tar.xz"
24 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
25
26 sminclude multilib mbuild
27 msetfeature "!check"
28
29 SRC_URI=(
30 https://www.kernel.org/pub/linux/utils/cryptsetup/v2.0/${SRCFILE}
31 mirror://${PNAME}/${SRCFILE}
32 )
33
34 UP2DATE="updatecmd -listonly http://gitlab.com/cryptsetup/cryptsetup/tags | grep '/v[0-9]' | sed 's:.*v\(.*\).*:\1:;s:_:.:g' | upsort_pipe"
35
36 src_prepare()
37 {
38 # custom src_prepare required as munpack() doesn't work
39
40 local abi
41 local abis_to_run="${MULTILIB_ABIS}"
42
43 # respect MULTILIB_ONLY_ABI variable
44 [[ ! -z ${MULTILIB_ONLY_ABI} ]] && abis_to_run="${MULTILIB_ONLY_ABI}"
45
46 for abi in ${abis_to_run}
47 do
48 echo -e "${COLBLUE}*** ${COLGREEN}unpacking for ABI -${abi}${COLDEFAULT}"
49 tar xvjf ${SOURCEDIR}/${PNAME}/${SRCFILE} -C ${BUILDDIR} || die
50 mv ${SRCDIR} ${SRCDIR}-${abi} || die
51 done
52
53 # generate configure scripts
54 all-abis mautoreconf || die
55 }
56
57 src_compile()
58 {
59 mconfigure --enable-nls --enable-cryptsetup-reencrypt --disable-selinux || die
60 mmake || die
61 }