summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Năstac <mrness@gentoo.org>2004-12-05 16:00:01 +0000
committerAlin Năstac <mrness@gentoo.org>2004-12-05 16:00:01 +0000
commit35f43d7b5bceed407dbe8a3b3f789066aabff43a (patch)
treed05eb7642453cbb119dbc409935ba35d3ec04d0c /net-dialup/linesrv/files
parentHOMEPAGE updated. (Manifest recommit) (diff)
downloadgentoo-2-35f43d7b5bceed407dbe8a3b3f789066aabff43a.tar.gz
gentoo-2-35f43d7b5bceed407dbe8a3b3f789066aabff43a.tar.bz2
gentoo-2-35f43d7b5bceed407dbe8a3b3f789066aabff43a.zip
Moved from net-misc/linesrv to net-dialup/linesrv.
Diffstat (limited to 'net-dialup/linesrv/files')
-rw-r--r--net-dialup/linesrv/files/digest-linesrv-2.1.201
-rw-r--r--net-dialup/linesrv/files/digest-linesrv-2.1.6-r11
-rw-r--r--net-dialup/linesrv/files/lcshutdown.pam5
-rw-r--r--net-dialup/linesrv/files/linecontrol.pam6
-rw-r--r--net-dialup/linesrv/files/linesrv.conf47
-rwxr-xr-xnet-dialup/linesrv/files/linesrv.rc630
6 files changed, 90 insertions, 0 deletions
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 $?
+}