net-misc/utm5: version bump, drop old
Package-Manager: Portage-2.3.66, Repoman-2.3.11
This commit is contained in:
parent
16ba5cf1b0
commit
7a3d41cad0
@ -1,2 +1 @@
|
||||
DIST utm5-3.003.x86_64-centos6_x64(update15).rpm 5629712 BLAKE2B 4aa3bbcf3aec02b39ccd01b86f2c3e85706d7627a13ce9fa4819b8730a1c3a3a291d56bbc879ec5feedcbb04064f539718d9fa088a15941ce5f2e91576d1c656 SHA512 3c87a7d7d3075ab67cedb603494dba2b4fee0bec6f4741441c27a631c7ce2c13d95f0157ccd21e456a772afc7069101fad12a805efe1861b88cba3a77b3abe23
|
||||
DIST utm5-3.004.x86_64-centos7_x64(update2).rpm 8682640 BLAKE2B 6129c045136cd25b4c9e7801f1b1a72b602c58f9029c7cf910ca13a320c854f13b38bd77e800f39ee239faaa293dbc70878603eb1fe95eb31751d980b54b4595 SHA512 60c3288f918bec47302388bf8f8982253ffe56a18dc45285a5bb6bb350c2984ab7c8b8b9ca339d8672d2a48ce4a3a9f795be33bcf997bac30e04b47dbe383071
|
||||
DIST utm5-3.005.x86_64-centos6_x64(update3).rpm 7809736 BLAKE2B 231b679c4d2ae31b89872023dca6745f7c10b22be83363ef702481f527339b558ddc8c714a935c232f37cee05828267d615265fc011ec25a7c42559359bd6a21 SHA512 5ced8eb8c54ffc32281ae2a26da0987be35c88a94ac9a98a7f4e1173164478c42787ce04a83b1597d2f3b08361f627459404b3298543fcd8bad251a95d5b9728
|
||||
|
@ -1,109 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit eutils multilib pax-utils rpm versionator
|
||||
|
||||
MAJOR_V=$(get_version_component_range 1-2)
|
||||
MINOR_V=$(get_version_component_range 3)
|
||||
MINOR_V=${MINOR_V/p/}
|
||||
|
||||
DESCRIPTION="NetUP UTM - universal billing system for Internet Service Providers."
|
||||
HOMEPAGE="www.netup.ru"
|
||||
SRC_URI="${PN}-${MAJOR_V}.x86_64-centos6_x64(update${MINOR_V}).rpm"
|
||||
|
||||
LICENSE="NETUP"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
RESTRICT="fetch mirror strip"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/openssl:0
|
||||
sys-libs/zlib
|
||||
dev-libs/libxslt
|
||||
virtual/libmysqlclient
|
||||
virtual/mailx
|
||||
dev-db/postgresql:*
|
||||
"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
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 [ -z "${REPLACING_VERSIONS}" ] ; 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"
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2019 Gentoo Foundation
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
@ -9,8 +9,8 @@ MAJOR_V=$(ver_cut 1-2)
|
||||
MINOR_V=$(ver_cut 4)
|
||||
|
||||
DESCRIPTION="NetUP UTM - universal billing system for Internet Service Providers"
|
||||
HOMEPAGE="www.netup.ru"
|
||||
SRC_URI="${PN}-${MAJOR_V}.x86_64-centos7_x64(update${MINOR_V}).rpm"
|
||||
HOMEPAGE="https://www.netup.tv/en/utm5/"
|
||||
SRC_URI="${PN}-${MAJOR_V}.x86_64-centos6_x64(update${MINOR_V}).rpm"
|
||||
|
||||
LICENSE="NETUP"
|
||||
SLOT="0"
|
||||
@ -20,12 +20,14 @@ RESTRICT="fetch mirror strip"
|
||||
|
||||
RDEPEND="
|
||||
app-crypt/mit-krb5
|
||||
dev-libs/openssl:0
|
||||
sys-libs/zlib
|
||||
dev-db/postgresql:*
|
||||
dev-libs/libxml2:2
|
||||
dev-libs/libxslt
|
||||
dev-libs/openssl:0
|
||||
net-misc/curl
|
||||
sys-libs/zlib
|
||||
virtual/libmysqlclient
|
||||
virtual/mailx
|
||||
dev-db/postgresql:*
|
||||
"
|
||||
|
||||
S="${WORKDIR}"
|
||||
@ -36,18 +38,6 @@ pkg_nofetch() {
|
||||
einfo "and move it to ${DISTDIR}"
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
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
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodir /netup/utm5
|
||||
keepdir /netup/utm5/backup
|
||||
@ -71,7 +61,7 @@ src_install() {
|
||||
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
|
||||
# Mysql library(libmysqlclient_r.so.16) should be fetched from CentOS 6. Current version in Gentoo is incompatible
|
||||
|
||||
doinitd "${FILESDIR}"/utm5_{core,radius,rfw}
|
||||
doconfd "${FILESDIR}"/utm5_rfw.conf
|
Loading…
Reference in New Issue
Block a user