Lines 2-15
Link Here
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/openconnect/openconnect-3.11.ebuild,v 1.1 2011/08/16 09:15:47 dagger Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/openconnect/openconnect-3.11.ebuild,v 1.1 2011/08/16 09:15:47 dagger Exp $ |
4 |
|
4 |
|
5 |
EAPI=4 |
5 |
EAPI="5" |
6 |
|
6 |
|
7 |
inherit eutils linux-info |
7 |
inherit eutils linux-info |
8 |
|
8 |
|
9 |
DESCRIPTION="Free client for Cisco AnyConnect SSL VPN software" |
9 |
DESCRIPTION="Free client for Cisco AnyConnect SSL VPN software" |
10 |
HOMEPAGE="http://www.infradead.org/openconnect.html" |
10 |
HOMEPAGE="http://www.infradead.org/openconnect.html" |
11 |
SRC_URI="ftp://ftp.infradead.org/pub/${PN}/${P}.tar.gz |
11 |
SRC_URI="ftp://ftp.infradead.org/pub/${PN}/${P}.tar.gz" |
12 |
http://dev.gentoo.org/~dagger/files/openconnect-script" |
|
|
13 |
|
12 |
|
14 |
LICENSE="LGPL-2.1" |
13 |
LICENSE="LGPL-2.1" |
15 |
SLOT="0" |
14 |
SLOT="0" |
Lines 51-56
Link Here
|
51 |
fi |
50 |
fi |
52 |
} |
51 |
} |
53 |
|
52 |
|
|
|
53 |
src_prepare() { |
54 |
cp "${FILESDIR}"/openconnect-script.bz2 "${S}" || die "Openconnect script copy failed" |
55 |
"${EPREFIX}"/bin/bunzip2 "${S}"/openconnect-script.bz2 || die "Openconnect script decompression failed" |
56 |
} |
57 |
|
54 |
src_configure() { |
58 |
src_configure() { |
55 |
ECONF="$(use_enable static-libs static)" |
59 |
ECONF="$(use_enable static-libs static)" |
56 |
|
60 |
|
Lines 61-73
Link Here
|
61 |
emake DESTDIR="${D}" install || die "Faild to install" |
65 |
emake DESTDIR="${D}" install || die "Faild to install" |
62 |
|
66 |
|
63 |
dodoc AUTHORS TODO |
67 |
dodoc AUTHORS TODO |
64 |
dohtml ${PN}.html |
|
|
65 |
newinitd "${FILESDIR}"/openconnect.init.in openconnect |
68 |
newinitd "${FILESDIR}"/openconnect.init.in openconnect |
66 |
dodir "/etc/openconnect" |
69 |
dodir "/etc/openconnect" |
67 |
insinto "/etc/openconnect" |
70 |
insinto "/etc/openconnect" |
68 |
newconfd "${FILESDIR}"/openconnect.conf.in openconnect |
71 |
newconfd "${FILESDIR}"/openconnect.conf.in openconnect |
69 |
exeinto "/etc/openconnect" |
72 |
exeinto "/etc/openconnect" |
70 |
newexe "${DISTDIR}/"openconnect-script openconnect.sh |
73 |
newexe openconnect-script openconnect.sh |
71 |
|
74 |
|
72 |
# Remove useless .la files |
75 |
# Remove useless .la files |
73 |
find "${D}" -name '*.la' -exec rm -f {} + || die "la file removal failed" |
76 |
find "${D}" -name '*.la' -exec rm -f {} + || die "la file removal failed" |