From 9a60b59469901135e14790035cd9e55241ecf0b4 Mon Sep 17 00:00:00 2001 From: Austin English Date: Tue, 3 May 2016 12:31:48 -0500 Subject: net-wireless/chillispot: use #!/sbin/openrc-run instead of #!/sbin/runscript Gentoo-Bug: https://bugs.gentoo.org/573846 Package-Manager: portage-2.2.26 --- net-wireless/chillispot/chillispot-1.1.0-r1.ebuild | 34 ++++++++++++++++++++++ net-wireless/chillispot/files/chillispot | 4 +-- 2 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 net-wireless/chillispot/chillispot-1.1.0-r1.ebuild (limited to 'net-wireless') 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 index 000000000000..f877ba952a73 --- /dev/null +++ b/net-wireless/chillispot/chillispot-1.1.0-r1.ebuild @@ -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} +} diff --git a/net-wireless/chillispot/files/chillispot b/net-wireless/chillispot/files/chillispot index 9c6b6cb7663e..dd2d8c4cc4ea 100644 --- a/net-wireless/chillispot/files/chillispot +++ b/net-wireless/chillispot/files/chillispot @@ -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$ -- cgit v1.2.3-65-gdbad