summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /app-admin/usermin/files
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'app-admin/usermin/files')
-rw-r--r--app-admin/usermin/files/init.d.usermin38
-rw-r--r--app-admin/usermin/files/usermin-1.080-safestop.patch12
-rw-r--r--app-admin/usermin/files/usermin-1.150-setup-nocheck.patch22
-rw-r--r--app-admin/usermin/files/usermin-1.540-r1.init38
-rw-r--r--app-admin/usermin/files/usermin.pam-include.111
5 files changed, 121 insertions, 0 deletions
diff --git a/app-admin/usermin/files/init.d.usermin b/app-admin/usermin/files/init.d.usermin
new file mode 100644
index 000000000000..e62b4aacd9bd
--- /dev/null
+++ b/app-admin/usermin/files/init.d.usermin
@@ -0,0 +1,38 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+depend() {
+ use net logger
+}
+
+
+checkconfig() {
+ if [ -f /etc/usermin/config ]; then
+ return 0;
+ else
+ eerror "Error starting usermin. Have you run '/usr/libexec/usermin/setup.sh'?"
+ return 1;
+ fi
+}
+
+start() { # copied from /etc/usermin/start
+ checkconfig || return 1
+ ebegin "Starting Usermin"
+
+ LANG=
+ export LANG
+
+ unset PERLIO
+ export PERLIO
+ start-stop-daemon --start --quiet \
+ --exec /usr/libexec/usermin/miniserv.pl -- /etc/usermin/miniserv.conf
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping Usermin"
+ start-stop-daemon --stop --pidfile /var/run/usermin.pid --quiet
+ eend $?
+}
diff --git a/app-admin/usermin/files/usermin-1.080-safestop.patch b/app-admin/usermin/files/usermin-1.080-safestop.patch
new file mode 100644
index 000000000000..2cfd7e25e7fb
--- /dev/null
+++ b/app-admin/usermin/files/usermin-1.080-safestop.patch
@@ -0,0 +1,12 @@
+diff -Naur usermin-1.080.orig/setup.sh usermin-1.080/setup.sh
+--- usermin-1.080.orig/setup.sh 2004-06-03 16:18:07.000000000 -0700
++++ usermin-1.080/setup.sh 2004-07-26 01:27:23.959104711 -0700
+@@ -487,7 +487,7 @@
+ echo "#!/bin/sh" >>$config_dir/stop
+ echo "echo Stopping Usermin server in $wadir" >>$config_dir/stop
+ echo "pidfile=\`grep \"^pidfile=\" $config_dir/miniserv.conf | sed -e 's/pidfile=//g'\`" >>$config_dir/stop
+-echo "kill \`cat \$pidfile\`" >>$config_dir/stop
++echo "test -z \"\$pidfile\" || kill \`cat \$pidfile\`" >>$config_dir/stop
+ chmod 755 $config_dir/start $config_dir/stop
+ echo "..done"
+ echo ""
diff --git a/app-admin/usermin/files/usermin-1.150-setup-nocheck.patch b/app-admin/usermin/files/usermin-1.150-setup-nocheck.patch
new file mode 100644
index 000000000000..6b4a06fb9cf2
--- /dev/null
+++ b/app-admin/usermin/files/usermin-1.150-setup-nocheck.patch
@@ -0,0 +1,22 @@
+diff -Naurp usermin-1.150.orig/setup.sh usermin-1.150/setup.sh
+--- usermin-1.150.orig/setup.sh 2005-09-03 16:19:50.000000000 -0700
++++ usermin-1.150/setup.sh 2005-09-03 16:21:01.000000000 -0700
+@@ -342,12 +342,12 @@ else
+ echo ""
+ exit 12
+ fi
+- $perl -e 'use Socket; socket(FOO, PF_INET, SOCK_STREAM, getprotobyname("tcp")); setsockopt(FOO, SOL_SOCKET, SO_REUSEADDR, pack("l", 1)); bind(FOO, pack_sockaddr_in($ARGV[0], INADDR_ANY)) || exit(1); exit(0);' $port
+- if [ $? != "0" ]; then
+- echo "ERROR: TCP port $port is already in use by another program"
+- echo ""
+- exit 13
+- fi
++ #$perl -e 'use Socket; socket(FOO, PF_INET, SOCK_STREAM, getprotobyname("tcp")); setsockopt(FOO, SOL_SOCKET, SO_REUSEADDR, pack("l", 1)); bind(FOO, pack_sockaddr_in($ARGV[0], INADDR_ANY)) || exit(1); exit(0);' $port
++ #if [ $? != "0" ]; then
++ # echo "ERROR: TCP port $port is already in use by another program"
++ # echo ""
++ # exit 13
++ #fi
+
+ # Ask the user if SSL should be used
+ if [ "$ssl" = "" ]; then
diff --git a/app-admin/usermin/files/usermin-1.540-r1.init b/app-admin/usermin/files/usermin-1.540-r1.init
new file mode 100644
index 000000000000..90389764e698
--- /dev/null
+++ b/app-admin/usermin/files/usermin-1.540-r1.init
@@ -0,0 +1,38 @@
+#!/sbin/runscript
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+depend() {
+ use net logger
+}
+
+
+checkconfig() {
+ if [ -f /etc/usermin/config ]; then
+ return 0;
+ else
+ eerror "Error starting usermin. Have you run '/usr/libexec/usermin/setup.sh'?"
+ return 1;
+ fi
+}
+
+start() { # copied from /etc/usermin/start
+ checkconfig || return 1
+ ebegin "Starting Usermin"
+
+ LANG=
+ export LANG
+
+ unset PERLIO
+ export PERLIO
+ start-stop-daemon --start --quiet --user usermin \
+ --exec /usr/libexec/usermin/miniserv.pl -- /etc/usermin/miniserv.conf
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping Usermin"
+ start-stop-daemon --stop --pidfile /var/run/usermin.pid --quiet
+ eend $?
+}
diff --git a/app-admin/usermin/files/usermin.pam-include.1 b/app-admin/usermin/files/usermin.pam-include.1
new file mode 100644
index 000000000000..50d360ce431c
--- /dev/null
+++ b/app-admin/usermin/files/usermin.pam-include.1
@@ -0,0 +1,11 @@
+#%PAM-1.0
+
+auth required pam_securetty.so
+auth required pam_nologin.so
+auth include system-auth
+
+account include system-auth
+
+password include system-auth
+
+session include system-auth