/[gentoo-x86]/net-misc/freeswan/freeswan-2.01.ebuild
Gentoo

Contents of /net-misc/freeswan/freeswan-2.01.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Fri Sep 12 04:58:14 2003 UTC (16 years, 5 months ago) by jhhudso
Branch: MAIN
Changes since 1.2: +3 -3 lines
Removed reference to crypto-sources

1 jhhudso 1.1 # Copyright 1999-2003 Gentoo Technologies, Inc.
2     # Distributed under the terms of the GNU General Public License v2
3 jhhudso 1.3 # $Header: /home/cvsroot/gentoo-x86/net-misc/freeswan/freeswan-2.01.ebuild,v 1.2 2003/09/05 22:01:48 msterret Exp $
4 jhhudso 1.1
5     inherit eutils
6    
7     X509_PATCH=1.4.3
8     S=${WORKDIR}/${P}
9     DESCRIPTION="FreeS/WAN IPSec Userspace Utilities with X.509 Patches"
10     SRC_URI="ftp://ftp.xs4all.nl/pub/crypto/freeswan/${P}.tar.gz
11     http://www.strongsec.com/freeswan/x509-${X509_PATCH}-${P}.tar.gz"
12    
13     HOMEPAGE="http://www.freeswan.org"
14     DEPEND="virtual/glibc
15 msterret 1.2 virtual/linux-sources
16 jhhudso 1.1 >=dev-libs/gmp-3.1.1
17     net-misc/host"
18     LICENSE="GPL-2"
19     RDEPEND=""
20     SLOT="0"
21     KEYWORDS="~x86 -sparc"
22    
23     pkg_setup() {
24 msterret 1.2 [ -d /usr/src/linux/net/ipsec ] || {
25     echo You need to have the crypto-enabled version of Gentoo Sources
26     echo with a symlink to it in /usr/src/linux in order to have IPSec
27 jhhudso 1.3 echo kernel compatibility.
28    
29 msterret 1.2 exit 1
30 jhhudso 1.1 }
31     }
32    
33     src_unpack() {
34     unpack ${A}
35    
36     cd ${S}
37     epatch ${FILESDIR}/freeswan-2.01-gentoo.patch
38     cp ${WORKDIR}/x509-${X509_PATCH}\-${P}/freeswan.diff \
39     ${WORKDIR}/x509-${X509_PATCH}\-${P}/freeswan.diff.old
40     sed 's:/etc/ipsec.d:/etc/ipsec/ipsec.d:g' \
41     ${WORKDIR}/x509-${X509_PATCH}-${P}/freeswan.diff.old > \
42     ${WORKDIR}/x509-${X509_PATCH}-${P}/freeswan.diff
43     epatch ${WORKDIR}/x509-${X509_PATCH}-${P}/freeswan.diff
44     }
45    
46     src_compile() {
47    
48     make \
49     DESTDIR=${D} \
50     USERCOMPILE="${CFLAGS}" \
51     FINALCONFDIR=/etc/ipsec \
52     INC_RCDEFAULT=/etc/init.d \
53     INC_USRLOCAL=/usr \
54     INC_MANDIR=share/man \
55     confcheck programs || die
56     }
57    
58     src_install () {
59 msterret 1.2
60 jhhudso 1.1 # try make prefix=${D}/usr install
61    
62     make \
63     DESTDIR=${D} \
64     USERCOMPILE="${CFLAGS}" \
65     FINALCONFDIR=/etc/ipsec \
66     INC_RCDEFAULT=/etc/init.d \
67     INC_USRLOCAL=/usr \
68     INC_MANDIR=share/man \
69     install || die
70    
71     newdoc ${WORKDIR}/x509-${X509_PATCH}-${P}/README README.x509
72     newdoc ${WORKDIR}/x509-${X509_PATCH}-${P}/CHANGES CHANGES.x509
73     newdoc ${WORKDIR}/x509-${X509_PATCH}-${P}/ipsec.secrets.template ipsec.secrets.x509
74     dodoc INSTALL COPYING CREDITS BUGS CHANGES README doc/*
75     dosym /etc/ipsec/ipsec.d /etc/ipsec.d
76     dosym /etc/ipsec/ipsec.conf /etc/ipsec.conf
77    
78     exeinto /etc/init.d/
79     doexe ${FILESDIR}/ipsec
80     }
81    

  ViewVC Help
Powered by ViewVC 1.1.20