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,106 +0,0 @@
1
-# Copyright 1999-2003 Fraunhofer Fokus
2
-# Distributed under the terms of the GNU General Public License v2
3
-# $Header$
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.11/src/${P}_src.tar.gz"
9
-
10
-LICENSE="GPL-2"
11
-SLOT="0"
12
-KEYWORDS="~x86 ~ppc ~sparc"
13
-IUSE="debug ipv6 mysql postgres"
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
-		postgres? ( >=dev-db/postgresql-7.3.4 )"
20
-
21
-S="${WORKDIR}/${P}"
22
-
23
-inc_mod=""
24
-make_options=""
25
-
26
-check_mods() {
27
-	if [ "`use mysql`" ]; then
28
-		inc_mod="${inc_mod} mysql"
29
-	fi
30
-	if [ "`use postgres`" ]; then
31
-		inc_mod="${inc_mod} postgres"
32
-	fi
33
-	
34
-	# test some additional modules for which
35
-	# no USE variables exist
36
-	
37
-	# jabber module requires dev-libs/expat
38
-	if [ -f "/usr/include/expat.h" ]; then
39
-		inc_mod="${inc_mod} jabber"
40
-	fi
41
-	# Radius modules requires installed radiusclient
42
-	# which is not in portage yet
43
-	if [ -f "/usr/include/radiusclient.h" -o  -f "/usr/local/include/radisuclient.h" ]; then
44
-		inc_mod="${inc_mod} auth_radius group_radius uri_radius"
45
-	fi
46
-}
47
-
48
-src_compile() {
49
-	if [ ! "`use ipv6`" ]; then
50
-		cp Makefile.defs Makefile.defs.orig 
51
-		sed -e "s/-DUSE_IPV6//g" Makefile.defs.orig > Makefile.defs;
52
-	fi
53
-	# optimization can result in strange debuging symbols so omit it in case
54
-	if [ "`use debug`" ]; then
55
-		make_options="${make_options} mode=debug"
56
-	else
57
-		make_options="${make_options} CFLAGS=${CFLAGS}"
58
-	fi
59
-
60
-	check_mods
61
-
62
-	make all "${make_options}" \
63
-		prefix=${D}/ \
64
-		include_modules="${inc_mod}" \
65
-		cfg-prefix=/ \
66
-		cfg-target=/etc/ser/ || die
67
-}
68
-
69
-src_install () {
70
-	check_mods
71
-
72
-	make install \
73
-		prefix=${D}/ \
74
-		include_modules="${inc_mod}" \
75
-		bin-prefix=${D}/usr/sbin \
76
-		bin-dir="" \
77
-		cfg-prefix=${D}/etc \
78
-		cfg-dir=ser/ \
79
-		cfg-target=/etc/ser \
80
-		modules-prefix=${D}/usr/lib/ser \
81
-		modules-dir=modules \
82
-		modules-target=/usr/lib/ser/modules/ \
83
-		man-prefix=${D}/usr/share/man \
84
-		man-dir="" \
85
-		doc-prefix=${D}/usr/share/doc \
86
-		doc-dir=${P} || die
87
-	exeinto /etc/init.d
88
-	newexe gentoo/ser.init ser
89
-
90
-	# fix what the Makefile don't do
91
-	if [ ! "`use mysql`" ]; then
92
-		rm ${D}/usr/sbin/ser_mysql.sh
93
-	fi
94
-}
95
-
96
-pkg_postinst() {
97
-	einfo "WARNING: If you upgraded from a previous Ser version"
98
-	einfo "please read the README, NEWS and INSTALL files in the"
99
-	einfo "documentation directory because the database and the"
100
-	einfo "configuration file of old Ser versions are incompatible"
101
-	einfo "with the current version."
102
-}
103
-
104
-pkg_prerm () {
105
-	/etc/init.d/ser stop >/dev/null
106
-}
Browse code

- gentoo stuff merged from stable

