From c034088ab4b2822f2271131dfd22e56baa966b67 Mon Sep 17 00:00:00 2001 From: geos_one Date: Sat, 29 Jan 2011 09:22:06 +0000 Subject: [PATCH] app-admin/pulse2-web-core: initial version of the new pulse2 web package (Portage version: 2.2.0_alpha19-r1/svn/Linux x86_64, RepoMan options: --force) git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/mds@2820 6952d904-891a-0410-993b-d76249ca496b --- app-admin/pulse2-web-core/ChangeLog | 8 ++ app-admin/pulse2-web-core/Manifest | 4 +- .../files/pulse2-1.3.0-makefile-1.patch | 96 +++++++++++++++++++ .../pulse2-web-core-1.3.0.ebuild | 7 +- 4 files changed, 113 insertions(+), 2 deletions(-) create mode 100644 app-admin/pulse2-web-core/ChangeLog create mode 100644 app-admin/pulse2-web-core/files/pulse2-1.3.0-makefile-1.patch diff --git a/app-admin/pulse2-web-core/ChangeLog b/app-admin/pulse2-web-core/ChangeLog new file mode 100644 index 0000000..a5df7e8 --- /dev/null +++ b/app-admin/pulse2-web-core/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for app-admin/pulse2-web-core +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 29 Jan 2011; Mario Fetka + pulse2-web-core-1.3.0.ebuild, +files/pulse2-1.3.0-makefile-1.patch: + initial version of the new pulse2 web package + diff --git a/app-admin/pulse2-web-core/Manifest b/app-admin/pulse2-web-core/Manifest index e5ba7d1..929e49c 100644 --- a/app-admin/pulse2-web-core/Manifest +++ b/app-admin/pulse2-web-core/Manifest @@ -1,3 +1,5 @@ +AUX pulse2-1.3.0-makefile-1.patch 3319 RMD160 b090905ce53d947f81546f46b3a4801330f99170 SHA1 7202f016a748ea065496e0e55e51842ce8eddb64 SHA256 a50b247a5bcce844e26461f42b5d0d514514af0c2acf14367b773e30baa10219 DIST pulse2-1.3.0.tar.gz 12817762 RMD160 c909016d681aff9f0ec19b129619153ded321782 SHA1 a325a7f1913fa0bc7ec15dfd7e999c4f7050e51d SHA256 12c4b4e06aca4a20da3bcf8ce19399ff04723854798e16c368954a4ee961c5cf -EBUILD pulse2-web-core-1.3.0.ebuild 877 RMD160 aa2ab5e4fb2981d460e735ff5ab2cea93d84fac1 SHA1 c0a108a216c05093d50de9bcaaa4bf780ed916b9 SHA256 36529780282e304e2d9c2ad8793c1a13c9bb67dd965145ea8eacf809486dad91 +EBUILD pulse2-web-core-1.3.0.ebuild 949 RMD160 471a50732758d7f40f4a2f42f34f301d69232d30 SHA1 473f91cf6ad05efd6e46f180ad8efe44526f8d3c SHA256 e0c783bdb7285d8aaf3fad2158eaec870b2e54d3655e4699c3c388204875cb3c +MISC ChangeLog 296 RMD160 4d13ca72580fb9e5cf710d66bc45b32990ca11d6 SHA1 d093696907e81724763c05a4a7ea71d505eec7e7 SHA256 7cf6f0d82a6cd478476fec6856ffc69553d00edf0bb1747a66126b1d3bc237ce MISC metadata.xml 226 RMD160 bebcbe7a5e3d2be83c25e006192f71ebf45abb14 SHA1 ec2b713fc2363b8c51e9c164d0802eeb59d9d296 SHA256 a9d3f7df2362a9a7ddcbe05c5d97d726eeb4bab135b21643508149a08bf6a2b2 diff --git a/app-admin/pulse2-web-core/files/pulse2-1.3.0-makefile-1.patch b/app-admin/pulse2-web-core/files/pulse2-1.3.0-makefile-1.patch new file mode 100644 index 0000000..094d796 --- /dev/null +++ b/app-admin/pulse2-web-core/files/pulse2-1.3.0-makefile-1.patch @@ -0,0 +1,96 @@ +diff -uNr pulse2-1.3.0.orig//web/Makefile pulse2-1.3.0/web/Makefile +--- pulse2-1.3.0.orig//web/Makefile 1970-01-01 01:00:00.000000000 +0100 ++++ pulse2-1.3.0/web/Makefile 2011-01-29 09:25:31.000000000 +0100 +@@ -0,0 +1,60 @@ ++# Copyright (C) 2006, Adam Cecile for Linbox FAS ++# Copyright (C) 2006, Jerome Wax for Linbox FAS ++# Copyright (C) 2006, Cedric Delfosse for Linbox FAS ++# ++# This program is free software; you can redistribute it and/or modify ++# it under the terms of the GNU General Public License as published by ++# the Free Software Foundation; either version 2 of the License, or ++# (at your option) any later version. ++# ++# This program is distributed in the hope that it will be useful, ++# but WITHOUT ANY WARRANTY; without even the implied warranty of ++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++# GNU General Public License for more details. ++# ++# You should have received a copy of the GNU General Public License ++# along with this program; if not, write to the Free Software ++# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ++ ++ ++ ++# General Makefile variables ++DESTDIR = ++PREFIX = /usr/local ++DATADIR = $(PREFIX)/share/mmc ++INSTALL = $(shell which install) ++CP = $(shell which cp) ++CHOWN = $(shell which chown) ++CHGRP = $(shell which chgrp) ++SED = $(shell which sed) ++RM = $(shell which rm) ++ ++FILESTOINSTALL = modules ++ ++# Default target ++all: ++ ++clean_mo: ++ sh scripts/clean_mo.sh ++ ++build_mo: ++ sh scripts/build_mo.sh ++ ++build_pot: ++ sh scripts/build_pot.sh ++ ++clean: clean_mo ++ ++install: build_mo ++ @echo "" ++ @echo "Installing pulse2-web in $(DESTDIR)$(DATADIR)" ++ $(INSTALL) -d -m 755 -o root -g root $(DESTDIR)$(DATADIR) ++ $(CP) -R $(FILESTOINSTALL) $(DESTDIR)$(DATADIR) ++ $(CHOWN) -R root $(DESTDIR)$(DATADIR) ++ $(CHGRP) -R root $(DESTDIR)$(DATADIR) ++ find $(DESTDIR)$(DATADIR) -type f -name *.po[t] -exec rm -f {} \; ++ ++$(RELEASES_DIR)/$(TARBALL_GZ): ++ mkdir -p $(RELEASES_DIR)/$(TARBALL) ++ $(CPA) $(FILESTOINSTALL) $(RELEASES_DIR)/$(TARBALL) ++ cd $(RELEASES_DIR) && tar -czf $(TARBALL_GZ) $(EXCLUDE_FILES) $(TARBALL); rm -rf $(TARBALL); +diff -uNr pulse2-1.3.0.orig//web/scripts/build_pot.sh pulse2-1.3.0/web/scripts/build_pot.sh +--- pulse2-1.3.0.orig//web/scripts/build_pot.sh 2011-01-29 09:09:53.000000000 +0100 ++++ pulse2-1.3.0/web/scripts/build_pot.sh 2011-01-29 09:46:25.000000000 +0100 +@@ -16,17 +16,17 @@ + # along with this program; if not, write to the Free Software + # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +- +-POT="pulse2/locale/pulse2.pot" +- +-rm ${POT} +-touch ${POT} +-find . -iname "*.php" -exec xgettext -C -j -o ${POT} --language=PHP --keyword=_T {} \; +- +-for name in `find ${1} -type f -name *.po`; do +- echo -n "updating ${name}..." +- msgmerge --update --add-location --sort-output ${name} ${POT} +- echo "done" ++for module in dyngroup glpi imaging inventory msc pkgs pulse2; do ++ POT="modules/$module/locale/$module.pot" ++ rm -f ${POT} ++ touch ${POT} ++ find modules/$module -iname "*.php" -exec xgettext -C -j -o ${POT} --language=PHP --keyword=_T {} \; ++ for name in `find modules/$module/locale -type f -name *.po`; do ++ echo -n "updating ${name}..." ++ msgmerge --update --add-location --sort-output ${name} ${POT} ++ echo "done" ++ done ++ + done + + exit 0 diff --git a/app-admin/pulse2-web-core/pulse2-web-core-1.3.0.ebuild b/app-admin/pulse2-web-core/pulse2-web-core-1.3.0.ebuild index a04a750..57e3593 100644 --- a/app-admin/pulse2-web-core/pulse2-web-core-1.3.0.ebuild +++ b/app-admin/pulse2-web-core/pulse2-web-core-1.3.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2010 Gentoo Foundation +# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ @@ -33,6 +33,11 @@ need_php_httpd S="${WORKDIR}/pulse2-${PV}/web" +src_prepare() { + epatch "${FILESDIR}"/pulse2-1.3.0-makefile-1.patch +} + + src_install() { emake DESTDIR="${D}" PREFIX=/usr install || die "install failed" }