| 1 |
# Copyright 1999-2004 Gentoo Foundation |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/linesrv/linesrv-2.1.6-r1.ebuild,v 1.11 2004/07/01 21:24:26 squinky86 Exp $ |
| 4 |
|
| 5 |
IUSE="pam" |
| 6 |
|
| 7 |
DESCRIPTION="Client/Server system to control the Internet link of a masquerading server" |
| 8 |
HOMEPAGE="http://linecontrol.sourceforge.net" |
| 9 |
|
| 10 |
S=${WORKDIR}/${PN}-2.1 |
| 11 |
SRC_URI="mirror://sourceforge/linecontrol/${P}.src.tar.bz2" |
| 12 |
RESTRICT="nomirror" |
| 13 |
#windows client: http://people.ee.ethz.ch/~sfuchs/LineControl/down/wlc-122.zip |
| 14 |
|
| 15 |
DEPEND="virtual/libc pam? ( >=sys-libs/pam-0.75 )" |
| 16 |
RDEPEND="virtual/libc net-www/apache" |
| 17 |
LICENSE="GPL-2" |
| 18 |
SLOT="0" |
| 19 |
KEYWORDS="x86 sparc" |
| 20 |
|
| 21 |
[ -z "$HTTPD_ROOT" ] && HTTPD_ROOT=/home/httpd |
| 22 |
|
| 23 |
src_unpack() { |
| 24 |
unpack ${A} |
| 25 |
} |
| 26 |
|
| 27 |
src_compile() { |
| 28 |
local myconf |
| 29 |
use pam || myconf="--disable-pamauth" |
| 30 |
|
| 31 |
./configure \ |
| 32 |
--prefix=/usr \ |
| 33 |
--mandir=/usr/share/man \ |
| 34 |
--infodir=/usr/share/info \ |
| 35 |
--host=${CHOST} ${myconf} || die "bad configure" |
| 36 |
|
| 37 |
make CFLAGS="${CFLAGS}" || die |
| 38 |
} |
| 39 |
|
| 40 |
src_install() { |
| 41 |
dodir /usr/share/linesrv /var/log/linesrv ${HTTPD_ROOT}/htdocs/lclog |
| 42 |
|
| 43 |
dosbin server/linesrv |
| 44 |
|
| 45 |
exeinto ${HTTPD_ROOT}/cgi-bin ; doexe lclog/lclog htmlstatus/htmlstatus |
| 46 |
chmod 4755 ${HTTPD_ROOT}/cgi-bin/htmlstatus |
| 47 |
insinto ${HTTPD_ROOT}/htdocs/lclog ; doins lclog/html/* |
| 48 |
|
| 49 |
mknod ${D}/usr/share/linesrv/logpipe p |
| 50 |
exeinto /usr/share/linesrv ; doexe server/config/complete_syntax/halt-wrapper |
| 51 |
|
| 52 |
dodoc server/{INSTALL,NEWS,README} |
| 53 |
newdoc htmlstatus/README README.htmlstatus |
| 54 |
newdoc lclog/INSTALL INSTALL.lclog |
| 55 |
docinto complete_syntax ; dodoc server/config/complete_syntax/* |
| 56 |
|
| 57 |
exeinto /etc/init.d ; newexe ${FILESDIR}/linesrv.rc6 linesrv |
| 58 |
insinto /etc ; newins ${FILESDIR}/linesrv.conf linesrv.conf.sample |
| 59 |
insinto /etc/pam.d ; newins ${FILESDIR}/linecontrol.pam linecontrol |
| 60 |
insinto /etc/pam.d ; newins ${FILESDIR}/lcshutdown.pam lcshutdown |
| 61 |
} |