net-im/simpserver-bin: use #!/sbin/openrc-run instead of #!/sbin/runscript
authorAustin English <wizardedit@gentoo.org>
Mon, 2 May 2016 21:17:19 +0000 (16:17 -0500)
committerAustin English <wizardedit@gentoo.org>
Mon, 2 May 2016 22:21:47 +0000 (17:21 -0500)
Gentoo-Bug: https://bugs.gentoo.org/573846

Package-Manager: portage-2.2.26

net-im/simpserver-bin/files/simpserver.rc
net-im/simpserver-bin/simpserver-bin-2.1.0-r2.ebuild [new file with mode: 0644]

index 4a48f5833ed2ab36313ec2d6c25f189b137476fb..16528fe0237ced609725ab79ba1fed8a7eb0b0a0 100644 (file)
@@ -1,5 +1,5 @@
-#!/sbin/runscript
-# Copyright 1999-2004 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-im/simpserver-bin/simpserver-bin-2.1.0-r2.ebuild b/net-im/simpserver-bin/simpserver-bin-2.1.0-r2.ebuild
new file mode 100644 (file)
index 0000000..7ee8c63
--- /dev/null
@@ -0,0 +1,40 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+MY_PN=${PN/-bin/}
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="SimpServer for Unix: IM instant security transparent proxy"
+SRC_URI="http://download.secway.com/public/products/simpserver/${MY_P}-linux-x86.tgz"
+HOMEPAGE="http://www.secway.com/"
+LICENSE="simpserver-test"
+
+KEYWORDS="-* ~amd64 ~x86"
+IUSE=""
+SLOT="0"
+S=${WORKDIR}/simp
+
+RESTRICT="strip"
+
+src_compile() {
+       einfo "Binary distribution.  No compilation required."
+}
+
+src_install () {
+       dodoc README VERSION doc/CONFIG doc/TODO
+
+       exeinto /opt/bin
+       doexe bin/${MY_PN}
+
+       insinto /etc
+       doins etc/simp.conf
+
+       newinitd "${FILESDIR}/${MY_PN}".rc ${MY_PN}
+}
+
+pkg_postinst() {
+       elog "Please edit the configuration file: /etc/simp.conf."
+}