diff options
author | Jeremy Huddleston <eradicator@gentoo.org> | 2006-06-05 07:09:12 +0000 |
---|---|---|
committer | Jeremy Huddleston <eradicator@gentoo.org> | 2006-06-05 07:09:12 +0000 |
commit | 7071efae92ce1e209bc676553abbee5978d3e1c2 (patch) | |
tree | 17a869132364547df3ce916347ec1e5913fc4ef1 /www-apps/open-xchange | |
parent | Version bump and updates from Martin in bug #62197. (diff) | |
download | gentoo-2-7071efae92ce1e209bc676553abbee5978d3e1c2.tar.gz gentoo-2-7071efae92ce1e209bc676553abbee5978d3e1c2.tar.bz2 gentoo-2-7071efae92ce1e209bc676553abbee5978d3e1c2.zip |
Version bump and updates from Martin in bug #62197.
(Portage version: 2.1_rc4-r1)
(Signed Manifest commit)
Diffstat (limited to 'www-apps/open-xchange')
7 files changed, 43 insertions, 1217 deletions
diff --git a/www-apps/open-xchange/Manifest b/www-apps/open-xchange/Manifest index 4068976af8d8..9028c5c418ab 100644 --- a/www-apps/open-xchange/Manifest +++ b/www-apps/open-xchange/Manifest @@ -1,53 +1,61 @@ -AUX 88_mod_jk.ox.conf 1228 RMD160 ac45be1d0824ab54728d5a304b59d5824297c974 SHA1 33e76d4dd9c2e5c719dc51e00248ed399cbac566 SHA256 f62c842769c9675968e9d1f3d6469315cf18b1802049e57d1dbfb39f66725a9a size 1228 +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX 88_mod_jk.ox.conf 1228 RMD160 ac45be1d0824ab54728d5a304b59d5824297c974 SHA1 33e76d4dd9c2e5c719dc51e00248ed399cbac566 SHA256 f62c842769c9675968e9d1f3d6469315cf18b1802049e57d1dbfb39f66725a9a MD5 cfa72c4f5e62b779052acf1cd629234b files/88_mod_jk.ox.conf 1228 RMD160 ac45be1d0824ab54728d5a304b59d5824297c974 files/88_mod_jk.ox.conf 1228 SHA256 f62c842769c9675968e9d1f3d6469315cf18b1802049e57d1dbfb39f66725a9a files/88_mod_jk.ox.conf 1228 -AUX init.d.open-xchange 1877 RMD160 47fb7e7bc7e3325bae0fbfd33121de9cf58bd78e SHA1 2a7e07648c4fb3b6df851713c9b82daa66a4d6cd SHA256 2645eece4eed70079736c892efdea50bf448907cd116415d9c593a50245e97e5 size 1877 +AUX init.d.open-xchange 1877 RMD160 47fb7e7bc7e3325bae0fbfd33121de9cf58bd78e SHA1 2a7e07648c4fb3b6df851713c9b82daa66a4d6cd SHA256 2645eece4eed70079736c892efdea50bf448907cd116415d9c593a50245e97e5 MD5 5388f979621c5e4d333aef5cd37f0062 files/init.d.open-xchange 1877 RMD160 47fb7e7bc7e3325bae0fbfd33121de9cf58bd78e files/init.d.open-xchange 1877 SHA256 2645eece4eed70079736c892efdea50bf448907cd116415d9c593a50245e97e5 files/init.d.open-xchange 1877 -AUX open-xchange-0.8.1.2-login.patch 638 RMD160 0bf05c78eb72e6c591c878c1884bbb7abec7933f SHA1 63517f484e61bb9c1a426c56822efb9cedf8c91d SHA256 b2fbc697b30815f6f8cb435a1707e1d5db5fe7d71b958ef065328adb4c5655cf size 638 -MD5 b9bb53f0dd8125a862c1cbc45ab7c06f files/open-xchange-0.8.1.2-login.patch 638 -RMD160 0bf05c78eb72e6c591c878c1884bbb7abec7933f files/open-xchange-0.8.1.2-login.patch 638 -SHA256 b2fbc697b30815f6f8cb435a1707e1d5db5fe7d71b958ef065328adb4c5655cf files/open-xchange-0.8.1.2-login.patch 638 -AUX open-xchange-0.8.1.5-oxFolder.patch 676 RMD160 e90b70fad2e3d874a6a4de425821a3f3c52d63d6 SHA1 05d4aa555b0e4eb03117000807d28d4094843e93 SHA256 b58324ffcec78ec09db0c67dc641c06c13322f560fd961807e36144e8d5c241e size 676 -MD5 f7cf85b70e2c9930e965a10daf42d695 files/open-xchange-0.8.1.5-oxFolder.patch 676 -RMD160 e90b70fad2e3d874a6a4de425821a3f3c52d63d6 files/open-xchange-0.8.1.5-oxFolder.patch 676 -SHA256 b58324ffcec78ec09db0c67dc641c06c13322f560fd961807e36144e8d5c241e files/open-xchange-0.8.1.5-oxFolder.patch 676 -AUX open-xchange-htaccess 174 RMD160 9fe2a5be9db7253351fa856994c237d867f7f2df SHA1 585f1a7bc774cfde620e4f4a03c02d77540cf15a SHA256 4596825adb0067148596ef7948b2f452457d0b43aff64b4ec3a3628e9fcbbaa5 size 174 +AUX open-xchange-0.8.2-mysql-2.patch 354 RMD160 db4a260fccff5f450b9e2c9ab6864aaa0bd1e0fc SHA1 a3c6d572b4d27d8b91f03fc21358e4546d942fda SHA256 942a8a66291a7e5b3d9bf77b49abcd1103080a048396ae62ac33c0e9653d9689 +MD5 3553c820a030c3a5205febc03fe73106 files/open-xchange-0.8.2-mysql-2.patch 354 +RMD160 db4a260fccff5f450b9e2c9ab6864aaa0bd1e0fc files/open-xchange-0.8.2-mysql-2.patch 354 +SHA256 942a8a66291a7e5b3d9bf77b49abcd1103080a048396ae62ac33c0e9653d9689 files/open-xchange-0.8.2-mysql-2.patch 354 +AUX open-xchange-0.8.2-mysql.patch 14522 RMD160 440ed5acdb54ce22147dcf1bb786458ec2d22240 SHA1 d46fa901d867127b480fd4e5bbd78024814b7bc0 SHA256 a2cbeeed5ef21ea1a730c20bae7d184102c5f5d5261c22c9913d6c2ed22b64bf +MD5 cac601ef7cc358a9c0e13d476be37b7b files/open-xchange-0.8.2-mysql.patch 14522 +RMD160 440ed5acdb54ce22147dcf1bb786458ec2d22240 files/open-xchange-0.8.2-mysql.patch 14522 +SHA256 a2cbeeed5ef21ea1a730c20bae7d184102c5f5d5261c22c9913d6c2ed22b64bf files/open-xchange-0.8.2-mysql.patch 14522 +AUX open-xchange-0.8.2-sieve.patch 3128 RMD160 ee8dca3be8ed7422420df8ec76607fbcd87e2901 SHA1 eaa6f1dc75ff5cac465d7dab0b0bf5bcc1c807f4 SHA256 d8b7c84ea5a33ebdc0715217a45c711c7813394e9f6eb2d9cc2e4ad7d50db4c1 +MD5 14faaf18cf484b18ea5be650dc84f971 files/open-xchange-0.8.2-sieve.patch 3128 +RMD160 ee8dca3be8ed7422420df8ec76607fbcd87e2901 files/open-xchange-0.8.2-sieve.patch 3128 +SHA256 d8b7c84ea5a33ebdc0715217a45c711c7813394e9f6eb2d9cc2e4ad7d50db4c1 files/open-xchange-0.8.2-sieve.patch 3128 +AUX open-xchange-htaccess 174 RMD160 9fe2a5be9db7253351fa856994c237d867f7f2df SHA1 585f1a7bc774cfde620e4f4a03c02d77540cf15a SHA256 4596825adb0067148596ef7948b2f452457d0b43aff64b4ec3a3628e9fcbbaa5 MD5 7d1504e4241974d3583575b3827b0f5a files/open-xchange-htaccess 174 RMD160 9fe2a5be9db7253351fa856994c237d867f7f2df files/open-xchange-htaccess 174 SHA256 4596825adb0067148596ef7948b2f452457d0b43aff64b4ec3a3628e9fcbbaa5 files/open-xchange-htaccess 174 -AUX ox_reminder.sql 178 RMD160 0c80af0d7927debe4db383a6de08a3d662063829 SHA1 8e70f3cea2efc00f567584783d66593503507ed4 SHA256 41b640b0b1fdbb20ee8f108ca0e1bad69c494c8e6a0d351fe4904824e759a0fd size 178 +AUX ox_reminder.sql 178 RMD160 0c80af0d7927debe4db383a6de08a3d662063829 SHA1 8e70f3cea2efc00f567584783d66593503507ed4 SHA256 41b640b0b1fdbb20ee8f108ca0e1bad69c494c8e6a0d351fe4904824e759a0fd MD5 4c772a7e944bed0e5f8e17b99cb32939 files/ox_reminder.sql 178 RMD160 0c80af0d7927debe4db383a6de08a3d662063829 files/ox_reminder.sql 178 SHA256 41b640b0b1fdbb20ee8f108ca0e1bad69c494c8e6a0d351fe4904824e759a0fd files/ox_reminder.sql 178 -AUX slapd.ox.inc 2019 RMD160 1c5bcb56d603f489da113fbfdd8b39adabcf4ad6 SHA1 0f58dd7a3ddc111343bb9f7e7c15bc5b5f6fe879 SHA256 08409d20efa9af517d52ae813de86d935b1eff07672566f0786f13475305aef4 size 2019 +AUX slapd.ox.inc 2019 RMD160 1c5bcb56d603f489da113fbfdd8b39adabcf4ad6 SHA1 0f58dd7a3ddc111343bb9f7e7c15bc5b5f6fe879 SHA256 08409d20efa9af517d52ae813de86d935b1eff07672566f0786f13475305aef4 MD5 2ad5cb7b97eca4314016247cde421449 files/slapd.ox.inc 2019 RMD160 1c5bcb56d603f489da113fbfdd8b39adabcf4ad6 files/slapd.ox.inc 2019 SHA256 08409d20efa9af517d52ae813de86d935b1eff07672566f0786f13475305aef4 files/slapd.ox.inc 2019 -DIST Crystal_OX_Theme.tgz 53788 RMD160 24d8b0501783f23b16f1a0b20800fcb59da7a464 SHA256 b864155899cf3526364dead79ffcd64f939c4f5a97bd36e2403a6d0e55342125 size 53788 -DIST open-xchange-0.8.0-6.tar.bz2 1602891 RMD160 5b336ea0da741c4ce99fdf538422b1719d39158c SHA256 1fd6acf3d13429b63ab8f1f3ad38c2ef4369723766fd0f4b83069c0409d87d6b size 1602891 -DIST open-xchange-0.8.1-5.tar.bz2 1685487 RMD160 1c6bcf11eb624425995a76a63fcd941832482876 SHA256 fac875887411313c0422bd995bf0a55f6a83d277f7fb2636579a7698f0b3fb5b size 1685487 -EBUILD open-xchange-0.8.0.6.ebuild 21118 RMD160 cad0e1d439e2a8906e3b5fc9859439347b886b76 SHA1 9941d9cc88ef9f6c1f427e5257223ee75bc6057b SHA256 d864025c2fa9bef1627afa4cc6bcada0f85e79916a75e86ddadbb46f70c6e417 size 21118 -MD5 b2563a01f3e42c7f23ff176e5d7a87be open-xchange-0.8.0.6.ebuild 21118 -RMD160 cad0e1d439e2a8906e3b5fc9859439347b886b76 open-xchange-0.8.0.6.ebuild 21118 -SHA256 d864025c2fa9bef1627afa4cc6bcada0f85e79916a75e86ddadbb46f70c6e417 open-xchange-0.8.0.6.ebuild 21118 -EBUILD open-xchange-0.8.1.5.ebuild 21447 RMD160 4036f3d63766b6f4592bea9d50be1c1017f02e7b SHA1 f2cc2b3b6ae4525fe5da0771479bd86bd7978662 SHA256 e3f8a8b603de3f4e63d31146454de2cf3c1830e5f33ccade657f560e58e9775a size 21447 -MD5 ea2d2d5a5e47b28872f74770d845b92b open-xchange-0.8.1.5.ebuild 21447 -RMD160 4036f3d63766b6f4592bea9d50be1c1017f02e7b open-xchange-0.8.1.5.ebuild 21447 -SHA256 e3f8a8b603de3f4e63d31146454de2cf3c1830e5f33ccade657f560e58e9775a open-xchange-0.8.1.5.ebuild 21447 -MISC ChangeLog 2894 RMD160 4818785daacf3c8c6e4a32b903f5421e542da031 SHA1 d260eec92d28a01f40083de768825f38269b52aa SHA256 2f044e5a26655405a3a6385e56ca56486aac07767ec3f884b9b9fd63931643cb size 2894 -MD5 2438b425e0281f8838999342f7572289 ChangeLog 2894 -RMD160 4818785daacf3c8c6e4a32b903f5421e542da031 ChangeLog 2894 -SHA256 2f044e5a26655405a3a6385e56ca56486aac07767ec3f884b9b9fd63931643cb ChangeLog 2894 -MISC metadata.xml 247 RMD160 d02acfac88a4c8bac4526154d2301306c9b11298 SHA1 03594ffbd30e504f419701bd2cc21a0699e15a72 SHA256 9031c04619455a61733317a87013fee0d9954581d358a097ae85714726d4bf71 size 247 +DIST Crystal_OX_Theme.tgz 53788 RMD160 24d8b0501783f23b16f1a0b20800fcb59da7a464 SHA256 b864155899cf3526364dead79ffcd64f939c4f5a97bd36e2403a6d0e55342125 +DIST Crystal_OX_Theme_Webmail.tar.bz2 9442 RMD160 2dd6c3b90d56219dfcab5ae48dcce635ed9e7311 SHA1 b4ec6731bebf4e92fe32c819e0b7a57120ca6ca0 SHA256 06b4d834bbd2a352468997671077f3630f60ff901651a865419e0156ac0d7e77 +DIST open-xchange-0.8.2.tar.bz2 1970970 RMD160 bea788b8264a8b882229612d6b284586c7250659 SHA1 e7f252bf810dd52c3018d23524bc2c49e10fa41e SHA256 576ac912d5fdfc98a84fe69abc7aa2b9f7d1ca24e7b40ff8e71b6642b131ef3d +DIST smartsieve-ox-1.03.tar.gz 102899 RMD160 aaf58bc7549db4cad719f120635269fdf3585317 SHA1 c327a425a2638cbcfe959d3d6dc6a8fddae3436a SHA256 77a55ebe3c4e5f27e564d75f5cd80742c3bdb2e6e920d833de26eadec0fe6494 +EBUILD open-xchange-0.8.2.ebuild 24968 RMD160 b3fb693a3deb2c02cc7a156ab958e1e5fce958c5 SHA1 9701aa510d3f8b9406a417b79429f9d3e2d04616 SHA256 08cbf9875ff4284fbcfaa7c26c3cd4d91fde36d945a96c69416669afa13748af +MD5 96f6b6adaacb551b946f382358b66080 open-xchange-0.8.2.ebuild 24968 +RMD160 b3fb693a3deb2c02cc7a156ab958e1e5fce958c5 open-xchange-0.8.2.ebuild 24968 +SHA256 08cbf9875ff4284fbcfaa7c26c3cd4d91fde36d945a96c69416669afa13748af open-xchange-0.8.2.ebuild 24968 +MISC ChangeLog 3348 RMD160 5b22e7be99b112ff2669c87cf2448e56e7fc6f15 SHA1 304b211e5cfb86ef2b84a4266a716437825c091e SHA256 a697348f4ae4bef70e0e705f0adfb9c417a4c2a3ce4edd8f32065cbec38838d6 +MD5 510770178ebb76faa130e9e284893854 ChangeLog 3348 +RMD160 5b22e7be99b112ff2669c87cf2448e56e7fc6f15 ChangeLog 3348 +SHA256 a697348f4ae4bef70e0e705f0adfb9c417a4c2a3ce4edd8f32065cbec38838d6 ChangeLog 3348 +MISC metadata.xml 247 RMD160 d02acfac88a4c8bac4526154d2301306c9b11298 SHA1 03594ffbd30e504f419701bd2cc21a0699e15a72 SHA256 9031c04619455a61733317a87013fee0d9954581d358a097ae85714726d4bf71 MD5 a339b15041bb6d450a7535f3df1fcc4c metadata.xml 247 RMD160 d02acfac88a4c8bac4526154d2301306c9b11298 metadata.xml 247 SHA256 9031c04619455a61733317a87013fee0d9954581d358a097ae85714726d4bf71 metadata.xml 247 -MD5 a91096f6cd703b59e229ec6e8ceb3054 files/digest-open-xchange-0.8.0.6 506 -RMD160 1226227e73abc79368e480426b824c086fcc12e3 files/digest-open-xchange-0.8.0.6 506 -SHA256 0221cb61ec69099c8a5b2b60af20115fbda052bdc748955ab25c1e95d80d3094 files/digest-open-xchange-0.8.0.6 506 -MD5 8a897f30b8f57ddb082758de5176e318 files/digest-open-xchange-0.8.1.5 506 -RMD160 056990749ff9bb713b9203105f18cb38682800d0 files/digest-open-xchange-0.8.1.5 506 -SHA256 a85fc7daf54683b7aacf4951a03ddd6a364937911cdeac7c3a9cba7265c31669 files/digest-open-xchange-0.8.1.5 506 +MD5 d0f997a3219854dcff06dbff09732c7f files/digest-open-xchange-0.8.2 963 +RMD160 292b2f807d26f8358705f348b96c12d384266738 files/digest-open-xchange-0.8.2 963 +SHA256 3e3979412b7b63e1afd5a7a24ef6271bbeb28f8e0866294c8a4dedbe5e635a3a files/digest-open-xchange-0.8.2 963 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.3 (GNU/Linux) + +iD8DBQFEg9iWOpjtAl+gMRURAoMXAKDBpifwx0TzOdmykFS6HwNGhKB6IgCfWIsr +xk7Q0lAWdIxdtLTiidlDGAA= +=EAmY +-----END PGP SIGNATURE----- diff --git a/www-apps/open-xchange/files/digest-open-xchange-0.8.0.6 b/www-apps/open-xchange/files/digest-open-xchange-0.8.0.6 deleted file mode 100644 index 24e5deaf1ed8..000000000000 --- a/www-apps/open-xchange/files/digest-open-xchange-0.8.0.6 +++ /dev/null @@ -1,6 +0,0 @@ -MD5 0c390658072367c892ce5ff423a02def Crystal_OX_Theme.tgz 53788 -RMD160 24d8b0501783f23b16f1a0b20800fcb59da7a464 Crystal_OX_Theme.tgz 53788 -SHA256 b864155899cf3526364dead79ffcd64f939c4f5a97bd36e2403a6d0e55342125 Crystal_OX_Theme.tgz 53788 -MD5 5354bd14fb0e1ab23706c36f167d510a open-xchange-0.8.0-6.tar.bz2 1602891 -RMD160 5b336ea0da741c4ce99fdf538422b1719d39158c open-xchange-0.8.0-6.tar.bz2 1602891 -SHA256 1fd6acf3d13429b63ab8f1f3ad38c2ef4369723766fd0f4b83069c0409d87d6b open-xchange-0.8.0-6.tar.bz2 1602891 diff --git a/www-apps/open-xchange/files/digest-open-xchange-0.8.1.5 b/www-apps/open-xchange/files/digest-open-xchange-0.8.1.5 deleted file mode 100644 index 109077c6d0f2..000000000000 --- a/www-apps/open-xchange/files/digest-open-xchange-0.8.1.5 +++ /dev/null @@ -1,6 +0,0 @@ -MD5 0c390658072367c892ce5ff423a02def Crystal_OX_Theme.tgz 53788 -RMD160 24d8b0501783f23b16f1a0b20800fcb59da7a464 Crystal_OX_Theme.tgz 53788 -SHA256 b864155899cf3526364dead79ffcd64f939c4f5a97bd36e2403a6d0e55342125 Crystal_OX_Theme.tgz 53788 -MD5 444e6e06649ddfa8095de01e4a68e68d open-xchange-0.8.1-5.tar.bz2 1685487 -RMD160 1c6bcf11eb624425995a76a63fcd941832482876 open-xchange-0.8.1-5.tar.bz2 1685487 -SHA256 fac875887411313c0422bd995bf0a55f6a83d277f7fb2636579a7698f0b3fb5b open-xchange-0.8.1-5.tar.bz2 1685487 diff --git a/www-apps/open-xchange/files/open-xchange-0.8.1.2-login.patch b/www-apps/open-xchange/files/open-xchange-0.8.1.2-login.patch deleted file mode 100644 index dd032e47c765..000000000000 --- a/www-apps/open-xchange/files/open-xchange-0.8.1.2-login.patch +++ /dev/null @@ -1,14 +0,0 @@ ---- src/misc/login/login.pm.in.orig 2005-08-26 17:08:58.000000000 +0200 -+++ src/misc/login/login.pm.in 2005-09-25 00:34:39.000000000 +0200 -@@ -28,9 +28,9 @@ - # SSL - my $ssl_key_file = '@oxgroupwaresysconfdir@/sslcerts/oxCERTS/groupwarekey.pem'; - my $ssl_cert_file = '@oxgroupwaresysconfdir@/sslcerts/oxCERTS/groupwarecert.pem'; --my $ssl_ca_file = '@oxgroupwaresysconfdir@/sslcerts/oxCA/cacert.pem '; -+my $ssl_ca_file = '@oxgroupwaresysconfdir@/sslcerts/oxCA/cacert.pem'; - my $ssl_use_cert = 1; --my $ssl_verify_mode = '0x01'; -+my $ssl_verify_mode = 0x01; - # LDAP - #my $scope = 'one'; - #my $ldap_conf = '@oxgroupwaresysconfdir@/ldap.conf'; diff --git a/www-apps/open-xchange/files/open-xchange-0.8.1.5-oxFolder.patch b/www-apps/open-xchange/files/open-xchange-0.8.1.5-oxFolder.patch deleted file mode 100644 index 52433544f2fd..000000000000 --- a/www-apps/open-xchange/files/open-xchange-0.8.1.5-oxFolder.patch +++ /dev/null @@ -1,14 +0,0 @@ ---- system/www/groupware/javascript/oxFolder.js.old 2005-11-28 22:31:25.000000000 +0100 -+++ system/www/groupware/javascript/oxFolder.js 2005-11-28 22:05:18.000000000 +0100 -@@ -24,9 +24,9 @@ - menuSelection=ediv[2]; - selectedFolderID=ediv[3]; - selectedFolder=selectedElement; -- if (selectedElement.id.indexOf("|txt") != -1) -+ if (selectedElement.id.indexOf("|txt") == -1) - selectedFolder=document.getElementById(selectedElement.id+"|txt"); -- selectedFolderName=selectedFolder.firstChild.nodeValue; -+ selectedFolderName=(selectedFolder ? selectedFolder.firstChild.nodeValue : "unkown"); - } - if (window.Event && !document.all) { - x=e.pageX; diff --git a/www-apps/open-xchange/open-xchange-0.8.0.6.ebuild b/www-apps/open-xchange/open-xchange-0.8.0.6.ebuild deleted file mode 100644 index 01e79f20b473..000000000000 --- a/www-apps/open-xchange/open-xchange-0.8.0.6.ebuild +++ /dev/null @@ -1,567 +0,0 @@ -# Copyright 1999-2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-apps/open-xchange/open-xchange-0.8.0.6.ebuild,v 1.7 2006/04/01 03:24:56 eradicator Exp $ - -inherit eutils webapp ssl-cert toolchain-funcs java-pkg versionator depend.apache - -MY_PV=$(replace_version_separator 3 '-') -MY_P="${PN}-${MY_PV}" -DESCRIPTION="A Collaboration and Integration Server Environment" -HOMEPAGE="http://www.open-xchange.org/" - -SRC_URI="http://www.mikefetherston.ca/OX/Crystal_OX_Theme.tgz" -if [[ $(get_version_component_range 3) -eq 0 ]]; then -SRC_URI="${SRC_URI} http://mirror.open-xchange.org/download/archive/${MY_P}.tar.bz2" -else -SRC_URI="${SRC_URI} http://mirror.open-xchange.org/download/${MY_P}.tar.bz2" -fi - -LICENSE="GPL-2" -KEYWORDS="~x86" -RESTRICT="primaryuri" - -IUSE="ssl doc webdav" - -S="${WORKDIR}/${MY_P}" - -RDEPEND=">=virtual/jre-1.4 - >=dev-java/java-config-1.2 - >=www-servers/tomcat-5.0.27-r6 - dev-perl/Net-SSLeay - dev-java/jdom - net-nds/openldap - app-text/ispell - dev-java/sun-javamail-bin - dev-perl/XML-NamespaceSupport - dev-perl/XML-SAX - dev-perl/Authen-SASL - dev-perl/Convert-ASN1 - dev-perl/perl-ldap - ~dev-java/jdbc3-postgresql-7.4.5 dev-db/postgresql - ssl? ( dev-libs/openssl dev-perl/IO-Socket-SSL )" - -# COMMENT: Why is the jdbc requirement set to 7.4.5 and not >=7.4.5? - -DEPEND="${RDEPEND} - app-arch/zip - >=virtual/jdk-1.4" - -RDEPEND="${RDEPEND} - www-apache/mod_jk - app-admin/sudo" - -#parameter $1 == 1 for config part or == 0 for preinst -ox_setup(){ - local config=$1 - local WORKINGBASE="${IMAGE}" #is used during pkg_* - if [[ $config -eq 1 ]]; then - #executed from in pkg_config - WORKINGBASE="${ROOT}" - fi - # Simple defaults - # some have to defined global - OX_DBNAME=${OX_DBNAME-"open_xchange"} - OX_DBUSER=${OX_DBUSER-"open_xchange"} - OX_DBPASS=${OX_DBPASS-"secret"} - OX_DOMAIN=${OX_DOMAIN-"example.org"} - # some just needed local - local OX_DBHOST=${OX_DBHOST-"localhost"} - local OX_ORG=${OX_ORG-"My Organization"} - local OX_LDAPSERVER=${OX_LDAPSERVER-"localhost"} - local OX_BASEDN=${OX_BASEDN-"dc=example,dc=org"} - local OX_ROOTDN=${OX_ROOTDN-"cn=Manager,${OX_BASEDN}"} - local OX_ROOTPW=${OX_ROOTPW-"secret"} - - # Guess base on the installed config but only if it exists - if [[ -e "${ROOT}/etc/open-xchange/admintools.conf" ]] ; then - local temp_var - echo "Installation of OX detected" - - temp_var=$(get_oxvar DEFAULT_SQL_HOST) - [[ -n ${temp_var} ]] && OX_DBHOST=${temp_var} - - temp_var=$(get_oxvar DEFAULT_SQL_DB) - [[ -n ${temp_var} ]] && OX_DBNAME=${temp_var} - - temp_var=$(get_oxvar DEFAULT_SQL_USER) - [[ -n ${temp_var} ]] && OX_DBUSER=${temp_var} - - temp_var=$(get_oxvar DEFAULT_SQL_PASS) - [[ -n ${temp_var} ]] && OX_DBPASS=${temp_var} - - temp_var=$(get_oxvar ORGA) - [[ -n ${temp_var} ]] && OX_ORG=${temp_var} - - temp_var=$(get_oxvar BINDDN) - [[ -n ${temp_var} ]] && OX_ROOTDN=${temp_var} - - temp_var=$(get_oxvar BINDPW) - [[ -n ${temp_var} ]] && OX_ROOTPW=${temp_var} - - if [[ -e "${ROOT}/etc/open-xchange/groupware/ldap.conf" ]] ; then - # taken from admintools.conf self - temp_var=`grep -v '^#' ${ROOT}/etc/open-xchange/groupware/ldap.conf | grep -i BASE | head -n 1 | awk {'print $2'}` - [[ -n ${temp_var} ]] && OX_BASEDN=${temp_var} - fi - fi - - if [[ ${config} -eq 1 ]]; then - # Now asking the user - einfo "If values are correct just press enter else enter the new value" - - OX_DBHOST=$(get_user_config "${OX_DBHOST}" "Database Host") - OX_DBNAME=$(get_user_config "${OX_DBNAME}" "Database Name") - OX_DBUSER=$(get_user_config "${OX_DBUSER}" "Database User") - OX_DBPASS=$(get_user_config "${OX_DBPASS}" "Database User's Password") - OX_ORG=$(get_user_config "${OX_ORG}" "Organization") - OX_DOMAIN=$(get_user_config "${OX_DOMAIN}" "Domain") - OX_LDAPSERVER=$(get_user_config "${OX_LDAPSERVER}" "LDAP Server") - OX_BASEDN=$(get_user_config "${OX_BASEDN}" "LDAP Base DN") - OX_ROOTDN=$(get_user_config "${OX_ROOTDN}" "LDAP Root DN") - OX_ROOTPW=$(get_user_config "${OX_ROOTPW}" "LDAP Root Password") - - einfo "Finished - now writing config" - fi - - ## now create configs with the right values - # starting with ldap - sed -i "s|@basedn@|${OX_BASEDN}|g" ${WORKINGBASE}/usr/share/open-xchange/init_ldap.ldif - sed -i "s|@domain@|${OX_DOMAIN}|g" ${WORKINGBASE}/usr/share/open-xchange/init_ldap.ldif - sed -i "s|@organization@|${OX_ORG}|g" ${WORKINGBASE}/usr/share/open-xchange/init_ldap.ldif - - local OX_BASEDC="`echo ${OX_BASEDN} | sed -n 's:dc=\([-A-Za-z_]*\).*:\1:p'|head -n 1`" - sed -i "s|@basedc@|${OX_BASEDC}|g" ${WORKINGBASE}/usr/share/open-xchange/init_ldap.ldif - sed -i "s|ORGA=\".*\"|ORGA=\"${OX_ORG}\"|g" ${WORKINGBASE}/etc/open-xchange/admintools.conf - sed -i "s|BINDDN=\".*\"|BINDDN=\"${OX_ROOTDN}\"|g" ${WORKINGBASE}/etc/open-xchange/admintools.conf - sed -i "s|BINDPW=\".*\"|BINDPW=\"${OX_ROOTPW}\"|g" ${WORKINGBASE}/etc/open-xchange/admintools.conf - sed -i "s|DEFAULT_SQL_HOST=\".*\"|DEFAULT_SQL_HOST=\"${OX_DBHOST}\"|g" ${WORKINGBASE}/etc/open-xchange/admintools.conf - sed -i "s|DEFAULT_SQL_DB=\".*\"|DEFAULT_SQL_DB=\"${OX_DBNAME}\"|g" ${WORKINGBASE}/etc/open-xchange/admintools.conf - sed -i "s|DEFAULT_SQL_USER=\".*\"|DEFAULT_SQL_USER=\"${OX_DBUSER}\"|g" ${WORKINGBASE}/etc/open-xchange/admintools.conf - sed -i "s|DEFAULT_SQL_PASS=\".*\"|DEFAULT_SQL_PASS=\"${OX_DBPASS}\"|g" ${WORKINGBASE}/etc/open-xchange/admintools.conf - - # setup correct ACIs - sed -i "s|@basedn@|${OX_BASEDN}|g" ${ROOT}/etc/openldap/slapd.ox.inc - - # groupware : server.conf - for f in /etc/open-xchange/groupware/server.conf /etc/open-xchange/webmail/server.conf ; do - sed -i "s|NAS_CON_CLASS_NAME: jdbc:\(.*\)://.*|NAS_CON_CLASS_NAME: jdbc:\1://${OX_DBHOST}/${OX_DBNAME}|g" ${WORKINGBASE}/${f} - sed -i "s|NAS_CON_USER:.*|NAS_CON_USER: ${OX_DBUSER}|g" ${WORKINGBASE}/${f} - sed -i "s|NAS_CON_PASS:.*|NAS_CON_PASS: ${OX_DBPASS}|g" ${WORKINGBASE}/${f} - sed -i "s|NAS_CON_PASS:.*|NAS_CON_PASS: ${OX_DBPASS}|g" ${WORKINGBASE}/${f} - done - - # patching umin.war, somehow dirty - [[ -d "${T}/ox_war" ]] && rm -rf ${T}/ox_war - mkdir -p ${T}/ox_war - - echo "${WORKINGBASE}/${SERVLETDIR}" - unzip ${WORKINGBASE}/${SERVLETDIR}/umin.war -d ${T}/ox_war - - sed -i "s|LDAP_SERVER=.*|LDAP_SERVER=${OX_LDAPSERVER}|g" ${T}/ox_war/WEB-INF/classes/oxuserminconfig.properties - sed -i "s|LDAP_BASEDN=.*|LDAP_BASEDN=${OX_BASEDN}|g" ${T}/ox_war/WEB-INF/classes/oxuserminconfig.properties - sed -i "s|SQL_SERVER_GROUPWARE=.*|SQL_SERVER_GROUPWARE=${OX_DBHOST}|g" ${T}/ox_war/WEB-INF/classes/oxuserminconfig.properties - sed -i "s|SQL_SERVER_GROUPWARE_DATABASE_NAME=.*|SQL_SERVER_GROUPWARE_DATABASE_NAME=${OX_DBNAME}|g" ${T}/ox_war/WEB-INF/classes/oxuserminconfig.properties - sed -i "s|SQL_SERVER_GROUPWARE_DATABASE_USERNAME=.*|SQL_SERVER_GROUPWARE_DATABASE_USERNAME=${OX_DBUSER}|g" ${T}/ox_war/WEB-INF/classes/oxuserminconfig.properties - sed -i "s|SQL_SERVER_GROUPWARE_DATABASE_PASSWORD=.*|SQL_SERVER_GROUPWARE_DATABASE_PASSWORD=${OX_DBPASS}|g" ${T}/ox_war/WEB-INF/classes/oxuserminconfig.properties - sed -i "s|CSS_PATH=/cfintranet/css/stylesheet.css|CSS_PATH=/open-xchange/cfintranet/css/stylesheet.css|g" ${T}/ox_war/WEB-INF/classes/oxuserminconfig.properties - - cd ${T}/ox_war - zip -r -9 umin.war * - cp umin.war ${WORKINGBASE}/${SERVLETDIR} - cd ${WORKINGBASE} - rm -rf ${T}/ox_war -} - -ox_setup_tomcat(){ - TOMCAT_DIR=`java-config -g CATALINA_HOME` - if has_version '>=www-servers/tomcat-5.0.28-r4' ; then - # it is now installed to the profile-directory choosen from /etc/conf.d/tomcat-5 - local PROFILE="$(sed -n "s:^PROFILE=\(.*\):\1:p" /etc/conf.d/tomcat-5)" - local CATALINA_BASE="$(sed -n "s:^CATALINA_BASE=\(.*\)/$.*:\1:p" /etc/conf.d/tomcat-5)" - SERVLETDIR="${CATALINA_BASE}/${PROFILE}/webapps" - TOMCAT_SHARED_LIB="${CATALINA_BASE}/${PROFILE}/shared/lib" - else - SERVLETDIR="${TOMCAT_DIR}/webapps" - TOMCAT_SHARED_LIB="${TOMCAT_DIR}/shared/lib" - fi -} - - -pkg_setup() { - webapp_pkg_setup - ox_setup_tomcat -} - -src_unpack() { - unpack ${A} - cd ${S} - - # http://www.open-xchange.org/cgi-bin/bugzilla/show_bug.cgi?id=734 - epatch ${FILESDIR}/${PN}-0.8.1.2-login.patch - - # http://www.open-xchange.org/cgi-bin/bugzilla/show_bug.cgi?id=656 - sed -i "s|\${DESTDIR}|\$(DESTDIR)|g" Makefile.am - - export WANT_AUTOMAKE=1.8 - export WANT_AUTOCONF=2.5 - libtoolize --force --copy || die - aclocal -I m4 || die - automake -a -f -c || die - autoheader || die - autoconf || die - - # doing all preconfigure which can be done here - # correct ispell-handling of german dictionary - sed -i "s|-ddeutsch|-dgerman|g" conf/webmail/spellcheck.cfg - - if use ssl; then - # change login.pm-script if ssl should be used - sed -i "s|connection_mode = 3;|connection_mode = 2;|g" src/misc/login/login.pm.in - fi - - # change image- and link- to the open-xchange location - find groupware/ -regex '.*\.htm' |xargs sed -i "s|/cfintranet/|/open-xchange/cfintranet/|g" - find templates/ -regex '.*\.htm' |xargs sed -i "s|/cfintranet/|/open-xchange/cfintranet/|g" - find webmail/ -regex '.*\.htm' |xargs sed -i "s|/cfintranet/|/open-xchange/cfintranet/|g" - - find templates/ -regex '.*\.lang' |xargs sed -i "s|/cfintranet/|/open-xchange/cfintranet/|g" - - find system/www/ -regex '.*\.htm' |xargs sed -i "s|/cfintranet/|/open-xchange/cfintranet/|g" - find system/www/ -regex '.*\.js' |xargs sed -i "s|/cfintranet/|/open-xchange/cfintranet/|g" - - sed -i "s|/cfintranet/|/open-xchange/cfintranet/|g" conf/groupware/system.properties.in - sed -i "s|/cfintranet/|/open-xchange/cfintranet/|g" conf/webmail/system.properties.in -} - -src_compile() { - local myconf - local tempvar - - myconf="${myconf} --with-jdbcjar=$(java-config -p jdbc3-postgresql)" - myconf="${myconf} $(use_enable doc) $(use_enable webdav) $(use_enable ssl)" - myconf="${myconf} --with-servletdir=${SERVLETDIR}" - myconf="${myconf} --with-jsdkjar=${TOMCAT_DIR}/common/lib/servlet-api.jar" - myconf="${myconf} --with-mailjar=/usr/share/sun-javamail-bin/lib/mail.jar" - myconf="${myconf} --with-activationjar=/usr/share/sun-jaf-bin/lib/activation.jar" - myconf="${myconf} --with-jdomjar=$(java-config -p jdom-1.0)" - myconf="${myconf} --with-xercesjar=/usr/share/xerces-2/lib/xercesImpl.jar" - myconf="${myconf} --with-jni-dir=$(java-config -O)/include" - myconf="${myconf} --with-runuid=tomcat" - myconf="${myconf} --with-rungid=tomcat" - myconf="${myconf} --with-tomcatuser=tomcat" - myconf="${myconf} --with-htdocsdir=${MY_HTDOCSDIR}" - myconf="${myconf} --with-cgibindir=${MY_CGIBINDIR}" - myconf="${myconf} --sysconfdir=/etc/open-xchange" - myconf="${myconf} --datadir=/usr/share/open-xchange" - myconf="${myconf} --includedir=/usr/include/open-xchange" - myconf="${myconf} --libdir=/usr/$(get_libdir)/open-xchange" - myconf="${myconf} --localstatedir=/var/open-xchange" - - econf ${myconf} || die "bad ./configure" - - # replace the string "jikes" with "modern". We dont want to see all jikes warnings - sed -i "s|jikes|modern|g" build.xml - - emake -j1 || die "make failed" - - # use sudo instead of su for the startup script and - # correct var-log - for foo in groupware sessiond webmail ; do - sed -i "s:^\([\t ]*\)\(su \$USER.*$\):\1#\2:gI;s:^\([\t ]*\)#\(sudo -u \$USER.*\)$:\1\2:gI" system/etc/init.d/${foo} - sed -i "s|open-xchange/log|log/open-xchange|g" system/etc/init.d/${foo} - done - - sed -i "s|open-xchange/log|log/open-xchange|g" conf/groupware/system.properties -} - -src_install() { - webapp_src_preinst - - dodoc AUTHORS ChangeLog NEWS README - - # Install this big thing - cd ${S} - make DESTDIR=${D} install || die "Failed on make install" - - # copy the ldif.in file for better config-abilities in pkg_preinst - cp ${S}/system/setup/init_ldap.ldif.in ${D}/usr/share/open-xchange/init_ldap.ldif - - # remove obsolete log-files they should be saved in /var/log/open-xchange - rm ${D}/var/open-xchange/log/groupware.log - rm ${D}/var/open-xchange/log/jserv.log - rm ${D}/var/open-xchange/log/sessiond.log - rm ${D}/var/open-xchange/log/webmail.log - rmdir ${D}/var/open-xchange/log/ - - # create log-dir - keepdir /var/log/open-xchange - - # remove unessary war-files, they are needed for deploying application - rm ${D}/usr/lib/open-xchange/*.war - - # remove empty include-dir - rmdir ${D}/usr/include/open-xchange/ - rmdir ${D}/usr/include/ - - # remove unneeded init-script - not used by gentoo - rm ${D}/etc/open-xchange/init.d/openexchange - - # Init script - newinitd "${FILESDIR}/init.d.open-xchange" open-xchange || die "newinitd failed" - - if has_version '<www-servers/tomcat-5.0.28-r4' ; then - dosed 's:tomcat-5:tomcat5:' /etc/init.d/open-xchange - fi - - insinto ${SERVLETDIR} - doins lib/*.war - - # chown of war-files or tomcat gets problems with stopping itself - for x in umin.war servlet.war ; do - fowners tomcat:tomcat ${SERVLETDIR}/${x} - done - - # Change default icon theme - insinto ${MY_HTDOCSDIR}/cfintranet/images/top/EN/ - insopts -m0644 - doins ${WORKDIR}/*.png - insinto ${MY_HTDOCSDIR}/cfintranet/images/top/DE/ - doins ${WORKDIR}/*.png - - # now mark all items with meta-info for webapp-script - cd ${D}${MY_HTDOCSDIR} - for x in $(find . -type f -print) ; do - webapp_serverowned ${MY_HTDOCSDIR}/$x - done - - # Put the schema in etc and symlink. This way it's protected. - dodir /etc/openldap/schema - mv ${D}/usr/share/open-xchange/openxchange.schema ${D}/etc/openldap/schema - dosym ../../../etc/openldap/schema/openxchange.schema /usr/share/open-xchange/openxchange.schema - dosym ../../openldap/ldap.conf /etc/open-xchange/groupware/ldap.conf - dosym ../../openldap/ldap.conf /etc/open-xchange/webmail/ldap.conf - - if use ssl ; then - #create symlink to ssl directory for webmail - dosym /etc/open-xchange/groupware/sslcerts /etc/open-xchange/webmail/sslcerts - #and to get the setup part working - dodir ${TOMCAT_SHARED_LIB} - dosym /usr/lib/open-xchange/liboxssl.so ${TOMCAT_SHARED_LIB}/liboxssl.so - fi - - for x in settings/intranet settings/webmail filespool drafts webmailupload dictionary ; do - keepdir /var/open-xchange/${x} - fowners tomcat:tomcat /var/open-xchange/${x} - done - - # Copy mod_jk file - insinto ${APACHE2_MODULES_CONFDIR} - doins ${FILESDIR}/88_mod_jk.ox.conf - - # copy ldap-aci-file - insinto /etc/openldap/ - doins ${FILESDIR}/slapd.ox.inc - - # .htacces file - insinto ${MY_HTDOCSDIR} - newins ${FILESDIR}/${PN}-htaccess .htaccess - - # Install webapp - webapp_src_install -} - -pkg_preinst(){ - #execute ox_setup from preinst(0) - ox_setup_tomcat - ox_setup 0 - - # create user mailadmin, needed for mailsupport - enewuser mailadmin -1 -1 /dev/null users - _UID=`getent passwd mailadmin | awk -F : '{print $3}'` - - # get the default guid of the group 'users' - OX_STDGID=`getent group users | awk -F : '{print $3}'` - - # replace the SuSE group id 500 of users with the gentoo group id of the group 'users' for the mailadmin in ldif + uid - sed -i "s|500|${OX_STDGID}|g" ${D}/usr/share/open-xchange/init_ldap.ldif - sed -i "s|501|${_UID}|g" ${D}/usr/share/open-xchange/init_ldap.ldif - - # configuring admintools.conf - - # replace the SuSE standard group id 500 with the gentoo group id of the group 'users' - sed -i "s|500|${OX_STDGID}|g" ${D}/etc/open-xchange/admintools.conf - OX_STDGID=`expr ${OX_STDGID} + 1` - sed -i "s|501|${OX_STDGID}|g" ${D}/etc/open-xchange/admintools.conf - - if use ssl ; then - SSL_ORGANIZATION="${SSL_ORGANIZATION:-Open Xchange}" - insinto /etc/open-xchange/groupware/sslcerts/oxCERTS - docert groupware sessiond - - # copying the CA-certificate - dodir /etc/open-xchange/groupware/sslcerts/oxCA - cp ${T}/*ca.crt ${D}/etc/open-xchange/groupware/sslcerts/oxCA/cacert.pem - - # copying the groupware-key and -cert the way ox would like it to have - mv ${D}/etc/open-xchange/groupware/sslcerts/oxCERTS/groupware.key ${D}/etc/open-xchange/groupware/sslcerts/oxCERTS/groupwarekey.pem - mv ${D}/etc/open-xchange/groupware/sslcerts/oxCERTS/groupware.crt ${D}/etc/open-xchange/groupware/sslcerts/oxCERTS/groupwarecert.pem - mv ${D}/etc/open-xchange/groupware/sslcerts/oxCERTS/sessiond.key ${D}/etc/open-xchange/groupware/sslcerts/oxCERTS/sessiondkey.pem - mv ${D}/etc/open-xchange/groupware/sslcerts/oxCERTS/sessiond.crt ${D}/etc/open-xchange/groupware/sslcerts/oxCERTS/sessiondcert.pem - rm ${D}/etc/open-xchange/groupware/sslcerts/oxCERTS/sessiond.pem - rm ${D}/etc/open-xchange/groupware/sslcerts/oxCERTS/groupware.pem - rm ${D}/etc/open-xchange/groupware/sslcerts/oxCERTS/sessiond.csr - rm ${D}/etc/open-xchange/groupware/sslcerts/oxCERTS/groupware.csr - - chown -R tomcat:apache ${D}/etc/open-xchange/groupware/sslcerts - find ${D}/etc/open-xchange/groupware/sslcerts -name '*.pem' -exec chmod 440 {} \; - fi -} - -pkg_postinst() { - webapp_pkg_postinst - - chgrp -R apache /var/open-xchange/* - einfo - einfo " You have successfully installed Open-Xchange" - einfo - einfo - einfo " o STARTING and STOPPING Open-Xchange" - einfo " /etc/init.d/open-xchange start" - einfo " /etc/init.d/open-xchange stop" - einfo " /etc/init.d/open-xchange restart" - einfo - einfo "Execute the following command" - - if has_version '<=sys-apps/portage-2.0.51*' ; then - einfo "ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config" - else - einfo "emerge --config ${CATEGORY}/${PN}" - fi - - einfo "to setup the initial open-xchange environment." - einfo - - if has_version '=net-nds/openldap-2.1*' ; then - ewarn "You have got OpenLDAP-2.1.* installed." - ewarn "Please make sure you've got enabled aci support for this package." - ewarn "For more information: http://gentoo-wiki.com/HOWTO_Open-Xchange#OpenLDAP" - ewarn - ewarn "If you already have this done, ignore this warning" - fi -} - -get_oxvar() { - local var=$1 - more /etc/open-xchange/admintools.conf | sed -n "s:^\s*${var}=\"\(.*\)\":\1:p" | head -n 1 -} - -get_user_config() { - local default=$1 - local desc=$2 - local read_val; - - echo -n "${desc}? [${default}] " 1>&2 - read readval - if [[ -z ${readval} ]] ; then - echo ${default} - else - echo ${readval} - fi -} - -pkg_config() { - ox_setup_tomcat - #execute ox_setup from pkg_config(1) - ## at first automatially change config in init_ldap.ldif and configuration-files - ox_setup 1 - - chown -R tomcat:tomcat ${ROOT}/etc/open-xchange - - if use ssl ; then - chown -R tomcat:apache ${ROOT}/etc/open-xchange ${ROOT}/etc/open-xchange/groupware/sslcerts - find ${ROOT}/etc/open-xchange/groupware/sslcerts -name '*.pem' -exec chmod 440 {} \; - fi - - - - #set correct user rights for ldap - chown ldap:ldap ${ROOT}/etc/openldap/slapd.ox.inc - - correctfilespool - echo - echo - einfo "======================" - einfo "Finished configuration" - einfo "======================" - - echo - einfo "Set JAVA_OPTS in /etc/conf.d/tomcat5 (or tomcat-5):" - einfo "JAVA_OPTS=\"-Dopenexchange.propfile=${ROOT}etc/open-xchange/groupware/system.properties\"" - if use ssl ; then - einfo "CATALINA_OPTS=\"\${CATALINA_OPTS} -Djava.library.path=${TOMCAT_SHARED_LIB}\"" - fi - - echo - einfo "Setup /etc/conf.d/apache2" - einfo "APACHE2_OPTS=\"-D JK\"" - - echo - einfo "Setup /etc/conf.d/postgresql" - einfo "PGOPTS=\"-i\"" - - # Tell the user how to propegate ldap and the db - ## create ox-dbuser - echo - einfo "HOWTO: Setup database (following commands)" - einfo "++++++++++++++++++++++++++++++++++++++++++" - - einfo "echo \"CREATE USER ${OX_DBUSER} WITH PASSWORD '${OX_DBPASS}' CREATEDB NOCREATEUSER\" | psql -h localhost -U postgres template1 -f -" - einfo "echo \"CREATE DATABASE ${OX_DBNAME} WITH OWNER=${OX_DBUSER} ENCODING='UNICODE'\" | psql -h localhost -U postgres template1 -f -" - einfo "psql -U ${OX_DBUSER} ${OX_DBNAME} < ${ROOT}usr/share/open-xchange/init_database.sql" - einfo "/usr/sbin/dbinit_ox" - - ## initialise database with ox, after configurations have been changed - echo - echo - einfo "HOWTO: Setup OpenLDAP" - ewarn "Please make sure to STOP slapd to maintain database consistency (from slapadd(8c))!!!" - einfo "+++++++++++++++++++++++++++++++++" - einfo "/etc/init.d/slapd stop" - einfo - einfo "Add this to /etc/openldap/slapd.conf:" - einfo "include /etc/openldap/schema/cosine.schema" - einfo "include /etc/openldap/schema/inetorgperson.schema" - einfo "include /etc/openldap/schema/misc.schema" - einfo "include /etc/openldap/schema/nis.schema" - einfo "include /etc/openldap/schema/openldap.schema" - einfo "include /etc/openldap/schema/openxchange.schema" - einfo - einfo "If you want an initial set of access rights (enables your user, editing their password, ...)" - einfo "you should also add the following line:" - einfo "include /etc/openldap/slapd.ox.inc" - einfo - einfo "slapadd -l /usr/share/open-xchange/init_ldap.ldif" - einfo - einfo "/etc/init.d/slapd start" - - echo - echo - einfo "HOWTO: Add a group" - einfo "++++++++++++++++++" - einfo "This is suggested for correct webdav-access" - einfo "/usr/sbin/addgroup_ox --group=NEWGROUPNAME" - - echo - echo - einfo "HOWTO: Add a user" - einfo "+++++++++++++++++" - einfo "/usr/sbin/adduser_ox --username=MYUSERNAME --passwd=MYPASSWORD --name=FORENAME --sname=SURENAME --maildomain=${OX_DOMAIN} --ox_timezone=\"Europe/Berlin\"" - einfo "Now you can add the user to a group." - einfo "/usr/sbin/addusertogroup_ox --user=MYUSERNAME --group=NEWGROUPNAME" - echo - einfo "If you encounter any problems with this commands probably your ldap or database configuration is not correct" - echo - echo - einfo "Web Access:" - einfo "To access open-xchange via the web, point your browser to: http://localhost/cgi-bin/login.pl" -} diff --git a/www-apps/open-xchange/open-xchange-0.8.1.5.ebuild b/www-apps/open-xchange/open-xchange-0.8.1.5.ebuild deleted file mode 100644 index 08adcafc441b..000000000000 --- a/www-apps/open-xchange/open-xchange-0.8.1.5.ebuild +++ /dev/null @@ -1,575 +0,0 @@ -# Copyright 1999-2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-apps/open-xchange/open-xchange-0.8.1.5.ebuild,v 1.4 2006/04/01 03:24:56 eradicator Exp $ - -inherit eutils webapp ssl-cert toolchain-funcs java-pkg versionator depend.apache - -MY_PV=$(replace_version_separator 3 '-') -MY_P="${PN}-${MY_PV}" -DESCRIPTION="A Collaboration and Integration Server Environment" -HOMEPAGE="http://www.open-xchange.org/" - -SRC_URI="http://www.mikefetherston.ca/OX/Crystal_OX_Theme.tgz" -if [[ $(get_version_component_range 3) -eq 0 ]]; then -SRC_URI="${SRC_URI} http://mirror.open-xchange.org/download/archive/${MY_P}.tar.bz2" -else -SRC_URI="${SRC_URI} http://mirror.open-xchange.org/download/${MY_P}.tar.bz2" -fi - -LICENSE="GPL-2" -KEYWORDS="~x86" -RESTRICT="primaryuri" - -IUSE="ssl doc webdav" - -S="${WORKDIR}/${MY_P}" - -RDEPEND=">=virtual/jre-1.4 - >=dev-java/java-config-1.2 - >=www-servers/tomcat-5.0.27-r6 - dev-perl/Net-SSLeay - dev-java/jdom - net-nds/openldap - app-text/aspell - dev-java/sun-javamail-bin - dev-perl/XML-NamespaceSupport - dev-perl/XML-SAX - dev-perl/Authen-SASL - dev-perl/Convert-ASN1 - dev-perl/perl-ldap - ~dev-java/jdbc3-postgresql-7.4.5 dev-db/postgresql - ssl? ( dev-libs/openssl dev-perl/IO-Socket-SSL )" - -# COMMENT: Why is the jdbc requirement set to 7.4.5 and not >=7.4.5? - -DEPEND="${RDEPEND} - app-arch/zip - >=virtual/jdk-1.4" - -RDEPEND="${RDEPEND} - www-apache/mod_jk - app-admin/sudo" - -#parameter $1 == 1 for config part or == 0 for preinst -ox_setup(){ - local config=$1 - local WORKINGBASE="${IMAGE}" #is used during pkg_* - if [[ $config -eq 1 ]]; then - #executed from in pkg_config - WORKINGBASE="${ROOT}" - fi - # Simple defaults - # some have to defined global - OX_DBNAME=${OX_DBNAME-"open_xchange"} - OX_DBUSER=${OX_DBUSER-"open_xchange"} - OX_DBPASS=${OX_DBPASS-"secret"} - OX_DOMAIN=${OX_DOMAIN-"example.org"} - # some just needed local - local OX_DBHOST=${OX_DBHOST-"localhost"} - local OX_ORG=${OX_ORG-"My Organization"} - local OX_LDAPSERVER=${OX_LDAPSERVER-"localhost"} - local OX_BASEDN=${OX_BASEDN-"dc=example,dc=org"} - local OX_ROOTDN=${OX_ROOTDN-"cn=Manager,${OX_BASEDN}"} - local OX_ROOTPW=${OX_ROOTPW-"secret"} - - # Guess base on the installed config but only if it exists - if [[ -e "${ROOT}/etc/open-xchange/admintools.conf" ]] ; then - local temp_var - echo "Installation of OX detected" - - temp_var=$(get_oxvar DEFAULT_SQL_HOST) - [[ -n ${temp_var} ]] && OX_DBHOST=${temp_var} - - temp_var=$(get_oxvar DEFAULT_SQL_DB) - [[ -n ${temp_var} ]] && OX_DBNAME=${temp_var} - - temp_var=$(get_oxvar DEFAULT_SQL_USER) - [[ -n ${temp_var} ]] && OX_DBUSER=${temp_var} - - temp_var=$(get_oxvar DEFAULT_SQL_PASS) - [[ -n ${temp_var} ]] && OX_DBPASS=${temp_var} - - temp_var=$(get_oxvar ORGA) - [[ -n ${temp_var} ]] && OX_ORG=${temp_var} - - temp_var=$(get_oxvar BINDDN) - [[ -n ${temp_var} ]] && OX_ROOTDN=${temp_var} - - temp_var=$(get_oxvar BINDPW) - [[ -n ${temp_var} ]] && OX_ROOTPW=${temp_var} - - if [[ -e "${ROOT}/etc/open-xchange/groupware/ldap.conf" ]] ; then - # taken from admintools.conf self - temp_var=`grep -v '^#' ${ROOT}/etc/open-xchange/groupware/ldap.conf | grep -i BASE | head -n 1 | awk {'print $2'}` - [[ -n ${temp_var} ]] && OX_BASEDN=${temp_var} - fi - fi - - if [[ ${config} -eq 1 ]]; then - # Now asking the user - einfo "If values are correct just press enter else enter the new value" - - OX_DBHOST=$(get_user_config "${OX_DBHOST}" "Database Host") - OX_DBNAME=$(get_user_config "${OX_DBNAME}" "Database Name") - OX_DBUSER=$(get_user_config "${OX_DBUSER}" "Database User") - OX_DBPASS=$(get_user_config "${OX_DBPASS}" "Database User's Password") - OX_ORG=$(get_user_config "${OX_ORG}" "Organization") - OX_DOMAIN=$(get_user_config "${OX_DOMAIN}" "Domain") - OX_LDAPSERVER=$(get_user_config "${OX_LDAPSERVER}" "LDAP Server") - OX_BASEDN=$(get_user_config "${OX_BASEDN}" "LDAP Base DN") - OX_ROOTDN=$(get_user_config "${OX_ROOTDN}" "LDAP Root DN") - OX_ROOTPW=$(get_user_config "${OX_ROOTPW}" "LDAP Root Password") - - einfo "Finished - now writing config" - fi - - ## now create configs with the right values - # starting with ldap - sed -i "s|@basedn@|${OX_BASEDN}|g" ${WORKINGBASE}/usr/share/open-xchange/init_ldap.ldif - sed -i "s|@domain@|${OX_DOMAIN}|g" ${WORKINGBASE}/usr/share/open-xchange/init_ldap.ldif - sed -i "s|@organization@|${OX_ORG}|g" ${WORKINGBASE}/usr/share/open-xchange/init_ldap.ldif - - local OX_BASEDC="`echo ${OX_BASEDN} | sed -n 's:dc=\([-A-Za-z_]*\).*:\1:p'|head -n 1`" - sed -i "s|@basedc@|${OX_BASEDC}|g" ${WORKINGBASE}/usr/share/open-xchange/init_ldap.ldif - sed -i "s|ORGA=\".*\"|ORGA=\"${OX_ORG}\"|g" ${WORKINGBASE}/etc/open-xchange/admintools.conf - sed -i "s|BINDDN=\".*\"|BINDDN=\"${OX_ROOTDN}\"|g" ${WORKINGBASE}/etc/open-xchange/admintools.conf - sed -i "s|BINDPW=\".*\"|BINDPW=\"${OX_ROOTPW}\"|g" ${WORKINGBASE}/etc/open-xchange/admintools.conf - sed -i "s|DEFAULT_SQL_HOST=\".*\"|DEFAULT_SQL_HOST=\"${OX_DBHOST}\"|g" ${WORKINGBASE}/etc/open-xchange/admintools.conf - sed -i "s|DEFAULT_SQL_DB=\".*\"|DEFAULT_SQL_DB=\"${OX_DBNAME}\"|g" ${WORKINGBASE}/etc/open-xchange/admintools.conf - sed -i "s|DEFAULT_SQL_USER=\".*\"|DEFAULT_SQL_USER=\"${OX_DBUSER}\"|g" ${WORKINGBASE}/etc/open-xchange/admintools.conf - sed -i "s|DEFAULT_SQL_PASS=\".*\"|DEFAULT_SQL_PASS=\"${OX_DBPASS}\"|g" ${WORKINGBASE}/etc/open-xchange/admintools.conf - - # setup correct ACIs - sed -i "s|@basedn@|${OX_BASEDN}|g" ${ROOT}/etc/openldap/slapd.ox.inc - - # groupware : server.conf - for f in /etc/open-xchange/groupware/server.conf /etc/open-xchange/webmail/server.conf ; do - sed -i "s|NAS_CON_CLASS_NAME: jdbc:\(.*\)://.*|NAS_CON_CLASS_NAME: jdbc:\1://${OX_DBHOST}/${OX_DBNAME}|g" ${WORKINGBASE}/${f} - sed -i "s|NAS_CON_USER:.*|NAS_CON_USER: ${OX_DBUSER}|g" ${WORKINGBASE}/${f} - sed -i "s|NAS_CON_PASS:.*|NAS_CON_PASS: ${OX_DBPASS}|g" ${WORKINGBASE}/${f} - sed -i "s|NAS_CON_PASS:.*|NAS_CON_PASS: ${OX_DBPASS}|g" ${WORKINGBASE}/${f} - done - - # patching umin.war, somehow dirty - [[ -d "${T}/ox_war" ]] && rm -rf ${T}/ox_war - mkdir -p ${T}/ox_war - - echo "${WORKINGBASE}/${SERVLETDIR}" - unzip ${WORKINGBASE}/${SERVLETDIR}/umin.war -d ${T}/ox_war - - sed -i "s|LDAP_SERVER=.*|LDAP_SERVER=${OX_LDAPSERVER}|g" ${T}/ox_war/WEB-INF/classes/oxuserminconfig.properties - sed -i "s|LDAP_BASEDN=.*|LDAP_BASEDN=${OX_BASEDN}|g" ${T}/ox_war/WEB-INF/classes/oxuserminconfig.properties - sed -i "s|SQL_SERVER_GROUPWARE=.*|SQL_SERVER_GROUPWARE=${OX_DBHOST}|g" ${T}/ox_war/WEB-INF/classes/oxuserminconfig.properties - sed -i "s|SQL_SERVER_GROUPWARE_DATABASE_NAME=.*|SQL_SERVER_GROUPWARE_DATABASE_NAME=${OX_DBNAME}|g" ${T}/ox_war/WEB-INF/classes/oxuserminconfig.properties - sed -i "s|SQL_SERVER_GROUPWARE_DATABASE_USERNAME=.*|SQL_SERVER_GROUPWARE_DATABASE_USERNAME=${OX_DBUSER}|g" ${T}/ox_war/WEB-INF/classes/oxuserminconfig.properties - sed -i "s|SQL_SERVER_GROUPWARE_DATABASE_PASSWORD=.*|SQL_SERVER_GROUPWARE_DATABASE_PASSWORD=${OX_DBPASS}|g" ${T}/ox_war/WEB-INF/classes/oxuserminconfig.properties - sed -i "s|CSS_PATH=/cfintranet/css/stylesheet.css|CSS_PATH=/open-xchange/cfintranet/css/stylesheet.css|g" ${T}/ox_war/WEB-INF/classes/oxuserminconfig.properties - - cd ${T}/ox_war - zip -r -9 umin.war * - cp umin.war ${WORKINGBASE}/${SERVLETDIR} - cd ${WORKINGBASE} - rm -rf ${T}/ox_war -} - -ox_setup_tomcat(){ - TOMCAT_DIR=`java-config -g CATALINA_HOME` - if has_version '>=www-servers/tomcat-5.0.28-r4' ; then - # it is now installed to the profile-directory choosen from /etc/conf.d/tomcat-5 - local PROFILE="$(sed -n "s:^PROFILE=\(.*\):\1:p" /etc/conf.d/tomcat-5)" - local CATALINA_BASE="$(sed -n "s:^CATALINA_BASE=\(.*\)/$.*:\1:p" /etc/conf.d/tomcat-5)" - SERVLETDIR="${CATALINA_BASE}/${PROFILE}/webapps" - TOMCAT_SHARED_LIB="${CATALINA_BASE}/${PROFILE}/shared/lib" - else - SERVLETDIR="${TOMCAT_DIR}/webapps" - TOMCAT_SHARED_LIB="${TOMCAT_DIR}/shared/lib" - fi -} - - -pkg_setup() { - webapp_pkg_setup - ox_setup_tomcat -} - -src_unpack() { - unpack ${A} - cd ${S} - - # http://www.open-xchange.org/cgi-bin/bugzilla/show_bug.cgi?id=734 - epatch ${FILESDIR}/${PN}-0.8.1.2-login.patch - epatch ${FILESDIR}/${PN}-0.8.1.5-oxFolder.patch - - # http://www.open-xchange.org/cgi-bin/bugzilla/show_bug.cgi?id=656 - sed -i "s|\${DESTDIR}|\$(DESTDIR)|g" Makefile.am - - export WANT_AUTOMAKE=1.8 - export WANT_AUTOCONF=2.5 - libtoolize --force --copy || die - aclocal -I m4 || die - automake -a -f -c || die - autoheader || die - autoconf || die - - # doing all preconfigure which can be done here - # correct ispell-handling of german dictionary - sed -i "s|-ddeutsch|-dgerman|g" conf/webmail/spellcheck.cfg - - if use ssl; then - # change login.pm-script if ssl should be used - sed -i "s|connection_mode = 3;|connection_mode = 2;|g" src/misc/login/login.pm.in - fi - - # change image- and link- to the open-xchange location - find groupware/ -regex '.*\.htm' |xargs sed -i "s|/cfintranet/|/open-xchange/cfintranet/|g" - find templates/ -regex '.*\.htm' |xargs sed -i "s|/cfintranet/|/open-xchange/cfintranet/|g" - find webmail/ -regex '.*\.htm' |xargs sed -i "s|/cfintranet/|/open-xchange/cfintranet/|g" - - find templates/ -regex '.*\.lang' |xargs sed -i "s|/cfintranet/|/open-xchange/cfintranet/|g" - - find system/www/ -regex '.*\.htm' |xargs sed -i "s|/cfintranet/|/open-xchange/cfintranet/|g" - find system/www/ -regex '.*\.js' |xargs sed -i "s|/cfintranet/|/open-xchange/cfintranet/|g" - - sed -i "s|/cfintranet/|/open-xchange/cfintranet/|g" conf/groupware/system.properties.in - sed -i "s|/cfintranet/|/open-xchange/cfintranet/|g" conf/webmail/system.properties.in -} - -src_compile() { - local myconf - local tempvar - - myconf="${myconf} --with-jdbcjar=$(java-config -p jdbc3-postgresql)" - myconf="${myconf} $(use_enable doc) $(use_enable webdav) $(use_enable ssl)" - myconf="${myconf} --with-servletdir=${SERVLETDIR}" - myconf="${myconf} --with-jsdkjar=${TOMCAT_DIR}/common/lib/servlet-api.jar" - myconf="${myconf} --with-mailjar=/usr/share/sun-javamail-bin/lib/mail.jar" - myconf="${myconf} --with-activationjar=/usr/share/sun-jaf-bin/lib/activation.jar" - myconf="${myconf} --with-jdomjar=$(java-config -p jdom-1.0)" - myconf="${myconf} --with-xercesjar=/usr/share/xerces-2/lib/xercesImpl.jar" - myconf="${myconf} --with-jni-dir=$(java-config -O)/include" - myconf="${myconf} --with-runuid=tomcat" - myconf="${myconf} --with-rungid=tomcat" - myconf="${myconf} --with-tomcatuser=tomcat" - myconf="${myconf} --with-htdocsdir=${MY_HTDOCSDIR}" - myconf="${myconf} --with-cgibindir=${MY_CGIBINDIR}" - myconf="${myconf} --sysconfdir=/etc/open-xchange" - myconf="${myconf} --datadir=/usr/share/open-xchange" - myconf="${myconf} --includedir=/usr/include/open-xchange" - myconf="${myconf} --libdir=/usr/$(get_libdir)/open-xchange" - myconf="${myconf} --localstatedir=/var/open-xchange" - - econf ${myconf} || die "bad ./configure" - - # replace the string "jikes" with "modern". We dont want to see all jikes warnings - sed -i "s|jikes|modern|g" build.xml - - emake -j1 || die "make failed" - - # use sudo instead of su for the startup script and - # correct var-log - for foo in groupware sessiond webmail ; do - sed -i "s:^\([\t ]*\)\(su \$USER.*$\):\1#\2:gI;s:^\([\t ]*\)#\(sudo -u \$USER.*\)$:\1\2:gI" system/etc/init.d/${foo} - sed -i "s|open-xchange/log|log/open-xchange|g" system/etc/init.d/${foo} - done - - sed -i "s|open-xchange/log|log/open-xchange|g" conf/groupware/system.properties -} - -src_install() { - webapp_src_preinst - - dodoc AUTHORS ChangeLog NEWS README - - # Install this big thing - cd ${S} - make DESTDIR=${D} install || die "Failed on make install" - - # copy the ldif.in file for better config-abilities in pkg_preinst - cp ${S}/system/setup/init_ldap.ldif.in ${D}/usr/share/open-xchange/init_ldap.ldif - - # remove obsolete log-files they should be saved in /var/log/open-xchange - rm ${D}/var/open-xchange/log/groupware.log - rm ${D}/var/open-xchange/log/jserv.log - rm ${D}/var/open-xchange/log/sessiond.log - rm ${D}/var/open-xchange/log/webmail.log - rmdir ${D}/var/open-xchange/log/ - - # create log-dir - keepdir /var/log/open-xchange - - # remove unessary war-files, they are needed for deploying application - rm ${D}/usr/lib/open-xchange/*.war - - # remove empty include-dir - rmdir ${D}/usr/include/open-xchange/ - rmdir ${D}/usr/include/ - - # remove unneeded init-script - not used by gentoo - rm ${D}/etc/open-xchange/init.d/openexchange - - # Init script - newinitd "${FILESDIR}/init.d.open-xchange" open-xchange || die "newinitd failed" - - if has_version '<www-servers/tomcat-5.0.28-r4' ; then - dosed 's:tomcat-5:tomcat5:' /etc/init.d/open-xchange - fi - - insinto ${SERVLETDIR} - doins lib/*.war - - # chown of war-files or tomcat gets problems with stopping itself - for x in umin.war servlet.war ; do - fowners tomcat:tomcat ${SERVLETDIR}/${x} - done - - # Change default icon theme - insinto ${MY_HTDOCSDIR}/cfintranet/images/top/EN/ - insopts -m0644 - doins ${WORKDIR}/*.png - insinto ${MY_HTDOCSDIR}/cfintranet/images/top/DE/ - doins ${WORKDIR}/*.png - - # now mark all items with meta-info for webapp-script - cd ${D}${MY_HTDOCSDIR} - for x in $(find . -type f -print) ; do - webapp_serverowned ${MY_HTDOCSDIR}/$x - done - - # Put the schema in etc and symlink. This way it's protected. - dodir /etc/openldap/schema - mv ${D}/usr/share/open-xchange/openxchange.schema ${D}/etc/openldap/schema - dosym ../../../etc/openldap/schema/openxchange.schema /usr/share/open-xchange/openxchange.schema - dosym ../../openldap/ldap.conf /etc/open-xchange/groupware/ldap.conf - dosym ../../openldap/ldap.conf /etc/open-xchange/webmail/ldap.conf - - if use ssl ; then - #create symlink to ssl directory for webmail - dosym /etc/open-xchange/groupware/sslcerts /etc/open-xchange/webmail/sslcerts - #and to get the setup part working - dodir ${TOMCAT_SHARED_LIB} - dosym /usr/lib/open-xchange/liboxssl.so ${TOMCAT_SHARED_LIB}/liboxssl.so - fi - - for x in settings/intranet settings/webmail filespool drafts webmailupload dictionary ; do - keepdir /var/open-xchange/${x} - fowners tomcat:tomcat /var/open-xchange/${x} - done - - # Copy mod_jk file - insinto ${APACHE2_MODULES_CONFDIR} - doins ${FILESDIR}/88_mod_jk.ox.conf - - # copy ldap-aci-file - insinto /etc/openldap/ - doins ${FILESDIR}/slapd.ox.inc - - # copy sql update file - insinto /usr/share/open-xchange/ - doins ${FILESDIR}/ox_reminder.sql - - # .htacces file - insinto ${MY_HTDOCSDIR} - newins ${FILESDIR}/${PN}-htaccess .htaccess - - # Install webapp - webapp_src_install -} - -pkg_preinst(){ - #execute ox_setup from preinst(0) - ox_setup_tomcat - ox_setup 0 - - # create user mailadmin, needed for mailsupport - enewuser mailadmin -1 -1 /dev/null users - _UID=`getent passwd mailadmin | awk -F : '{print $3}'` - - # get the default guid of the group 'users' - OX_STDGID=`getent group users | awk -F : '{print $3}'` - - # replace the SuSE group id 500 of users with the gentoo group id of the group 'users' for the mailadmin in ldif + uid - sed -i "s|500|${OX_STDGID}|g" ${D}/usr/share/open-xchange/init_ldap.ldif - sed -i "s|501|${_UID}|g" ${D}/usr/share/open-xchange/init_ldap.ldif - - # configuring admintools.conf - - # replace the SuSE standard group id 500 with the gentoo group id of the group 'users' - sed -i "s|500|${OX_STDGID}|g" ${D}/etc/open-xchange/admintools.conf - OX_STDGID=`expr ${OX_STDGID} + 1` - sed -i "s|501|${OX_STDGID}|g" ${D}/etc/open-xchange/admintools.conf - - if use ssl ; then - SSL_ORGANIZATION="${SSL_ORGANIZATION:-Open Xchange}" - insinto /etc/open-xchange/groupware/sslcerts/oxCERTS - docert groupware sessiond - - # copying the CA-certificate - dodir /etc/open-xchange/groupware/sslcerts/oxCA - cp ${T}/*ca.crt ${D}/etc/open-xchange/groupware/sslcerts/oxCA/cacert.pem - - # copying the groupware-key and -cert the way ox would like it to have - mv ${D}/etc/open-xchange/groupware/sslcerts/oxCERTS/groupware.key ${D}/etc/open-xchange/groupware/sslcerts/oxCERTS/groupwarekey.pem - mv ${D}/etc/open-xchange/groupware/sslcerts/oxCERTS/groupware.crt ${D}/etc/open-xchange/groupware/sslcerts/oxCERTS/groupwarecert.pem - mv ${D}/etc/open-xchange/groupware/sslcerts/oxCERTS/sessiond.key ${D}/etc/open-xchange/groupware/sslcerts/oxCERTS/sessiondkey.pem - mv ${D}/etc/open-xchange/groupware/sslcerts/oxCERTS/sessiond.crt ${D}/etc/open-xchange/groupware/sslcerts/oxCERTS/sessiondcert.pem - rm ${D}/etc/open-xchange/groupware/sslcerts/oxCERTS/sessiond.pem - rm ${D}/etc/open-xchange/groupware/sslcerts/oxCERTS/groupware.pem - rm ${D}/etc/open-xchange/groupware/sslcerts/oxCERTS/sessiond.csr - rm ${D}/etc/open-xchange/groupware/sslcerts/oxCERTS/groupware.csr - - chown -R tomcat:apache ${D}/etc/open-xchange/groupware/sslcerts - find ${D}/etc/open-xchange/groupware/sslcerts -name '*.pem' -exec chmod 440 {} \; - fi -} - -pkg_postinst() { - webapp_pkg_postinst - - chgrp -R apache /var/open-xchange/* - einfo - einfo " You have successfully installed Open-Xchange" - einfo - einfo - einfo " o STARTING and STOPPING Open-Xchange" - einfo " /etc/init.d/open-xchange start" - einfo " /etc/init.d/open-xchange stop" - einfo " /etc/init.d/open-xchange restart" - einfo - einfo "Execute the following command" - - if has_version '<=sys-apps/portage-2.0.51*' ; then - einfo "ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config" - else - einfo "emerge --config =${CATEGORY}/${PN}-${PV}" - fi - - einfo "to setup the initial open-xchange environment." - einfo - - ewarn "If you upgrade from a prior version you should execute the following command." - ewarn "psql -U ${OX_DBUSER} ${OX_DBNAME} < ${ROOT}usr/share/open-xchange/ox_reminder.sql" - - if has_version '=net-nds/openldap-2.1*' ; then - ewarn "You have got OpenLDAP-2.1.* installed." - ewarn "Please make sure you've got enabled aci support for this package." - ewarn "For more information: http://gentoo-wiki.com/HOWTO_Open-Xchange#OpenLDAP" - ewarn - ewarn "If you already have this done, ignore this warning" - fi -} - -get_oxvar() { - local var=$1 - more /etc/open-xchange/admintools.conf | sed -n "s:^\s*${var}=\"\(.*\)\":\1:p" | head -n 1 -} - -get_user_config() { - local default=$1 - local desc=$2 - local read_val; - - echo -n "${desc}? [${default}] " 1>&2 - read readval - if [[ -z ${readval} ]] ; then - echo ${default} - else - echo ${readval} - fi -} - -pkg_config() { - ox_setup_tomcat - #execute ox_setup from pkg_config(1) - ## at first automatially change config in init_ldap.ldif and configuration-files - ox_setup 1 - - chown -R tomcat:tomcat ${ROOT}/etc/open-xchange - - if use ssl ; then - chown -R tomcat:apache ${ROOT}/etc/open-xchange ${ROOT}/etc/open-xchange/groupware/sslcerts - find ${ROOT}/etc/open-xchange/groupware/sslcerts -name '*.pem' -exec chmod 440 {} \; - fi - - - - #set correct user rights for ldap - chown ldap:ldap ${ROOT}/etc/openldap/slapd.ox.inc - - correctfilespool - echo - echo - einfo "======================" - einfo "Finished configuration" - einfo "======================" - - echo - einfo "Set JAVA_OPTS in /etc/conf.d/tomcat5 (or tomcat-5):" - einfo "JAVA_OPTS=\"-Dopenexchange.propfile=${ROOT}etc/open-xchange/groupware/system.properties\"" - if use ssl ; then - einfo "CATALINA_OPTS=\"\${CATALINA_OPTS} -Djava.library.path=${TOMCAT_SHARED_LIB}\"" - fi - - echo - einfo "Setup /etc/conf.d/apache2" - einfo "APACHE2_OPTS=\"-D JK\"" - - echo - einfo "Setup /etc/conf.d/postgresql" - einfo "PGOPTS=\"-i\"" - - # Tell the user how to propegate ldap and the db - ## create ox-dbuser - echo - einfo "HOWTO: Setup database (following commands)" - einfo "++++++++++++++++++++++++++++++++++++++++++" - - einfo "echo \"CREATE USER ${OX_DBUSER} WITH PASSWORD '${OX_DBPASS}' CREATEDB NOCREATEUSER\" | psql -h localhost -U postgres template1 -f -" - einfo "echo \"CREATE DATABASE ${OX_DBNAME} WITH OWNER=${OX_DBUSER} ENCODING='UNICODE'\" | psql -h localhost -U postgres template1 -f -" - einfo "psql -U ${OX_DBUSER} ${OX_DBNAME} < ${ROOT}usr/share/open-xchange/init_database.sql" - einfo "/usr/sbin/dbinit_ox" - - ## initialise database with ox, after configurations have been changed - echo - echo - einfo "HOWTO: Setup OpenLDAP" - ewarn "Please make sure to STOP slapd to maintain database consistency (from slapadd(8c))!!!" - einfo "+++++++++++++++++++++++++++++++++" - einfo "/etc/init.d/slapd stop" - einfo - einfo "Add this to /etc/openldap/slapd.conf:" - einfo "include /etc/openldap/schema/cosine.schema" - einfo "include /etc/openldap/schema/inetorgperson.schema" - einfo "include /etc/openldap/schema/misc.schema" - einfo "include /etc/openldap/schema/nis.schema" - einfo "include /etc/openldap/schema/openldap.schema" - einfo "include /etc/openldap/schema/openxchange.schema" - einfo - einfo "If you want an initial set of access rights (enables your user, editing their password, ...)" - einfo "you should also add the following line:" - einfo "include /etc/openldap/slapd.ox.inc" - einfo - einfo "slapadd -l /usr/share/open-xchange/init_ldap.ldif" - einfo - einfo "/etc/init.d/slapd start" - - echo - echo - einfo "HOWTO: Add a group" - einfo "++++++++++++++++++" - einfo "This is suggested for correct webdav-access" - einfo "/usr/sbin/addgroup_ox --group=NEWGROUPNAME" - - echo - echo - einfo "HOWTO: Add a user" - einfo "+++++++++++++++++" - einfo "/usr/sbin/adduser_ox --username=MYUSERNAME --passwd=MYPASSWORD --name=FORENAME --sname=SURENAME --maildomain=${OX_DOMAIN} --ox_timezone=\"Europe/Berlin\"" - einfo "Now you can add the user to a group." - einfo "/usr/sbin/addusertogroup_ox --user=MYUSERNAME --group=NEWGROUPNAME" - echo - einfo "If you encounter any problems with this commands probably your ldap or database configuration is not correct" - echo - echo - einfo "Web Access:" - einfo "To access open-xchange via the web, point your browser to: http://localhost/cgi-bin/login.pl" -} |