summaryrefslogtreecommitdiff
blob: b8427d42cf1bb694c2b3f699dbb7c7bce618ceca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/xsupplicant/xsupplicant-2.2.0.ebuild,v 1.2 2010/06/23 21:38:41 hwoarang Exp $

EAPI=3

inherit autotools

MY_P="XSupplicant-${PV}-src"
DESCRIPTION="Open1X xsupplicant is an open source implementation of the IEEE 802.1X
protocol."
HOMEPAGE="http://open1x.sourceforge.net/"
SRC_URI="mirror://sourceforge/open1x/${MY_P}.tar.gz"

LICENSE="|| ( GPL-2 BSD )"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND="dev-libs/libxml2
	dev-libs/openssl
	net-wireless/wireless-tools
	sys-libs/zlib"
RDEPEND="${DEPEND}"

S="${WORKDIR}/${MY_P}/xsupplicant"

src_prepare() {
	eautoreconf
}

src_install() {
	emake DESTDIR="${D}" install || die "Install failed"
	dodoc README TODO || die

	newconfd "${FILESDIR}"/${PN}-1.2.2-conf.d ${PN}
	newinitd "${FILESDIR}"/${PN}-1.2.2-init.d ${PN}

	docinto examples
	dodoc etc/md5-example.conf etc/peap-example.conf etc/tls-example.conf \
		etc/ttls-example.conf  etc/wpa-psk-example.conf
}

pkg_postinst() {
	einfo
	elog "To use ${P} you must create the configuration file"
	elog "    /etc/xsupplicant.conf"
	einfo
	elog "Example configuration files have been installed at"
	elog "    /usr/share/doc/${P}/examples"
	einfo
}