--- /dev/null
+
+
+*minissdpd-1.1.20111007 (14 Oct 2011)
+
+ 14 Oct 2011; Anthony G. Basile <blueness@gentoo.org>
+ +minissdpd-1.1.20111007.ebuild, +files/minissdpd-respect-CFLAGS.patch,
+ +metadata.xml:
+ Initial commit
+
--- /dev/null
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+AUX minissdpd-remove-initd.patch 521 RMD160 2a4e6000920aa7f51f0619b09408edbc64a1979f SHA1 ac3e238504dc398399ddfff0c9c68f6b8d3b2a83 SHA256 c66783940948c5e6e7f48dd742a0998a023676f2adc35802513830b461c6874d
+AUX minissdpd-respect-CFLAGS.patch 580 RMD160 101528f573cac895078386d1380ba958eaa2815d SHA1 e27762c437e8f966049081bf4a767890e1861122 SHA256 fb9bd6f8b44c8707342df8d99ff980e53e0a5ffd8bbf57df6ddf5c8110a2b3a1
+AUX minissdpd.initd 510 RMD160 e0e20d465b005cec35c0b946d4471be135b76528 SHA1 2bb52882ad4f3b2f6d3f97a30fd6399d22fcabb9 SHA256 2c0228c98884d545b806373b7f91ef36e9fd3622d00930e543e7e2f9313951d4
+DIST minissdpd-1.1.20111007.tar.gz 17611 RMD160 957813e30a56f4df0b43fdaf89f0bd94ddef853f SHA1 b2f82ed89f682d626556c7bebd8552d2ce5384c2 SHA256 95e8493a02bd45b6481b892a7d0d8f21c44b10ed5fbe67108d5c3f5471a165d5
+EBUILD minissdpd-1.1.20111007.ebuild 822 RMD160 a78a15b604a2fd25e49f3151b9d1e23528b912b1 SHA1 6fce111a583f75f4d9969b8003ed16db6162fad0 SHA256 0be734731dbc3b336b837abbebccb79cbcf448dff62fa8710b9d7957b313a5c0
+MISC ChangeLog 204 RMD160 4d871b67197f81f0ca8fcac3c7c5a0db833cb105 SHA1 2cff81f1bd4cb402e0631154da6d13ebe90acf53 SHA256 ed11dfe01164ee53689e708b1c1c5b5b10a146c49efc8ead05bf79164e1e36ae
+MISC metadata.xml 238 RMD160 6401efde1642c40e91d5a41a966b9dbff0512eab SHA1 9751c07b46aec3d4f96133758cdd23a3e2ca2835 SHA256 f13e6e7b65d20beb9ae945d520160ef0dba80c1965754958945904d7e3c0a75f
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.17 (GNU/Linux)
+
+iEYEAREIAAYFAk6ZlVYACgkQl5yvQNBFVTXKTgCgkRJJoMRYQZH8lsKgmDv0igx0
+wXsAn0nkUsfRBR0cXud+Kr7YGAFdsbDY
+=ZgWT
+-----END PGP SIGNATURE-----
--- /dev/null
+diff -Naur minissdpd-1.1.20111007.orig//Makefile minissdpd-1.1.20111007/Makefile
+--- minissdpd-1.1.20111007.orig//Makefile 2011-10-14 17:45:05.000000000 -0400
++++ minissdpd-1.1.20111007/Makefile 2011-10-14 18:16:34.000000000 -0400
+@@ -37,8 +37,6 @@
+ install: minissdpd
+ $(INSTALL) -d $(SBININSTALLDIR)
+ $(INSTALL) minissdpd $(SBININSTALLDIR)
+- $(INSTALL) -d $(PREFIX)/etc/init.d
+- $(INSTALL) minissdpd.init.d.script $(PREFIX)/etc/init.d/minissdpd
+
+ minissdpd: $(MINISSDPDOBJS)
+ $(CC) $(CFLAGS) -o $@ $(MINISSDPDOBJS)
--- /dev/null
+diff -Naur minissdpd-1.1.20111007.orig//Makefile minissdpd-1.1.20111007/Makefile
+--- minissdpd-1.1.20111007.orig//Makefile 2011-07-29 11:25:43.000000000 -0400
++++ minissdpd-1.1.20111007/Makefile 2011-10-14 17:39:31.000000000 -0400
+@@ -12,8 +12,8 @@
+ #
+ # install target is made for linux... sorry BSD users...
+ #CFLAGS = -Wall -g -D_GNU_SOURCE -Wstrict-prototypes
+-CFLAGS = -Wall -Os -D_GNU_SOURCE -fno-strict-aliasing -Wstrict-prototypes
+-CC = gcc
++CFLAGS := -Wall -Os -D_GNU_SOURCE -fno-strict-aliasing -Wstrict-prototypes $(CFLAGS)
++CC ?= gcc
+ RM = rm -f
+ INSTALL = install
+
--- /dev/null
+#!/sbin/runscript
+
+MINISSDPD="/usr/sbin/minissdpd"
+PIDFILE="/var/run/minissdpd.pid"
+
+depend() {
+ need net
+ before miniupnpd
+}
+
+start() {
+ ebegin "Starting minissdpd"
+ IF=$(/sbin/route | grep default | awk -- '{ print $8 }')
+ ARGS="-i $(/sbin/ifconfig $IF | grep 'inet addr' | sed 's/.\+inet addr:\([0-9.]\+\).\+/\1/')"
+ start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $MINISSDPD -- $ARGS
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping minissdpd"
+ start-stop-daemon --stop --pidfile "${PIDFILE}"
+ eend $?
+}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>blueness@gentoo.org</email>
+ <name>Anthony G. Basile</name>
+ </maintainer>
+</pkgmetadata>
--- /dev/null
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/minissdpd/minissdpd-1.1.20111007.ebuild,v 1.1 2011/10/15 14:14:36 blueness Exp $
+
+EAPI=4
+inherit eutils toolchain-funcs
+
+DESCRIPTION="MiniSSDP Daemon"
+SRC_URI="http://miniupnp.free.fr/files/${P}.tar.gz"
+HOMEPAGE="http://miniupnp.free.fr/"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="sys-apps/net-tools
+ || ( net-misc/miniupnpd net-libs/miniupnpc )"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-respect-CFLAGS.patch"
+ epatch "${FILESDIR}/${PN}-remove-initd.patch"
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)"
+}
+
+src_install () {
+ einstall PREFIX="${D}"
+ newinitd "${FILESDIR}/${PN}.initd" ${PN}
+ dodoc Changelog.txt README
+ doman minissdpd.1
+}