diff options
author | 2010-06-04 17:24:51 +0000 | |
---|---|---|
committer | 2010-10-16 14:57:06 +0000 | |
commit | aa2e2495748667b1536198c736bdf92dbdcbe4d8 (patch) | |
tree | a31051b176ba50ed15f69505dfb18719918b15fc /net-analyzer | |
parent | Bumped glpi to the 0.72.4 version. (diff) | |
download | jmbsvicetto-aa2e2495748667b1536198c736bdf92dbdcbe4d8.tar.gz jmbsvicetto-aa2e2495748667b1536198c736bdf92dbdcbe4d8.tar.bz2 jmbsvicetto-aa2e2495748667b1536198c736bdf92dbdcbe4d8.zip |
Bumped ocsng to the 1.3.2 release.
Diffstat (limited to 'net-analyzer')
-rw-r--r-- | net-analyzer/ocsng/ChangeLog | 6 | ||||
-rw-r--r-- | net-analyzer/ocsng/Manifest | 4 | ||||
-rw-r--r-- | net-analyzer/ocsng/ocsng-1.3.2.ebuild | 182 |
3 files changed, 191 insertions, 1 deletions
diff --git a/net-analyzer/ocsng/ChangeLog b/net-analyzer/ocsng/ChangeLog index 4baeb8b..3921d90 100644 --- a/net-analyzer/ocsng/ChangeLog +++ b/net-analyzer/ocsng/ChangeLog @@ -2,6 +2,12 @@ # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ +*ocsng-1.3.2 (04 Jun 2010) + + 04 Jun 2010; Jorge Manuel B. S. Vicetto <jmbsvicetto@gentoo.org> + +ocsng-1.3.2.ebuild: + Bumped ocsng to the 1.3.2 release. + *ocsng-1.3.1 (02 Mar 2010) 02 Mar 2010; Jorge Manuel B. S. Vicetto <jmbsvicetto@gentoo.org> diff --git a/net-analyzer/ocsng/Manifest b/net-analyzer/ocsng/Manifest index d5de70e..9144bb5 100644 --- a/net-analyzer/ocsng/Manifest +++ b/net-analyzer/ocsng/Manifest @@ -2,9 +2,11 @@ AUX postinstall-en.txt 326 RMD160 e8d528536ea87ef87fa4b7e41c024f84893b10b0 SHA1 DIST OCSNG_LINUX_SERVER_1.01.tar.gz 6631615 RMD160 6d06ea9f4f8f4d2f487fab2bdba675fd0c47a3b2 SHA1 e7704ba24ada9495596a8bda2b8e9567642138b7 SHA256 ecc0e83e4b48a5c27382f76a1c75593b226c7e2b181d9a477f770420c5d669af DIST OCSNG_UNIX_SERVER-1.02.1.tar.gz 1488981 RMD160 83e84a56e2f716cf6c7bf7a631eb55b4e3182dda SHA1 f1387d4993ad7cd887d52f6d945110b209711fb5 SHA256 4fcea18ff0955b57064dfd9cfe3333ee7876c08bd0221381509c7c2aaa9c5699 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 EBUILD ocsng-1.01.ebuild 5000 RMD160 492cf52e4b0daacd4f44d5bdbf22922feac5fd70 SHA1 2d60dfdc71afad5a37ecb200b75a1bf6dcdefff8 SHA256 8c3267062b58f5d365bedb522b345f4a7f5ea341ef322121db871b14f6e4a288 EBUILD ocsng-1.02.1.ebuild 4733 RMD160 a9b946cae0fce0e0a2ede758912ff00d6614635b SHA1 8023c1bd3356e4c557ae060848e28876bed2acc5 SHA256 8856b5a29d0c8ac20f84c0c1f8fcb694b8c4e485cdcb8cfd41908a0abe01b16c EBUILD ocsng-1.3.1.ebuild 4787 RMD160 a8fbeb97b4c0667d76c0d88a21257d2a04df8ba5 SHA1 5c8bf61bf1633bab8ee14744d97f9045a7be5253 SHA256 7548b10d458559a60715b952eea737829f3e4a43e48d519398b6ec82717ac317 +EBUILD ocsng-1.3.2.ebuild 4772 RMD160 c50d48dd098ba210c54ecd78f119dbf58b8fd366 SHA1 b317f299de5a227fd216132aa34df16db886c8c9 SHA256 75015279a790f789538fc76d7623112ee8f268290c08a30bd40ac3af1373e609 EBUILD ocsng-1.3.ebuild 4772 RMD160 62dc8bc38754379a707ec1b7804e698b215039a1 SHA1 e9f9cba9d70d220f4ab624b438877401a544a50a SHA256 6e3a7f7a86cc9a6871148a4c776d16dbd271c34b46fbfe61404b5e3079681002 -MISC ChangeLog 1569 RMD160 f2826986fa06621aca6deb0da718fac1bf6bf64e SHA1 14d04ee5edd8bd208cac6e1e705e8f4754bfb6b2 SHA256 63a6ce89da0abb47482d2a322ef3e3f6f4bc27dfaf13293b31a46562fd58e299 +MISC ChangeLog 1725 RMD160 0a21ae82d678f1eff776554b4ad245b750165003 SHA1 7296434d9aed97a36042b4d3da9a9e1d4d3e6167 SHA256 c68ebfa9c5abf1bc27d2bd81db3c78cb8911cf30aa153033480e8dc3c08a19b8 diff --git a/net-analyzer/ocsng/ocsng-1.3.2.ebuild b/net-analyzer/ocsng/ocsng-1.3.2.ebuild new file mode 100644 index 0000000..8ac1424 --- /dev/null +++ b/net-analyzer/ocsng/ocsng-1.3.2.ebuild @@ -0,0 +1,182 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="2" + +inherit depend.php eutils webapp + +MY_P="OCSNG_UNIX_SERVER-${PV}" +MY_PV="1.3" +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}/${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}" +LOGDIR="/var/log/ocsng" + +DEPEND=" + comm? ( sys-devel/make ) + app-admin/webapp-config +" + +RDEPEND="${DEPEND} + dev-lang/perl + >=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? ( + virtual/php + ) + logrotate? ( app-admin/logrotate ) +" + +pkg_setup() { + + # call default eclass pkg_setup + webapp_pkg_setup + + # php must be built with mysql and xml support + require_php_with_use mysql xml + + if ! ( use admin || use comm ); then + + # Warn user we will install the comm server + elog "As you haven't specified any role for the server, we will install" + elog "the communication server for ocs-ng." + elog "If you don't want this role or want other roles, set the corresponding" + elog "admin or comm use flags." + fi +} + +src_compile() { + + if ( use comm || ! ( use admin || use comm )); then + + pushd "Apache" + perl Makefile.PL || die "perl Makefile.PL failed" + emake || die "emake failed" + popd + fi +} + +src_install() { + + # call default eclass src_preinst + webapp_src_preinst + + fowners root:apache "${MY_HTDOCSDIR}" + fperms g-w,o-rwx "${MY_HTDOCSDIR}" + + if ( use comm || ! ( use admin || 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-2010 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 ocsreports and download dirs and copy files + elog "Creating ${MY_HTDOCSDIR}/download and copying files" + dodir "${MY_HTDOCSDIR}/download" || die "Unable to create ${MY_HTDOCSDIR}/download" + insinto "${MY_HTDOCSDIR}" + doins -r ocsreports + dodir "${MY_HTDOCSDIR}/ocsreports/ipd" || die "Unable to create ${MY_HTDOCSDIR}/ocsreports/ipd" + + webapp_serverowned -R "${MY_HTDOCSDIR}/download" + webapp_serverowned -R "${MY_HTDOCSDIR}/ocsreports" + + # set ownership and permissions + elog "Set ownership of download and ocsreports" + fowners -R root:apache "${MY_HTDOCSDIR}/download" + fperms -R g-w,o-rwx "${MY_HTDOCSDIR}/download" + fperms g+w "${MY_HTDOCSDIR}/download" + 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 + fperms -R g+w "${MY_HTDOCSDIR}/ocsreports/ipd" + + # 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 "${MY_HTDOCSDIR}/ocsreports/ipdiscover-util.pl" + + 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 +} |