/[gentoo-x86]/net-misc/ser/ser-0.8.9.ebuild
Gentoo

Contents of /net-misc/ser/ser-0.8.9.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Mon Sep 12 21:18:05 2005 UTC (14 years, 3 months ago) by stkn
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
Removed old versions.
(Portage version: 2.0.51.22-r2)

1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/ser/ser-0.8.9.ebuild,v 1.9 2004/12/25 17:24:52 ticho Exp $
4
5 DESCRIPTION="SIP Express Router"
6
7 HOMEPAGE="http://www.iptel.org/ser"
8 SRC_URI="ftp://ftp.berlios.de/pub/ser/${PV}/src/${P}_src.tar.gz"
9
10 LICENSE="GPL-2"
11 SLOT="0"
12 KEYWORDS="x86"
13 IUSE="ipv6 mysql"
14
15 DEPEND=">=sys-devel/gcc-2.95.3
16 >=sys-devel/bison-1.35
17 >=sys-devel/flex-2.5.4a
18 mysql? ( >=dev-db/mysql-3.23.52 )"
19
20 src_compile() {
21 if ! use ipv6; then
22 cp Makefile.defs Makefile.defs.orig
23 sed -e "s/-DUSE_IPV6//g" Makefile.defs.orig > Makefile.defs;
24 fi
25 if use mysql; then
26 cp Makefile Makefile.orig
27 sed -e "s/ mysql //g" Makefile.orig > Makefile;
28 fi
29 make all CFLAGS="${CFLAGS}" \
30 prefix=${D}/ \
31 cfg-prefix=/ \
32 cfg-target=/etc/ser/ || die
33 cd utils/gen_ha1
34 make all || die
35 }
36
37 src_install () {
38 make install \
39 prefix=${D}/ \
40 bin-prefix=${D}/usr/sbin \
41 bin-dir="" \
42 cfg-prefix=${D}/etc \
43 cfg-dir=ser/ \
44 cfg-target=/etc/ser \
45 modules-prefix=${D}/usr/lib/ser \
46 modules-dir=modules \
47 modules-target=/usr/lib/ser/modules/ \
48 man-prefix=${D}/usr/share/man \
49 man-dir="" \
50 doc-prefix=${D}/usr/share/doc \
51 doc-dir=${P} || die
52 exeinto /etc/init.d
53 newexe gentoo/ser.init ser
54 exeinto /usr/bin
55 newexe utils/gen_ha1/gen_ha1 gen_ha1
56 exeinto /usr/sbin
57 newexe scripts/harv_ser.sh harv_ser.sh
58 newexe scripts/sc serctl
59 newexe scripts/ser_mysql.sh ser_mysql.sh
60 }

  ViewVC Help
Powered by ViewVC 1.1.20