From: "Jorge Manuel B. S. Vicetto" <jmbsvicetto@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] dev/jmbsvicetto:master commit in: net-analyzer/ocsng/
Date: Wed, 3 Jul 2013 18:31:07 +0000 (UTC) [thread overview]
Message-ID: <1372876101.5a79553db5772309ee9a218236fd702c700d19c5.jmbsvicetto@gentoo> (raw)
commit: 5a79553db5772309ee9a218236fd702c700d19c5
Author: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 3 18:28:21 2013 +0000
Commit: Jorge Manuel B. S. Vicetto <jmbsvicetto <AT> gentoo <DOT> org>
CommitDate: Wed Jul 3 18:28:21 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=dev/jmbsvicetto.git;a=commit;h=5a79553d
[net-analyzer/ocsng] Bump to the 2.1rc1 release.
---
net-analyzer/ocsng/Manifest | 1 +
net-analyzer/ocsng/ocsng-2.1_rc1.ebuild | 181 ++++++++++++++++++++++++++++++++
2 files changed, 182 insertions(+)
diff --git a/net-analyzer/ocsng/Manifest b/net-analyzer/ocsng/Manifest
index 21349fa..dd479c1 100644
--- a/net-analyzer/ocsng/Manifest
+++ b/net-analyzer/ocsng/Manifest
@@ -6,3 +6,4 @@ DIST OCSNG_UNIX_SERVER-2.0.3.tar.gz 1969060 SHA256 56e6c5f53535175942e337231bad6
DIST OCSNG_UNIX_SERVER-2.0.4.tar.gz 1973117 SHA256 e140dc9b1ddac45154add360ac2552e643171cb602f93c7c1d629d9c2445f28c
DIST OCSNG_UNIX_SERVER-2.0.5.tar.gz 1966036 SHA256 3e5c7ce7ee6320d143e0dafa30909070c23313ccd4deaeef3b883a4aa66e9369 SHA512 ff6201ab771e36ab9a551f6a77cc1202b9d451f3c9c1cd78fb00f07f096b97c588befdb292604f0dfc0612dcaee3952ed623ab08a1564813a09cd7d280a37b0d WHIRLPOOL 0d3f0b716a6c201d805319d5fe411602d2a4f776fce20f07a7c2f37137115d07c2f53ccc3450d616b949d99e77b54612e6bf8d952e25da27fc9251b9535fc939
DIST OCSNG_UNIX_SERVER-2.0.tar.gz 6348697 SHA256 f9d2912f6e6af6b6c5bee44cab057300d11ca0907a467e8dd2da301bfd6619d9 SHA512 00b0617a37487cdd37b91679cb32d61a1262cbb0f1daf0849d98d046157d4c316ba3183af1c768a55b4529109ea46eb8cddf05c308bba94067bb3f65828f04d7 WHIRLPOOL 17414aba00083745ea68a564365c6857ab3639be3cecee5691ead8ea3a417ab8e181ad3c12a7cbbce3e0b6294e7e34ded7395ec11ae5a5b844f97f3b4cad6858
+DIST OCSNG_UNIX_SERVER-2.1rc1.tar.gz 2883610 SHA256 6c39f4870fa2a0b005880fb1ac69538b3545eb6a1a0b4a167e3db136a0a0d0bc SHA512 59a308dd5286c5eb35141efb36c9b5b13526c2d32b939c5ef2073dc3e18dcedea27143d6cd183954df50a85a61d6ad20dc813e4ce9b28c960f41fe7fb05feed7 WHIRLPOOL 8af2852f38dbbfb7e02fd6ce0d566f6d52cec080ff6071c5d6ece073941bcca23aa232492f88706e5b63f2fba4684c229ebe592974478b95a9ce9f8b31d38681
diff --git a/net-analyzer/ocsng/ocsng-2.1_rc1.ebuild b/net-analyzer/ocsng/ocsng-2.1_rc1.ebuild
new file mode 100644
index 0000000..2ff258f
--- /dev/null
+++ b/net-analyzer/ocsng/ocsng-2.1_rc1.ebuild
@@ -0,0 +1,181 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="4"
+
+inherit depend.php eutils versionator webapp
+
+MY_PV_MAJOR="$(get_version_component_range 1-2 ${PV})"
+MY_PV="${PV//[_]/}"
+MY_P="OCSNG_UNIX_SERVER-${MY_PV}"
+MY_LPN="ocsinventory-server"
+MY_HTDOCSDIR="/usr/share/webapps/${PN}/"
+WEBAPP_MANUAL_SLOT="yes"
+
+DESCRIPTION="OCS Inventory NG Management Server"
+HOMEPAGE="http://ocsinventory.sourceforge.net/"
+SRC_URI="http://launchpad.net/${MY_LPN}/stable-${MY_PV_MAJOR}/${MY_PV}/+download/${MY_P}.tar.gz"
+SLOT="0"
+LICENSE="GPL-2 LGPL-2"
+KEYWORDS="~amd64"
+IUSE="+comm admin logrotate"
+
+# INSTALL_DIR is used by webapp.eclass when USE=-vhosts
+INSTALL_DIR="ocsng"
+S="${WORKDIR}/${MY_P}"
+
+DEPEND="
+ app-admin/webapp-config
+ dev-lang/perl
+ comm? ( sys-devel/make )
+"
+RDEPEND="${DEPEND}
+ >=dev-perl/Apache-DBI-0.93
+ >=dev-perl/DBI-1.40
+ >=dev-perl/DBD-mysql-2.9004
+ >=dev-perl/Net-IP-1.21
+ >=dev-perl/XML-Simple-2.12
+ www-apache/mod_perl
+ >=www-servers/apache-1.3
+ admin? ( dev-lang/php[mysql,xml] )
+ logrotate? ( app-admin/logrotate )
+"
+REQUIRED_USE="|| ( admin comm )"
+
+pkg_setup() {
+
+ # call default eclass pkg_setup
+ webapp_pkg_setup
+}
+
+src_compile() {
+
+ if ( use comm ); then
+
+ pushd "Apache"
+ perl Makefile.PL || die "perl Makefile.PL failed"
+ emake || die "emake failed"
+ popd
+ fi
+}
+
+src_install() {
+
+ LOGDIR="/var/log/ocsng"
+ IPDDIR="ipd"
+ SNMPDIR="snmp"
+ PACKAGESDIR="download"
+
+ # call default eclass src_preinst
+ webapp_src_preinst
+
+ fowners root:apache "${MY_HTDOCSDIR}"
+ fperms g-w,o-rwx "${MY_HTDOCSDIR}"
+
+ if ( use comm ); then
+
+ pushd "Apache"
+ emake DESTDIR="${D}" install || die "Install failed"
+ popd
+
+ if use logrotate; then
+
+ # create logrotate config file
+ elog "Create logrotate config file"
+
+ dodir /etc/logrotate.d
+ cat <<- EOF > "${D}etc/logrotate.d/ocsng"
+ # Copyright 1999-2013 Gentoo Foundation
+ # Distributed under the terms of the GNU General Public License v2
+ # $Header: $
+ #
+ # OCSNG logrotate config for Gentoo Linux
+ # Contributed by Jorge Manuel B. S. Vicetto (jmbsvicetto) jmbsvicetto@gentoo.org
+ # Based on the original ocsng logrotate file by Didier LIROULET
+
+ /var/log/ocsng/*.log {
+ daily
+ # rotate 7
+ compress
+ create 0660 root apache
+ notifyempty
+ missingok
+ # postrotate
+ # /etc/init.d/apache2 reload > /dev/null 2>&1 || true
+ # endscript
+ }
+ EOF
+ fi
+
+ # set mod_perl version > 1.999_21
+ sed -i -e "s/VERSION_MP/2/" etc/ocsinventory/ocsinventory-server.conf
+ sed -i -e "s:PATH_TO_LOG_DIRECTORY:${LOGDIR}:" etc/ocsinventory/ocsinventory-server.conf
+
+ # install the communication
+ webapp_server_configfile apache "etc/ocsinventory/ocsinventory-server.conf"
+
+ fi
+
+ if use admin; then
+
+ # Create dirs
+ elog "Creating ${MY_HTDOCSDIR}/{${PACKAGESDIR},${IPDDIR},${SNMPDIR}} dirs"
+ for dir in ${PACKAGESDIR} ${IPDDIR} ${SNMPDIR} ; do
+ dodir "${MY_HTDOCSDIR}/${dir}" || die "Unable to create ${MY_HTDOCSDIR}/${dir}"
+ webapp_serverowned -R "${MY_HTDOCSDIR}/${dir}"
+ fowners -R apache:apache "${MY_HTDOCSDIR}/${dir}"
+ fperms g+w,o-rwx "${MY_HTDOCSDIR}/${dir}"
+ done
+
+ # copy ocsreports
+ insinto "${MY_HTDOCSDIR}"
+ doins -r ocsreports
+
+ # Protect the db config file and ocsreports
+ webapp_configfile "${MY_HTDOCSDIR}/ocsreports/dbconfig.inc.php"
+ webapp_serverowned -R "${MY_HTDOCSDIR}/ocsreports"
+ fowners -R root:apache "${MY_HTDOCSDIR}/ocsreports"
+ fperms -R g-w,o-rwx "${MY_HTDOCSDIR}/ocsreports"
+ if [[ -f "${MY_HTDOCSDIR}/ocsreports/dbconfig.inc.php" ]] ; then
+ fperms g-w,o-rwx "${MY_HTDOCSDIR}/ocsreports/dbconfig.inc.php"
+ fi
+
+ # install ipdiscover-util.pl script
+ elog "Install ipdiscover-util.pl script"
+ insinto "${MY_HTDOCSDIR}/ocsreports"
+ doins binutils/ipdiscover-util.pl
+
+ fowners root:apache "${MY_HTDOCSDIR}/ocsreports/ipdiscover-util.pl"
+ fperms ug+x,o-rwx "${MY_HTDOCSDIR}/ocsreports/ipdiscover-util.pl"
+
+ # install snmp_com.txt
+ elog "Install snmp_com.txt"
+ insinto "${MY_HTDOCSDIR}/snmp"
+ doins etc/ocsinventory/snmp_com.txt
+
+ fowners root:apache "${MY_HTDOCSDIR}/snmp/snmp_com.txt"
+ fperms g+w,o-rwx "${MY_HTDOCSDIR}/snmp/snmp_com.txt"
+
+ webapp_server_configfile apache "etc/ocsinventory/ocsinventory-reports.conf"
+ fi
+
+ # create log dir
+ elog "Creating log dir"
+ dodir "${LOGDIR}"
+ fowners root:apache "${LOGDIR}"
+ fperms 770 "${LOGDIR}"
+
+ webapp_postinst_txt en "${FILESDIR}/postinstall-en.txt"
+
+ # call default eclass src_install
+ webapp_src_install
+}
+
+pkg_postinst () {
+
+ elog "If you want to run ocsng in this box make sure to install"
+ elog "at least mysql-4.1."
+
+ webapp_pkg_postinst
+}
next reply other threads:[~2013-07-03 18:31 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-03 18:31 Jorge Manuel B. S. Vicetto [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-10-07 22:26 [gentoo-commits] dev/jmbsvicetto:master commit in: net-analyzer/ocsng/ Jorge Manuel B. S. Vicetto
2015-01-03 0:36 Jorge Manuel B. S. Vicetto
2014-11-10 21:05 Jorge Manuel B. S. Vicetto
2014-10-09 15:48 Jorge Manuel B. S. Vicetto
2012-12-21 15:05 Jorge Manuel B. S. Vicetto
2012-03-11 2:35 Jorge Manuel B. S. Vicetto
2011-11-30 19:48 Jorge Manuel B. S. Vicetto
2011-11-28 13:43 Jorge Manuel B. S. Vicetto
2011-08-24 14:16 Jorge Manuel B. S. Vicetto
2011-04-18 2:26 Jorge Manuel B. S. Vicetto
2011-04-18 2:18 Jorge Manuel B. S. Vicetto
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1372876101.5a79553db5772309ee9a218236fd702c700d19c5.jmbsvicetto@gentoo \
--to=jmbsvicetto@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox