net-misc/utm5: version bump to 5.3.003 update 15
This commit is contained in:
parent
681bc74b5a
commit
143fcddae0
@ -1,4 +1,3 @@
|
||||
DIST utm5-3.001.i386-centos6.rpm 4813542 SHA256 d825588813dbe83134805a14048db585454ba7fe9b6efb5a27dad6eed2acb546 SHA512 9d64d58b032bef7a3201db7f5c0da08000d8f3f21b48bbb35b5cf311e4742d60c4687353e7828a58b0219dd41cc0604a81aaca68d2d24fd0e6c4b51544b09c91 WHIRLPOOL cfc8f524ed81f53f584f8d2248e9d60a65596f47159471cfd278193dab13cdaf2519f4934d5fe3a2325e2038869c9b04f18feda7896afc0aca4d1fc80c7068e0
|
||||
DIST utm5-3.001.x86_64-centos6_x64.rpm 4383711 SHA256 4203e2b4fb120066887d5e6a318031910f58a67dcbeca9aaeb3dba755d316e89 SHA512 1d207b4053f787280c2921c26ee3eca71e6dbbcf37011ff51e244517cb3920574e2f7ad590d772293a58dc93da3ebfcbba203b48d9c00188ba5c4e6253e67acc WHIRLPOOL 101aca54ca99ad3510a3571124ef8d138255f2995446baecc0f263b5856664a80f8c53d974490b34dd9a67da9306caa59a20ec5fff70fe1513c7075f3d438319
|
||||
DIST utm5-3.002.i386-centos6.rpm 5815853 SHA256 87471a9700cf4ed60d383d1153e9779eb83673e27ac538853fc6b2351f9773bc SHA512 cc7b786bac959ee8e956d701eb903577d75390f22af90a650e2bb9f96a55b5aad7548efe7f02c3a8d160898ed173b0457eb896a0b259def551ce615a37bebd8e WHIRLPOOL 5708dc388a5d32a68d84dd1f46426d162e3111433e3e730fb36f054008b56a29622c3025eb4fe6fbd8631738248e31eaf9d4150bdea3cf34cb8e5609d5869706
|
||||
DIST utm5-3.002.x86_64-centos6_x64.rpm 5797657 SHA256 5cd7ab73b2d62002a26751289d62807fbcd73a4737a02f9fb0dad3fd1c711fc2 SHA512 a788f5e5a8960c78a2d940dbf15639b5c02611984de07240f3caec1d64913805fecb4f7fc7c7d42ffde5f7235c3bf133bbdcb9b16a3fd7c57d99ec652deef21a WHIRLPOOL dc9af4486a5ae5d0228426a4125ae92c18875a6026dc0b5f75205fec9d62c5649c38de7f0049549a0cf06072b5024df814c955aaf22948e5cc5519fea5de41c9
|
||||
DIST utm5-3.003.x86_64-centos6_x64(update15).rpm 5629712 SHA256 69f5e9cf96b931ea1e91da375a4e9537077b2912a0c40209194217679ab1daee SHA512 3c87a7d7d3075ab67cedb603494dba2b4fee0bec6f4741441c27a631c7ce2c13d95f0157ccd21e456a772afc7069101fad12a805efe1861b88cba3a77b3abe23 WHIRLPOOL 26ba24e9a32e3ef451341f3ca51ae8b1372f0f07dd6c931876bce52ca9cf0084352806e034bd80be3f0df6475128b55f3cc4ed5b4feebddeb33152e652583463
|
||||
|
109
net-misc/utm5/utm5-3.003_p15.ebuild
Normal file
109
net-misc/utm5/utm5-3.003_p15.ebuild
Normal file
@ -0,0 +1,109 @@
|
||||
# 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/mailx
|
||||
virtual/mysql
|
||||
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"
|
||||
}
|
Loading…
Reference in New Issue
Block a user