Browse code

- removed original packaging files - Makefile updated to use new location of files

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

Initial new version.

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