From ab280d116fcd47f98b63e97eb132d63719ed3473 Mon Sep 17 00:00:00 2001 From: Sergey Popov Date: Tue, 6 Dec 2016 18:01:25 +0300 Subject: [PATCH] net-misc/utm5: drop old version and unneeded stuff --- net-misc/utm5/files/ChangeLog | 17 ----- net-misc/utm5/files/metadata.xml | 5 -- net-misc/utm5/utm5-3.001-r1.ebuild | 115 ----------------------------- 3 files changed, 137 deletions(-) delete mode 100644 net-misc/utm5/files/ChangeLog delete mode 100644 net-misc/utm5/files/metadata.xml delete mode 100644 net-misc/utm5/utm5-3.001-r1.ebuild diff --git a/net-misc/utm5/files/ChangeLog b/net-misc/utm5/files/ChangeLog deleted file mode 100644 index 6145525..0000000 --- a/net-misc/utm5/files/ChangeLog +++ /dev/null @@ -1,17 +0,0 @@ -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -*utm5-1.10.009 (07 Mar 2005) - - 07 Mar 2005; Peter Volkov utm5-1.10.009.ebuild: - - The begining. - - 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-misc/utm5/files/metadata.xml b/net-misc/utm5/files/metadata.xml deleted file mode 100644 index f5c37e3..0000000 --- a/net-misc/utm5/files/metadata.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - -UTM5 billing system, see www.netup.ru for details. - diff --git a/net-misc/utm5/utm5-3.001-r1.ebuild b/net-misc/utm5/utm5-3.001-r1.ebuild deleted file mode 100644 index 28e086c..0000000 --- a/net-misc/utm5/utm5-3.001-r1.ebuild +++ /dev/null @@ -1,115 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI=5 - -inherit eutils multilib pax-utils rpm - -DESCRIPTION="NetUP UTM - universal billing system for Internet Service Providers." -HOMEPAGE="www.netup.ru" -SRC_URI=" - amd64? ( ${P}.x86_64-centos6_x64.rpm ) - x86? ( ${P}.i386-centos6.rpm ) -" - -LICENSE="NETUP" -SLOT="0" -KEYWORDS="~amd64" - -RESTRICT="fetch mirror strip" - -RDEPEND=" - dev-libs/openssl:0 - sys-libs/zlib - dev-libs/libxslt - virtual/mailx - dev-db/mysql - dev-db/postgresql -" - -S="${WORKDIR}" - -PREVIOUS_INSTALLED="${T}/previous_installed" - -pkg_nofetch() { - einfo "Please download ${A} from:" - einfo "http://www.netup.ru/" - einfo "and move it to ${DISTDIR}" -} - -pkg_setup() { - for process in utm5_radius utm5_rfw utm5_core - do - if `ps aux | grep -v "grep ${process}" | grep ${process} >/dev/null 2>&1` ; then - ewarn "You did not stop ${process}." - ewarn "Please stop all process with ${process} in" - ewarn "their names and then try again." - die "Processes are not stoped." - fi - done - - if [ -x /netup/utm5/bin/utm5_core ] ; then - einfo "Previous installation found." - echo "true" > "${PREVIOUS_INSTALLED}" - fi -} - -src_install() { - dodir /netup/utm5 - keepdir /netup/utm5/backup - keepdir /netup/utm5/db - keepdir /netup/utm5/log - keepdir /netup/utm5/templates - - insinto /etc/utm5 - pushd netup/utm5 &>/dev/null || die - for conf in *.cfg - do - doins ${conf} - rm ${conf} || die - dosym /etc/utm5/${conf} /netup/utm5/${conf} - done - popd &>/dev/null - # Preserve permissions! Replace with doins with care! - cp -a netup "${D}" || die - pax-mark -m "${D}/netup/utm5/bin/utm5_core" - - dosym /usr/$(get_libdir)/libssl.so /netup/utm5/lib/libssl.so.10 - dosym /usr/$(get_libdir)/libcrypto.so /netup/utm5/lib/libcrypto.so.10 - - # Mysql library(libmysqlclient_r.so.16) should be fetched from 5.5. 5.6 is incompatible - - doinitd "${FILESDIR}"/utm5_{core,radius,rfw} - doconfd "${FILESDIR}"/utm5_rfw.conf - - prune_libtool_files -} - -pkg_postinst() { - echo - if [ -f "${PREVIOUS_INSTALLED}" ] ; then - einfo "If this is your first instalation of utm5 please run:" - einfo "mysqladmin create UTM5" - einfo "mysql UTM5 < /netup/utm5/UTM5_MYSQL.sql" - einfo "mysql UTM5 < your_reg_file.sql" - einfo "to initialise mysql database. Or" - einfo "createdb -U postgres UTM5" - einfo "psql UTM5 < /netup/utm5/UTM5_MYSQL.sql" - einfo "psql UTM5 < your_reg_file.sql" - einfo "to initialise postgresql database." - else - einfo "Now, please, update your database with command" - einfo "mysql -f UTM5 < /netup/utm5/UTM5_MYSQL_update.sql" - einfo "if you are using mysql database or" - einfo "psql -f /netup/utm5/UTM5_PG_update.sql UTM5" - einfo "if you are using postgresql." - einfo "" - einfo "Please note. You need to update your UTM5_Admin.jar also." - fi - echo - einfo "To start utm5_core automaticaly during booting you need to run:" - einfo "rc-update add utm5_core default" - echo - ewarn "Note: Configuration files are in /etc/utm5" -}