Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 69011 Details for
Bug 103711
give an option to build openvpn plugins
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
ebuild with useflag for plugins
openvpn-2.0.2.ebuild (text/plain), 2.70 KB, created by
Sascha Lucas
on 2005-09-22 08:19:11 UTC
(
hide
)
Description:
ebuild with useflag for plugins
Filename:
MIME Type:
Creator:
Sascha Lucas
Created:
2005-09-22 08:19:11 UTC
Size:
2.70 KB
patch
obsolete
># Copyright 1999-2005 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: /var/cvsroot/gentoo-x86/net-misc/openvpn/openvpn-2.0.2.ebuild,v 1.1 2005/09/19 21:10:56 seemant Exp $ > >inherit eutils gnuconfig > >DESCRIPTION="OpenVPN is a robust and highly flexible tunneling application compatible with many OSes." >SRC_URI="http://openvpn.net/release/openvpn-${PV}.tar.gz" >HOMEPAGE="http://openvpn.net/" > >LICENSE="GPL-2" >SLOT="0" >KEYWORDS="~alpha ~amd64 ~ppc ~ppc-macos ~sparc ~x86" >IUSE="examples selinux ssl threads plugins" > >RDEPEND=">=dev-libs/lzo-1.07 > selinux? ( sec-policy/selinux-openvpn ) > ssl? ( >=dev-libs/openssl-0.9.6 ) > plugins? ( sys-libs/pam )" >DEPEND="${RDEPEND} > virtual/os-headers" > >pluginlist="auth-pam down-root" >plugin_source_dir="${S}/plugin" > >src_unpack() { > unpack ${A} > gnuconfig_update >} > >src_compile() { > econf \ > $(use_enable ssl) \ > $(use_enable ssl crypto) \ > $(use_enable threads pthread) \ > || die "configure failed" > emake || die "make failed" > if use plugins; then > for i in ${pluginlist}; do > cd ${plugin_source_dir}/${i} > emake || die "make failed" > cd - > done > fi >} > >src_install() { > make DESTDIR=${D} install || die "make install failed" > > # install documentation > dodoc AUTHORS ChangeLog INSTALL PORTS README > > # Empty dir > dodir /etc/openvpn > keepdir /etc/openvpn > > # Install the init script > newinitd ${FILESDIR}/openvpn openvpn > > # Install easy-rsa stuffs > dodir /usr/share/${PN}/easy-rsa > exeinto /usr/share/${PN}/easy-rsa > doexe easy-rsa/2.0/* > exeopts -m0644 > > # install examples, controlled by the respective useflag > if use examples; then > local sampledir="/usr/share/doc/${PN}/examples" > dodir ${sampledir} > > cp -r sample-{config-files,keys,scripts} ${D}${sampledir} > cp -r contrib/ ${D}${sampledir} > fi > > # install plugins, controlled by the respective useflag > if use plugins; then > local plugindir="/usr/share/${PN}/plugins" > dodir ${plugindir} > > for i in ${pluginlist}; do > insinto ${plugindir} > insopts -m0755 > doins ${plugin_source_dir}/${i}/*.so > done > fi > >} > >pkg_postinst() { > ewarn "This version of OpenVPN is NOT COMPATIBLE with older versions!" > ewarn "If you need compatibility with a version < 2 please emerge" > ewarn "that one." > einfo "" > einfo "The init.d script that comes with OpenVPN expects directories" > einfo "/etc/openvpn/*/ with a local.conf and any supporting files," > einfo "such as keys." > einfo "" > if use plugins; then > einfo "plugins can be found at /usr/share/${PN}/plugins" > einfo "" > fi > ewarn "If you've used 2.0 already make sure to move your configuration" > ewarn "files into a subdirectory of /etc/openvpn, for example to:" > ewarn "/etc/openvpn/myconf and rename your configfile to local.conf" > ewarn "" > ebeep >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 103711
: 69011