diff options
author | Alin Năstac <mrness@gentoo.org> | 2004-12-05 15:56:10 +0000 |
---|---|---|
committer | Alin Năstac <mrness@gentoo.org> | 2004-12-05 15:56:10 +0000 |
commit | 45090bd0e0ef5fca1f7b14b6d93a3416c2e9f9cd (patch) | |
tree | bd6a866e00f5c7e9a9bcc62838e6e9dc261c360d /net-dialup | |
parent | Version bump. (diff) | |
download | historical-45090bd0e0ef5fca1f7b14b6d93a3416c2e9f9cd.tar.gz historical-45090bd0e0ef5fca1f7b14b6d93a3416c2e9f9cd.tar.bz2 historical-45090bd0e0ef5fca1f7b14b6d93a3416c2e9f9cd.zip |
Moved from net-misc/linesrv to net-dialup/linesrv.
Diffstat (limited to 'net-dialup')
-rw-r--r-- | net-dialup/linesrv/ChangeLog | 56 | ||||
-rw-r--r-- | net-dialup/linesrv/Manifest | 20 | ||||
-rw-r--r-- | net-dialup/linesrv/files/digest-linesrv-2.1.20 | 1 | ||||
-rw-r--r-- | net-dialup/linesrv/files/digest-linesrv-2.1.6-r1 | 1 | ||||
-rw-r--r-- | net-dialup/linesrv/files/lcshutdown.pam | 5 | ||||
-rw-r--r-- | net-dialup/linesrv/files/linecontrol.pam | 6 | ||||
-rw-r--r-- | net-dialup/linesrv/files/linesrv.conf | 47 | ||||
-rwxr-xr-x | net-dialup/linesrv/files/linesrv.rc6 | 30 | ||||
-rw-r--r-- | net-dialup/linesrv/linesrv-2.1.20.ebuild | 69 | ||||
-rw-r--r-- | net-dialup/linesrv/linesrv-2.1.6-r1.ebuild | 61 | ||||
-rw-r--r-- | net-dialup/linesrv/metadata.xml | 5 |
11 files changed, 301 insertions, 0 deletions
diff --git a/net-dialup/linesrv/ChangeLog b/net-dialup/linesrv/ChangeLog new file mode 100644 index 000000000000..7f4feb6a611d --- /dev/null +++ b/net-dialup/linesrv/ChangeLog @@ -0,0 +1,56 @@ +# ChangeLog for net-misc/linesrv +# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-dialup/linesrv/ChangeLog,v 1.1 2004/12/05 15:56:10 mrness Exp $ + +*linesrv-2.1.20 (05 Dec 2004) + + 05 Dec 2004; Alin Nastac <mrness@gentoo.org> +metadata.xml, + +files/lcshutdown.pam, +files/linecontrol.pam, +files/linesrv.conf, + +files/linesrv.rc6, +linesrv-2.1.20.ebuild, +linesrv-2.1.6-r1.ebuild: + Moved from net-misc/linesrv to net-dialup/linesrv. + +*linesrv-2.1.20 (08 Oct 2004) + + 08 Oct 2004; Jon Hood <squinky86@gentoo.org> -linesrv-2.1.19.ebuild, + +linesrv-2.1.20.ebuild: + Version bump irt #66629, thanks Stefan Fuchs <gentoo-wrap@srf.ch> + +*linesrv-2.1.19 (06 Oct 2004) + + 06 Oct 2004; Jon Hood <squinky86@gentoo.org> -files/2.1.8-gcc34.patch, + files/linesrv.rc6, +linesrv-2.1.19.ebuild, -linesrv-2.1.8.ebuild: + Version bump, thanks to S. Fuchs, remove buggy version. + + 17 Sep 2004; Jon Hood <squinky86@gentoo.org> +files/2.1.8-gcc34.patch, + linesrv-2.1.8.ebuild: + Add gcc-3.4 patch, #62541. + + 01 Jul 2004; Jon Hood <squinky86@gentoo.org> linesrv-2.1.6-r1.ebuild, + linesrv-2.1.8.ebuild: + change virtual/glibc to virtual/libc + +*linesrv-2.1.8 (01 Apr 2004) + + 01 Apr 2004; Martin Holzer <mholzer@gentoo.org> linesrv-2.1.6-r1.ebuild, + linesrv-2.1.8.ebuild: + Verison bumped. Closes 35640. + + 06 Dec 2002; Rodney Rees <manson@gentoo.org> : changed sparc ~sparc keywords + +*linesrv-2.1.6-r1 (3 May 2002) + + 08 Jul 2002; phoen][x <phoenix@gentoo.org> lineserv-2.1.6-r1.ebuild : + Added KEYWORDS. + + 3 May 2002; Donny Davies <woodchip@gentoo.org> : + Added LICENSE, SLOT. + +*linesrv-2.1.6 (1 Feb 2002) + + 1 Feb 2002; G.Bevin <gbevin@gentoo.org> ChangeLog : + + Added initial ChangeLog which should be updated whenever the package is + updated in any way. This changelog is targetted to users. This means that the + comments should well explained and written in clean English. The details about + writing correct changelogs are explained in the skel.ChangeLog file which you + can find in the root directory of the portage repository. diff --git a/net-dialup/linesrv/Manifest b/net-dialup/linesrv/Manifest new file mode 100644 index 000000000000..ea8d75962c91 --- /dev/null +++ b/net-dialup/linesrv/Manifest @@ -0,0 +1,20 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +MD5 541db6df610378b02a4779aadac3f28a ChangeLog 1805 +MD5 876fdc9a4aaa05b788bd86225d8c22db linesrv-2.1.20.ebuild 2304 +MD5 f278431712c59f5ac07c17537021d4a9 linesrv-2.1.6-r1.ebuild 1874 +MD5 f61bfa064e3acdfcd826e4a38b121196 metadata.xml 161 +MD5 5f4ba5c11012d9f1d4febf0a889a2cb0 files/digest-linesrv-2.1.20 71 +MD5 fcf1fee9b36c1cd1bfb2933c4b6826e3 files/digest-linesrv-2.1.6-r1 70 +MD5 618cc8195802f0a27d3ad1aa81e40da2 files/lcshutdown.pam 397 +MD5 2f68a269a78a78334c93cd286f5234ba files/linecontrol.pam 423 +MD5 2c1ec3d89dfd37fcdc8bc9fa9d35d325 files/linesrv.conf 1285 +MD5 ac08554018fe0f5bd255dc00ce0f9e50 files/linesrv.rc6 742 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.2.6 (GNU/Linux) + +iD8DBQFBsy5Njtv59x0+BrURAqeeAKCtK2t/Chn40a8h/IVt/qmwMK4xcACfQ5BP +wuOEhDDX6tMXoPbABfFlL6c= +=KKhp +-----END PGP SIGNATURE----- diff --git a/net-dialup/linesrv/files/digest-linesrv-2.1.20 b/net-dialup/linesrv/files/digest-linesrv-2.1.20 new file mode 100644 index 000000000000..1e14169424b7 --- /dev/null +++ b/net-dialup/linesrv/files/digest-linesrv-2.1.20 @@ -0,0 +1 @@ +MD5 6af17902e24706f8b911f3ca24580020 linesrv-2.1.20.src.tar.bz2 201910 diff --git a/net-dialup/linesrv/files/digest-linesrv-2.1.6-r1 b/net-dialup/linesrv/files/digest-linesrv-2.1.6-r1 new file mode 100644 index 000000000000..5bd042527da2 --- /dev/null +++ b/net-dialup/linesrv/files/digest-linesrv-2.1.6-r1 @@ -0,0 +1 @@ +MD5 bc4fc987fc57ad21860fce4ec5c53e66 linesrv-2.1.6.src.tar.bz2 122752 diff --git a/net-dialup/linesrv/files/lcshutdown.pam b/net-dialup/linesrv/files/lcshutdown.pam new file mode 100644 index 000000000000..3541d2023d17 --- /dev/null +++ b/net-dialup/linesrv/files/lcshutdown.pam @@ -0,0 +1,5 @@ +# $Header: /var/cvsroot/gentoo-x86/net-dialup/linesrv/files/lcshutdown.pam,v 1.1 2004/12/05 15:56:10 mrness Exp $ +# All clients that are able to send a shutdown command should +# already be authenticated with the pam service linecontrol. +# so in this service we do only an additional check. +auth required pam_listfile.so item=user sense=allow file=/etc/linesrv.shutdown.users onerr=fail diff --git a/net-dialup/linesrv/files/linecontrol.pam b/net-dialup/linesrv/files/linecontrol.pam new file mode 100644 index 000000000000..0c1e78cea0ff --- /dev/null +++ b/net-dialup/linesrv/files/linecontrol.pam @@ -0,0 +1,6 @@ +# $Header: /var/cvsroot/gentoo-x86/net-dialup/linesrv/files/linecontrol.pam,v 1.1 2004/12/05 15:56:10 mrness Exp $ +# linesrv login requires auth and a valid account +# uncomment the following line only if you have a list of allowed users in a certain file. +#auth required pam_listfile.so item=user sense=allow file=/etc/linesrv.users onerr=fail +auth required pam_pwdb.so +account required pam_pwdb.so diff --git a/net-dialup/linesrv/files/linesrv.conf b/net-dialup/linesrv/files/linesrv.conf new file mode 100644 index 000000000000..b6dce508242e --- /dev/null +++ b/net-dialup/linesrv/files/linesrv.conf @@ -0,0 +1,47 @@ +# $Header: /var/cvsroot/gentoo-x86/net-dialup/linesrv/files/linesrv.conf,v 1.1 2004/12/05 15:56:10 mrness Exp $ +# +# LineServer Global Settings +# +bind_to 192.168.1.1 +port 16007 +user_accounting yes +logfile /var/log/linesrv/linesrv.log +pidfile /var/run/linesrv.pid +html_status /usr/share/linesrv/logpipe +filter_type allow +filter_mask 127.0.0.0 255.255.255.0 +#filter_mask 192.168.1.1 255.255.255.0 +#filter_mask 192.168.2.0 255.255.255.0 +#filter_mask 192.168.3.0 255.255.255.0 +#filter_mask 192.168.4.0 255.255.255.0 +script_shutdown /usr/share/linesrv/halt-wrapper +limit_shutdown_mask 127.0.0.0 255.255.255.0 +#limit_shutdown_ip 192.168.1.1 +#limit_shutdown_ip 192.168.0.1 192.168.0.4 +#limit_shutdown_ip 192.168.1.1 192.168.1.12 +lptstatus off +send_throughput yes +#script_dn /etc/ppp/ppp-dn +#script_esc /etc/ppp/ppp-esc +#client_online /etc/ppp/client_has_gone_online +#client_offline /etc/ppp/client_has_gone_offline + +# +# Sample Line Section +# +#line myline1 +#interface ppp0 +#con_type netdev +#script_up /etc/ppp/isdn-on +#script_dn /etc/ppp/isdn-off +#line_baud_up 33600 +#line_baud_down 56400 +#allow_manually yes +#con_timeout 30 +#script_esc /etc/ppp/isdn-esc +##con_down_timeout 10 +#line_locking no +#pinger no +#pinger_hostname linecontrol.sourceforge.net +#pinger_interval 120 +#pinger_datasize 60 diff --git a/net-dialup/linesrv/files/linesrv.rc6 b/net-dialup/linesrv/files/linesrv.rc6 new file mode 100755 index 000000000000..a1eefab1c19d --- /dev/null +++ b/net-dialup/linesrv/files/linesrv.rc6 @@ -0,0 +1,30 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-dialup/linesrv/files/linesrv.rc6,v 1.1 2004/12/05 15:56:10 mrness Exp $ + +depend() { + need net logger + use mysql dns +} + +checkconfig() { + if [ ! -e /etc/linesrv.conf ] ; then + eerror "You need an /etc/linesrv.conf file first" + eerror "There is a sample in /usr/share/doc/linesrv" + return 1 + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting linesrv" + start-stop-daemon --start --quiet --exec /usr/sbin/linesrv -- ${LINESRV_OPTS} + eend $? +} + +stop() { + ebegin "Stopping linesrv" + start-stop-daemon --stop --signal 3 --quiet --pidfile /var/run/linesrv.pid + eend $? +} diff --git a/net-dialup/linesrv/linesrv-2.1.20.ebuild b/net-dialup/linesrv/linesrv-2.1.20.ebuild new file mode 100644 index 000000000000..a91a40677f14 --- /dev/null +++ b/net-dialup/linesrv/linesrv-2.1.20.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-dialup/linesrv/linesrv-2.1.20.ebuild,v 1.1 2004/12/05 15:56:10 mrness Exp $ + +inherit eutils + +# if someone disables pam but wants user authentication +# to be supported, then crypt is needed. +IUSE="pam mysql crypt" + +DESCRIPTION="Client/Server system to control the Internet link of a masquerading server" +HOMEPAGE="http://linecontrol.srf.ch/" + +S=${WORKDIR}/${PN}-2.1 +SRC_URI="http://linecontrol.srf.ch/down/${P}.src.tar.bz2" + +# requesting glibc instead of virtual/libc +# because we might need crypt. And as far as I +# (S. Fuchs, author of linesrv) remember, there's +# glibc specific stuff in linesrv. +DEPEND=">=sys-libs/glibc-2.2.0 + pam? ( >=sys-libs/pam-0.75 ) + mysql? ( >=dev-db/mysql-4 )" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~sparc" + +[ -z "$HTTPD_ROOT" ] && HTTPD_ROOT=/var/www/localhost + +src_compile() { + local myauth mymysql + # sfuchs: configure script of linesrv 2 is quite bad... + # prefer pam, if disabled try crypt + # the configure script will disable authentication if + # neither pam nor crypt is available. + if ! ( use pam ); then + myauth="--disable-pamauth" + if use crypt; then + myauth="--enable-cryptauth" + fi + fi + # --enable-mysql is not supported... stupid, I know. + use mysql || mymysql="--disable-mysql" + econf ${myauth} ${mymysql} || die "bad configure" + emake || die +} + +src_install() { + dodir /usr/share/linesrv /var/log/linesrv ${HTTPD_ROOT}/htdocs/lclog + + dosbin server/linesrv + + exeinto ${HTTPD_ROOT}/cgi-bin ; doexe lclog/lclog htmlstatus/htmlstatus + chmod 4755 ${D}${HTTPD_ROOT}/cgi-bin/htmlstatus + insinto ${HTTPD_ROOT}/htdocs/lclog ; doins lclog/html/* + + mknod ${D}/usr/share/linesrv/logpipe p + exeinto /usr/share/linesrv ; doexe server/config/complete_syntax/halt-wrapper + + dodoc server/{INSTALL,NEWS,README} + newdoc htmlstatus/README README.htmlstatus + newdoc lclog/INSTALL INSTALL.lclog + docinto complete_syntax ; dodoc server/config/complete_syntax/* + + exeinto /etc/init.d ; newexe ${FILESDIR}/linesrv.rc6 linesrv + insinto /etc ; newins ${FILESDIR}/linesrv.conf linesrv.conf.sample + insinto /etc/pam.d ; newins ${FILESDIR}/linecontrol.pam linecontrol + insinto /etc/pam.d ; newins ${FILESDIR}/lcshutdown.pam lcshutdown +} diff --git a/net-dialup/linesrv/linesrv-2.1.6-r1.ebuild b/net-dialup/linesrv/linesrv-2.1.6-r1.ebuild new file mode 100644 index 000000000000..b9f07a992de7 --- /dev/null +++ b/net-dialup/linesrv/linesrv-2.1.6-r1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-dialup/linesrv/linesrv-2.1.6-r1.ebuild,v 1.1 2004/12/05 15:56:10 mrness Exp $ + +IUSE="pam" + +DESCRIPTION="Client/Server system to control the Internet link of a masquerading server" +HOMEPAGE="http://linecontrol.sourceforge.net" + +S=${WORKDIR}/${PN}-2.1 +SRC_URI="mirror://sourceforge/linecontrol/${P}.src.tar.bz2" +RESTRICT="nomirror" +#windows client: http://people.ee.ethz.ch/~sfuchs/LineControl/down/wlc-122.zip + +DEPEND="virtual/libc pam? ( >=sys-libs/pam-0.75 )" +RDEPEND="virtual/libc net-www/apache" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86 sparc" + +[ -z "$HTTPD_ROOT" ] && HTTPD_ROOT=/home/httpd + +src_unpack() { + unpack ${A} +} + +src_compile() { + local myconf + use pam || myconf="--disable-pamauth" + + ./configure \ + --prefix=/usr \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --host=${CHOST} ${myconf} || die "bad configure" + + make CFLAGS="${CFLAGS}" || die +} + +src_install() { + dodir /usr/share/linesrv /var/log/linesrv ${HTTPD_ROOT}/htdocs/lclog + + dosbin server/linesrv + + exeinto ${HTTPD_ROOT}/cgi-bin ; doexe lclog/lclog htmlstatus/htmlstatus + chmod 4755 ${HTTPD_ROOT}/cgi-bin/htmlstatus + insinto ${HTTPD_ROOT}/htdocs/lclog ; doins lclog/html/* + + mknod ${D}/usr/share/linesrv/logpipe p + exeinto /usr/share/linesrv ; doexe server/config/complete_syntax/halt-wrapper + + dodoc server/{INSTALL,NEWS,README} + newdoc htmlstatus/README README.htmlstatus + newdoc lclog/INSTALL INSTALL.lclog + docinto complete_syntax ; dodoc server/config/complete_syntax/* + + exeinto /etc/init.d ; newexe ${FILESDIR}/linesrv.rc6 linesrv + insinto /etc ; newins ${FILESDIR}/linesrv.conf linesrv.conf.sample + insinto /etc/pam.d ; newins ${FILESDIR}/linecontrol.pam linecontrol + insinto /etc/pam.d ; newins ${FILESDIR}/lcshutdown.pam lcshutdown +} diff --git a/net-dialup/linesrv/metadata.xml b/net-dialup/linesrv/metadata.xml new file mode 100644 index 000000000000..95c06f0095bb --- /dev/null +++ b/net-dialup/linesrv/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>web-apps</herd> +</pkgmetadata> |