Andrei Pelinescu-Onciul authored on 03/09/2003 14:52:46
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,106 @@
1
+# Copyright 1999-2003 Fraunhofer Fokus
2
+# Distributed under the terms of the GNU General Public License v2
3
+# $Header$
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.11/src/${P}_src.tar.gz"
9
+
10
+LICENSE="GPL-2"
11
+SLOT="0"
12
+KEYWORDS="~x86 ~ppc ~sparc"
13
+IUSE="debug ipv6 mysql postgres"
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
+		postgres? ( >=dev-db/postgresql-7.3.4 )"
20
+
21
+S="${WORKDIR}/${P}"
22
+
23
+inc_mod=""
24
+make_options=""
25
+
26
+check_mods() {
27
+	if [ "`use mysql`" ]; then
28
+		inc_mod="${inc_mod} mysql"
29
+	fi
30
+	if [ "`use postgres`" ]; then
31
+		inc_mod="${inc_mod} postgres"
32
+	fi
33
+	
34
+	# test some additional modules for which
35
+	# no USE variables exist
36
+	
37
+	# jabber module requires dev-libs/expat
38
+	if [ -f "/usr/include/expat.h" ]; then
39
+		inc_mod="${inc_mod} jabber"
40
+	fi
41
+	# Radius modules requires installed radiusclient
42
+	# which is not in portage yet
43
+	if [ -f "/usr/include/radiusclient.h" -o  -f "/usr/local/include/radisuclient.h" ]; then
44
+		inc_mod="${inc_mod} auth_radius group_radius uri_radius"
45
+	fi
46
+}
47
+
48
+src_compile() {
49
+	if [ ! "`use ipv6`" ]; then
50
+		cp Makefile.defs Makefile.defs.orig 
51
+		sed -e "s/-DUSE_IPV6//g" Makefile.defs.orig > Makefile.defs;
52
+	fi
53
+	# optimization can result in strange debuging symbols so omit it in case
54
+	if [ "`use debug`" ]; then
55
+		make_options="${make_options} mode=debug"
56
+	else
57
+		make_options="${make_options} CFLAGS=${CFLAGS}"
58
+	fi
59
+
60
+	check_mods
61
+
62
+	make all "${make_options}" \
63
+		prefix=${D}/ \
64
+		include_modules="${inc_mod}" \
65
+		cfg-prefix=/ \
66
+		cfg-target=/etc/ser/ || die
67
+}
68
+
69
+src_install () {
70
+	check_mods
71
+
72
+	make install \
73
+		prefix=${D}/ \
74
+		include_modules="${inc_mod}" \
75
+		bin-prefix=${D}/usr/sbin \
76
+		bin-dir="" \
77
+		cfg-prefix=${D}/etc \
78
+		cfg-dir=ser/ \
79
+		cfg-target=/etc/ser \
80
+		modules-prefix=${D}/usr/lib/ser \
81
+		modules-dir=modules \
82
+		modules-target=/usr/lib/ser/modules/ \
83
+		man-prefix=${D}/usr/share/man \
84
+		man-dir="" \
85
+		doc-prefix=${D}/usr/share/doc \
86
+		doc-dir=${P} || die
87
+	exeinto /etc/init.d
88
+	newexe gentoo/ser.init ser
89
+
90
+	# fix what the Makefile don't do
91
+	if [ ! "`use mysql`" ]; then
92
+		rm ${D}/usr/sbin/ser_mysql.sh
93
+	fi
94
+}
95
+
96
+pkg_postinst() {
97
+	einfo "WARNING: If you upgraded from a previous Ser version"
98
+	einfo "please read the README, NEWS and INSTALL files in the"
99
+	einfo "documentation directory because the database and the"
100
+	einfo "configuration file of old Ser versions are incompatible"
101
+	einfo "with the current version."
102
+}
103
+
104
+pkg_prerm () {
105
+	/etc/init.d/ser stop >/dev/null
106
+}