X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail-la0-f67.google.com (mail-la0-f67.google.com [209.85.215.67]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 91D4BDC00A0 for ; Thu, 11 Dec 2014 04:59:37 +0000 (UTC) Received: by mail-la0-f67.google.com with SMTP id gm9so677529lab.2 for ; Wed, 10 Dec 2014 20:59:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=DGXNRVrL2MDpE4XsKe6MHlqBVclTI4Cb0avxl07aAUU=; b=toBQ+uG9AV5uRsU+whfY8YGQ2Kpim11Io35ggVH/X3mzqLUfV4+L40y8U8r0ByO2K8 +9VyQs9iJqDRCEQql/tZYeR7pjD/mRDZ2K5HVMYohWXX2qBA9ovqWwAo8mD3TM3KtqDO eOC1iJkYKRstr/5B0DALjkRkukI8NDk34iErDrCD5boiXI7R+nG3nbt0on/b70N58319 Imd/Q3AqpukZ4FzTd2YpOFba0dzbtZwt2X4pLctlu9Vi8fDJe77qWLmPDRZLUjVa58pe JbXq961gd0iAbmAnVVYV7CF3RnJMbNCca6yzulf16bEFVgGcm1K/wlR5zwE9Faipeuj/ nLIg== X-Received: by 10.112.210.100 with SMTP id mt4mr7558537lbc.31.1418273975594; Wed, 10 Dec 2014 20:59:35 -0800 (PST) Received: from alpine-dev.resnet.local ([80.64.106.118]) by mx.google.com with ESMTPSA id wq1sm21648lbb.24.2014.12.10.20.59.34 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 10 Dec 2014 20:59:34 -0800 (PST) From: k0r10n To: alpine-devel@lists.alpinelinux.org Cc: k0r10n Subject: [alpine-devel] [PATCH] testing/ecryptfs-utils: New aport Date: Thu, 11 Dec 2014 08:59:31 +0400 Message-Id: <1418273971-9668-1-git-send-email-k0r10n.dev@gmail.com> X-Mailer: git-send-email 2.0.0 X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: --- testing/ecryptfs-utils/APKBUILD | 56 ++++++++++++++++++++++++++++++++ testing/ecryptfs-utils/fix-headers.patch | 28 ++++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 testing/ecryptfs-utils/APKBUILD create mode 100644 testing/ecryptfs-utils/fix-headers.patch diff --git a/testing/ecryptfs-utils/APKBUILD b/testing/ecryptfs-utils/APKBUILD new file mode 100644 index 0000000..6b2c06e --- /dev/null +++ b/testing/ecryptfs-utils/APKBUILD @@ -0,0 +1,56 @@ +# Contributor: k0r10n +# Maintainer: +pkgname=ecryptfs-utils +pkgver=104 +pkgrel=0 +pkgdesc="Enterprise-class stacked cryptographic filesystem for Linux" +url="https://launchpad.net/ecryptfs" +arch="all" +license="GPL" +depends="gettext cryptsetup rsync" +depends_dev="keyutils-dev linux-pam-dev nss-dev" +makedepends="$depends_dev swig intltool gettext python" +install="" +subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" +source="http://launchpad.net/ecryptfs/trunk/${pkgver}/+download/${pkgname}_${pkgver}.orig.tar.gz + fix-headers.patch + " + +_builddir="$srcdir"/${pkgname}-${pkgver} +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" rootsbindir='/usr/bin' install || return 1 + chmod +s "$pkgdir"/usr/bin/mount.ecryptfs_private || return 1 + find "$pkgdir"/usr/lib -iname \*.la -exec rm -rf '{}' \; || return 1 +} + +md5sums="6ae93822bcf0d15470516c30a3deee32 ecryptfs-utils_104.orig.tar.gz +faac9e0f204c62eae4737ffbcf3f1186 fix-headers.patch" +sha256sums="4a200176542d46439c5297021f2c7fd7343b871c20c6f73f6e6c9fc4e5fd7438 ecryptfs-utils_104.orig.tar.gz +10256aacf77918bd42bf70171bd714f7ab19311ad86ea083db375a3f77df2baa fix-headers.patch" +sha512sums="1d093df406c731e6a44bcfc647d5e84a4110fc8d55c8a6aee7e056b0cac8f826b16fbde3dcccd0cf64fcd981a7666b71b1697951ed614ad510c4a6e403f5efd8 ecryptfs-utils_104.orig.tar.gz +3007e8c845985d07cabbdf2ef7b896f3253fd98f77e0855c2d3087f7224982182b76cb615aeb148e24871268aa061ce5af0310668a516f550a9bd977b88a88f0 fix-headers.patch" diff --git a/testing/ecryptfs-utils/fix-headers.patch b/testing/ecryptfs-utils/fix-headers.patch new file mode 100644 index 0000000..eb2ca3e --- /dev/null +++ b/testing/ecryptfs-utils/fix-headers.patch @@ -0,0 +1,28 @@ +--- a/src/utils/mount.ecryptfs.c.orig ++++ b/src/utils/mount.ecryptfs.c +@@ -24,7 +24,6 @@ + #include + #include + #include +-#include + #include + #include + #include +@@ -34,6 +33,7 @@ + #include + #include + #include ++#include + #include "ecryptfs.h" + #include "decision_graph.h" + #include "io.h" +--- a/src/utils/mount.ecryptfs_private.c.orig ++++ b/src/utils/mount.ecryptfs_private.c +@@ -30,6 +30,7 @@ + #include + #include + #include ++#include + #include + #include + #include -- 2.0.0 --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---