net-wireless/chillispot: use #!/sbin/openrc-run instead of #!/sbin/runscript
authorAustin English <wizardedit@gentoo.org>
Tue, 3 May 2016 17:31:48 +0000 (12:31 -0500)
committerAustin English <wizardedit@gentoo.org>
Tue, 3 May 2016 17:31:48 +0000 (12:31 -0500)
Gentoo-Bug: https://bugs.gentoo.org/573846

Package-Manager: portage-2.2.26

net-wireless/chillispot/chillispot-1.1.0-r1.ebuild [new file with mode: 0644]
net-wireless/chillispot/files/chillispot

diff --git a/net-wireless/chillispot/chillispot-1.1.0-r1.ebuild b/net-wireless/chillispot/chillispot-1.1.0-r1.ebuild
new file mode 100644 (file)
index 0000000..f877ba9
--- /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
+
+DESCRIPTION="open source captive portal or wireless LAN access point controller"
+HOMEPAGE="http://www.chillispot.info/"
+SRC_URI="http://www.chillispot.info/download/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 arm ~hppa ~ia64 ~mips ~ppc s390 sh ~sparc x86"
+IUSE=""
+
+DEPEND=">=sys-apps/sed-4"
+RDEPEND=""
+
+src_prepare() {
+       chmod 644 doc/*.conf
+       find . -exec chmod go-w '{}' \;
+
+       eapply "${FILESDIR}"/${P}-gcc44.patch
+
+       default
+}
+
+src_install() {
+       emake DESTDIR="${D}" STRIPPROG=true install
+       cd doc && dodoc chilli.conf freeradius.users hotspotlogin.cgi firewall.iptables
+
+       # init script provided by Michele Beltrame bug #124698
+       doinitd "${FILESDIR}"/${PN}
+}
index 9c6b6cb7663e622a1cad3a09d72fc1937c53f8e2..dd2d8c4cc4ea136b989a483fa2dfa4e5694fd8ea 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$