diff options
author | Daniel Ahlberg <aliz@gentoo.org> | 2003-11-18 15:57:36 +0000 |
---|---|---|
committer | Daniel Ahlberg <aliz@gentoo.org> | 2003-11-18 15:57:36 +0000 |
commit | ed265e5d549adb5ed41ec1e30d0a875ada8b45e6 (patch) | |
tree | 9c524b5ba1bd317feac0be5dcea4f9aaad819306 /net-misc/freeswan/freeswan-2.04.ebuild | |
parent | version bump (diff) | |
download | gentoo-2-ed265e5d549adb5ed41ec1e30d0a875ada8b45e6.tar.gz gentoo-2-ed265e5d549adb5ed41ec1e30d0a875ada8b45e6.tar.bz2 gentoo-2-ed265e5d549adb5ed41ec1e30d0a875ada8b45e6.zip |
version bump
Diffstat (limited to 'net-misc/freeswan/freeswan-2.04.ebuild')
-rw-r--r-- | net-misc/freeswan/freeswan-2.04.ebuild | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/net-misc/freeswan/freeswan-2.04.ebuild b/net-misc/freeswan/freeswan-2.04.ebuild new file mode 100644 index 000000000000..35b244670337 --- /dev/null +++ b/net-misc/freeswan/freeswan-2.04.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/freeswan/freeswan-2.04.ebuild,v 1.1 2003/11/18 15:57:32 aliz Exp $ + +inherit eutils + +X509_PATCH=1.4.8 +S=${WORKDIR}/${P} +DESCRIPTION="FreeS/WAN IPSec Userspace Utilities with X.509 Patches" +SRC_URI="ftp://ftp.xs4all.nl/pub/crypto/freeswan/${P}.tar.gz + http://www.strongsec.com/freeswan/x509-${X509_PATCH}-${P}.tar.gz" + +HOMEPAGE="http://www.freeswan.org" +DEPEND="virtual/glibc + virtual/linux-sources + >=dev-libs/gmp-3.1.1 + net-misc/host" +LICENSE="GPL-2" +RDEPEND="" +SLOT="0" +KEYWORDS="~x86 -sparc" + +pkg_setup() { + [ -d /usr/src/linux/net/ipsec ] || { + echo You need to have the crypto-enabled version of Gentoo Sources + echo with a symlink to it in /usr/src/linux in order to have IPSec + echo kernel compatibility. + + exit 1 + } +} + +src_unpack() { + unpack ${A} + + cd ${S} + epatch ${FILESDIR}/${P}-gentoo.patch + cp ${WORKDIR}/x509-${X509_PATCH}\-${P}/freeswan.diff \ + ${WORKDIR}/x509-${X509_PATCH}\-${P}/freeswan.diff.old + sed 's:/etc/ipsec.d:/etc/ipsec/ipsec.d:g' \ + ${WORKDIR}/x509-${X509_PATCH}-${P}/freeswan.diff.old > \ + ${WORKDIR}/x509-${X509_PATCH}-${P}/freeswan.diff + epatch ${WORKDIR}/x509-${X509_PATCH}-${P}/freeswan.diff +} + +src_compile() { + + make \ + DESTDIR=${D} \ + USERCOMPILE="${CFLAGS}" \ + FINALCONFDIR=/etc/ipsec \ + INC_RCDEFAULT=/etc/init.d \ + INC_USRLOCAL=/usr \ + INC_MANDIR=share/man \ + confcheck programs || die +} + +src_install () { + + # try make prefix=${D}/usr install + + make \ + DESTDIR=${D} \ + USERCOMPILE="${CFLAGS}" \ + FINALCONFDIR=/etc/ipsec \ + INC_RCDEFAULT=/etc/init.d \ + INC_USRLOCAL=/usr \ + INC_MANDIR=share/man \ + install || die + + newdoc ${WORKDIR}/x509-${X509_PATCH}-${P}/README README.x509 + newdoc ${WORKDIR}/x509-${X509_PATCH}-${P}/CHANGES CHANGES.x509 + newdoc ${WORKDIR}/x509-${X509_PATCH}-${P}/ipsec.secrets.template ipsec.secrets.x509 + dodoc INSTALL COPYING CREDITS BUGS CHANGES README doc/* + dosym /etc/ipsec/ipsec.d /etc/ipsec.d + dosym /etc/ipsec/ipsec.conf /etc/ipsec.conf + + exeinto /etc/init.d/ + doexe ${FILESDIR}/ipsec +} + |