net-misc/utm5: drop old versions, fix digest and postgresql dependency for last one
This commit is contained in:
parent
56044e1fb3
commit
e40b32f1b4
@ -4,10 +4,7 @@ AUX utm5_core 1034 SHA256 b3de229f67150faa93bc66b88f6528f2b666a43e3fb3346fe230c0
|
||||
AUX utm5_radius 648 SHA256 00e9d98ee8461f3c6b84c3ceae969abf5ad55cab42287581ed7d72eba43d9868 SHA512 2c7baa401ee7279327e29b3c7bdfc7f0564ccef2d0d7e2cb2687ad18b61f2536fd246bac0aa72879ce0e2b40b5cf1964f3f1f09e8aa1e57e8104836022f1e582 WHIRLPOOL 205736414e4da6ae90922a5fba7001f91daa141fb688ce1c175961389f6ab2e9ebac318098be9737388b7193c3475a39a86a46e58c60b0102e10adf91820193a
|
||||
AUX utm5_rfw 2066 SHA256 131ccdcffb495efdff1af9915003b19bc188c0a8e21f56f07c27d4f6f044883e SHA512 af0acc68b22cd22db2723bb6e3773f51eae41d6bfebba0f269594c53b790f543345ffa9cf83f3a336856014bfc548de2e1fa96aef65706e04fd4a33e038f985c WHIRLPOOL 909a60157ba8af01c61b8e642806d0bff9c78448b1804307d43f4f83a3a355a95f17e2f4d72e9419ec809a9cfd8b626c8856c931337131821ed3baae6830176e
|
||||
AUX utm5_rfw.conf 457 SHA256 196ed4f742e41500d6d9db0f55e69dffbf502a682bd1601fa9e107d9d3f69b69 SHA512 cbfb7b57ec57fe514595dbd2c8add99e40ccd2263bd13ede6e63c07933c4e4aa651b2e59d8532fe63b5ca070914d44c6dbae9cec0ccf9b5f6c0367fcb04cdde6 WHIRLPOOL a5930eb6c3c42fe7bec778b5f98a17e72aaa3081eca9f025a9ed48018b5af4b9dd8ff8a77cf1ce3f090c9d3dca25c275b3ef7b1f230a34f7ad4dd8c36af68063
|
||||
DIST utm5-2.1.008.tar.bz2 8787508 SHA256 e9693dd75347340bf921951617f0a11f11bb58b1bdfe2d1005adfbeba885cf18 SHA512 eed42225611070a47ce0ee1331745cb990e48a4e8edad7c2f11da3b39daf23032cdce4de68b4d9c2f6e1db80703aa52680f236df4795b907351613b55164b6c7 WHIRLPOOL f490e4f2bcbd66c2ba7f1b4865dac41eb2b89327e3f19fdb74efe47c324d7f6ef9c6417c0e1f1682ea06247c3f65526c17c0e445c6abc217bc0b92f4eafa01c4
|
||||
DIST utm5-2.1.009.tar.bz2 8304780 SHA256 a7a49de340e34b42511d4ecd10806f874aaa502afc77cdd424c8a0901a60d1e9 SHA512 681b3af7a730e3ba1f9eee0a6b63c1c4c06dd5303812847e2701037324c7973c6a35c716728f7426d58521d0bec9ad1f1aebab603f3a32a1f4e667c698dbbfcc WHIRLPOOL 3e1e3644a6b1d02a262e915742e184c89da3293200c73227df28a81be65a0c5307ed5bf10c18d474fb6d3acd4cd07be5b5454c2e44e88e88346777157836d63e
|
||||
DIST utm5-3.001.i386-centos6.rpm 4813542 SHA256 d825588813dbe83134805a14048db585454ba7fe9b6efb5a27dad6eed2acb546 SHA512 9d64d58b032bef7a3201db7f5c0da08000d8f3f21b48bbb35b5cf311e4742d60c4687353e7828a58b0219dd41cc0604a81aaca68d2d24fd0e6c4b51544b09c91 WHIRLPOOL cfc8f524ed81f53f584f8d2248e9d60a65596f47159471cfd278193dab13cdaf2519f4934d5fe3a2325e2038869c9b04f18feda7896afc0aca4d1fc80c7068e0
|
||||
EBUILD utm5-2.1.008.ebuild 2854 SHA256 50b26ede34b6a0c836d997dae9ba125a27ac3e9ef3c7513464a8788123160ad9 SHA512 ca08a7b1748b8ac9c48abe66b8434bdbea980ec1d1a0237f5fedbe50e42a53d4511b76648acc4605f6386ad8a008c5619185e66ad5b0666cc0065f9a2131f5aa WHIRLPOOL f499eb40de2d128ddfbf12f9bbc26f09f127758e95071284690cab1625b656d272c15b016dc789aec8ae05613e8b68a28f3483b16d81a3fa1842cf0a3cbec97d
|
||||
EBUILD utm5-2.1.009.ebuild 2872 SHA256 8acbe70fe3a642398c491e07b3c4cc6fb3a282ecbe97dda3a613208b78c376dd SHA512 17dfc6e085a3d85734b5cd1a174ba7688c38f53fe95d01dcf1c8288caa35dcbd6536a1348783d66c21fe36e5a3600d209d6cc1d06d28f06d85bd68175f782b30 WHIRLPOOL 1427ce3fb9e96b9e12b246a84035378e174e1da44fe7782999f45e7e8b54eac0485310d36fd4c34466b12eab40ce2640cb372a7f545bd4d8cf3cb491f0b56c42
|
||||
EBUILD utm5-3.001.ebuild 2916 SHA256 d3a88be642085858d2213827a3b75c23b3f018dd780424f05438d0a5cf552ef7 SHA512 1d97a7ba5dd8a228a5a0e628541f305e401280a238c52b482d766e0704da86b8f7dd1c1652bd69826a18c589c8880f6cfae337c4a9e0fef92ebaaff4f3a3a409 WHIRLPOOL e0b10ba3980c70ad604a26b2f3f278858aa72f2a63ec601737bbf9e23875bbd9a39da5ab14a1a8d4fedf62617886f9af544c4f44382c0a094a085898c143030f
|
||||
DIST utm5-3.001.x86_64-centos6_x64.rpm 4383711 SHA256 4203e2b4fb120066887d5e6a318031910f58a67dcbeca9aaeb3dba755d316e89 SHA512 1d207b4053f787280c2921c26ee3eca71e6dbbcf37011ff51e244517cb3920574e2f7ad590d772293a58dc93da3ebfcbba203b48d9c00188ba5c4e6253e67acc WHIRLPOOL 101aca54ca99ad3510a3571124ef8d138255f2995446baecc0f263b5856664a80f8c53d974490b34dd9a67da9306caa59a20ec5fff70fe1513c7075f3d438319
|
||||
EBUILD utm5-3.001-r1.ebuild 2977 SHA256 a67afebcca6359f59f14ea25045edad3eaa02de380a0d3339e5bf7ac3223cbf5 SHA512 358813688eb0d49abdc192bd63aa3467cb782c08c95e917e6a14dcdd9a34f319111028bf0216b88059291b30124422ecf44af4da6db348c142fafd1a3d8b87ac WHIRLPOOL b41a3d4bd0c230fe26c146c203c9474e16ebe043dfcedd96415a0f05811f8a1e86801e237b95b69ea467d2c7f57faef83a32e6b55145442d77c32b3ecaa4c550
|
||||
MISC metadata.xml 293 SHA256 f3fa6f23f78d41c7e269e6e39c21684d8f62934005f903880d29c16e3556c63a SHA512 8edb32186fc8213c5eea222c6225a86d0abafe73484d0d31fb032df84731c3dc5d8b141c8ca38297ab82258130afb0b4464263636ee49ccc2363e013e894d9ca WHIRLPOOL 2b992b8f09c865373f8f57fcea53004c728a68c3555a2cf2157baeb0cc41ca48b743ff1b2a8f836cfca347d450dcd91e23047a879adb42498ea557e55db4355d
|
||||
|
@ -1,108 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI=2
|
||||
|
||||
DESCRIPTION="NetUP UTM - universal billing system for Internet Service Providers."
|
||||
HOMEPAGE="www.netup.ru"
|
||||
SRC_URI="${P}.tar.bz2"
|
||||
|
||||
LICENSE="NETUP"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RESTRICT="fetch strip"
|
||||
|
||||
X86_RDEPEND="virtual/libc
|
||||
dev-libs/openssl:0.9.8
|
||||
sys-libs/zlib
|
||||
dev-libs/libxslt"
|
||||
|
||||
RDEPEND="x86? ( $X86_RDEPEND )
|
||||
amd64? ( app-emulation/emul-linux-x86-baselibs )
|
||||
|| ( dev-db/mysql
|
||||
dev-db/postgresql )"
|
||||
|
||||
pkg_nofetch() {
|
||||
einfo "Please download ${A} from:"
|
||||
einfo "http://www.netup.ru/"
|
||||
einfo "and move it to ${DISTDIR}"
|
||||
}
|
||||
|
||||
PREVIOUS_INSTALLED="${T}/previous_installed"
|
||||
|
||||
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
|
||||
|
||||
echo "false" > ${PREVIOUS_INSTALLED}
|
||||
|
||||
if [ -x /netup/utm5/bin/utm5_core ] ; then
|
||||
einfo "Previous installation found."
|
||||
echo "true" > ${PREVIOUS_INSTALLED}
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cd "${WORKDIR}"
|
||||
cp -a usr "${D}" || die "install failed"
|
||||
dodir /etc/utm5
|
||||
dodir /netup/utm5
|
||||
keepdir /netup/utm5/backup
|
||||
keepdir /netup/utm5/db
|
||||
keepdir /netup/utm5/log
|
||||
keepdir /netup/utm5/templates
|
||||
|
||||
for conf in utm5.cfg radius5.cfg rfw5.cfg web5.cfg
|
||||
do
|
||||
if [ -x netup/utm5/${conf} ] ; then
|
||||
chmod ugo-x netup/utm5/${conf}
|
||||
fi
|
||||
mv netup/utm5/${conf} "${D}"/etc/utm5/
|
||||
dosym /etc/utm5/${conf} /netup/utm5/${conf}
|
||||
done
|
||||
cp -a netup "${D}"
|
||||
|
||||
doinitd "${FILESDIR}"/utm5_core "${FILESDIR}"/utm5_radius "${FILESDIR}"/utm5_rfw
|
||||
doconfd "${FILESDIR}"/utm5_rfw.conf
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
echo
|
||||
if [ "`cat $PREVIOUS_INSTALLED`" = "false" ] ; 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."
|
||||
echo
|
||||
einfo "Thank you for choosing utm5."
|
||||
}
|
@ -1,117 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils pax-utils
|
||||
|
||||
DESCRIPTION="NetUP UTM - universal billing system for Internet Service Providers."
|
||||
HOMEPAGE="www.netup.ru"
|
||||
SRC_URI="${P}.tar.bz2"
|
||||
|
||||
LICENSE="NETUP"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
RESTRICT="fetch mirror strip"
|
||||
|
||||
X86_RDEPEND="
|
||||
dev-libs/openssl:0.9.8
|
||||
sys-libs/zlib
|
||||
dev-libs/libxslt
|
||||
"
|
||||
|
||||
AMD64_RDEPEND="
|
||||
app-emulation/emul-linux-x86-baselibs
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
amd64? ( ${AMD64_RDEPEND} )
|
||||
x86? ( ${X86_RDEPEND} )
|
||||
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 radius5.cfg rfw5.cfg utm5.cfg
|
||||
do
|
||||
# Pinkbyte: 5.2.1-009 does not ship default configs!
|
||||
# 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 /netup/utm5/bin/utm5_core
|
||||
|
||||
doinitd "${FILESDIR}"/utm5_{core,radius,rfw}
|
||||
doconfd "${FILESDIR}"/utm5_rfw.conf
|
||||
|
||||
prune_libtool_files
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
echo
|
||||
if [ -f "${PREVIOUS_INSTALLED}" ] ; then
|
||||
elog "If this is your first instalation of utm5 please run:"
|
||||
elog "mysqladmin create UTM5"
|
||||
elog "mysql UTM5 < /netup/utm5/UTM5_MYSQL.sql"
|
||||
elog "mysql UTM5 < your_reg_file.sql"
|
||||
elog "to initialise mysql database. Or"
|
||||
elog "createdb -U postgres UTM5"
|
||||
elog "psql UTM5 < /netup/utm5/UTM5_MYSQL.sql"
|
||||
elog "psql UTM5 < your_reg_file.sql"
|
||||
elog "to initialise postgresql database."
|
||||
else
|
||||
elog "Now, please, update your database with command"
|
||||
elog "mysql -f UTM5 < /netup/utm5/UTM5_MYSQL_update.sql"
|
||||
elog "if you are using mysql database or"
|
||||
elog "psql -f /netup/utm5/UTM5_PG_update.sql UTM5"
|
||||
elog "if you are using postgresql."
|
||||
elog ""
|
||||
elog "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"
|
||||
}
|
@ -24,7 +24,6 @@ RDEPEND="
|
||||
sys-libs/zlib
|
||||
dev-libs/libxslt
|
||||
virtual/mailx
|
||||
dev-db/postgresql-base
|
||||
|| ( dev-db/mysql
|
||||
dev-db/postgresql )
|
||||
"
|
||||
|
Loading…
Reference in New Issue
Block a user