summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKacper Kowalik <xarthisius@gentoo.org>2012-02-06 15:39:33 +0000
committerKacper Kowalik <xarthisius@gentoo.org>2012-02-06 15:39:33 +0000
commit6eb3a5d7b28a34231c93440624e84475a0f45be6 (patch)
tree442062ceefb19e70c9b4f32acc04b7623636ff8b /x11-misc/xosview
parentMarking updatedd-2.6 ppc for bug 397145 (diff)
downloadgentoo-2-6eb3a5d7b28a34231c93440624e84475a0f45be6.tar.gz
gentoo-2-6eb3a5d7b28a34231c93440624e84475a0f45be6.tar.bz2
gentoo-2-6eb3a5d7b28a34231c93440624e84475a0f45be6.zip
Respect CXXFLAGS, add suid flag and postinst warning wrt bug 402395 by Steffen 'j0inty' Stollfuß <steffen@stollfuss.net>
(Portage version: 2.2.0_alpha85/cvs/Linux x86_64)
Diffstat (limited to 'x11-misc/xosview')
-rw-r--r--x11-misc/xosview/ChangeLog6
-rw-r--r--x11-misc/xosview/xosview-1.9.2.ebuild16
2 files changed, 18 insertions, 4 deletions
diff --git a/x11-misc/xosview/ChangeLog b/x11-misc/xosview/ChangeLog
index c0f69b2c9a0e..7567cefabc54 100644
--- a/x11-misc/xosview/ChangeLog
+++ b/x11-misc/xosview/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for x11-misc/xosview
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-misc/xosview/ChangeLog,v 1.44 2012/02/04 12:33:59 xarthisius Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/xosview/ChangeLog,v 1.45 2012/02/06 15:39:33 xarthisius Exp $
+
+ 06 Feb 2012; Kacper Kowalik <xarthisius@gentoo.org> xosview-1.9.2.ebuild:
+ Respect CXXFLAGS, add suid flag and postinst warning wrt bug 402395 by Steffen
+ 'j0inty' Stollfuß <steffen@stollfuss.net>
*xosview-1.9.2 (04 Feb 2012)
diff --git a/x11-misc/xosview/xosview-1.9.2.ebuild b/x11-misc/xosview/xosview-1.9.2.ebuild
index 1e6cd4a9ec8d..476ad851d7ea 100644
--- a/x11-misc/xosview/xosview-1.9.2.ebuild
+++ b/x11-misc/xosview/xosview-1.9.2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/x11-misc/xosview/xosview-1.9.2.ebuild,v 1.1 2012/02/04 12:33:59 xarthisius Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/xosview/xosview-1.9.2.ebuild,v 1.2 2012/02/06 15:39:33 xarthisius Exp $
EAPI=4
@@ -13,7 +13,7 @@ SRC_URI="http://www.pogo.org.uk/~mark/${PN}/releases/${P}.tar.gz"
LICENSE="GPL-2 BSD"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
-IUSE=""
+IUSE="suid"
COMMON_DEPS="x11-libs/libX11
x11-libs/libXpm
@@ -27,6 +27,7 @@ src_prepare() {
sed -e 's:lib/X11/app:share/X11/app:g' \
-i Xrm.cc config/Makefile.top.in || die
sed -e 's:$(CFLAGS)::g' \
+ -e 's:@EXTRA_CXXFLAGS@::g' \
-i config/Makefile.config.in || die
epatch "${FILESDIR}"/${P}-emptyxpaths.patch
pushd config &> /dev/null
@@ -36,9 +37,18 @@ src_prepare() {
}
src_install() {
- dobin xosview
+ dobin ${PN}
+ use suid && fperms 4755 /usr/bin/${PN}
insinto /usr/share/X11/app-defaults
newins Xdefaults XOsview
doman *.1
dodoc CHANGES README README.linux TODO
}
+
+pkg_postinst() {
+ if ! use suid ; then
+ ewarn "If you want to use serial meters ${PN} needs to be executed as root."
+ ewarn "Please see ${EPREFIX}/usr/share/doc/${PF}/README.linux for details."
+ fi
+}
+