summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Bar-Lev <alonbl@gentoo.org>2007-12-19 21:09:27 +0000
committerAlon Bar-Lev <alonbl@gentoo.org>2007-12-19 21:09:27 +0000
commitb40f5f530a8f168bac53046b7e12e84504b94c83 (patch)
treed51cc91d5a538a556076f7d158d6cc173501551b /sys-fs/ecryptfs-utils
parentRevision bump to fix localization bug #199909, thanks Lars for the fix. (diff)
downloadhistorical-b40f5f530a8f168bac53046b7e12e84504b94c83.tar.gz
historical-b40f5f530a8f168bac53046b7e12e84504b94c83.tar.bz2
historical-b40f5f530a8f168bac53046b7e12e84504b94c83.zip
Version bump
Package-Manager: portage-2.1.4_rc10
Diffstat (limited to 'sys-fs/ecryptfs-utils')
-rw-r--r--sys-fs/ecryptfs-utils/ChangeLog9
-rw-r--r--sys-fs/ecryptfs-utils/Manifest32
-rw-r--r--sys-fs/ecryptfs-utils/ecryptfs-utils-36.ebuild (renamed from sys-fs/ecryptfs-utils/ecryptfs-utils-33.ebuild)9
-rw-r--r--sys-fs/ecryptfs-utils/files/digest-ecryptfs-utils-333
-rw-r--r--sys-fs/ecryptfs-utils/files/digest-ecryptfs-utils-363
-rw-r--r--sys-fs/ecryptfs-utils/files/ecryptfs-utils-33-mkdir.patch122
-rw-r--r--sys-fs/ecryptfs-utils/files/ecryptfs-utils-33-suid.patch24
7 files changed, 24 insertions, 178 deletions
diff --git a/sys-fs/ecryptfs-utils/ChangeLog b/sys-fs/ecryptfs-utils/ChangeLog
index b8244f86e345..73c3717760a3 100644
--- a/sys-fs/ecryptfs-utils/ChangeLog
+++ b/sys-fs/ecryptfs-utils/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sys-fs/ecryptfs-utils
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/ecryptfs-utils/ChangeLog,v 1.15 2007/12/14 19:12:36 alonbl Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/ecryptfs-utils/ChangeLog,v 1.16 2007/12/19 21:09:26 alonbl Exp $
+
+*ecryptfs-utils-36 (19 Dec 2007)
+
+ 19 Dec 2007; Alon Bar-Lev <alonbl@gentoo.org>
+ -files/ecryptfs-utils-33-mkdir.patch, -files/ecryptfs-utils-33-suid.patch,
+ -ecryptfs-utils-33.ebuild, +ecryptfs-utils-36.ebuild:
+ Version bump
14 Dec 2007; Alon Bar-Lev <alonbl@gentoo.org>
+files/ecryptfs-utils-33-suid.patch, ecryptfs-utils-33.ebuild:
diff --git a/sys-fs/ecryptfs-utils/Manifest b/sys-fs/ecryptfs-utils/Manifest
index 6cf820ab5e11..ee8892d284b2 100644
--- a/sys-fs/ecryptfs-utils/Manifest
+++ b/sys-fs/ecryptfs-utils/Manifest
@@ -1,24 +1,16 @@
-AUX ecryptfs-utils-33-mkdir.patch 2919 RMD160 2e82755e4e62a0f4a4a91b53a43d938eff9abc07 SHA1 05c747baccfcef3132fa5127c557ffd14a2a02f8 SHA256 8b080a005b3846b30abf179c76d2f453c65f8c8f86cd6afb0b00c0439b705a5d
-MD5 5ff08167280ced8b0e3774e401ca74eb files/ecryptfs-utils-33-mkdir.patch 2919
-RMD160 2e82755e4e62a0f4a4a91b53a43d938eff9abc07 files/ecryptfs-utils-33-mkdir.patch 2919
-SHA256 8b080a005b3846b30abf179c76d2f453c65f8c8f86cd6afb0b00c0439b705a5d files/ecryptfs-utils-33-mkdir.patch 2919
-AUX ecryptfs-utils-33-suid.patch 896 RMD160 2239a32f588428c8497fd62353ff4ea0f183cd7a SHA1 c04dd82fd60341043a0f94fbcdb8feaeca2fcee3 SHA256 6f19d113d277f5f7ab67653c508a03f66c0e9b0b48035d84c6abcdd6d088aa22
-MD5 91a815a6e8a0256134ad104663db52d8 files/ecryptfs-utils-33-suid.patch 896
-RMD160 2239a32f588428c8497fd62353ff4ea0f183cd7a files/ecryptfs-utils-33-suid.patch 896
-SHA256 6f19d113d277f5f7ab67653c508a03f66c0e9b0b48035d84c6abcdd6d088aa22 files/ecryptfs-utils-33-suid.patch 896
-DIST ecryptfs-utils-33.tar.bz2 963259 RMD160 6756752a5a4ce397a9f4f418b8a45d978d464a91 SHA1 c4b5da9e0fa9d22e38c63d65b976bd226cd67e2e SHA256 2e16fb9f25cac32e720aa18386ab041325f20b46283afa3f46b25f33713d046a
-EBUILD ecryptfs-utils-33.ebuild 1525 RMD160 75ab68cd4097fead52084bdab3d64901daca294a SHA1 dbf8ce0f37446b32b75cae02c9e455edbdef4268 SHA256 e24bc2088bd03545d20787383151d6a366508912116c56af51de3071264501aa
-MD5 c4bbe7e620af51f779aca2e18670827b ecryptfs-utils-33.ebuild 1525
-RMD160 75ab68cd4097fead52084bdab3d64901daca294a ecryptfs-utils-33.ebuild 1525
-SHA256 e24bc2088bd03545d20787383151d6a366508912116c56af51de3071264501aa ecryptfs-utils-33.ebuild 1525
-MISC ChangeLog 2726 RMD160 df2e4d8b68d7622a1afff22ff3bdcf37fb14430e SHA1 ec4ba68afb934f2fe37f78c353441ef09e98faf0 SHA256 3b5853da8f18a417bac2e7adf45e52d70d1e623b4836037ca666e6ad970c11e1
-MD5 140cbd46383e208dceb22d68df0efb70 ChangeLog 2726
-RMD160 df2e4d8b68d7622a1afff22ff3bdcf37fb14430e ChangeLog 2726
-SHA256 3b5853da8f18a417bac2e7adf45e52d70d1e623b4836037ca666e6ad970c11e1 ChangeLog 2726
+DIST ecryptfs-utils-36.tar.bz2 560496 RMD160 5af8a0af304b39723c137f73ee2b7b6cc3a2c8d1 SHA1 44f3645d6cc4f0df508513d36971540f7da0c7eb SHA256 178d17c20f858c7d56fd6a3faffd7969e9ab3efed7466e30af4db774ee64b8ca
+EBUILD ecryptfs-utils-36.ebuild 1406 RMD160 f6ae0432b15f69751add12b232012e5490a8ac3e SHA1 7b7cb55e16619632df2171c4015f950f2d7b77e9 SHA256 2b477d92715f7f07671d04fbefb28f5f9186a585346697dbd5ecf885f651f788
+MD5 6fee6a5a969e5d9d1ec883bfcc1965cb ecryptfs-utils-36.ebuild 1406
+RMD160 f6ae0432b15f69751add12b232012e5490a8ac3e ecryptfs-utils-36.ebuild 1406
+SHA256 2b477d92715f7f07671d04fbefb28f5f9186a585346697dbd5ecf885f651f788 ecryptfs-utils-36.ebuild 1406
+MISC ChangeLog 2957 RMD160 db1e03ce63dd78c9909e6b437f93487272f8c134 SHA1 1446e9308be7303baf2fa36de3ca391c85bba7d6 SHA256 14b1236d3bddf767fb8adf5221fa62d33862af48d9684a37bf66a36648a7212f
+MD5 4ee4ce5f8bed72675fb6166d0044a69d ChangeLog 2957
+RMD160 db1e03ce63dd78c9909e6b437f93487272f8c134 ChangeLog 2957
+SHA256 14b1236d3bddf767fb8adf5221fa62d33862af48d9684a37bf66a36648a7212f ChangeLog 2957
MISC metadata.xml 355 RMD160 946429bdab5657b6da3ea97fd8f0feb98626facf SHA1 ffba9e7b0465df8b8ca111de7ee3b3f763c1b45e SHA256 1999eec5aaca15194f0247836f7490efda75ff3e5bc45b550f004cdc94033bee
MD5 1c8677910988959bdc24fbca34b9f94a metadata.xml 355
RMD160 946429bdab5657b6da3ea97fd8f0feb98626facf metadata.xml 355
SHA256 1999eec5aaca15194f0247836f7490efda75ff3e5bc45b550f004cdc94033bee metadata.xml 355
-MD5 24f563f5d3354487d22250cb982d54cc files/digest-ecryptfs-utils-33 256
-RMD160 f5f4358d11e243c72033af0b17d9cbf7caf94228 files/digest-ecryptfs-utils-33 256
-SHA256 9dd028cd698b0e1ad5b2512d5026c83a6a288b12f8f14113dd8cd5269cfd4cd8 files/digest-ecryptfs-utils-33 256
+MD5 f4e814059aae57db5f38a946e2668562 files/digest-ecryptfs-utils-36 256
+RMD160 89c64085b36a31fdf7e147ada54d0b843258140b files/digest-ecryptfs-utils-36 256
+SHA256 5ff966d46ab49d6cd06e33d9781a4b89e8f9a833e4ff5bad18992b678485d284 files/digest-ecryptfs-utils-36 256
diff --git a/sys-fs/ecryptfs-utils/ecryptfs-utils-33.ebuild b/sys-fs/ecryptfs-utils/ecryptfs-utils-36.ebuild
index 4a5275412ee5..93b1f0ce54b8 100644
--- a/sys-fs/ecryptfs-utils/ecryptfs-utils-33.ebuild
+++ b/sys-fs/ecryptfs-utils/ecryptfs-utils-36.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/ecryptfs-utils/ecryptfs-utils-33.ebuild,v 1.2 2007/12/14 19:12:36 alonbl Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/ecryptfs-utils/ecryptfs-utils-36.ebuild,v 1.1 2007/12/19 21:09:26 alonbl Exp $
inherit eutils
@@ -28,13 +28,6 @@ DEPEND="${RDEPEND}
dev-util/pkgconfig
dev-lang/perl"
-src_unpack() {
- unpack ${A}
- cd "${S}"
- epatch "${FILESDIR}/${P}-mkdir.patch"
- epatch "${FILESDIR}/${P}-suid.patch"
-}
-
src_compile() {
econf \
--docdir="/usr/share/doc/${PF}" \
diff --git a/sys-fs/ecryptfs-utils/files/digest-ecryptfs-utils-33 b/sys-fs/ecryptfs-utils/files/digest-ecryptfs-utils-33
deleted file mode 100644
index 1686e7c59168..000000000000
--- a/sys-fs/ecryptfs-utils/files/digest-ecryptfs-utils-33
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 21fbaf2f4401715ffc29dd1696c2d46e ecryptfs-utils-33.tar.bz2 963259
-RMD160 6756752a5a4ce397a9f4f418b8a45d978d464a91 ecryptfs-utils-33.tar.bz2 963259
-SHA256 2e16fb9f25cac32e720aa18386ab041325f20b46283afa3f46b25f33713d046a ecryptfs-utils-33.tar.bz2 963259
diff --git a/sys-fs/ecryptfs-utils/files/digest-ecryptfs-utils-36 b/sys-fs/ecryptfs-utils/files/digest-ecryptfs-utils-36
new file mode 100644
index 000000000000..a2305cc6a94c
--- /dev/null
+++ b/sys-fs/ecryptfs-utils/files/digest-ecryptfs-utils-36
@@ -0,0 +1,3 @@
+MD5 5f39f0434da4bde892e58df49cd5be4e ecryptfs-utils-36.tar.bz2 560496
+RMD160 5af8a0af304b39723c137f73ee2b7b6cc3a2c8d1 ecryptfs-utils-36.tar.bz2 560496
+SHA256 178d17c20f858c7d56fd6a3faffd7969e9ab3efed7466e30af4db774ee64b8ca ecryptfs-utils-36.tar.bz2 560496
diff --git a/sys-fs/ecryptfs-utils/files/ecryptfs-utils-33-mkdir.patch b/sys-fs/ecryptfs-utils/files/ecryptfs-utils-33-mkdir.patch
deleted file mode 100644
index 12070ea46b1b..000000000000
--- a/sys-fs/ecryptfs-utils/files/ecryptfs-utils-33-mkdir.patch
+++ /dev/null
@@ -1,122 +0,0 @@
-diff --git a/src/key_mod/ecryptfs_key_mod_openssl.c b/src/key_mod/ecryptfs_key_mod_openssl.c
-index e0cc4ed..941e6c0 100644
---- a/src/key_mod/ecryptfs_key_mod_openssl.c
-+++ b/src/key_mod/ecryptfs_key_mod_openssl.c
-@@ -27,6 +27,7 @@
- #include <errno.h>
- #include <stdlib.h>
- #include <unistd.h>
-+#include <libgen.h>
- #include <openssl/pem.h>
- #include <openssl/rsa.h>
- #include <openssl/err.h>
-@@ -182,56 +183,58 @@ out:
- }
-
- static int
-+ecryptfs_openssl_mkdir_recursive(char *dir, mode_t mode)
-+{
-+ char *temp = NULL;
-+ char *parent = NULL;
-+ int rc;
-+
-+ if (!strcmp(dir, ".") || !strcmp(dir, "/"))
-+ return 0;
-+
-+ temp = strdup(dir);
-+ if (temp == NULL) {
-+ rc = -ENOMEM;
-+ goto out;
-+ }
-+
-+ parent = dirname(temp);
-+
-+ rc = ecryptfs_openssl_mkdir_recursive(parent, mode);
-+ if (rc)
-+ goto out;
-+
-+ if (mkdir(dir, mode) == -1) {
-+ if (errno != EEXIST) {
-+ rc = -errno;
-+ goto out;
-+ }
-+ }
-+
-+ rc = 0;
-+
-+out:
-+ free(temp);
-+ return rc;
-+}
-+
-+static int
- ecryptfs_openssl_write_key_to_file(RSA *rsa, char *filename, char *passphrase)
- {
-- uid_t id;
-- struct passwd *pw;
-- char *ecryptfs_dir = NULL;
-- char *pki_dir = NULL;
-- char *openssl_dir = NULL;
-+ char *dir = NULL;
- BIO *out;
- const EVP_CIPHER *enc = EVP_aes_256_cbc();
- int rc = 0;
-
-- id = getuid();
-- pw = getpwuid(id);
-- if (!pw) {
-- syslog(LOG_ERR, "%s: Unable to get the current directory from "
-- "the passwd file on this system\n", __FUNCTION__);
-- rc = -EIO;
-- goto out_free_paths;
-- }
-- rc = asprintf(&ecryptfs_dir, "%s/.ecryptfs", pw->pw_dir);
-- if (rc == -1) {
-+ dir = strdup(filename);
-+ if (dir == NULL) {
- rc = -ENOMEM;
- goto out_free_paths;
- }
-- rc = asprintf(&pki_dir, "%s/.ecryptfs/pki", pw->pw_dir);
-- if (rc == -1) {
-- rc = -ENOMEM;
-- goto out_free_paths;
-- }
-- rc = asprintf(&openssl_dir, "%s/.ecryptfs/pki/openssl", pw->pw_dir);
-- if (rc == -1) {
-- rc = -ENOMEM;
-- goto out_free_paths;
-- }
-- rc = mkdir(ecryptfs_dir, 0700);
-- if (rc && rc != EEXIST) {
-- syslog(LOG_ERR, "%s: Error attempting to mkdir [%s]; "
-- "rc = [%d]\n", __FUNCTION__, ecryptfs_dir, rc);
-- goto out_free_paths;
-- }
-- rc = mkdir(pki_dir, 0700);
-- if (rc && rc != EEXIST) {
-- syslog(LOG_ERR, "%s: Error attempting to mkdir [%s]; "
-- "rc = [%d]\n", __FUNCTION__, pki_dir, rc);
-- goto out_free_paths;
-- }
-- rc = mkdir(openssl_dir, 0700);
-- if (rc && rc != EEXIST) {
-+ rc = ecryptfs_openssl_mkdir_recursive(dirname(dir), 0700);
-+ if (rc) {
- syslog(LOG_ERR, "%s: Error attempting to mkdir [%s]; "
-- "rc = [%d]\n", __FUNCTION__, openssl_dir, rc);
-+ "rc = [%d]\n", __FUNCTION__, dir, rc);
- goto out_free_paths;
- }
- if ((out = BIO_new(BIO_s_file())) == NULL) {
-@@ -253,9 +256,7 @@ ecryptfs_openssl_write_key_to_file(RSA *rsa, char *filename, char *passphrase)
- out_free_bio:
- BIO_free_all(out);
- out_free_paths:
-- free(ecryptfs_dir);
-- free(pki_dir);
-- free(openssl_dir);
-+ free(dir);
- return rc;
- }
-
diff --git a/sys-fs/ecryptfs-utils/files/ecryptfs-utils-33-suid.patch b/sys-fs/ecryptfs-utils/files/ecryptfs-utils-33-suid.patch
deleted file mode 100644
index 979d5d04b240..000000000000
--- a/sys-fs/ecryptfs-utils/files/ecryptfs-utils-33-suid.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-diff --git a/src/libecryptfs/key_management.c b/src/libecryptfs/key_management.c
-index acedc26..2c88357 100644
---- a/src/libecryptfs/key_management.c
-+++ b/src/libecryptfs/key_management.c
-@@ -486,6 +486,7 @@ int ecryptfs_append_sig(char *auth_tok_sig, char *sig_cache_filename)
- rc = -EIO;
- goto out;
- }
-+ fchown(fd, getuid(), getgid());
- lseek(fd, 0, SEEK_END);
- memcpy(tmp, auth_tok_sig, ECRYPTFS_SIG_SIZE_HEX);
- tmp[ECRYPTFS_SIG_SIZE_HEX] = '\n';
-diff --git a/src/utils/mount.ecryptfs.c b/src/utils/mount.ecryptfs.c
-index 4e14795..86d15ac 100644
---- a/src/utils/mount.ecryptfs.c
-+++ b/src/utils/mount.ecryptfs.c
-@@ -310,6 +310,7 @@ static int process_sig(char *auth_tok_sig)
- goto out;
- }
- mkdir(dot_ecryptfs_dir, S_IRWXU);
-+ chown(dot_ecryptfs_dir, getuid(), getgid());
- free(dot_ecryptfs_dir);
- rc = asprintf(&sig_cache_filename, "%s/.ecryptfs/sig-cache.txt",
- home);