Annotation of /trunk/todo/openswan/openswan-2.6.14-r1.smage2
Parent Directory | Revision Log
Revision 2 -
(hide annotations)
(download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 11 months ago) by niro
Original Path: trunk/extras/openswan/openswan-2.6.14-r1.smage2
File size: 1325 byte(s)
Fri Oct 10 13:29:42 2008 UTC (15 years, 11 months ago) by niro
Original Path: trunk/extras/openswan/openswan-2.6.14-r1.smage2
File size: 1325 byte(s)
import repo
1 | niro | 2 | # $Header: /magellan-cvs/smage/openswan/openswan-2.6.14-r1.smage2,v 1.2 2008/08/17 17:07:10 niro Exp $ |
2 | |||
3 | PNAME="openswan" | ||
4 | PVER="2.6.14" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | PCATEGORIE="net-vpn" | ||
8 | STATE="unstable" | ||
9 | |||
10 | DESCRIPTION="Openswan is an implementation of IPsec for Linux." | ||
11 | HOMEPAGE="http://www.openswan.org/" | ||
12 | |||
13 | DEPEND=">= dev-libs/gmp-4" | ||
14 | |||
15 | SDEPEND=">= sys-apps/gawk-3 | ||
16 | >= sys-dev/flex-2 | ||
17 | >= sys-apps/bison-2" | ||
18 | |||
19 | SRCFILE="${PNAME}-${PVER}.tar.gz" | ||
20 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
21 | |||
22 | sminclude mbuild | ||
23 | |||
24 | SRC_URI=( | ||
25 | http://www.openswan.org/download/${SRCFILE} | ||
26 | mirror://${PNAME}/${SRCFILE} | ||
27 | ) | ||
28 | |||
29 | src_prepare() | ||
30 | { | ||
31 | munpack ${SRCFILE} || die | ||
32 | cd ${SRCDIR} | ||
33 | |||
34 | # fix some pathes | ||
35 | local d=${SRCDIR}/Makefile.inc | ||
36 | |||
37 | # multilib awareness | ||
38 | sed -i "s:^FINALLIBEXECDIR=.*:FINALLIBEXECDIR=/usr/$(mlibdir):g" ${d} || die | ||
39 | |||
40 | # fix usr location | ||
41 | sed -i "s:^INC_USRLOCAL=.*:INC_USRLOCAL=/usr:g" ${d} || die | ||
42 | |||
43 | # fix wrong man dir | ||
44 | sed -i "s:^INC_MANDIR=.*:INC_MANDIR=share/man:g" ${d} || die | ||
45 | |||
46 | # fix wrong doc dir | ||
47 | sed -i "s:^FINALEXAMPLECONFDIR=.*:FINALEXAMPLECONFDIR=/usr/share/doc/${PNAME}-${PVER}:g" ${d} || die | ||
48 | sed -i "s:^FINALDOCDIR?=.*:FINALDOCDIR?=/usr/share/doc/${PNAME}-${PVER}:g" ${d} || die | ||
49 | |||
50 | # fix wrong libexec dir | ||
51 | sed -i "s:^FINALLIBEXECDIR=.*:FINALLIBEXECDIR=/usr/$(mlibdir)/ipsec:g" ${d} || die | ||
52 | } | ||
53 | |||
54 | src_compile() | ||
55 | { | ||
56 | cd ${SRCDIR} | ||
57 | mmake -j1 programs || die | ||
58 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |