diff options
author | Aaron Bauman <bman@gentoo.org> | 2018-05-05 15:34:32 -0400 |
---|---|---|
committer | Aaron Bauman <bman@gentoo.org> | 2018-05-05 15:44:47 -0400 |
commit | dc231c0ae3294ab79f864c5cbe9cf56306e3284d (patch) | |
tree | e3a02703f99dc5dba2bc419de8d9c7df137363b9 /www-apps | |
parent | www-plugins/freshplayerplugin: Drop maintainership (diff) | |
download | gentoo-dc231c0ae3294ab79f864c5cbe9cf56306e3284d.tar.gz gentoo-dc231c0ae3294ab79f864c5cbe9cf56306e3284d.tar.bz2 gentoo-dc231c0ae3294ab79f864c5cbe9cf56306e3284d.zip |
www-apps/freeradius-dialupadmin: treeclean
Closes: https://bugs.gentoo.org/650298
Diffstat (limited to 'www-apps')
8 files changed, 0 insertions, 376 deletions
diff --git a/www-apps/freeradius-dialupadmin/Manifest b/www-apps/freeradius-dialupadmin/Manifest deleted file mode 100644 index d4ee26297be0..000000000000 --- a/www-apps/freeradius-dialupadmin/Manifest +++ /dev/null @@ -1,2 +0,0 @@ -DIST freeradius-1.1.6.tar.gz 3175652 BLAKE2B 371b40cd1dcdd4b5bb5a83b0834d5582ad8050b78c8915b5c34a213bf9d85e0b52e80d4479d2a5a494ce62b5eb07d8471f9a4418d0e85cd4917b7c8a084097bf SHA512 437a1705d559849bce3c11216b0b25392668ee96300d455a2ae92b6ca233f0308eca62c06d659f26900509855237f7d17c5eb566b13bbc4cda8999a18da4b8a1 -DIST freeradius-server-2.1.1.tar.gz 3648766 BLAKE2B 25b42bd923499a450ac0fed91276ba816842ab5843c5a9c1d57b5d77891ed1104826fee2eedd68ea60f306f2325cc8081a81e2583b134ebccd725b6053fd72c8 SHA512 68f9abda7f3219ab2be6393021866ac3fda5302aa2cae85877666f3db86a09f293286003815e596cb1dfd67479b6577f7568d412953b7a2d22a7cbdc00c71b88 diff --git a/www-apps/freeradius-dialupadmin/files/freeradius-dialupadmin-1.70.3-sqldebug.patch b/www-apps/freeradius-dialupadmin/files/freeradius-dialupadmin-1.70.3-sqldebug.patch deleted file mode 100644 index 1fab1838917b..000000000000 --- a/www-apps/freeradius-dialupadmin/files/freeradius-dialupadmin-1.70.3-sqldebug.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- dialup_admin/conf/admin.conf~ 2005-07-24 17:32:01.000000000 -0400 -+++ dialup_admin/conf/admin.conf 2005-07-24 17:32:24.000000000 -0400 -@@ -247,7 +247,7 @@ - # - # Uncomment to enable sql debug - # --sql_debug: true -+#sql_debug: true - # - # If set to yes then the HTTP credentials (http authentication) - # will be used to connect to the sql server instead of sql_username diff --git a/www-apps/freeradius-dialupadmin/files/freeradius-dialupadmin-1.80-gentoo.patch b/www-apps/freeradius-dialupadmin/files/freeradius-dialupadmin-1.80-gentoo.patch deleted file mode 100644 index 7501ba11f1e4..000000000000 --- a/www-apps/freeradius-dialupadmin/files/freeradius-dialupadmin-1.80-gentoo.patch +++ /dev/null @@ -1,32 +0,0 @@ -diff -Nru freeradius-server-2.1.1.orig/dialup_admin/Makefile freeradius-server-2.1.1/dialup_admin/Makefile ---- freeradius-server-2.1.1.orig/dialup_admin/Makefile 2008-10-12 10:13:16.000000000 +0000 -+++ freeradius-server-2.1.1/dialup_admin/Makefile 2008-10-12 10:16:16.000000000 +0000 -@@ -4,7 +4,6 @@ - # Version: $Id$ - # - --include ../Make.inc - - DIALUP_PREFIX := /usr/local/dialup_admin - DIALUP_DOCDIR := $(DIALUP_PREFIX)/doc -diff -Nru freeradius-server-2.1.1.orig/dialup_admin/conf/admin.conf freeradius-server-2.1.1/dialup_admin/conf/admin.conf ---- freeradius-server-2.1.1.orig/dialup_admin/conf/admin.conf 2008-09-25 08:41:26.000000000 +0000 -+++ freeradius-server-2.1.1/dialup_admin/conf/admin.conf 2008-10-12 09:14:12.000000000 +0000 -@@ -204,7 +204,7 @@ - # - # Uncomment to enable ldap debug - # --ldap_debug: true -+#ldap_debug: true - # - # Allow for defining the ldap filter used when searching for a user - # Variables supported: -@@ -274,7 +274,7 @@ - # - # Uncomment to enable sql debug - # --sql_debug: true -+#sql_debug: true - # - # If set to yes then the HTTP credentials (http authentication) - # will be used to connect to the sql server instead of sql_username diff --git a/www-apps/freeradius-dialupadmin/files/freeradius-dialupadmin-1.80-tmpfile.patch b/www-apps/freeradius-dialupadmin/files/freeradius-dialupadmin-1.80-tmpfile.patch deleted file mode 100644 index 1da5671761ff..000000000000 --- a/www-apps/freeradius-dialupadmin/files/freeradius-dialupadmin-1.80-tmpfile.patch +++ /dev/null @@ -1,148 +0,0 @@ -diff -Nru freeradius-server-2.1.1.orig/dialup_admin/bin/clean_radacct freeradius-server-2.1.1/dialup_admin/bin/clean_radacct ---- freeradius-server-2.1.1.orig/dialup_admin/bin/clean_radacct 2008-09-25 08:41:26.000000000 +0000 -+++ freeradius-server-2.1.1/dialup_admin/bin/clean_radacct 2008-10-12 09:29:50.000000000 +0000 -@@ -5,6 +5,7 @@ - # Works with mysql and postgresql - # - use POSIX; -+use File::Temp; - - $conf=shift||'/usr/local/dialup_admin/conf/admin.conf'; - $back_days = 35; -@@ -42,11 +43,10 @@ - - $query = "DELETE FROM $sql_accounting_table WHERE AcctStopTime IS NULL AND AcctStartTime < '$date';"; - print "$query\n"; --open TMP, ">/tmp/clean_radacct.query" -- or die "Could not open tmp file\n"; --print TMP $query; --close TMP; --$command = "$sqlcmd -h$sql_server -u$sql_username $sql_password $sql_database </tmp/clean_radacct.query" if ($sql_type eq 'mysql'); --$command = "$sqlcmd -U $sql_username -f /tmp/clean_radacct.query $sql_database" if ($sql_type eq 'pg'); --$command = "$sqlcmd '$sql_server' '$sql_port' '' '$sql_username' '$sql_password' </tmp/clean_radacct.query" if ($sql_type eq 'sqlrelay'); -+my ($fh, $tmp_filename) = tempfile() or die "Could not open tmp file\n"; -+print $fh $query; -+close $fh; -+$command = "$sqlcmd -h$sql_server -u$sql_username $sql_password $sql_database < $tmp_filename" if ($sql_type eq 'mysql'); -+$command = "$sqlcmd -U $sql_username -f $tmp_filename $sql_database" if ($sql_type eq 'pg'); -+$command = "$sqlcmd '$sql_server' '$sql_port' '' '$sql_username' '$sql_password' < $tmp_filename" if ($sql_type eq 'sqlrelay'); - `$command`; -diff -Nru freeradius-server-2.1.1.orig/dialup_admin/bin/log_badlogins freeradius-server-2.1.1/dialup_admin/bin/log_badlogins ---- freeradius-server-2.1.1.orig/dialup_admin/bin/log_badlogins 2008-09-25 08:41:26.000000000 +0000 -+++ freeradius-server-2.1.1/dialup_admin/bin/log_badlogins 2008-10-12 10:09:58.000000000 +0000 -@@ -14,6 +14,7 @@ - - use Date::Manip qw(ParseDate UnixDate); - use Digest::MD5; -+use File::Temp; - $|=1; - - $file=shift||'none'; -@@ -29,7 +30,8 @@ - # CHANGE THESE TO MATCH YOUR SETUP - # - #$regexp = 'from client localhost port 135|from client blabla '; --$tmpfile='/var/tmp/sql.input'; -+$tmpdir=tempdir( CLEANUP => 1 ); -+$tmpfile="$tmpdir/sql.input"; - # - $verbose = 0; - # -diff -Nru freeradius-server-2.1.1.orig/dialup_admin/bin/monthly_tot_stats freeradius-server-2.1.1/dialup_admin/bin/monthly_tot_stats ---- freeradius-server-2.1.1.orig/dialup_admin/bin/monthly_tot_stats 2008-09-25 08:41:26.000000000 +0000 -+++ freeradius-server-2.1.1/dialup_admin/bin/monthly_tot_stats 2008-10-12 09:29:50.000000000 +0000 -@@ -1,5 +1,6 @@ - #!/usr/bin/perl - use POSIX; -+use File::Temp; - - # Log in the mtotacct table aggregated accounting information for - # each user spaning in one month period. -@@ -51,14 +52,13 @@ - AcctDate <= '$date_end' GROUP BY UserName,NASIPAddress;"; - print "$query1\n"; - print "$query2\n"; --open TMP, ">/tmp/tot_stats.query" -- or die "Could not open tmp file\n"; --print TMP "ALTER SESSION SET NLS_TIMESTAMP_TZ_FORMAT='YYYY-MM-DD HH24:MI:SS.FF TZH:TZM';\n" if ($sql_type eq 'oracle'); --print TMP $query1; --print TMP $query2; --close TMP; --$command = "$sqlcmd -h $sql_server -u $sql_username $sql_password $sql_database </tmp/tot_stats.query" if ($sql_type eq 'mysql'); --$command = "$sqlcmd -U $sql_username -f /tmp/tot_stats.query $sql_database" if ($sql_type eq 'pg'); -+my ($fh, $tmp_filename) = tempfile() or die "Could not open tmp file\n"; -+print $fh "ALTER SESSION SET NLS_TIMESTAMP_TZ_FORMAT='YYYY-MM-DD HH24:MI:SS.FF TZH:TZM';\n" if ($sql_type eq 'oracle'); -+print $fh $query1; -+print $fh $query2; -+close $fh; -+$command = "$sqlcmd -h $sql_server -u $sql_username $sql_password $sql_database < $tmp_filename" if ($sql_type eq 'mysql'); -+$command = "$sqlcmd -U $sql_username -f $tmp_filename $sql_database" if ($sql_type eq 'pg'); - $command = "$sqlcmd $sql_username/$pass" . "@" . "$sql_database <$tmpfile.$server" if ($sql_type eq 'oracle'); --$command = "$sqlcmd '$sql_server' '$sql_port' '' '$sql_username' '$sql_password' </tmp/tot_stats.query" if ($sql_type eq 'sqlrelay'); -+$command = "$sqlcmd '$sql_server' '$sql_port' '' '$sql_username' '$sql_password' < $tmp_filename" if ($sql_type eq 'sqlrelay'); - `$command`; -diff -Nru freeradius-server-2.1.1.orig/dialup_admin/bin/tot_stats freeradius-server-2.1.1/dialup_admin/bin/tot_stats ---- freeradius-server-2.1.1.orig/dialup_admin/bin/tot_stats 2008-09-25 08:41:26.000000000 +0000 -+++ freeradius-server-2.1.1/dialup_admin/bin/tot_stats 2008-10-12 09:29:50.000000000 +0000 -@@ -1,5 +1,6 @@ - #!/usr/bin/perl - use POSIX; -+use File::Temp; - - # Log in the totacct table aggregated daily accounting information for - # each user. -@@ -48,14 +49,13 @@ - AcctStopTime < '$date_end' GROUP BY UserName,NASIPAddress;"; - print "$query1\n"; - print "$query2\n"; --open TMP, ">/tmp/tot_stats.query" -- or die "Could not open tmp file\n"; --print TMP "ALTER SESSION SET NLS_TIMESTAMP_TZ_FORMAT='YYYY-MM-DD HH24:MI:SS.FF TZH:TZM';\n" if ($sql_type eq 'oracle'); --print TMP $query1; --print TMP $query2; --close TMP; --$command = "$sqlcmd -h $sql_server -u $sql_username $sql_password $sql_database </tmp/tot_stats.query" if ($sql_type eq 'mysql'); --$command = "$sqlcmd -U $sql_username -f /tmp/tot_stats.query $sql_database" if ($sql_type eq 'pg'); -+my ($fh, $tmp_filename) = tempfile() or die "Could not open tmp file\n"; -+print $fh "ALTER SESSION SET NLS_TIMESTAMP_TZ_FORMAT='YYYY-MM-DD HH24:MI:SS.FF TZH:TZM';\n" if ($sql_type eq 'oracle'); -+print $fh $query1; -+print $fh $query2; -+close $fh; -+$command = "$sqlcmd -h $sql_server -u $sql_username $sql_password $sql_database < $tmp_filename" if ($sql_type eq 'mysql'); -+$command = "$sqlcmd -U $sql_username -f $tmp_filename $sql_database" if ($sql_type eq 'pg'); - $command = "$sqlcmd $sql_username/$pass" . "@" . "$sql_database <$tmpfile.$server" if ($sql_type eq 'oracle'); --$command = "$sqlcmd '$sql_server' '$sql_port' '' '$sql_username' '$sql_password' </tmp/tot_stats.query" if ($sql_type eq 'sqlrelay'); -+$command = "$sqlcmd '$sql_server' '$sql_port' '' '$sql_username' '$sql_password' < $tmp_filename" if ($sql_type eq 'sqlrelay'); - `$command`; -diff -Nru freeradius-server-2.1.1.orig/dialup_admin/bin/truncate_radacct freeradius-server-2.1.1/dialup_admin/bin/truncate_radacct ---- freeradius-server-2.1.1.orig/dialup_admin/bin/truncate_radacct 2008-09-25 08:41:26.000000000 +0000 -+++ freeradius-server-2.1.1/dialup_admin/bin/truncate_radacct 2008-10-12 09:29:50.000000000 +0000 -@@ -5,6 +5,7 @@ - # Works with mysql and postgresql - # - use POSIX; -+use File::Temp; - - $conf=shift||'/usr/local/dialup_admin/conf/admin.conf'; - $back_days = 90; -@@ -44,13 +45,12 @@ - $query .= "DELETE FROM $sql_accounting_table WHERE AcctStopTime < '$date' AND AcctStopTime IS NOT NULL ;"; - $query .= "UNLOCK TABLES;" if ($sql_type eq 'mysql'); - print "$query\n"; --open TMP, ">/tmp/truncate_radacct.query" -- or die "Could not open tmp file\n"; --print TMP "ALTER SESSION SET NLS_TIMESTAMP_TZ_FORMAT='YYYY-MM-DD HH24:MI:SS.FF TZH:TZM';\n" if ($sql_type eq 'oracle'); --print TMP $query; --close TMP; --$command = "$sqlcmd -h$sql_server -u$sql_username $sql_password $sql_database </tmp/truncate_radacct.query" if ($sql_type eq 'mysql'); --$command = "$sqlcmd -U $sql_username -f /tmp/truncate_radacct.query $sql_database" if ($sql_type eq 'pg'); -+my ($fh, $tmp_filename) = tempfile() or die "Could not open tmp file\n"; -+print $fh "ALTER SESSION SET NLS_TIMESTAMP_TZ_FORMAT='YYYY-MM-DD HH24:MI:SS.FF TZH:TZM';\n" if ($sql_type eq 'oracle'); -+print $fh $query; -+close $fh; -+$command = "$sqlcmd -h$sql_server -u$sql_username $sql_password $sql_database < $tmp_filename" if ($sql_type eq 'mysql'); -+$command = "$sqlcmd -U $sql_username -f $tmp_filename $sql_database" if ($sql_type eq 'pg'); - $command = "$sqlcmd $sql_username/$pass" . "@" . "$sql_database <$tmpfile.$server" if ($sql_type eq 'oracle'); --$command = "$sqlcmd '$sql_server' '$sql_port' '' '$sql_username' '$sql_password' </tmp/truncate_radacct.query" if ($sql_type eq 'sqlrelay'); -+$command = "$sqlcmd '$sql_server' '$sql_port' '' '$sql_username' '$sql_password' < $tmp_filename" if ($sql_type eq 'sqlrelay'); - `$command`; diff --git a/www-apps/freeradius-dialupadmin/files/setrootpath b/www-apps/freeradius-dialupadmin/files/setrootpath deleted file mode 100644 index 124364c291ac..000000000000 --- a/www-apps/freeradius-dialupadmin/files/setrootpath +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -if [ "$1" = "install" ]; then - sed -i -e "s:/usr/\(local/\)\?dialup_admin:${VHOST_ROOT}:" "${VHOST_ROOT}"/{conf/._*admin.conf,conf/admin.conf,bin/*} - chmod -R o-rwx "${VHOST_ROOT}"/conf -fi diff --git a/www-apps/freeradius-dialupadmin/freeradius-dialupadmin-1.70.3.ebuild b/www-apps/freeradius-dialupadmin/freeradius-dialupadmin-1.70.3.ebuild deleted file mode 100644 index 9bf34f6453b9..000000000000 --- a/www-apps/freeradius-dialupadmin/freeradius-dialupadmin-1.70.3.ebuild +++ /dev/null @@ -1,83 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=0 - -inherit eutils webapp -MY_FREERADIUS_P="freeradius-1.1.6" - -DESCRIPTION="Web administration interface of freeradius server" -SRC_URI="ftp://ftp.freeradius.org/pub/radius/${MY_FREERADIUS_P}.tar.gz" -HOMEPAGE="http://www.freeradius.org/dialupadmin.html" - -KEYWORDS="~amd64 ~ppc ~x86" -IUSE="" -LICENSE="GPL-2" - -DEPEND="dev-lang/php - dev-perl/Date-Manip - sys-apps/findutils - >=net-dialup/${MY_FREERADIUS_P}" - -S="${WORKDIR}/${MY_FREERADIUS_P}/dialup_admin" - -src_unpack() { - unpack ${A} - - cd "${S}" - epatch "${FILESDIR}/${P}-sqldebug.patch" - - sed -i -e 's:/usr/local:/usr:' \ - -e 's:/usr/etc/raddb:${general_raddb_dir}:' \ - -e 's:/usr/radiusd::' \ - conf/admin.conf - sed -i -e 's:/usr/local:/usr:' bin/* - - #rename files .php3 -> .php - (find . -iname '*.php3' | ( - local PHPFILE - while read PHPFILE; do - mv "${PHPFILE}" "${PHPFILE/.php3/.php}" - done - )) && \ - (find . -type f | xargs sed -i -e 's:[.]php3:.php:g') || \ - die "failed to replace php3 with php" - - # remove cvs data - ecvs_clean - - # fix dangling ../ to deal with the way webapp-config installs files - find . -name '*.php' | xargs sed -i \ - -e 's:../conf/:../../conf/:' \ - -e 's:../html/:../../html/:' \ - -e 's:../lib/:../../lib/:' -} - -src_install() { - webapp_src_preinst - - insinto "${MY_HTDOCSDIR}" - doins -r htdocs/* - insinto "${MY_HOSTROOTDIR}" - doins -r conf html lib - exeinto "${MY_HOSTROOTDIR}/bin" - dodoc bin/*.cron bin/Changelog* - rm bin/*.cron bin/Changelog* - doexe bin/* - - insinto "${MY_SQLSCRIPTSDIR}" - doins sql/* - - dodoc Changelog README doc/* - - webapp_hook_script "${FILESDIR}/setrootpath" - - cd "${D}/${MY_HOSTROOTDIR}" - local CONFFILE - for CONFFILE in conf/* ; do - webapp_configfile "${MY_HOSTROOTDIR}/${CONFFILE}" - webapp_serverowned "${MY_HOSTROOTDIR}/${CONFFILE}" - done - - webapp_src_install -} diff --git a/www-apps/freeradius-dialupadmin/freeradius-dialupadmin-1.80.ebuild b/www-apps/freeradius-dialupadmin/freeradius-dialupadmin-1.80.ebuild deleted file mode 100644 index c03e4900136e..000000000000 --- a/www-apps/freeradius-dialupadmin/freeradius-dialupadmin-1.80.ebuild +++ /dev/null @@ -1,82 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=0 - -inherit eutils webapp -MY_FREERADIUS_PV="2.1.1" - -DESCRIPTION="Web administration interface of freeradius server" -SRC_URI="ftp://ftp.freeradius.org/pub/radius/freeradius-server-${MY_FREERADIUS_PV}.tar.gz" -HOMEPAGE="http://www.freeradius.org/dialupadmin.html" - -KEYWORDS="~amd64 ~ppc ~x86" -IUSE="" -LICENSE="GPL-2" - -DEPEND="sys-apps/findutils - sys-apps/sed" -RDEPEND="dev-lang/php - dev-perl/Date-Manip - >=net-dialup/freeradius-${MY_FREERADIUS_PV}" - -S="${WORKDIR}/freeradius-server-${MY_FREERADIUS_PV}/dialup_admin" - -src_unpack() { - unpack ${A} - - cd "${S}" - epatch "${FILESDIR}/${P}-gentoo.patch" - epatch "${FILESDIR}/${P}-tmpfile.patch" - - sed -i -e 's:/usr/local:/usr:' \ - -e 's:/usr/etc/raddb:${general_raddb_dir}:' \ - -e 's:/usr/radiusd::' \ - conf/admin.conf - sed -i -e 's:/usr/local:/usr:' bin/* - - #rename files .php3 -> .php - (find . -iname '*.php3' | ( - local PHPFILE - while read PHPFILE; do - mv "${PHPFILE}" "${PHPFILE/.php3/.php}" - done - )) && \ - (find . -type f | xargs sed -i -e 's:[.]php3:.php:g') || \ - die "failed to replace php3 with php" - - # fix dangling ../ to deal with the way webapp-config installs files - find . -name '*.php' | xargs sed -i \ - -e 's:../conf/:../../conf/:' \ - -e 's:../html/:../../html/:' \ - -e 's:../lib/:../../lib/:' -} - -src_install() { - webapp_src_preinst - - insinto "${MY_HTDOCSDIR}" - doins -r htdocs/* - insinto "${MY_HOSTROOTDIR}" - doins -r conf html lib - exeinto "${MY_HOSTROOTDIR}/bin" - dodoc bin/*.cron bin/Changelog* - rm bin/*.cron bin/Changelog* - doexe bin/* - - insinto "${MY_SQLSCRIPTSDIR}" - doins -r sql/* - - dodoc Changelog README doc/* - - webapp_hook_script "${FILESDIR}/setrootpath" - - cd "${D}/${MY_HOSTROOTDIR}" - local CONFFILE - for CONFFILE in conf/* ; do - webapp_configfile "${MY_HOSTROOTDIR}/${CONFFILE}" - webapp_serverowned "${MY_HOSTROOTDIR}/${CONFFILE}" - done - - webapp_src_install -} diff --git a/www-apps/freeradius-dialupadmin/metadata.xml b/www-apps/freeradius-dialupadmin/metadata.xml deleted file mode 100644 index f6fe7565b8f6..000000000000 --- a/www-apps/freeradius-dialupadmin/metadata.xml +++ /dev/null @@ -1,12 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> -<!-- maintainer-needed --> -<longdescription> -The FreeRADIUS server comes including a powerfull web interface written in PHP -to administer radius users, called dialupadmin. Dialup Admin supports users -either in SQL (MySQL or PostgreSQL are supported) or in LDAP. Apart from the -web pages, it also includes a number of scripts to make the administrator's -life a lot easier. -</longdescription> -</pkgmetadata> |