summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Sachau <tommy@gentoo.org>2009-04-28 17:26:19 +0000
committerThomas Sachau <tommy@gentoo.org>2009-04-28 17:26:19 +0000
commit72038fce58aec638a7e395e633da27ff9eb62c83 (patch)
treed4806ca663fce6558b2c047ca0f47d3498172ad8 /net-mail/Freemail
parentAdd ~amd64 (diff)
downloadgentoo-2-72038fce58aec638a7e395e633da27ff9eb62c83.tar.gz
gentoo-2-72038fce58aec638a7e395e633da27ff9eb62c83.tar.bz2
gentoo-2-72038fce58aec638a7e395e633da27ff9eb62c83.zip
Change the ownership of the pluginsdir to freenet user
(Portage version: 2.2_rc31/cvs/Linux x86_64)
Diffstat (limited to 'net-mail/Freemail')
-rw-r--r--net-mail/Freemail/ChangeLog5
-rw-r--r--net-mail/Freemail/Freemail-9999.ebuild6
2 files changed, 9 insertions, 2 deletions
diff --git a/net-mail/Freemail/ChangeLog b/net-mail/Freemail/ChangeLog
index 1a3fa7a9a826..73ec8a98ad93 100644
--- a/net-mail/Freemail/ChangeLog
+++ b/net-mail/Freemail/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for net-mail/Freemail
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-mail/Freemail/ChangeLog,v 1.2 2009/02/03 18:20:17 tommy Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-mail/Freemail/ChangeLog,v 1.3 2009/04/28 17:26:19 tommy Exp $
+
+ 28 Apr 2009; Thomas Sachau (Tommy[D]) <tommy@gentoo.org> Freemail-9999:
+ Change the ownership of the pluginsdir to freenet user
03 Feb 2009; Thomas Sachau (Tommy[D]) <tommy@gentoo.org>
Freemail-9999.ebuild:
diff --git a/net-mail/Freemail/Freemail-9999.ebuild b/net-mail/Freemail/Freemail-9999.ebuild
index 0396ab9411c7..66cbeba3ed16 100644
--- a/net-mail/Freemail/Freemail-9999.ebuild
+++ b/net-mail/Freemail/Freemail-9999.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-mail/Freemail/Freemail-9999.ebuild,v 1.2 2009/02/03 18:20:17 tommy Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-mail/Freemail/Freemail-9999.ebuild,v 1.3 2009/04/28 17:26:19 tommy Exp $
EAPI="2"
@@ -34,6 +34,7 @@ src_prepare() {
src_install() {
java-pkg_dojar lib/Freemail.jar
dodir /var/freenet/plugins
+ fperms freenet:freenet /var/freenet/plugins
dosym ../../../usr/share/Freemail/lib/Freemail.jar /var/freenet/plugins/Freemail.jar
dodoc README || die "installation of documentation failed"
}
@@ -44,6 +45,9 @@ pkg_preinst() {
}
pkg_postinst () {
+ #force chmod for previously existing plugins dir owned by root
+ [[ $(stat --format="%U" /var/freenet/plugins) == "freenet" ]] || chown \
+ freenet:freenet /var/freenet/plugins
elog "To load Freemail, go to the plugin page of freenet and enter at"
elog "Plugin-URL: plugins/Freemail.jar. This should load the Freemail plugin."
elog "Set your email client to IMAP port 3143 and SMTP port 3025 on localhost."