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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Thu Oct 7 03:36:05 2004 UTC (9 years, 6 months ago) by squinky86
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
version bump, thanks to S. Fuchs

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.8.ebuild,v 1.4 2004/09/17 22:49:35 squinky86 Exp $
4
5 inherit eutils
6
7 IUSE="pam"
8
9 DESCRIPTION="Client/Server system to control the Internet link of a masquerading server"
10 HOMEPAGE="http://linecontrol.sourceforge.net"
11
12 S=${WORKDIR}/${PN}-2.1
13 SRC_URI="mirror://sourceforge/linecontrol/${P}.src.tar.bz2"
14 RESTRICT="nomirror"
15 #windows client: http://people.ee.ethz.ch/~sfuchs/LineControl/down/wlc-122.zip
16
17 DEPEND="virtual/libc
18 pam? ( >=sys-libs/pam-0.75 )"
19 LICENSE="GPL-2"
20 SLOT="0"
21 KEYWORDS="~x86 ~sparc"
22
23 [ -z "$HTTPD_ROOT" ] && HTTPD_ROOT=/var/www/localhost
24
25 src_unpack() {
26 unpack ${A}
27 cd ${S}
28 epatch ${FILESDIR}/${PV}-gcc34.patch
29 }
30
31 src_compile() {
32 local myconf
33 use pam || myconf="--disable-pamauth"
34 econf ${myconf} || die "bad configure"
35 emake || die
36 }
37
38 src_install() {
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 ${D}${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