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: Mon, 28 Nov 2011 13:43:02 +0000 (UTC) [thread overview]
Message-ID: <bcee5399d96bdacbd985b66b177951d4267cb656.jmbsvicetto@gentoo> (raw)
commit: bcee5399d96bdacbd985b66b177951d4267cb656
Author: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 21 21:05:15 2011 +0000
Commit: Jorge Manuel B. S. Vicetto <jmbsvicetto <AT> gentoo <DOT> org>
CommitDate: Mon Nov 21 21:05:15 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=dev/jmbsvicetto.git;a=commit;h=bcee5399
[net-analyzer/ocsng] 2.0.2 version bump.
(Portage version: 2.2.0_alpha76/git/Linux x86_64, signed Manifest commit with key BB0E6E98)
---
net-analyzer/ocsng/ChangeLog | 6 +
net-analyzer/ocsng/Manifest | 30 +++---
net-analyzer/ocsng/ocsng-2.0.2.ebuild | 181 +++++++++++++++++++++++++++++++++
3 files changed, 203 insertions(+), 14 deletions(-)
diff --git a/net-analyzer/ocsng/ChangeLog b/net-analyzer/ocsng/ChangeLog
index 523e59b..d816588 100644
--- a/net-analyzer/ocsng/ChangeLog
+++ b/net-analyzer/ocsng/ChangeLog
@@ -2,6 +2,12 @@
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+*ocsng-2.0.2 (21 Nov 2011)
+
+ 21 Nov 2011; Jorge Manuel B. S. Vicetto <jmbsvicetto@gentoo.org>
+ +ocsng-2.0.2.ebuild:
+ [net-analyzer/ocsng] 2.0.2 version bump.
+
*ocsng-2.0-r1 (24 Aug 2011)
24 Aug 2011; Jorge Manuel B. S. Vicetto <jmbsvicetto@gentoo.org>
diff --git a/net-analyzer/ocsng/Manifest b/net-analyzer/ocsng/Manifest
index f3b7141..c72b1b6 100644
--- a/net-analyzer/ocsng/Manifest
+++ b/net-analyzer/ocsng/Manifest
@@ -5,28 +5,30 @@ AUX postinstall-en.txt 507 RMD160 50c522ec6205bd33bffa5c00fc86452b1065df63 SHA1
DIST OCSNG_UNIX_SERVER-1.3.1.tar.gz 1509540 RMD160 043d9165e1b4623c08925a773e6ec41ec0423614 SHA1 b04df845ac5455b245b770dee47df515b94967e1 SHA256 8727419cd5d89680c2febc4e7bf4e3a5e662653c01b82f6e5c3b0d190c44c318
DIST OCSNG_UNIX_SERVER-1.3.2.tar.gz 1513372 RMD160 201a4619ee67f674a61ce1af3ec2e3e77c390f08 SHA1 ac62694998f100f3b68b8e5174a4b46baf06db35 SHA256 cf75c3120a529c275463a76dbe787d391757487ac38f057e0ff8c7a88714761a
DIST OCSNG_UNIX_SERVER-1.3.tar.gz 1495359 RMD160 18db2c0f18bd96a9067f38179db552f099be4231 SHA1 2ce8d5a9366f6d8583b3624d0700a1014b51aff0 SHA256 b1fc29185de9070c74d67a26598767e9e7ec02127e39ce97b860d58447d2834a
+DIST OCSNG_UNIX_SERVER-2.0.2.tar.gz 1968832 RMD160 1c01482f4a4f5d3136e5973c2a4821d229e3ee11 SHA1 39d80269ef5c3283ffe506f0d41460928733d1cb SHA256 9e5f3cd87a156e3b90e577f4050d059f879178e830bd24f8cc7205f6978405e9
DIST OCSNG_UNIX_SERVER-2.0.tar.gz 6348697 RMD160 ec251d0e7416deef1332bbab81a91d91a015f74d SHA1 7a2fd0c13315cdcab966e8b810cdd262b37a7f83 SHA256 f9d2912f6e6af6b6c5bee44cab057300d11ca0907a467e8dd2da301bfd6619d9
EBUILD ocsng-1.3.1.ebuild 4790 RMD160 4bf1e9d27cab695426de2346ab45e390ae5202fb SHA1 f9617fb08d5bec9339aabd723a5e691281e3b026 SHA256 958de97a41b22003222dfe533bfcee9bf8e90b30c4c5de7baccf606841ca998f
EBUILD ocsng-1.3.2.ebuild 4961 RMD160 c77f509dffdabcaf9fbaedf2e41e84bbc87f9a29 SHA1 10f1db2103efeda11de9d052c1be77eafa6cfda0 SHA256 ebed43fd391cfeb3077190675fb430b4c7060dcf677dffad3aac335350ec23bb
EBUILD ocsng-1.3.ebuild 4775 RMD160 bf95782332efbe99106efe6713b98cfb31eff15b SHA1 ad4f5bd02a3f55e178c00068a78486fca603a66f SHA256 95f7bef4d5270b984b2b3d6bc0e6353d2c5b52842c0372daacda2d13c01057f0
EBUILD ocsng-2.0-r1.ebuild 4632 RMD160 f43e5c51cd716da5ad3152ce8b8dbbbf9c1c069a SHA1 4f2d97a1b64e183db5ad7668a4ea3f95af83547d SHA256 d80e870866b5c8c55a2c73b02e6adaaf488b7357bb2eca5f9483bf82980df384
+EBUILD ocsng-2.0.2.ebuild 4632 RMD160 f43e5c51cd716da5ad3152ce8b8dbbbf9c1c069a SHA1 4f2d97a1b64e183db5ad7668a4ea3f95af83547d SHA256 d80e870866b5c8c55a2c73b02e6adaaf488b7357bb2eca5f9483bf82980df384
EBUILD ocsng-2.0.ebuild 4972 RMD160 4733d7020dcdccb1dfef55c5eb31a44d1594a587 SHA1 5be6bd457210fbee101993bcb80481195c4b824f SHA256 94bf9ae48c8937631fa3de30a76f92e4f31f534b3bb80f9dad0cfdefb4aaaffe
-MISC ChangeLog 3330 RMD160 1a6c41a2c77be26e78065a754bf4e34fe23c638e SHA1 0136b0c94c58da8bfba1bd1f5e3053a988f36f28 SHA256 48821701011cf8ed7831a1eb83ff626cf549b75e6a7718376a1fdc69fa47c1fd
+MISC ChangeLog 3492 RMD160 ac59fdeddfef7583057f2c5855682d649a141e24 SHA1 75b32b58d1e2a8af56f2805b44660e2b013ced3d SHA256 d5885ba5c249305af989d127a25d468ea1dfa9a0af6d2df78a63e171f48334bc
MISC metadata.xml 565 RMD160 287ce4ba6ccd8fa51cea279f9eddd783eebf76ca SHA1 0d407195398c663f44b9af289252fbcbb6396aa6 SHA256 fba7af61fb555da05dcf7c3677093c8553ef821b8893214656605fd3aaf6aa9c
-----BEGI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vf/KecAoKoF9zzGFfAjv4iGNXYUd8nemMH/x/Ztfb/0v+ZJU8eu4Z
+D81f9F53s0F9s9q5vIYr+A6GQIxRqDfFNKVNbv8Ue4b6/FmVosQ2l0tehccicWEL
+wkAazjqIpbIPWqq77Le4Iam+s29fDZDbuF0tyhiqhTeJfTF8DwW20H+tw//bQCfu
+vTna3uWd2yDfE44bsY4px7SDa2hhPkQo+g0CnvJT8xQZTzR7kypitE3ypDlFbHFI
+n2PyxCPuPGJGuMd9VLKDap0v2DaQ3AjAQHARP6Xu8KF0OI2ssIQSGFNFdstY563J
+0lRRMGnGfcDDoJ4l8KE3pw8ou2n1lW2GobWjCAq9nQhScytYQ9qzuCDm8XyGcIkb
+5Y42D/H42myY+18ge+HW1SnbTYW0aTHgBgOaUE2TWH4YLOfHBqCGFHLDW/zwVAY7
+3LvF09gVxjR82ipUAAbZ
+=yXVw
-----END PGP SIGNATURE-----
diff --git a/net-analyzer/ocsng/ocsng-2.0.2.ebuild b/net-analyzer/ocsng/ocsng-2.0.2.ebuild
new file mode 100644
index 0000000..7d2ed9a
--- /dev/null
+++ b/net-analyzer/ocsng/ocsng-2.0.2.ebuild
@@ -0,0 +1,181 @@
+# Copyright 1999-2011 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="
+ dev-lang/perl
+ comm? ( sys-devel/make )
+ app-admin/webapp-config
+"
+RDEPEND="${DEPEND}
+ >=dev-perl/Apache-DBI-0.93
+ >=dev-perl/DBI-1.40
+ >=dev-perl/DBD-mysql-2.9004
+ >=dev-perl/XML-Simple-2.12
+ >=dev-perl/Net-IP-1.21
+ 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-2011 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:[~2011-11-28 13:43 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-28 13:43 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
2013-07-03 18:31 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-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=bcee5399d96bdacbd985b66b177951d4267cb656.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