summaryrefslogtreecommitdiff
blob: d18cb1b1b3319eb6dae8bac3b4f9c6fadb76ca45 (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-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/xsupplicant/xsupplicant-1.0.1.ebuild,v 1.2 2005/02/19 11:10:36 hansmi Exp $

DESCRIPTION="Open Source Implementation of IEEE 802.1x"

HOMEPAGE="http://open1x.sourceforge.net"
SRC_URI="mirror://sourceforge/open1x/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~ppc"

IUSE=""

DEPEND=">=dev-libs/openssl-0.9.7
		sys-apps/pcsc-lite"

src_compile() {
	econf --enable-eap-sim || die "econf failed"
	emake || die "emake failed"
}

src_install() {
	emake DESTDIR=${D} install || die "emake install failed"

	dodoc AUTHORS README README.wireless_cards \
		doc/README.certificates \
		doc/pdf/Open1x-UserGuide.pdf doc/txt/Open1x-UserGuide.txt

	docinto examples
	dodoc etc/*-example.conf

	insinto /etc
	newins etc/xsupplicant.conf xsupplicant.conf.example

	exeinto /etc/init.d
	newexe ${FILESDIR}/xsupplicant.init.d xsupplicant

	insinto /etc/conf.d
	newins ${FILESDIR}/xsupplicant.conf.d xsupplicant
}

pkg_postinst() {
	einfo
	einfo "To use ${P} you must create the configuration file"
	einfo "/etc/xsupplicant.conf"
	einfo
	einfo "An example configuration file has been installed as"
	einfo "/etc/xsupplicant.conf.example"
	einfo
}