blob: fa480c0261c8d76abe77573259569b9002d96be4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-voip/openmcu/openmcu-2.2.0.ebuild,v 1.1 2006/09/14 01:03:20 genstef Exp $
inherit eutils
IUSE=""
DESCRIPTION="H.323 conferencing server"
HOMEPAGE="http://openh323.sourceforge.net/"
SRC_URI="mirror://sourceforge/openh323/${PN}-v${PV//./_}-src-tar.gz"
S=${WORKDIR}/${PN}_v${PV//./_}
SLOT="0"
KEYWORDS="~x86"
LICENSE="MPL-1.0"
DEPEND=">=net-libs/openh323-1.15.2"
src_unpack() {
tar -xzf ${DISTDIR}/${A} -C ${WORKDIR} || die "Unpacking failed"
# change locations of various files
cd ${S}
epatch ${FILESDIR}/${P}-gentoo.diff
}
src_compile() {
CFLAGS="${CFLAGS}" \
PWLIBDIR=/usr/share/pwlib \
OPENH323DIR=/usr/share/openh323 \
emake opt || die
}
src_install() {
dosbin obj_*_*_r/openmcu
keepdir /var/log/openmcu
keepdir /var/run/openmcu
for x in data html; do
keepdir /usr/share/openmcu/$x
done
insinto /usr/share/openmcu/sounds
doins *.wav
insinto /etc/openmcu
doins server.pem
doins ${FILESDIR}/openmcu.ini
doman openmcu.1
dodoc ChangeLog ReadMe.txt mpl-1.0.htm
newinitd ${FILESDIR}/openmcu.rc6 openmcu
newconfd ${FILESDIR}/openmcu.confd openmcu
}
pkg_preinst() {
enewgroup openmcu
enewuser openmcu -1 -1 /dev/null openmcu
}
pkg_postinst() {
einfo "Setting permissions..."
chown -R openmcu:openmcu ${ROOT}etc/openmcu
chmod -R u=rwX,g=rX,o= ${ROOT}etc/openmcu
chown -R openmcu:openmcu ${ROOT}var/{log,run}/openmcu
chmod -R u=rwX,g=rX,o= ${ROOT}var/{log,run}/openmcu
echo
einfo "This patched version of openmcu stores it's configuration"
einfo "in \"/etc/openmcu/openmcu.ini\""
}
|