diff options
author | 2005-09-13 18:23:56 +0000 | |
---|---|---|
committer | 2005-09-13 18:23:56 +0000 | |
commit | e465d22907461edfa3e8b77ceed5746c44971840 (patch) | |
tree | dc0e0b8df6b658c5eecdc1ce0c12176b48cd730f /sys-apps/ivman/ivman-0.6.4.ebuild | |
parent | add pmount (diff) | |
download | historical-e465d22907461edfa3e8b77ceed5746c44971840.tar.gz historical-e465d22907461edfa3e8b77ceed5746c44971840.tar.bz2 historical-e465d22907461edfa3e8b77ceed5746c44971840.zip |
Version bump, closes bug 93080 and 105788
Package-Manager: portage-2.0.52-r1
Diffstat (limited to 'sys-apps/ivman/ivman-0.6.4.ebuild')
-rw-r--r-- | sys-apps/ivman/ivman-0.6.4.ebuild | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/sys-apps/ivman/ivman-0.6.4.ebuild b/sys-apps/ivman/ivman-0.6.4.ebuild new file mode 100644 index 000000000000..e3427c087292 --- /dev/null +++ b/sys-apps/ivman/ivman-0.6.4.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/ivman/ivman-0.6.4.ebuild,v 1.1 2005/09/13 18:23:56 genstef Exp $ + +inherit eutils + +DESCRIPTION="Daemon to mount/unmount devices, based on info from HAL" +HOMEPAGE="http://ivman.sf.net" +SRC_URI="mirror://sourceforge/ivman/${P}.tar.bz2" +LICENSE="QPL" +KEYWORDS="~amd64 ~x86 ~ppc" +IUSE="debug" +SLOT="0" + +RDEPEND=">=dev-libs/glib-2.6 + dev-libs/libxml2 + >=sys-apps/hal-0.4.0 + >=sys-apps/pmount-0.8" +# We now require a minimum of glib 2.6. +# We should be able to build with either HAL 0.4.x or HAL 0.5.x, but HAL 0.5.x +# is now what I primarily use ( -> Ivman is now better tested with 0.5.x ). +# I'm not really certain which version of pmount is required, but it's only +# been tested with >= 0.8 . +DEPEND="${RDEPEND} + >=sys-devel/libtool-1.5 + dev-util/pkgconfig" + +src_compile() { + econf $(use_enable debug) || die "econf failed" + emake || die "emake failed" +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + + exeinto /etc/init.d/ + newexe ${FILESDIR}/ivman-0.3.init ivman + + # Ivman can now run as a non-root user :-) Create a dedicated user account, + # so users can add rules to /etc/sudoers for programs Ivman wants to + # execute... + # The group here is intended to be the one needed to use pmount, but Ivman + # will still work as long as the group in IvmConfigBase.xml is correct. + enewuser ivman -1 /bin/false /dev/null plugdev || die "Problem adding ivman user" +} + +pkg_postinst() { + + if has_version "<sys-apps/hal-0.5.0"; then + einfo "Ivman was built against HAL 0.4.x. If you later upgrade to HAL 0.5," + einfo "you must re-merge Ivman." + echo + else + einfo "Ivman was built against HAL 0.5.x. If you later downgrade to HAL 0.4," + einfo "you must re-merge Ivman." + echo + fi + + einfo "Note that, as of version 0.6.0, the IvmConfigMappings.xml configuration" + einfo "file is no longer required to correctly mount fstab entries which" + einfo "use symbolic links. You may safely remove this file if desired." + einfo "However, HAL typically does not correctly deal with fstab" + einfo "entries of this nature, therefore it is strongly recommanded that" + einfo "you have real device names (i.e. not symlinks) in /etc/fstab." + echo + + einfo "By default, Ivman will mount any removable disks as they are" + einfo "attached. If you want Ivman to do more, such as hibernating" + einfo "your laptop when the lid is closed or when the battery is low," + einfo "look at the configuration files in /etc/ivman/ ." +} |