blob: efa4b1b8ab9b3e0c56054d29eeba9e71051f2ccb (
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
77
78
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/conserver/conserver-8.1.11.ebuild,v 1.4 2005/04/18 16:46:09 hansmi Exp $
inherit ssl-cert
DESCRIPTION="Serial Console Manager"
HOMEPAGE="http://www.conserver.com/"
SRC_URI="ftp://ftp.conserver.com/conserver/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="x86 sparc ~alpha -ia64 ppc"
IUSE="pam ssl tcpd debug"
DEPEND="ssl? ( >=dev-libs/openssl-0.9.6g )
pam? ( sys-libs/pam )
tcpd? ( sys-apps/tcp-wrappers )
debug? ( dev-libs/dmalloc )"
src_compile() {
econf \
`use_with ssl openssl` \
`use_with pam` \
`use_with tcpd libwrap` \
`use_with debug dmalloc` \
--with-logfile=/var/log/conserver.log \
--with-pidfile=/var/run/conserver.pid \
--with-cffile=conserver/conserver.cf \
--with-pwdfile=conserver/conserver.passwd \
--with-master=localhost \
--with-port=7782 || die "./configure failed"
emake || die "compile failed"
}
src_install() {
einstall exampledir=${D}/usr/share/doc/${PF}/examples \
|| die "problem with install"
## create data directory
dodir /var/consoles
fowners daemon:daemon /var/consoles
fperms 700 /var/consoles
## add startup and sample config
exeinto /etc/init.d
newexe ${FILESDIR}/conserver.initd conserver
insinto /etc/conf.d
newins ${FILESDIR}/conserver.confd conserver
dodir /etc/conserver
fperms 700 /etc/conserver
insinto /etc/conserver
newins ${S}/conserver.cf/conserver.cf conserver.cf.sample
newins ${S}/conserver.cf/conserver.passwd conserver.passwd.sample
## add docs
dohtml conserver.html
dodoc CHANGES FAQ INSTALL LICENSE README TODO
dodoc conserver/Sun-serial conserver.cf/INSTALL
dodoc contrib/maketestcerts
newdoc conserver.cf/conserver.cf conserver.cf.sample
# Add pam config
insinto /etc/pam.d ; newins ${FILESDIR}/conserver.pam conserver
# Add certs if SSL use flag is enabled
if use ssl && [ ! -f /etc/ssl/conserver/conserver.key ]; then
dodir /etc/ssl/conserver
insinto /etc/ssl/conserver
docert conserver
fi
}
pkg_postinst() {
einfo "Config-file formats _changed_ with version 8.0 !"
}
|