initial commit of openvpn-radiusplugin
This commit is contained in:
parent
7f25cd4a7b
commit
d8b062c43c
3
net-misc/openvpn-radiusplugin/Manifest
Normal file
3
net-misc/openvpn-radiusplugin/Manifest
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
DIST radiusplugin_v2.1.tar.gz 239270 SHA256 d858e9c26a2f71390ca2c0229eb3205fbe407876a6efda3f30433d20044ace88 SHA512 21d5fcb5f3aa607445d28cef1bed357a5027d4c54e0003d8e7d05874182c791031802703cb481e1f127a9582867d677452102df0b4eff6b2f6a5ea5a201d7738 WHIRLPOOL 75c8f106a98ae91f7e2cc8b51aa53bc3a0a0a010f22390f6c3edbb28e02ea194ee4f55061b763d6d3e5ea0cd45ba5f58b8de36647c89fdc32a04040fac80c5cb
|
||||||
|
EBUILD openvpn-radiusplugin-2.1.ebuild 1211 SHA256 303f920e3bda493ad0b43860263e66e5bed3bed1c883ef98d6b9b2eec6af397f SHA512 e6c8f58da34a0563bab9cb93c64a7022fa1727152e085726e8a2c9dba3a0c70ef4bd20c50da4ad014033358d18dd5ee7f8e7049c356452247e94d911a27ed9eb WHIRLPOOL 1e59fea4ff0edff74ab0ec040caf902709311e3dd8c6706e85ca371dce9f160a65e686dab3882b53447cafc8f746293fada982aab2ba1cc9531b894f0e33a79b
|
||||||
|
MISC metadata.xml 233 SHA256 a93cf5c4e554b97b2a48b92f801e3a3d87833cac311db0160a387a757ab7054c SHA512 704c94018edcbc53edcf0a41c2603dd59ea217aa5871f35d4d17f7df26156b8fb0a735d2efb11b74256565db01e6790a833242de39c29a9e46ed8ed96d505334 WHIRLPOOL 57f455cf256b91fb72e642f5a861e7367961775f2ab992b8afc798ff376c9a2bc8860d09f2bc43c870531248484128c966f25a081b7789a31ba9fb4f52b5519c
|
8
net-misc/openvpn-radiusplugin/metadata.xml
Normal file
8
net-misc/openvpn-radiusplugin/metadata.xml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<maintainer>
|
||||||
|
<email>pinkbyte@gentoo.org</email>
|
||||||
|
<name>Sergey Popov</name>
|
||||||
|
</maintainer>
|
||||||
|
</pkgmetadata>
|
@ -0,0 +1,57 @@
|
|||||||
|
# Copyright 1999-2012 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: $
|
||||||
|
|
||||||
|
EAPI=4
|
||||||
|
|
||||||
|
MY_PN="radiusplugin"
|
||||||
|
MY_P="${MY_PN}_v${PV}"
|
||||||
|
|
||||||
|
inherit flag-o-matic multilib toolchain-funcs
|
||||||
|
|
||||||
|
DESCRIPTION="Radiusplugin for OpenVPN"
|
||||||
|
HOMEPAGE="http://www.nongnu.org/radiusplugin/index.html"
|
||||||
|
SRC_URI="http://www.nongnu.org/radiusplugin/${MY_P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
|
||||||
|
# TODO: handle with optional doxygen documentation generation
|
||||||
|
#IUSE="doc"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
DEPEND="dev-libs/libgcrypt"
|
||||||
|
RDEPEND="${DEPEND}
|
||||||
|
net-misc/openvpn"
|
||||||
|
|
||||||
|
S="${WORKDIR}/${MY_PN}"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
# Make compilation process verbose
|
||||||
|
# Respect CFLAGS, LDFLAGS and compiler
|
||||||
|
sed -i \
|
||||||
|
-e 's:@$(CC):$(CC):g' \
|
||||||
|
-e '/^CFLAGS/d' \
|
||||||
|
-e '/^LDFLAGS/d' \
|
||||||
|
Makefile || die 'sed on Makefile failed'
|
||||||
|
# needed for proper compilation
|
||||||
|
append-cflags -shared -fPIC -DPIC
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
emake CC="$(tc-getCC)"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
insinto /etc/openvpn
|
||||||
|
doins "${MY_PN}.cnf"
|
||||||
|
exeinto "/usr/$(get_libdir)/openvpn"
|
||||||
|
doexe "${MY_PN}.so"
|
||||||
|
dodoc README ToDo
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
elog "Radiusplugin is installed into '/usr/$(get_libdir)/openvpn'"
|
||||||
|
elog "Path for it should be set in your openvpn.conf"
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user