# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+*autoupnp-0.4.1 (17 Aug 2010)
+
+ 17 Aug 2010; Michał Górny (sedzimir) <gentoo@mgorny.alt.pl>
+ -autoupnp-0.3.ebuild, +autoupnp-0.4.1.ebuild:
+ Version bump to the C-written branch.
+
09 Aug 2010; Michał Górny (sedzimir) <gentoo@mgorny.alt.pl>
autoupnp-0.3.ebuild:
Update HOMEPAGE & SRC_URI (once again).
-DIST autoupnp-0.3.sh.bz2 2087 RMD160 dab909a81a35220e6e7c75a32f0b19a9ab095f17 SHA1 4055037fd030140e83cec87ad801c8d1fc82600e SHA256 ba4090cde1fc4adb409141d06f50cbcbe929e4b6282ad9778531d9872cb5c8ef
-EBUILD autoupnp-0.3.ebuild 468 RMD160 20f350bc639621d910d741c330ca049a9715e19c SHA1 2b890b1629a72c239d2a41f4f25e455f9536cd70 SHA256 27cd2a4d71789ae20e5930ed2c5969f168aba9f0612022073c360ad2397f2fe2
-MISC ChangeLog 506 RMD160 0d3a7389b33929f5fd88b4e665fdd10610da972c SHA1 cb87cedc2de0ac29fa867e526c35fb9184ea30df SHA256 37e4ad1169b72c37fdd0775a5648c846bc53bede3e0315ae78b47a5326f7adb7
+DIST autoupnp-0.4.1.tar.bz2 6308 RMD160 ccc414a6e104c54affccfb653a80b79e8efd3b13 SHA1 aa1d5d7e1dbbc077bdf27ae659b944475b1b481d SHA256 e7368c719a8d1b31b0319ea5f1aee4fe8f1730f9ba9a1d0fa936aa425674ae4d
+EBUILD autoupnp-0.4.1.ebuild 917 RMD160 15356675131d9ca985fbc4c9a7fa35f8adc344c2 SHA1 0116db2ad8644736714d71af7d79017f50189cb0 SHA256 77bef5b8867eb70702f4f58d4ebc32f477de5bab2ca90b7f16295cdc6c4f40df
+MISC ChangeLog 690 RMD160 625c5ac9d3608e509bab8749707d634446270ecd SHA1 fde11d556cf87c52f482a39659407811916f0698 SHA256 51daf1eb6f23311774595183dbb8aa1cefd32f72bb796d8415b06771cd55e31f
MISC metadata.xml 231 RMD160 6aebfea93d789d2b96ea6d8259dc842dd1fdacd3 SHA1 e10a04c4c18a66af326abc1f40c61b28cc610fae SHA256 48054ea190d00518c1e035fc6663b2368854cdea5ff69a94830e4f9a38260987
+++ /dev/null
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-DESCRIPTION="Automatic open port forwarder using UPnP"
-HOMEPAGE="http://github.com/mgorny/autoupnp/"
-SRC_URI="http://github.com/downloads/mgorny/${PN}/${P}.sh.bz2"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE=""
-
-DEPEND=""
-RDEPEND="net-misc/miniupnpc
- sys-apps/diffutils
- sys-apps/net-tools"
-
-src_install() {
- newbin ${P}.sh ${PN} || die
-}
--- /dev/null
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit toolchain-funcs
+
+DESCRIPTION="Automatic open port forwarder using UPnP"
+HOMEPAGE="http://github.com/mgorny/autoupnp/"
+SRC_URI="http://github.com/downloads/mgorny/${PN}/${P}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="libnotify"
+
+RDEPEND="net-misc/miniupnpc
+ libnotify? ( x11-libs/libnotify )"
+DEPEND="${RDEPEND}"
+
+src_compile() {
+ tc-export CC
+ emake WANT_LIBNOTIFY=$(use libnotify && echo true || echo false) || die
+}
+
+src_install() {
+ dolib ${PN}.so || die
+ dobin ${PN} || die
+
+ dodoc README || die
+}
+
+pkg_postinst() {
+ elog "Please notice that AutoUPnP was rewritten in the form of a C LD_PRELOAD"
+ elog "library, and thus it has to be enabled for a particular program to have"
+ elog "its ports redirected. For more information, please call:"
+ elog " $ autoupnp --help"
+}