/[gentoo-x86]/net-misc/linesrv/linesrv-2.1.6.ebuild
Gentoo

Contents of /net-misc/linesrv/linesrv-2.1.6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat May 4 04:11:14 2002 UTC (12 years, 7 months ago) by woodchip
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
add LICENSE, SLOT, $Headers.

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

  ViewVC Help
Powered by ViewVC 1.1.20