You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-wireless/chillispot/chillispot-1.1.0.ebuild

35 lines
978 B

# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-wireless/chillispot/chillispot-1.1.0.ebuild,v 1.7 2014/08/30 11:50:24 mgorny Exp $
inherit eutils
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_unpack() {
unpack ${A}
cd "${S}"
chmod 644 doc/*.conf
find . -exec chmod go-w '{}' \;
epatch "${FILESDIR}"/${P}-gcc44.patch
}
src_install() {
emake DESTDIR="${D}" STRIPPROG=true install || die "emake install failed"
cd doc && dodoc chilli.conf freeradius.users hotspotlogin.cgi firewall.iptables
# init script provided by Michele Beltrame bug #124698
newinitd "${FILESDIR}"/${PN} ${PN} || die
}