# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit gnome2 eutils DESCRIPTION="A nautilus plugin to easily share folders over the SMB protocol" HOMEPAGE="http://gentoo.ovibes.net/nautilus-share" SRC_URI="http://gentoo.ovibes.net/${PN}/${P}.tar.gz" IUSE="" SLOT="0" LICENSE="GPL-2" KEYWORDS="~x86" DEPEND=">=gnome-base/nautilus-2.10.0 >=gnome-base/eel-2.10.0 >=dev-libs/glib-2.4.0 >=gnome-base/libglade-2.4.0 >=dev-libs/libdaemon-0.7 >=sys-apps/dbus-0.23" RDEPEND="${DEPEND} >=x11-themes/gnome-icon-theme-2.10.1 >=net-fs/samba-3.0.23a" DOCS="AUTHORS BUGS INTERNAL README TODO" G2CONF="--with-dbus-sys=/etc/dbus-1/system.d" pkg_setup() { if ! built_with_use sys-apps/dbus gtk; then eerror "Need GLib support in DBUS." eerror "Please re-emerge sys-apps/dbus with gtk USE flag enabled." die "unmet dependencies" fi } src_install() { gnome2_src_install "$@" # debian only rm -r ${D}/etc/dbus-1/event.d doinitd ${FILESDIR}/smbshared } pkg_preinst() { if ! [[ -e ${ROOT}/etc/samba/smb.conf ]]; then dodir /etc/samba cat > ${IMAGE}/etc/samba/smb.conf <