# Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Conserver - 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 ~spar64 ~alpha" IUSE="pam ssl" DEPEND="ssl? ( >=dev-libs/openssl-0.9.6g ) pam? ( sys-libs/pam )" src_compile() { local myconf use pam && myconf="${myconf} --with-pam" use ssl && myconf="${myconf} --with-openssl" # Conserver normally uses port 782 for its client/server, but # this should restrict itself to the local machine only, on a # non-privledged port (7782). #--infodir=/usr/share/info \ #--prefix=/usr \ #--mandir=/usr/share/man econf \ ${myconf} \ --with-logfile=/var/consoles/conserver.log \ --with-pidfile=/var/console/conserver.pid \ --with-cffile=conserver/conserver.cf \ --with-pwdfile=conserver/conserver.passwd \ --with-master=localhost \ --with-port=7782 || die "./configure failed" emake || die } src_install () { # install files dobin console/console dosbin conserver/conserver newman console/console.man console.1 newman conserver.cf/conserver.cf.man conserver.cf.5 newman conserver.cf/conserver.passwd.man conserver.passwd.5 newman conserver/conserver.man conserver.8 # create data directory dodir /var/consoles fowners daemon.daemon /var/consoles fperms 700 /var/consoles # add startup and sample config dodir /etc/conserver fowners daemon.daemon /etc/conserver fperms 700 /etc/conserver insinto /etc/conserver newins ${FILESDIR}/conserver.cf.conserver-7.2.3 conserver.cf newins ${FILESDIR}/conserver.passwd.conserver-7.2.3 conserver.passwd exeinto /etc/init.d newexe ${FILESDIR}/conserver.conserver-7.2.3 conserver # add docs dodoc CHANGES FAQ INSTALL LICENSE README TODO conserver.html dodoc conserver/Sun-serial conserver.cf/INSTALL newdoc conserver.cf/conserver.cf conserver.cf.sample newdoc conserver.cf/conserver.passwd conserver.passwd.sample } pkg_postinst() { if use ssl; then einfo "You will need to create certificates to use the ssl-feature." fi }