diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2011-10-15 14:14:36 +0000 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2011-10-15 14:14:36 +0000 |
commit | 23987a9d294a9cb6d042874cf13f28a135f8dfa8 (patch) | |
tree | 374f15aacc08240c6351c90d1793986a7f76d0bf /net-misc/minissdpd | |
parent | amd64 stable wrt #385699 (diff) | |
download | gentoo-2-23987a9d294a9cb6d042874cf13f28a135f8dfa8.tar.gz gentoo-2-23987a9d294a9cb6d042874cf13f28a135f8dfa8.tar.bz2 gentoo-2-23987a9d294a9cb6d042874cf13f28a135f8dfa8.zip |
Initial commit
(Portage version: 2.1.10.11/cvs/Linux x86_64)
Diffstat (limited to 'net-misc/minissdpd')
-rw-r--r-- | net-misc/minissdpd/ChangeLog | 9 | ||||
-rw-r--r-- | net-misc/minissdpd/files/minissdpd-remove-initd.patch | 12 | ||||
-rw-r--r-- | net-misc/minissdpd/files/minissdpd-respect-CFLAGS.patch | 14 | ||||
-rw-r--r-- | net-misc/minissdpd/files/minissdpd.initd | 23 | ||||
-rw-r--r-- | net-misc/minissdpd/metadata.xml | 8 | ||||
-rw-r--r-- | net-misc/minissdpd/minissdpd-1.1.20111007.ebuild | 35 |
6 files changed, 101 insertions, 0 deletions
diff --git a/net-misc/minissdpd/ChangeLog b/net-misc/minissdpd/ChangeLog new file mode 100644 index 000000000000..a906788c26cd --- /dev/null +++ b/net-misc/minissdpd/ChangeLog @@ -0,0 +1,9 @@ + + +*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 + diff --git a/net-misc/minissdpd/files/minissdpd-remove-initd.patch b/net-misc/minissdpd/files/minissdpd-remove-initd.patch new file mode 100644 index 000000000000..175416c2ec19 --- /dev/null +++ b/net-misc/minissdpd/files/minissdpd-remove-initd.patch @@ -0,0 +1,12 @@ +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) diff --git a/net-misc/minissdpd/files/minissdpd-respect-CFLAGS.patch b/net-misc/minissdpd/files/minissdpd-respect-CFLAGS.patch new file mode 100644 index 000000000000..bc2ec9f9abbf --- /dev/null +++ b/net-misc/minissdpd/files/minissdpd-respect-CFLAGS.patch @@ -0,0 +1,14 @@ +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 + diff --git a/net-misc/minissdpd/files/minissdpd.initd b/net-misc/minissdpd/files/minissdpd.initd new file mode 100644 index 000000000000..8fb613d1138a --- /dev/null +++ b/net-misc/minissdpd/files/minissdpd.initd @@ -0,0 +1,23 @@ +#!/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 $? +} diff --git a/net-misc/minissdpd/metadata.xml b/net-misc/minissdpd/metadata.xml new file mode 100644 index 000000000000..1e7587374fdf --- /dev/null +++ b/net-misc/minissdpd/metadata.xml @@ -0,0 +1,8 @@ +<?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> diff --git a/net-misc/minissdpd/minissdpd-1.1.20111007.ebuild b/net-misc/minissdpd/minissdpd-1.1.20111007.ebuild new file mode 100644 index 000000000000..37cf1cd49e07 --- /dev/null +++ b/net-misc/minissdpd/minissdpd-1.1.20111007.ebuild @@ -0,0 +1,35 @@ +# 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 +} |