summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Rüger <mrueg@gentoo.org>2015-03-14 00:10:18 +0000
committerManuel Rüger <mrueg@gentoo.org>2015-03-14 00:10:18 +0000
commit4497f0666f166ee1158f05ccf517182994986179 (patch)
tree3ea39838c00d417cfc05bcf36efe0a1f9adf3adb /www-apps
parentRemove old. (diff)
downloadhistorical-4497f0666f166ee1158f05ccf517182994986179.tar.gz
historical-4497f0666f166ee1158f05ccf517182994986179.tar.bz2
historical-4497f0666f166ee1158f05ccf517182994986179.zip
Remove old.
Package-Manager: portage-2.2.18/cvs/Linux x86_64
Diffstat (limited to 'www-apps')
-rw-r--r--www-apps/mod_survey/ChangeLog7
-rw-r--r--www-apps/mod_survey/Manifest15
-rw-r--r--www-apps/mod_survey/mod_survey-3.2.4.ebuild97
-rw-r--r--www-apps/redmine/ChangeLog7
-rw-r--r--www-apps/redmine/Manifest14
-rw-r--r--www-apps/redmine/redmine-2.4.5.ebuild210
6 files changed, 12 insertions, 338 deletions
diff --git a/www-apps/mod_survey/ChangeLog b/www-apps/mod_survey/ChangeLog
index cb19f4173e1f..a4a4e8bec90e 100644
--- a/www-apps/mod_survey/ChangeLog
+++ b/www-apps/mod_survey/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for www-apps/mod_survey
-# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-apps/mod_survey/ChangeLog,v 1.8 2014/08/10 20:13:58 slyfox Exp $
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/mod_survey/ChangeLog,v 1.9 2015/03/14 00:10:13 mrueg Exp $
+
+ 14 Mar 2015; Manuel Rüger <mrueg@gentoo.org> -mod_survey-3.2.4.ebuild:
+ Remove old.
10 Aug 2014; Sergei Trofimovich <slyfox@gentoo.org> mod_survey-3.2.4.ebuild,
mod_survey-3.2.5.ebuild:
diff --git a/www-apps/mod_survey/Manifest b/www-apps/mod_survey/Manifest
index 6ca2ef5438e1..aa9158473733 100644
--- a/www-apps/mod_survey/Manifest
+++ b/www-apps/mod_survey/Manifest
@@ -1,22 +1,9 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA256
-
AUX 98_mod_survey.conf 4327 SHA256 b55acb2bec39e3875d68e2e30b02720a72889fef26e20d7a17ad89a5780a64f2 SHA512 37c6b7eb96eafa32ea3eb67d1c74f9139d81f2a9b8bc08ccbd40b7f1c94479e9a6f7ac1bff593238567be352fe1b39f8da8bdac40ea45e56bd6ca931c478b689 WHIRLPOOL 18279f90d1aa1313ee939dea574811d8085dc204392e9277691c45af3d240796136ff28e5ded142eb5f98824ba50e552e24ae072bd817024959d8cbf1463eed3
AUX language-list.txt 15 SHA256 8390c1de74985e4afe829a5d872796e83ce732503a789a74b2fd22e345facffa SHA512 7705f67769e9b128f314b091215fab1654c50b1fc9d2305b4771c8141699920c9578a1b1dc40caf76e0915beb926876c1fdd42306f031bbbf5cea6086c839938 WHIRLPOOL aae0f8934d4bbb1c5561abaa8a5657eb9f87f59cc30ed8bd5982f340527317c340d41b9269b8386bd3fdb6843b0b0f117587d631a6757ae79b1270a27d1751af
AUX postinstall-en.txt 158 SHA256 d879718ca7eafb8b61f86f00d2f9360be231e27f4d762688b371d5d113697c4a SHA512 3ab80ff0fa4ccdec9707cae97ac2c47c556f93e93d321864463d2e957821542d0bd1a1465036e50636078baf2caa012cd109e25525b8387599a03c49013cf9d5 WHIRLPOOL 90fde916679a53c57d02ce64d2b2a383fc671b27523747f4010540432efd170c63c8643866cb55e4d5c22c9dcd9338d5e8f59ee4391b1dea36e231a0e037837a
AUX reconfig 304 SHA256 40f8ddfd701c7be72dbe0346fe57484f39b9cd65c8d3de18b5ceabb57cd12216 SHA512 4a836365109edc6172ee85a883c592f9e9778260f80ea1878c6fe4fda5dba5d830ae353de63cfcaa4753b9b1d527001cbf25882995e5bd5b78404488dbeaeae0 WHIRLPOOL a44ddae064b7c443ce945ed899ddcc1203c09738e3bbe48d2426d9a5987ef34130bd281c4fd664156be448c877f2ab053eefe1470c54df03c9b82c300a8c4de0
-DIST modsurvey-3.2.4.tgz 496604 SHA256 6130501fb6f39817fe842a613f9b2770519c59fed060b16447f1d75345aa14af
DIST modsurvey-3.2.5.tgz 508271 SHA256 5ad6f0de509e09a6842e3a56372f40122800397befed10dd78b37c4c0676e47b
-DIST modsurvey-docs-3.2.4.tgz 678356 SHA256 53c0e0d4335ded221c30fa52c4202793b86aef370d7b92341fb4fcaac12c1fd6
DIST modsurvey-docs-3.2.5.tgz 678356 SHA256 53c0e0d4335ded221c30fa52c4202793b86aef370d7b92341fb4fcaac12c1fd6
-EBUILD mod_survey-3.2.4.ebuild 2858 SHA256 6458de61a1f5725cfe84ddff88c68095789d52b35adda751c104c0d20d2202ec SHA512 61a1ba11cbd8544e2aca672df9a8c79b0b92e6776ee49ed46b64e6caa2bd7c4c90c4344a12ff0f5b9c9f0ec2ad777c39d96d2503cffa9437b6350bea32c6aea0 WHIRLPOOL df62e32e0ddfdd5b4d560485564e28bf72039096549a68feecd0bd897dc8c926949856a08873cbd6b09295cab52132a7925e75e4373f8dd7e7403c05c3046a54
EBUILD mod_survey-3.2.5.ebuild 2455 SHA256 1475e955231836f099e792f896146112bef57699e12463e978472b03df96ac83 SHA512 4b0e2e572aecaa63b46e6e7d0c75689dbf054ee88ee7b184d0fbd973ee21e0722259f0b7866ff16056f9de3540f63e28513c47f857f9acc8e89fba8dfb54d5d3 WHIRLPOOL 43a7ec780416c09526010571cb883d30c191445a083aafefafe8e2bd63cc97ae52d7a3a30b49b5a0e1ae0d373393ad5245fbf66fa2bc865b8c92be21f2ca4ebb
-MISC ChangeLog 3971 SHA256 3e0b2832a1be1aefa5ff519a73edd473960fe5353d744e5793a394683c2ffc7a SHA512 53a3ba66e2d0da3730a24e2deda9cf38a0a40bbfa52ec7134c3d57a6d76800ae4f1ab5748693aa4c4a74f4a269ada7e5e3e1f439f50939c170dad4bb7f2a2e8b WHIRLPOOL acd7bfe036f5ec49e2853e70c3fca3883b124b39ad75f14e99ebae4abcc946f8be26520d62775095571ad9567cb6688f16795281e881a5895221cf24c08411af
+MISC ChangeLog 4059 SHA256 8a3bc817c2eb97920f710f4d244ee1ccc515ab8b19710fbe35da9a562d30e93f SHA512 6b74327a3536d353a5468d84fcf585ce1bc971abaefa7b0332009cbe2ae09687147c94eac669fad67f896dda539fc94c4069334dcec744d683288e3eabd6cd15 WHIRLPOOL 3a3ba33d6047f654c5823b5a4057b1d5914805baf7c03e415456d8151bad2f5ec473dd8f7caa8e085d5b2965e76cbf8d5573a161c072cbfcbfd91f396df4f65f
MISC metadata.xml 162 SHA256 84ff2fc6c9a4af1b9dbe32aa81ab84c2958bc1bd65a9977686df2dcab6e420d0 SHA512 550d0f517601255e5c9b120a03f1dad37a1a75bdaadad486ddbd2380a7f0dd884970400574455d34d3ba6e800d9fd21467dfb7f89ba27a0aa8a65e7a265534e3 WHIRLPOOL d50adcb067d0290aa7dfe5aebd0e8abf4939ece7afbf284920d08f2bf04f9306f0062a78cacb7572a12735ac41545440fcf138beda81cc53774950bdde495dcb
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2
-
-iEYEAREIAAYFAlPn0ocACgkQcaHudmEf86ql9ACfUojU/qYqOQIZSXh0ll2KCZok
-wIYAn3jTw+ELc8jQ+O+DIK5VuIX4d27G
-=Njco
------END PGP SIGNATURE-----
diff --git a/www-apps/mod_survey/mod_survey-3.2.4.ebuild b/www-apps/mod_survey/mod_survey-3.2.4.ebuild
deleted file mode 100644
index 5e88f88d0183..000000000000
--- a/www-apps/mod_survey/mod_survey-3.2.4.ebuild
+++ /dev/null
@@ -1,97 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-apps/mod_survey/mod_survey-3.2.4.ebuild,v 1.6 2014/08/10 20:13:58 slyfox Exp $
-
-inherit webapp
-
-WEBAPP_MANUAL_SLOT="yes"
-SLOT="0"
-
-DESCRIPTION="XML-defined web questionnaires as a plug-in module using Apache"
-HOMEPAGE="http://www.modsurvey.org"
-KEYWORDS="~amd64 ~ppc ~x86"
-IUSE="doc mysql nls postgres"
-
-# Note: sw is invalid LINGUAS value, it should be sv instead.
-# commented out since I have zero interested in sed-ing the code
-# for this screw-up.
-LANGS="en de fr it" # sv
-for i in ${LANGS} ; do
- IUSE="${IUSE} linguas_${i}"
-done
-
-MY_PN=${PN/_/}
-MY_PV=${PV/_/-}
-S=${WORKDIR}/${PN}
-SRC_URI="http://www.modsurvey.org/download/tarballs/${MY_PN}-${MY_PV}.tgz
- doc? ( http://www.modsurvey.org/download/tarballs/${MY_PN}-docs-${MY_PV}.tgz )"
-
-DEPEND=">=dev-lang/perl-5.6.1"
-RDEPEND="${DEPEND}
- >=www-apache/mod_perl-1.99
- postgres? ( >=dev-perl/DBI-1.38 dev-perl/DBD-Pg )
- mysql? ( >=dev-perl/DBI-1.38 dev-perl/DBD-mysql )
- >=virtual/perl-CGI-3.0.0"
-LICENSE="GPL-2"
-
-pkg_setup() {
- # unfortunatly, this program only allows for one lang, so only the first
- # supported entry in LINGUAS is used
- if use nls ; then
- for i in ${LINGUAS} ; do
- if has linguas_${i} ${IUSE} ; then
- if use linguas_${i} ; then
- locallang="${i}"
- ewarn "Due to the limitations of this package, it will be built"
- ewarn "only with ${i} LINGUAS support. If this is not what"
- ewarn "you intended, please place the language you desire"
- ewarn "as _first_ in the list of LINGUAS in /etc/make.conf"
- ewarn
- break
- fi
- else
- einfo "LINGUAS=${i} is not supported by ${P}"
- shift
- fi
- done
- fi
- if [[ -z ${locallang} ]] ; then
- use nls && ewarn "None of ${LINGUAS} supported, sorry. Will use English."
- locallang="en"
- fi
- webapp_pkg_setup
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- rm -f docs/LICENSE.txt
- sed "s|\$lang = \"en\"|\$lang = \"${locallang}\"|" -i installer.pl
- sed -i "s|/usr/local/mod_survey/|${D}/usr/lib/mod_survey/|g" installer.pl
- use doc && unpack ${MY_PN}-docs-${PV}.tgz
-}
-
-src_install() {
- webapp_src_preinst
-
- dodir /usr/lib/mod_survey
- dodir /var/lib/mod_survey/data
- dodir ${MY_HOSTROOTDIR}/${PN}
-
- dodoc README.txt docs/*
-
- perl installer.pl < /dev/null > /dev/null 2>&1
- dosed /usr/lib/mod_survey/survey.conf
- dosed "s|/usr/lib/mod_survey/data/|/var/lib/mod_survey/data/|" /usr/lib/mod_survey/survey.conf
-
- mv "${D}"/usr/lib/mod_survey/survey.conf "${D}"/${MY_HOSTROOTDIR}/${PN}
- rm -rf "${D}"/usr/lib/mod_survey/webroot "${D}"/usr/lib/mod_survey/data
-
- cp -R webroot/* "${D}"/${MY_HTDOCSDIR}
-
- webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
- webapp_hook_script "${FILESDIR}"/reconfig
- webapp_src_install
-
- fowners apache:apache /var/lib/mod_survey/data
-}
diff --git a/www-apps/redmine/ChangeLog b/www-apps/redmine/ChangeLog
index de56bfeba477..edc3a4a5b65c 100644
--- a/www-apps/redmine/ChangeLog
+++ b/www-apps/redmine/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for www-apps/redmine
-# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-apps/redmine/ChangeLog,v 1.45 2014/11/03 20:01:00 pva Exp $
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/redmine/ChangeLog,v 1.46 2015/03/14 00:08:00 mrueg Exp $
+
+ 14 Mar 2015; Manuel Rüger <mrueg@gentoo.org> -redmine-2.4.5.ebuild:
+ Remove old.
03 Nov 2014; Peter Volkov <pva@gentoo.org> metadata.xml:
Drop Ilya Tumaykin from maintainers per his request.
diff --git a/www-apps/redmine/Manifest b/www-apps/redmine/Manifest
index 6a240cd1bcc1..714c564b4359 100644
--- a/www-apps/redmine/Manifest
+++ b/www-apps/redmine/Manifest
@@ -1,19 +1,7 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA256
-
AUX 10_redmine_vhost.conf 343 SHA256 4067d312a5fc8e7f1f98e8917d2e9c296a70a7e9847efaf92a8415d753387435 SHA512 839a01abedd2977f79bde2a55041d4e3e3a72de1e04e2bdc4aa5169b3ec22adce12b2b39d4b991d6e034fcd13fbcd030cba5ecc69ae71a76f7f37d2cdde09edc WHIRLPOOL 7bdb8c8eb7b24b5fa7750f14a5d6d90504b9e95b1c3d07827a1bba320135ff9aca195282bcc86e6964b742cf0dde3690d79065e61fd14145135ab6ff4c10816b
AUX redmine-2.initd 1458 SHA256 fb8f37ea5b7bd3a42f2c5a7d1259776696cdc3238fb11b4ac631f699b7612720 SHA512 ad781f13445468b3e10e4833d451ce8c7280bdf8147e5b1df6ed18479b7a5c375e0087fa6a05974deab16b4fdd49925dee86762993a993840536572f3b696707 WHIRLPOOL 35f35c31b9fad331b47a36cae44c431fb64aacc25877beabd9a933b674ed840d2a4d09d4bf4e1dbce075aced0adf3810b8163f9a1a739593e65d4e5b7e1126a3
AUX redmine.confd 267 SHA256 2ac6b7dfc2d055554b7ee9380fcf1a49a708bbd866987b775507d7a3b30f2d41 SHA512 4e4a700f1540b5e82df6ca610a94adcb08929f5ca75e605e40372b18ccc395515cdd53451ba2b3e3d9bdf129d9052a7218f6323d526c1ffb2540254d279c8d94 WHIRLPOOL fd6e8c63921d7ab2d73b5b15ff91db64ead03e521325871e21a1d165e313a1e56c607e9d9553504ccdef10a917a85ecdd5502527df159012b471803f4063ea00
-DIST redmine-2.4.5.tar.gz 3883802 SHA256 bf5fde731636634b952174d0e04425f753b1a2475ab2253ceeb4631a85358eda SHA512 a748f2d2a96d5512717939b4f08396c6c2fcf93418b2475aacd70d27d8ec65e6001378a1b5ccea4b0823bd076351247655a5f9fdc211cb3947ff2173350011a7 WHIRLPOOL 950c33478c415dc5e790b2752ee5f969715c113ad467fc06111ba417fe659487faa7f27996be2f99aa40d99018d4a730c3a3f4ebc1c97cb7facb34cb81424b8d
DIST redmine-2.4.6.tar.gz 3885107 SHA256 9dd35c9f50fcd20724c328860253c78fe0155a5f58bbf90357d72d44900a7601 SHA512 722bdb4e5dd5246dfdee2819c65d024c34368d4cbb34d27a2832909b2b82f6e677e7312fa085971c6fb78c2aa4d06552d06e2314e19c4e3d0b211fcc1ec4d911 WHIRLPOOL e1b4213f7aef6d97afadde194e6f99f6d7f61a5cc9775fb8619cda6fbe2b42a3b783039fdacfa80b40d0c86fa235d397f39f0d3d37b5a7626facfd70fe058f06
-EBUILD redmine-2.4.5.ebuild 6496 SHA256 750b12c824462c4e217920cb2519ea9b0fb32f62ea5aad6be69a75a56bb5e145 SHA512 c2162e2e9e8d04d3fdf2c93252479e364f0654090a6b1ddedc77e17b83f7c15e189ae6d3c47ba6b053a1b2efe8a974202d3be62ff12f154fd25f01f056f5704a WHIRLPOOL 2a86d9a0462a6e5e34943ed2fa5b914b469700a223598ffdfa4ab7ebbf25bc98e4117a18803911bbd77f6cb48bf6a004ef24b6539657aeeea842a9d614fa305a
EBUILD redmine-2.4.6.ebuild 6237 SHA256 22d14ee7c254ddee301e49346bbbe2bd4fa7752c775836c0c86cefd1f9b34ef0 SHA512 1acf41ce62bc03eb9660bc12752a198caab431be5c935f4a826fe72f2a788e1ed4c865e14f020cad2a5ae86340348e2653ba4a404385265e8dae4d2f136c9934 WHIRLPOOL 404f2d0b2c7e95b09dd543f0c61fc26144938fdc2ed585a7585ed7182c0842b40c5f262a2c53d58d925482b677d09ba7a037038658b8fffdbcc1edaa8754e70d
-MISC ChangeLog 9181 SHA256 4f5cb74a72037ef30056328866f280e44355042c96bb6a902c5e7320a3c96ea9 SHA512 a8d7831d3f03807ed4cdee23b8299c5a7340a8d72a99d791ab1ba8bb25ee2b8152c68c4fb546e068ebdc70664b70225aeeeafa317e4a90199d5abf7821167403 WHIRLPOOL fd8d52512bfd05552ccc286451dceff26382e2424642dddf75bf4fb90132ab46cb6a3f1dc189bfddd7e5fb0379a80f8d0d8a82080d6f12f71260869e6373f176
+MISC ChangeLog 9269 SHA256 3814b4ebd58462879a42dcc4ac854c11670d0d13bdc5a98aa41638d79bb2bdff SHA512 2d4e57af048aaa3d0baff110d72fe5e59259f1c5bfb10fc445157cc35a558a36379135b7065e0ca3dad80ee083b539d8dae53084c6bcb2487470ab3c05b2dc10 WHIRLPOOL 8d4530cabfb864263160329f9a1b90f6a8efc96911fd2fa43653614239c5897296adec7e8eb303969a7bdef559db75851f2523272033494865fe2eeb320dc024
MISC metadata.xml 426 SHA256 8d24a51da2ff594fd54dabcabecfef69dbefb61b91a00222108b310af3e220b3 SHA512 470ef8fc29e5b8fe6dc52eda990f8a0e3e0374b6cd12fd7a8b86bbc99a528b659969dfe17625064b53f0a4d779eb55c3e7e527c806074cab2810c741aa6c800a WHIRLPOOL f958330a53e26bf4e6af2f04bbd96d1056e41bbe73d8279345ff32c0256a8d34fa1e1c4b1050bc145bc8b2818d4b91e3c2adfd3457ee007fb0b9393be33dc364
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2
-
-iF4EAREIAAYFAlRX3v0ACgkQGrk+8vGYmwd0BwD/bi2vydo0nbkDJMVdhN6ITZEx
-+4H9thm5px3Z0BKVT4wBAOQF5pN1DaZQatzm0yDZgRq5CV9D++A4S39CP+sf1UmW
-=iQ5w
------END PGP SIGNATURE-----
diff --git a/www-apps/redmine/redmine-2.4.5.ebuild b/www-apps/redmine/redmine-2.4.5.ebuild
deleted file mode 100644
index aced128612d3..000000000000
--- a/www-apps/redmine/redmine-2.4.5.ebuild
+++ /dev/null
@@ -1,210 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-apps/redmine/redmine-2.4.5.ebuild,v 1.1 2014/06/01 18:11:37 pva Exp $
-
-EAPI="5"
-USE_RUBY="ruby18 ruby19"
-inherit eutils depend.apache ruby-ng user
-
-DESCRIPTION="Redmine is a flexible project management web application written using Ruby on Rails framework"
-HOMEPAGE="http://www.redmine.org/"
-SRC_URI="http://www.redmine.org/releases/${P}.tar.gz"
-
-KEYWORDS="~amd64 ~x86"
-LICENSE="GPL-2"
-SLOT="0"
-# All db-related USEs are ineffective since we depend on rails
-# which depends on activerecord which depends on all ruby's db bindings
-#IUSE="ldap openid imagemagick postgres sqlite mysql fastcgi passenger"
-IUSE="ldap imagemagick fastcgi passenger"
-
-#RDEPEND="$(ruby_implementation_depend jruby '>=' -1.6.7)[ssl]"
-RDEPEND="
- ruby_targets_ruby18? (
- >=dev-ruby/fastercsv-1.5[ruby_targets_ruby18]
- )"
-
-ruby_add_rdepend "virtual/ruby-ssl
- virtual/rubygems
- >=dev-ruby/rails-3.2.13:3.2
- >=dev-ruby/jquery-rails-2.0.2
- dev-ruby/i18n:0.6
- >=dev-ruby/coderay-1.0.9
- dev-ruby/builder:3
- dev-ruby/rake
- ldap? ( >=dev-ruby/ruby-net-ldap-0.3.1 )
- >=dev-ruby/ruby-openid-2.3.0
- >=dev-ruby/rack-openid-0.2.1
- imagemagick? ( >=dev-ruby/rmagick-2 )
- fastcgi? ( dev-ruby/fcgi )
- passenger? ( www-apache/passenger )"
-# ruby_targets_ruby18? (
-# >=dev-ruby/fastercsv-1.5
-# postgres? ( >=dev-ruby/pg-0.11 )
-# sqlite3? ( dev-ruby/sqlite3 )
-# mysql? ( >=dev-ruby/mysql-ruby-2.8.1 )
-# )
-# ruby_targets_ruby19? (
-# postgres? ( >=dev-ruby/pg-0.11 )
-# sqlite3? ( dev-ruby/sqlite3 )
-# mysql? ( dev-ruby/mysql2:0.3 )
-# )
-# ruby_targets_jruby? (
-# dev-ruby/jruby-openssl
-# >=dev-ruby/fastercsv-1.5
-# mysql? ( dev-ruby/activerecord-jdbcmysql-adapter )
-# postgres? ( dev-ruby/activerecord-jdbcpostgresql-adapter )
-# sqlite3? ( dev-ruby/activerecord-jdbcsqlite3-adapter )
-# )
-
-#ruby_add_bdepend ">=dev-ruby/rdoc-2.4.2
-# dev-ruby/yard
-# test? (
-# >=dev-ruby/shoulda-3.3.2
-# >=dev-ruby/mocha-0.13.3
-# >=dev-ruby/capybara-2.0.0
-# <dev-ruby/nokogiri-1.6.0
-# )"
-
-REDMINE_DIR="/var/lib/${PN}"
-
-pkg_setup() {
- enewgroup redmine
- enewuser redmine -1 -1 "${REDMINE_DIR}" redmine
-}
-
-all_ruby_prepare() {
- rm -r log files/delete.me || die
-
- # bug #406605
- rm .gitignore .hgignore || die
-
- rm Gemfile config/preinitializer.rb || die
-
- echo "CONFIG_PROTECT=\"${EPREFIX}${REDMINE_DIR}/config\"" > "${T}/50${PN}"
- echo "CONFIG_PROTECT_MASK=\"${EPREFIX}${REDMINE_DIR}/config/locales ${EPREFIX}${REDMINE_DIR}/config/settings.yml\"" >> "${T}/50${PN}"
-
- # remove ldap staff module if disabled to avoid #413779
- use ldap || rm app/models/auth_source_ldap.rb || die
-}
-
-all_ruby_install() {
- dodoc doc/{CHANGELOG,INSTALL,README_FOR_APP,RUNNING_TESTS,UPGRADING}
- rm -fr doc || die
- dodoc README.rdoc
- rm README.rdoc || die
-
- keepdir /var/log/${PN}
- dosym /var/log/${PN}/ "${REDMINE_DIR}/log"
-
- insinto "${REDMINE_DIR}"
- doins -r .
- keepdir "${REDMINE_DIR}/files"
- keepdir "${REDMINE_DIR}/public/plugin_assets"
-
- fowners -R redmine:redmine \
- "${REDMINE_DIR}/config" \
- "${REDMINE_DIR}/files" \
- "${REDMINE_DIR}/public/plugin_assets" \
- "${REDMINE_DIR}/tmp" \
- /var/log/${PN}
-
- fowners redmine:redmine "${REDMINE_DIR}"
-
- # protect sensitive data, see bug #406605
- fperms -R go-rwx \
- "${REDMINE_DIR}/config" \
- "${REDMINE_DIR}/files" \
- "${REDMINE_DIR}/tmp" \
- /var/log/${PN}
-
- if use passenger; then
- has_apache
- insinto "${APACHE_VHOSTS_CONFDIR}"
- doins "${FILESDIR}/10_redmine_vhost.conf"
- else
- newconfd "${FILESDIR}/${PN}.confd" ${PN}
- newinitd "${FILESDIR}/${PN}-2.initd" ${PN}
- fi
- doenvd "${T}/50${PN}"
-}
-
-pkg_postinst() {
- einfo
- if [ -e "${EPREFIX}${REDMINE_DIR}/config/initializers/session_store.rb" -o -e "${EPREFIX}${REDMINE_DIR}/config/initializers/secret_token.rb" ]; then
- elog "Execute the following command to upgrade environment:"
- elog
- elog "# emerge --config \"=${CATEGORY}/${PF}\""
- elog
- elog "For upgrade instructions take a look at:"
- elog "http://www.redmine.org/wiki/redmine/RedmineUpgrade"
- else
- elog "Execute the following command to initlize environment:"
- elog
- elog "# cd ${EPREFIX}${REDMINE_DIR}"
- elog "# cp config/database.yml.example config/database.yml"
- elog "# \${EDITOR} config/database.yml"
- elog "# chown redmine:redmine config/database.yml"
- elog "# emerge --config \"=${CATEGORY}/${PF}\""
- elog
- elog "Installation notes are at official site"
- elog "http://www.redmine.org/wiki/redmine/RedmineInstall"
- fi
- einfo
-}
-
-pkg_config() {
- if [ ! -e "${EPREFIX}${REDMINE_DIR}/config/database.yml" ]; then
- eerror "Copy ${EPREFIX}${REDMINE_DIR}/config/database.yml.example to ${EPREFIX}${REDMINE_DIR}/config/database.yml"
- eerror "then edit this file in order to configure your database settings for \"production\" environment."
- die
- fi
-
- local RAILS_ENV=${RAILS_ENV:-production}
- if [ ! -L /usr/bin/ruby ]; then
- eerror "/usr/bin/ruby is not a valid symlink to any ruby implementation."
- eerror "Please update it via `eselect ruby`"
- die
- fi
- local RUBY=${RUBY:-ruby}
-
- cd "${EPREFIX}${REDMINE_DIR}" || die
- if [ -e "${EPREFIX}${REDMINE_DIR}/config/initializers/session_store.rb" ]; then
- einfo
- einfo "Generating secret token."
- einfo
- rm config/initializers/session_store.rb || die
- RAILS_ENV="${RAILS_ENV}" ${RUBY} -S rake generate_secret_token || die
- fi
- if [ -e "${EPREFIX}${REDMINE_DIR}/config/initializers/secret_token.rb" ]; then
- einfo
- einfo "Upgrading database."
- einfo
-
- einfo "Migrating database."
- RAILS_ENV="${RAILS_ENV}" ${RUBY} -S rake db:migrate || die
- einfo "Upgrading the plugin migrations."
- RAILS_ENV="${RAILS_ENV}" ${RUBY} -S rake redmine:plugins:migrate || die
- einfo "Clear the cache and the existing sessions."
- ${RUBY} -S rake tmp:cache:clear || die
- ${RUBY} -S rake tmp:sessions:clear || die
- else
- einfo
- einfo "Initializing database."
- einfo
-
- einfo "Generating a session store secret."
- ${RUBY} -S rake generate_secret_token || die
- einfo "Creating the database structure."
- RAILS_ENV="${RAILS_ENV}" ${RUBY} -S rake db:migrate || die
- einfo "Populating database with default configuration data."
- RAILS_ENV="${RAILS_ENV}" ${RUBY} -S rake redmine:load_default_data || die
- chown redmine:redmine "${EPREFIX}${REDMINE_DIR}"/log/production.log
- einfo
- einfo "If you use sqlite3, please do not forget to change the ownership of the sqlite files."
- einfo
- einfo "# cd \"${EPREFIX}${REDMINE_DIR}\""
- einfo "# chown redmine:redmine db/ db/*.sqlite3"
- einfo
- fi
-}