diff options
Diffstat (limited to 'media-video/ushare/ushare-1.1a-r5.ebuild')
-rw-r--r-- | media-video/ushare/ushare-1.1a-r5.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/media-video/ushare/ushare-1.1a-r5.ebuild b/media-video/ushare/ushare-1.1a-r5.ebuild new file mode 100644 index 000000000000..09d6abc6e0b9 --- /dev/null +++ b/media-video/ushare/ushare-1.1a-r5.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-video/ushare/ushare-1.1a-r5.ebuild,v 1.1 2012/11/08 19:06:53 hwoarang Exp $ + +EAPI=4 +inherit eutils multilib user + +DESCRIPTION="uShare is a UPnP (TM) A/V & DLNA Media Server" +HOMEPAGE="http://ushare.geexbox.org/" +SRC_URI="http://ushare.geexbox.org/releases/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="dlna nls" + +RDEPEND=">=net-libs/libupnp-1.6.14 + dlna? ( >=media-libs/libdlna-0.2.4 )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_prepare() { + EPATCH_SOURCE="${FILESDIR}" EPATCH_SUFFIX="patch" \ + EPATCH_OPTS="-p1" epatch +} + +src_configure() { + local myconf + myconf="--prefix=/usr --disable-sysconf --disable-strip $(use_enable dlna)" + # nls can only be disabled, on by default. + use nls || myconf="${myconf} --disable-nls" + + # I can't use econf + # --host is not implemented in ./configure file + ./configure ${myconf} || die "./configure failed" +} + +src_install() { + emake DESTDIR="${D}" install + doman src/ushare.1 + newconfd "${FILESDIR}"/ushare.conf.d ushare + newinitd "${FILESDIR}"/ushare.init.d ushare + dodoc NEWS README TODO THANKS AUTHORS +} + +pkg_postinst() { + enewuser ushare + elog "Please edit /etc/conf.d/ushare to set the shared directories" + elog "and other important settings. Check system log if ushare is" + elog "not booting." +} |