net-misc/udpxy: use #!/sbin/openrc-run instead of #!/sbin/runscript
authorAustin English <wizardedit@gentoo.org>
Wed, 4 May 2016 00:56:37 +0000 (19:56 -0500)
committerAustin English <wizardedit@gentoo.org>
Wed, 4 May 2016 00:56:37 +0000 (19:56 -0500)
Gentoo-Bug: https://bugs.gentoo.org/573846

Package-Manager: portage-2.2.26

net-misc/udpxy/files/udpxy.initd
net-misc/udpxy/udpxy-1.0.23.7-r2.ebuild [new file with mode: 0644]

index c5bc1be01bd7ff73dc20a3a3074cb28357ddb75a..7a698d8d543c76956956de92671aa7ac1319165c 100644 (file)
@@ -1,5 +1,5 @@
-#!/sbin/runscript
-# Copyright 1999-2012 Gentoo Foundation
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
diff --git a/net-misc/udpxy/udpxy-1.0.23.7-r2.ebuild b/net-misc/udpxy/udpxy-1.0.23.7-r2.ebuild
new file mode 100644 (file)
index 0000000..f188248
--- /dev/null
@@ -0,0 +1,34 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit eutils systemd toolchain-funcs versionator
+
+MY_PV=$(replace_version_separator 3 -)
+DESCRIPTION="Small-footprint daemon to relay multicast UDP traffic to client's TCP (HTTP) connection"
+HOMEPAGE="http://sourceforge.net/projects/udpxy/"
+SRC_URI="http://www.udpxy.com/download/1_23/${PN}.${MY_PV}-prod.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+src_prepare() {
+       eapply_user
+       tc-export CC
+}
+
+src_install() {
+       dobin udpxy
+       dosym udpxy /usr/bin/udpxrec
+
+       doman doc/en/*.1
+       dodoc CHANGES README
+
+       newinitd "${FILESDIR}/${PN}.initd" ${PN}
+       newconfd "${FILESDIR}/${PN}.confd" ${PN}
+       systemd_dounit "${FILESDIR}/${PN}.service"
+}