Cleaned up unneeded files.
This commit is contained in:
parent
695ee82d1f
commit
73227dd2fb
|
@ -1,26 +0,0 @@
|
||||||
AUX gentoo-patches.conf 3599 BLAKE2B bde110cce9707136b4c0ab4ffa51115a01557945b37d943115460b243aa6b9627411ea8498fec71479b8aaa12e0d6a830b097ed3b5a2275b9e581e7022ecd878 SHA512 d06853b6bd602e7e313e2433526898b316c7d138e81fb9bbbf175e275b59114e544305fec130d462fb99288a5b998eb6ed376830786e6b807743566982b47839
|
|
||||||
AUX stubs-32.h 537 BLAKE2B 456f57c4a4ba574c737f1b84b62a085d0290ebc8981a5f96fdebc16b6c86c801c5ca8dde135e803f46c5ec875fdd74770f6ed754880bc7af930b8ce1ce972fb7 SHA512 55308dbedaa91909a2213940f7a7b574cabe6b5a3104761a2a6f28d6aed00164544488c00cbf9d66a9a370a14c6b6d3a00434efd3ff0228cc8e4d81af19c0e68
|
|
||||||
AUX xen-consoles.logrotate 63 BLAKE2B 4ae650876035d2815dbcacc6ed618c58cc61d9cfd9cde1b6c2f792cbf51898c577ef979443ad827fc82ced4d21ae24836883160b20d697965ef5377d50c2973c SHA512 ab2105c75cfe01768aecd5bcbb56269d63666e8a44e42b6a83aee87df6c84ee2f9ab249171c21b2e09f8fec2cae8318f6e87d160989398a3e7dd68db8d52c426
|
|
||||||
AUX xen-tools-4.14.3-brotli.patch 3956 BLAKE2B d7ed1d251720d45f5125fb4cf3a618b6e2877d8fc46b972649d9b647eb899058c4334f211837f946c6fb6641747a8eeb2a9bff550483d226d09b655e2bbb4c69 SHA512 ad320e1e69b2e715e610447efbc88b1a7c8848bd472b3798dd793f5408a9a439aa11129a3ebe14c72b7187e961d76d02200de1032d40039b44c7cbd7976b2426
|
|
||||||
AUX xen-watchdog.initd 181 BLAKE2B b8529db36016b6f71520c1e4119a2ea5c4d3f52f2c77ccb5603efb67bcdd88b8273a359f6ae0df61763ea31a50bd8a0be775df5aabbd17c90e7928c8ed5b7c0e SHA512 5f6da91c0067b93f1b9f1a2f181caf34034896944ab26f5820e860336e3b3159a65e8a7f39ea273927d64d58a2fe4d918d2c3234f2b03ab0770e0c15d6dfe84b
|
|
||||||
AUX xencommons.confd 109 BLAKE2B 6a2023a95cd1e411abe57c321e1c5f13096b51299817ce547e8ff042cbdbf859a5c1f50135e946fe650e0ec9221db3389ff50bc23f6d88d0c0fd1805b64786be SHA512 f0bbc9647cecc6cf806e3059960fbe39b23304d9ca0955fb261e1d320b9b9ce59e5b28cc4b5a9922295b31221f0cd8f0cccb405520e097a7b12dc6ddb3294c17
|
|
||||||
AUX xencommons.initd 1451 BLAKE2B ef0cfa4fc7c4071b7a5822f4ad8983b9f7c386505e8b6967139c8921b002ff03a0a2be235060160d00d3890cffd15300b588c2b06a67a839df110c3737bbaee5 SHA512 1d25ae65ff073a5fc00aed2011af9e38f53d179dfadd06f791a4599c070a5ddbbf75d80b37e219b6de5d09e3466510c241311cbb018ef22cd3c97ce3b7c15b3c
|
|
||||||
AUX xenconsoled.confd 44 BLAKE2B 865edf537c1a935cb78b682be805a8284c05e6c53e4a779bdabb4f43fcb1cfd5224b03f8c1febf8e5d49181ee08099c33970e39ff01028478a038feb7a061522 SHA512 30df69cc38d0bed26bc4d6e08a2b62cbdc654d5f663009a05cb3b83b3e3dc5e206362d3fd59abbb753ceb8d6d79eaa6e15d079bb8f4f35dc74667103faf4e85d
|
|
||||||
AUX xenconsoled.initd 783 BLAKE2B 1903532f7e6cea87e0154e752d8263d1d6df29e4722dccca330185012de7f443950fe165d009466b138be378ec19c80c45c0b0a5cde7add94707aac5e67c23d3 SHA512 90f3bdb9d670c039d34fcd082769cb2cf90d4b0f6a46e409bd098795839e63fef11ef856bec99cd712ab36ecf7f2a43db2ca8454daa1a19feddf2e18b92e7824
|
|
||||||
AUX xendomains-screen.confd 890 BLAKE2B 91eb128682e7d81436cc3c82e7ae873bac4fbcc5d5f70e70c0ed16eb5af3f4cb61799f39ab275bc30b3d5686f5cbfac8c09aba6937f827ab6afdfe7ed995f352 SHA512 fb7bfc1806608c6e30bb7db367afe9cf75d44e809556c3ba2794cb3ce0c9f35bcfd7f2bfc4a15a8d805f3d57ff082fe9a525cbac3306e64cbbd0ee5cef554505
|
|
||||||
AUX xendomains.confd 291 BLAKE2B 8784abad4db4b4b649c4e57a3a1f818cb431e5eaa2277da65e6272f36e421230bfe7feb52b9cade50050c73eac379acd1684d5307fb89ced073345a213b4c56e SHA512 8ad255d39fc0b390c854a64ed82333b6a3041e1247b7a3934cd8274710c168c0017ef2dddbe32c120268d7ea946f8c1b148d7d06a3a4bf415a77eeec36dce2da
|
|
||||||
AUX xendomains.initd-r2 2805 BLAKE2B 6f5e0cd4a9e3e0e2b4f6ad9b9f9fd9e399f04462e120bb1bf68f63d2afe73689522f3dd127867751e8055a735a2764393aaa6ea5aa10f8191fd5c503f01cee04 SHA512 cbfb37302b0930f608def30dad8942a0c52e1ad8c3f9068a1b125428777e9b8f4d2f41b0cbb1f26cd78d569a196946ff58e21cc8a87f8e955dc1a485f4769185
|
|
||||||
AUX xenqemudev.confd 156 BLAKE2B 566dbe6e3a3d3bbbfd1b3cded7b0677b8b94ee3382226f4e8bf30e9e60771bfdca68c5448c63abf94be41c28082f2cbab6f9ea21335b41d24ba7b7e0347769af SHA512 d3cdeaed625e65e60fb22128baf24dceb45143ddf494d7db26464497abc42dbba0c0c9878f1e3908e2910557f4c4d600939824e944938aa251609ec5a1a86ee4
|
|
||||||
AUX xenqemudev.initd 1828 BLAKE2B 695090fca31cff426c8434fe7a766c491725bcc91975b8338a8bd7d69bd51409bc8b586597866f7dc570e93693c87961e327c720cf44e7e941e1b83a157076e3 SHA512 d9ef6c0446cd2510f79d2117f0ad9ea3605854d1f5f601526706d9563abc72b71b4777c773e39ea1a9a77772e6ac70f6111109696a2621bc4b98c4518c7b589f
|
|
||||||
AUX xenstored.confd 42 BLAKE2B 61153f1bb17c78614e215f25f59642f35185f7f7a2e911e04285a7f589c6a69856f914096621eded787b0c23a3f8994076ee15d2dd3e2a36589a65cd585c7946 SHA512 0906cbcdc84935d07cf53bc4447a1f9a9dc4e4fb9fda9a7163f6982f1d8a3ada1f0650fcd254fb6f715a54f7971daf0a5e61c3de6db70dfd156156fd55b59fe4
|
|
||||||
AUX xenstored.initd-r1 916 BLAKE2B 5acda60c3d1c8aaf91d14d980a0b68f3d5ff803b617431c87f46b5c2c6f4c87548fa8db32ebd554e8aad4928d7ec0b16598bf8dfb0aa7e3642caa96eb164a292 SHA512 1404c9c454f5359389a2e9588317f10412dafdbdeb1de5da945c10f8e6efd09007e96d35b75d04a4c3d5c59baa9c3bbee4192240cacee128b0adf9066d3efc10
|
|
||||||
DIST OpenSSL_1_1_1g.tar.gz 9975550 BLAKE2B 22efa4ffe5d56a861bc4e2e1bc9a558e79265a3789acd9ca65d0a1162a1808a089a92a234e88c951f2a3cdabd3b1908ac7fe6d5f2b5fe554f229a22c11ab185b SHA512 bc8d24d7fc93542a8d77e13a57768de242ef679ef4db93c1b6b981a15a60646a5c5d869d066248448f3eb1ab2012e3ddc80bf301f486c0574d469a3f7db7b8d4
|
|
||||||
DIST berkeley-softfloat-b64af41c3276f97f0e181920400ee056b9c88037.tar.gz 148741 BLAKE2B 72014022926b636147e202d74c42df2ce9cfed00b91c275d5b2e0afbc5c68765445cbe7ac6389d7c2512bd1d45b0e16e999936552d09bbc733ab66c92968bd31 SHA512 8420c29faa7ff57e06d6758b03e81ca0630c59946bc031e8611f1449e23634cf901b502161f2c1423c0cff949b5481445e36a3aa53dc885b61ca2c673b3ba567
|
|
||||||
DIST brotli-666c3280cc11dc433c303d79a83d4ffbdd12cc8d.tar.gz 23855739 BLAKE2B 7406ec5b29ac66afbcd7c1376bb3208f298d19b6592b2869c52173aa64947d58bd443f9a61c67deaf046be910a0e31c0b843e5508e97e0e1f5e7bce100d86904 SHA512 df8e90562c4fd7f0e787949df6bc4f5a165b39bd333f442d27874fe65640fbba268f9350d7113e6761a5acceb66d78e75f1a296e5a89b94574edf28109cdc812
|
|
||||||
DIST edk2-06dc822d045c2bb42e497487935485302486e151.tar.gz 13192042 BLAKE2B 81afa7fd5f6f14fff35baa3c6c64583fa21c7b793ed847a3362fd05a926bb4402db911f9f78f4ffd76a6de9b815171dfa245ae41afac3b022cd108597e8c1ac3 SHA512 a032a1496db7ddc32a7d6d1a7d5fe4122ab43b13547ec019855166d785f162268ad82ceb3c41efafe1687e73fc72599ee6852741652451e1cb329fd655c69b6c
|
|
||||||
DIST ipxe-git-988d2c13cdf0f0b4140685af35ced70ac5b3283c.tar.gz 3931642 BLAKE2B bf0b5d9ea1d44803bc5c4aa0bf9188636e292b226ab759f32e3c2bfa3f80dd3f546526b9a11c1f67193793ede5309bfa67bdce80aba62ccca54597dc6e7e4ba4 SHA512 0a63f83c9135d05c6bfe7c4d12da3ff76271e35305a4d5654bd5aefa9ee59f5363546c65820c42133deb0fb5a0a0bcaa9b1c48396f9f996acea0d492a5f03f33
|
|
||||||
DIST seabios-1.14.0.tar.gz 628985 BLAKE2B cc1126925dab1551a655680d20d06ebf28c12c386500d1ee4df9e1a99403b4c5bc6a66c2cc5ef58b4c3d6d7226f35007506a6a1855c2cf2742469dcb7aba05bb SHA512 215c42f59425f8abd062be7b11fc0e39c977cee5001a2381551b0f851ac337d0dd53c065267e6dee0e710ffd700fa635f9007b89da8dfce0f47122c984ee8146
|
|
||||||
DIST xen-4.14.3.tar.gz 39982036 BLAKE2B 927fd2937f451567238702430cea3a6e5d2db70d5eef10f029bb1d6d030681573c851eb8076c8bad89c97c115f81a19ac8e46e78ca3f0e642565f7300c264ca1 SHA512 b462fcc1549f6e57f7f2a4fd10ce1e957a25a6a7c0319672b62699468f6c4330b9cd0cf2b0231b5cce94f4bb142a957eb8aa58aa0ffb5c85b37211d6b34ccf16
|
|
||||||
DIST xen-gentoo-patches-23.tar.xz 20536 BLAKE2B 0064f79f8794a21ab13047a4ee296e37efa616e16ca6cd65b31fdafeb458fd9b80f0443758343c8328b1901d7169618346becfe75f16dcaeff08fc975f1d08d5 SHA512 09248e17ff7865feb2a505169d62ee5c8c60bd672fa8c4c7c4e3a2e4af58bfad0379d37b395bab3e3393af8d53d882f56749dfeb560edeea6b7ab56c902a3c49
|
|
||||||
EBUILD xen-tools-4.14.3.ebuild 17138 BLAKE2B db6e9c9a9665fc26b9db3aa1973ae74d33619398aaddde7c483fe3238f451742b9205421aa89fcd074865392394814021aed3ba7b87c17df4c6188bbf5fa6544 SHA512 c403226563fbd2886e15a03d77827f544ba3f93fe37d2442841f464eba3a9cd922c32e0537d40b5c94faa6c63825f402d581b1d8aa5b3c46ce9acb73021d2ef9
|
|
||||||
MISC metadata.xml 1562 BLAKE2B a619e34e6fec4c6ffc00fd098dc040c5bb464ed7f2032db2e933fada0614e82c21269175f37720a123404551474e2aeeb2728b405ff93f9b4d9d092d027e0839 SHA512 f45c793a4b4819f0e50501ddc85acdaf99e4d675530712f8dccfb5166d071ae8ed07917a61d56037d6ba3a54123f72f4512d8c11643ea8c6e507feb9d29594e7
|
|
|
@ -1,120 +0,0 @@
|
||||||
# Bug 496708
|
|
||||||
_gx045=" xen-tools-4.10.1-unbundle-ipxe.patch"
|
|
||||||
_gx054=" xen-tools-4.12.0-unbundle-ipxe.patch"
|
|
||||||
|
|
||||||
# Bug 379537
|
|
||||||
_gx017=" fix-gold-ld.patch"
|
|
||||||
|
|
||||||
# Bug 477676
|
|
||||||
_gx038=" xen-tools-4.8-ar-cc.patch"
|
|
||||||
_gx039=" xen-tools-4.14-ar-cc.patch"
|
|
||||||
|
|
||||||
# Prevent file collision with qemu package Bug 478064
|
|
||||||
_gx043=" xen-4.10-qemu-bridge.patch"
|
|
||||||
_gx051=" xen-4.12-qemu-bridge.patch"
|
|
||||||
_gx052=" xen-tools-4.14-qemu-bridge.patch"
|
|
||||||
#mv tools/qemu-xen/qemu-bridge-helper.c tools/qemu-xen/xen-bridge-helper.c || die
|
|
||||||
|
|
||||||
# Fix po file collision with app-emulation/qemu, while USE=qemu is enabled, Bug 508302
|
|
||||||
_gx027=" xen-tools-4-qemu-fix-po-collision.patch"
|
|
||||||
|
|
||||||
# Fix build failure with ncurses[tinfo], bug 526526
|
|
||||||
_gx028=" xen-tools-4.4.1-tinfo.patch"
|
|
||||||
|
|
||||||
# Don't download ovmf, use pre-released
|
|
||||||
_gx029=" xen-tools-4-anti-ovmf-download.patch"
|
|
||||||
|
|
||||||
# increase stack to fix xenqemu err
|
|
||||||
# https://lists.gnu.org/archive/html/qemu-devel/2016-09/msg03961.html
|
|
||||||
_gx037=" xen-tools-4.6-increase-stack-size.patch"
|
|
||||||
|
|
||||||
#Fix missing makedev(), major(), minor()
|
|
||||||
_gx042=" xen-tools-4.8.2-makedev.patch"
|
|
||||||
|
|
||||||
# Disable failing shim
|
|
||||||
_gx046=" xen-tools-4.10.1-shim.patch"
|
|
||||||
_gx050=" xen-tools-4.12.0-shim.patch"
|
|
||||||
|
|
||||||
# Fix building with gcc 8, bug #657388
|
|
||||||
_gx048=" xen-tools-4.11.1-gcc8.patch"
|
|
||||||
_gx053=" xen-tools-4.12.0-gcc8.patch"
|
|
||||||
|
|
||||||
# Fix building with gcc 9, bug #689082
|
|
||||||
_gx055=" xen-tools-4.11.2-gcc9.patch"
|
|
||||||
|
|
||||||
# Fix pdf document generation, bug #650396
|
|
||||||
_gx049=" xen-tools-4.10.1-pdfdoc.patch"
|
|
||||||
|
|
||||||
# Add xenstat python-binding, Gento Bug #711066
|
|
||||||
_gx056=" xen-tools-4.12.2-libxenstat-makefile.patch"
|
|
||||||
|
|
||||||
# Fix building with gcc 10, bug #722930
|
|
||||||
_gx060=" xen-tools-4.13.0-gcc10.patch"
|
|
||||||
|
|
||||||
# xen-tools-4.14.2 patches set
|
|
||||||
_gpv_xen_tools_4142_0="
|
|
||||||
xen-tools-4.12.0-gcc8.patch
|
|
||||||
xen-tools-4.12.0-shim.patch
|
|
||||||
xen-tools-4.12.0-unbundle-ipxe.patch
|
|
||||||
xen-tools-4.12.2-libxenstat-makefile.patch
|
|
||||||
xen-tools-4.14-ar-cc.patch
|
|
||||||
xen-tools-4.14-qemu-bridge.patch
|
|
||||||
xen-tools-4.15.0-disable-werror.patch
|
|
||||||
xen-tools-4.15.0-gcc11.patch
|
|
||||||
xen-tools-4.4.1-tinfo.patch
|
|
||||||
xen-tools-4.6-increase-stack-size.patch
|
|
||||||
xen-tools-4-anti-ovmf-download.patch
|
|
||||||
xen-tools-4-qemu-fix-po-collision.patch
|
|
||||||
"
|
|
||||||
|
|
||||||
# xen-tools-4.14.3 patches set
|
|
||||||
_gpv_xen_tools_4143_0="
|
|
||||||
xen-tools-4.12.0-gcc8.patch
|
|
||||||
xen-tools-4.12.0-shim.patch
|
|
||||||
xen-tools-4.12.0-unbundle-ipxe.patch
|
|
||||||
xen-tools-4.12.2-libxenstat-makefile.patch
|
|
||||||
xen-tools-4.14-ar-cc.patch
|
|
||||||
xen-tools-4.14-qemu-bridge.patch
|
|
||||||
xen-tools-4.15.0-disable-werror.patch
|
|
||||||
xen-tools-4.4.1-tinfo.patch
|
|
||||||
xen-tools-4.6-increase-stack-size.patch
|
|
||||||
xen-tools-4-anti-ovmf-download.patch
|
|
||||||
xen-tools-4-qemu-fix-po-collision.patch
|
|
||||||
"
|
|
||||||
|
|
||||||
# xen-tools-4.15.0 patches set
|
|
||||||
_gpv_xen_tools_4150_0="
|
|
||||||
xen-tools-4.14-ar-cc.patch
|
|
||||||
xen-tools-4.15.0-disable-werror.patch
|
|
||||||
xen-tools-4.15.0-gcc11.patch
|
|
||||||
xen-tools-4.15.0-libxenstat-makefile.patch
|
|
||||||
xen-tools-4.15.0-no-ld-no-pie.patch
|
|
||||||
xen-tools-4.15.0-qemu-bridge.patch
|
|
||||||
xen-tools-4.15.0-unbundle-ipxe.patch
|
|
||||||
xen-tools-4.4.1-tinfo.patch
|
|
||||||
xen-tools-4-anti-ovmf-download.patch
|
|
||||||
xen-tools-4-qemu-fix-po-collision.patch
|
|
||||||
"
|
|
||||||
|
|
||||||
# xen-tools-4.15.1 patches set
|
|
||||||
_gpv_xen_tools_4151_0="
|
|
||||||
xen-tools-4.14-ar-cc.patch
|
|
||||||
xen-tools-4.15.0-disable-werror.patch
|
|
||||||
xen-tools-4.15.0-libxenstat-makefile.patch
|
|
||||||
xen-tools-4.15.0-qemu-bridge.patch
|
|
||||||
xen-tools-4.15.0-unbundle-ipxe.patch
|
|
||||||
xen-tools-4.4.1-tinfo.patch
|
|
||||||
xen-tools-4-anti-ovmf-download.patch
|
|
||||||
xen-tools-4-qemu-fix-po-collision.patch
|
|
||||||
"
|
|
||||||
|
|
||||||
# xen-tools-4.16.0 patches set
|
|
||||||
_gpv_xen_tools_4160_0="
|
|
||||||
xen-tools-4.14-ar-cc.patch
|
|
||||||
xen-tools-4.15.0-disable-werror.patch
|
|
||||||
xen-tools-4.15.0-unbundle-ipxe.patch
|
|
||||||
xen-tools-4.16.0-qemu-bridge.patch
|
|
||||||
xen-tools-4.16.0-xenstat.patch
|
|
||||||
xen-tools-4.4.1-tinfo.patch
|
|
||||||
xen-tools-4-anti-ovmf-download.patch
|
|
||||||
"
|
|
|
@ -1,20 +0,0 @@
|
||||||
/* This file is automatically generated.
|
|
||||||
It defines a symbol `__stub_FUNCTION' for each function
|
|
||||||
in the C library which is a stub, meaning it will fail
|
|
||||||
every time called, usually setting errno to ENOSYS. */
|
|
||||||
|
|
||||||
#ifdef _LIBC
|
|
||||||
#error Applications may not define the macro _LIBC
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define __stub_chflags
|
|
||||||
#define __stub_fattach
|
|
||||||
#define __stub_fchflags
|
|
||||||
#define __stub_fdetach
|
|
||||||
#define __stub_gtty
|
|
||||||
#define __stub_lchmod
|
|
||||||
#define __stub_revoke
|
|
||||||
#define __stub_setlogin
|
|
||||||
#define __stub_sigreturn
|
|
||||||
#define __stub_sstk
|
|
||||||
#define __stub_stty
|
|
|
@ -1,5 +0,0 @@
|
||||||
/var/log/xen-consoles/*.log {
|
|
||||||
rotate 7
|
|
||||||
missingok
|
|
||||||
compress
|
|
||||||
}
|
|
|
@ -1,62 +0,0 @@
|
||||||
diff -Naur xen-4.14.3.orig/tools/firmware/ovmf-dir-remote/BaseTools/Source/C/BrotliCompress/brotli/c/dec/decode.c xen-4.14.3/tools/firmware/ovmf-dir-remote/BaseTools/Source/C/BrotliCompress/brotli/c/dec/decode.c
|
|
||||||
--- xen-4.14.3.orig/tools/firmware/ovmf-dir-remote/BaseTools/Source/C/BrotliCompress/brotli/c/dec/decode.c 2021-12-31 14:45:31.309585049 +0100
|
|
||||||
+++ xen-4.14.3/tools/firmware/ovmf-dir-remote/BaseTools/Source/C/BrotliCompress/brotli/c/dec/decode.c 2021-12-31 14:47:10.678532132 +0100
|
|
||||||
@@ -2030,8 +2030,10 @@
|
|
||||||
}
|
|
||||||
|
|
||||||
BrotliDecoderResult BrotliDecoderDecompress(
|
|
||||||
- size_t encoded_size, const uint8_t* encoded_buffer, size_t* decoded_size,
|
|
||||||
- uint8_t* decoded_buffer) {
|
|
||||||
+ size_t encoded_size,
|
|
||||||
+ const uint8_t encoded_buffer[BROTLI_ARRAY_PARAM(encoded_size)],
|
|
||||||
+ size_t* decoded_size,
|
|
||||||
+ uint8_t decoded_buffer[BROTLI_ARRAY_PARAM(*decoded_size)]) {
|
|
||||||
BrotliDecoderState s;
|
|
||||||
BrotliDecoderResult result;
|
|
||||||
size_t total_out = 0;
|
|
||||||
diff -Naur xen-4.14.3.orig/tools/firmware/ovmf-dir-remote/BaseTools/Source/C/BrotliCompress/brotli/c/enc/encode.c xen-4.14.3/tools/firmware/ovmf-dir-remote/BaseTools/Source/C/BrotliCompress/brotli/c/enc/encode.c
|
|
||||||
--- xen-4.14.3.orig/tools/firmware/ovmf-dir-remote/BaseTools/Source/C/BrotliCompress/brotli/c/enc/encode.c 2021-12-31 14:45:31.309585049 +0100
|
|
||||||
+++ xen-4.14.3/tools/firmware/ovmf-dir-remote/BaseTools/Source/C/BrotliCompress/brotli/c/enc/encode.c 2021-12-31 14:47:10.678532132 +0100
|
|
||||||
@@ -1470,8 +1470,9 @@
|
|
||||||
|
|
||||||
BROTLI_BOOL BrotliEncoderCompress(
|
|
||||||
int quality, int lgwin, BrotliEncoderMode mode, size_t input_size,
|
|
||||||
- const uint8_t* input_buffer, size_t* encoded_size,
|
|
||||||
- uint8_t* encoded_buffer) {
|
|
||||||
+ const uint8_t input_buffer[BROTLI_ARRAY_PARAM(input_size)],
|
|
||||||
+ size_t* encoded_size,
|
|
||||||
+ uint8_t encoded_buffer[BROTLI_ARRAY_PARAM(*encoded_size)]) {
|
|
||||||
BrotliEncoderState* s;
|
|
||||||
size_t out_size = *encoded_size;
|
|
||||||
const uint8_t* input_start = input_buffer;
|
|
||||||
diff -Naur xen-4.14.3.orig/tools/firmware/ovmf-dir-remote/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli/c/dec/decode.c xen-4.14.3/tools/firmware/ovmf-dir-remote/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli/c/dec/decode.c
|
|
||||||
--- xen-4.14.3.orig/tools/firmware/ovmf-dir-remote/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli/c/dec/decode.c 2021-12-31 14:45:09.670249908 +0100
|
|
||||||
+++ xen-4.14.3/tools/firmware/ovmf-dir-remote/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli/c/dec/decode.c 2021-12-31 14:46:51.199130581 +0100
|
|
||||||
@@ -2030,8 +2030,10 @@
|
|
||||||
}
|
|
||||||
|
|
||||||
BrotliDecoderResult BrotliDecoderDecompress(
|
|
||||||
- size_t encoded_size, const uint8_t* encoded_buffer, size_t* decoded_size,
|
|
||||||
- uint8_t* decoded_buffer) {
|
|
||||||
+ size_t encoded_size,
|
|
||||||
+ const uint8_t encoded_buffer[BROTLI_ARRAY_PARAM(encoded_size)],
|
|
||||||
+ size_t* decoded_size,
|
|
||||||
+ uint8_t decoded_buffer[BROTLI_ARRAY_PARAM(*decoded_size)]) {
|
|
||||||
BrotliDecoderState s;
|
|
||||||
BrotliDecoderResult result;
|
|
||||||
size_t total_out = 0;
|
|
||||||
diff -Naur xen-4.14.3.orig/tools/firmware/ovmf-dir-remote/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli/c/enc/encode.c xen-4.14.3/tools/firmware/ovmf-dir-remote/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli/c/enc/encode.c
|
|
||||||
--- xen-4.14.3.orig/tools/firmware/ovmf-dir-remote/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli/c/enc/encode.c 2021-12-31 14:45:09.670249908 +0100
|
|
||||||
+++ xen-4.14.3/tools/firmware/ovmf-dir-remote/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli/c/enc/encode.c 2021-12-31 14:46:51.199130581 +0100
|
|
||||||
@@ -1470,8 +1470,9 @@
|
|
||||||
|
|
||||||
BROTLI_BOOL BrotliEncoderCompress(
|
|
||||||
int quality, int lgwin, BrotliEncoderMode mode, size_t input_size,
|
|
||||||
- const uint8_t* input_buffer, size_t* encoded_size,
|
|
||||||
- uint8_t* encoded_buffer) {
|
|
||||||
+ const uint8_t input_buffer[BROTLI_ARRAY_PARAM(input_size)],
|
|
||||||
+ size_t* encoded_size,
|
|
||||||
+ uint8_t encoded_buffer[BROTLI_ARRAY_PARAM(*encoded_size)]) {
|
|
||||||
BrotliEncoderState* s;
|
|
||||||
size_t out_size = *encoded_size;
|
|
||||||
const uint8_t* input_start = input_buffer;
|
|
|
@ -1,6 +0,0 @@
|
||||||
#!/sbin/openrc-run
|
|
||||||
# Copyright 1999-2017 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
command="/usr/sbin/xenwatchdogd"
|
|
||||||
command_args="30 15"
|
|
|
@ -1,4 +0,0 @@
|
||||||
# /etc/conf.d/xencommons
|
|
||||||
|
|
||||||
# Load xen's kernel modules, and this will override defaults
|
|
||||||
XEN_KERNEL_MODULES=""
|
|
|
@ -1,79 +0,0 @@
|
||||||
#!/sbin/openrc-run
|
|
||||||
# Copyright 1999-2017 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
depend() {
|
|
||||||
before xenstored
|
|
||||||
}
|
|
||||||
|
|
||||||
is_privileged_domain() {
|
|
||||||
grep -qsE '^control_d$' /proc/xen/capabilities
|
|
||||||
return $?
|
|
||||||
}
|
|
||||||
|
|
||||||
handle_kernel_modules() {
|
|
||||||
local XEN_DEFAULT_KERNEL_MODULES="
|
|
||||||
xen-evtchn
|
|
||||||
xen-gntdev
|
|
||||||
xen-gntalloc
|
|
||||||
xen-blkback
|
|
||||||
xen-netback
|
|
||||||
xen-pciback
|
|
||||||
gntdev
|
|
||||||
netbk
|
|
||||||
blkbk
|
|
||||||
xen-scsibk
|
|
||||||
usbbk
|
|
||||||
pciback
|
|
||||||
xen-acpi-processor
|
|
||||||
blktap2
|
|
||||||
blktap
|
|
||||||
"
|
|
||||||
|
|
||||||
[ "$1" = "remove" ] && OPTS="-r"
|
|
||||||
|
|
||||||
XEN_KERNEL_MODULES="${XEN_KERNEL_MODULES:-${XEN_DEFAULT_KERNEL_MODULES}}"
|
|
||||||
for i in ${XEN_KERNEL_MODULES}; do
|
|
||||||
modprobe ${OPTS} $i 2>/dev/null
|
|
||||||
done
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
start() {
|
|
||||||
ebegin "Starting xencommons daemon"
|
|
||||||
|
|
||||||
# not running in Xen dom0 or domU
|
|
||||||
if [ ! -d /proc/xen ]; then
|
|
||||||
eend 1 "Not running in Xen mode"
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# mount xenfs in dom0 or domU with a pv_ops kernel
|
|
||||||
if ! test -f /proc/xen/capabilities && \
|
|
||||||
! grep '^xenfs ' /proc/mounts >/dev/null;
|
|
||||||
then
|
|
||||||
mount -t xenfs xenfs /proc/xen
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! is_privileged_domain; then
|
|
||||||
eend 1 "Not running on a privileged domain. xencommons not started"
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
handle_kernel_modules
|
|
||||||
|
|
||||||
eend $? "Failed to start xencommons"
|
|
||||||
}
|
|
||||||
|
|
||||||
stop () {
|
|
||||||
ebegin "Stopping xencommons"
|
|
||||||
if ! is_privileged_domain; then
|
|
||||||
eend 1 "Not running on a privileged domain. xencommons not started"
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
handle_kernel_modules remove
|
|
||||||
|
|
||||||
eend $? "Failed to stop xencommons"
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
# /etc/conf.d/xenstored
|
|
||||||
XENCONSOLED_OPTS=""
|
|
|
@ -1,33 +0,0 @@
|
||||||
#!/sbin/openrc-run
|
|
||||||
# Copyright 1999-2017 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
depend() {
|
|
||||||
need xenstored
|
|
||||||
after lvm
|
|
||||||
}
|
|
||||||
|
|
||||||
# bug #498720
|
|
||||||
shutdown_all_domU() {
|
|
||||||
# Note: shutdown all domU, including manually started ones
|
|
||||||
local V=$(xl info| awk "/xen_minor/ { print \$3 }")
|
|
||||||
# 4.2.2 do not support "-a" option
|
|
||||||
[ $V -gt 2 ] && xl shutdown -a -w >/dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
start() {
|
|
||||||
ebegin "Starting xenconsoled daemon"
|
|
||||||
start-stop-daemon --start --exec /usr/sbin/xenconsoled \
|
|
||||||
--pidfile /run/xenconsoled.pid \
|
|
||||||
-- --pid-file=/run/xenconsoled.pid \
|
|
||||||
${XENCONSOLED_OPTS}
|
|
||||||
eend $*
|
|
||||||
}
|
|
||||||
|
|
||||||
stop() {
|
|
||||||
ebegin "Stopping xenconsoled daemon"
|
|
||||||
shutdown_all_domU
|
|
||||||
start-stop-daemon --stop --exec /usr/sbin/xenconsoled \
|
|
||||||
--pidfile /run/xenconsoled.pid
|
|
||||||
eend $*
|
|
||||||
}
|
|
|
@ -1,25 +0,0 @@
|
||||||
# /etc/conf.d/xendomains
|
|
||||||
|
|
||||||
# Directory of domains to boot. AUTODIR should contain one or more symlinks
|
|
||||||
# to domain config files in /etc/xen
|
|
||||||
# AUTODIR=/etc/xen/auto
|
|
||||||
|
|
||||||
# Send shutdown commands to all domains in parallel instead of waiting for
|
|
||||||
# each to shutdown individually
|
|
||||||
# PARALLEL_SHUTDOWN=yes
|
|
||||||
|
|
||||||
# When SCREEN="yes", domains in AUTODIR have their consoles connected to a
|
|
||||||
# screen session named SCREEN_NAME, with output logged to individual files
|
|
||||||
# named after each domain and written to /var/log/xen-consoles/ . These files
|
|
||||||
# are rotated (using app-admin/logrotate) every time xendomains is started.
|
|
||||||
|
|
||||||
SCREEN="yes"
|
|
||||||
SCREEN_NAME="xen"
|
|
||||||
|
|
||||||
# Number of seconds between writes to screen's logfiles.
|
|
||||||
#
|
|
||||||
# Lower values mean more disk activity and hence a possible performance
|
|
||||||
# impact, but higher values mean a greater chance of loosing some output
|
|
||||||
# in the event of a crash.
|
|
||||||
|
|
||||||
SCREEN_LOG_INTERVAL="1"
|
|
|
@ -1,9 +0,0 @@
|
||||||
# /etc/conf.d/xendomains
|
|
||||||
|
|
||||||
# Directory of domains to boot. AUTODIR should contain one or more symlinks
|
|
||||||
# to domain config files in /etc/xen
|
|
||||||
AUTODIR=/etc/xen/auto
|
|
||||||
|
|
||||||
# Send shutdown commands to all domains in parallel instead of waiting for
|
|
||||||
# each to shutdown individually
|
|
||||||
PARALLEL_SHUTDOWN=yes
|
|
|
@ -1,117 +0,0 @@
|
||||||
#!/sbin/openrc-run
|
|
||||||
# Copyright 1999-2017 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
extra_commands="status"
|
|
||||||
|
|
||||||
depend() {
|
|
||||||
need xenstored
|
|
||||||
after dhcp xend xenconsoled
|
|
||||||
}
|
|
||||||
|
|
||||||
get_domname() {
|
|
||||||
local name_from_file=$(sed -rn 's/^name\W*=\W*\"?([[:alnum:]_\.-]+)\"?\W*;?/\1/p' "${1}" | tail -n 1)
|
|
||||||
|
|
||||||
if [ -z ${name_from_file} ] ; then
|
|
||||||
basename "${1}"
|
|
||||||
else
|
|
||||||
echo ${name_from_file}
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
is_running() {
|
|
||||||
/usr/sbin/xl list "${1}" >/dev/null 2>&1
|
|
||||||
}
|
|
||||||
|
|
||||||
using_screen() {
|
|
||||||
[ "${SCREEN}" = "yes" -o "${SCREEN}" = "YES" ]
|
|
||||||
}
|
|
||||||
|
|
||||||
set_screen_cmd() {
|
|
||||||
screen_cmd="screen -c ${SCREENRC:-/dev/null} -q -r ${SCREEN_NAME:=xen} -X"
|
|
||||||
}
|
|
||||||
|
|
||||||
start() {
|
|
||||||
set_screen_cmd
|
|
||||||
|
|
||||||
einfo "Starting Xen domains from ${AUTODIR:=/etc/xen/auto}"
|
|
||||||
if using_screen ; then
|
|
||||||
ebegin "Creating screen session to hold domain consoles"
|
|
||||||
( screen -c ${SCREENRC:-/dev/null} -d -m -S ${SCREEN_NAME} -t dom0 \
|
|
||||||
&& sleep 5 \
|
|
||||||
&& ${screen_cmd} zombie dr \
|
|
||||||
&& logrotate -f /etc/xen/xen-consoles.logrotate \
|
|
||||||
&& ${screen_cmd} logfile /var/log/xen-consoles/%t.log \
|
|
||||||
&& ${screen_cmd} logfile flush ${SCREEN_LOG_INTERVAL:-1} \
|
|
||||||
&& ${screen_cmd} log on \
|
|
||||||
&& ${screen_cmd} deflog on ) >/dev/null
|
|
||||||
if [ $? -ne 0 ] ; then
|
|
||||||
eend 1
|
|
||||||
return 1
|
|
||||||
else
|
|
||||||
eend
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
# Create all domains with config files in AUTODIR.
|
|
||||||
for dom in $(ls "${AUTODIR:=/etc/xen/auto}/"* 2>/dev/null | sort); do
|
|
||||||
name=$(get_domname ${dom})
|
|
||||||
if ! is_running ${name} ; then
|
|
||||||
ebegin " Starting domain ${name}"
|
|
||||||
if using_screen ; then
|
|
||||||
${screen_cmd} screen -t ${name} xl create ${dom} -c
|
|
||||||
else
|
|
||||||
xl create --quiet ${dom}
|
|
||||||
fi
|
|
||||||
eend $?
|
|
||||||
else
|
|
||||||
einfo " Not starting domain ${name} - already running"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
stop() {
|
|
||||||
set_screen_cmd
|
|
||||||
|
|
||||||
einfo "Shutting down Xen domains from ${AUTODIR:=/etc/xen/auto}"
|
|
||||||
# Stop all domains with config files in AUTODIR.
|
|
||||||
DOMAINS="$(ls "${AUTODIR:=/etc/xen/auto}/"* 2>/dev/null | sort -r)"
|
|
||||||
|
|
||||||
if [ "$PARALLEL_SHUTDOWN" = "yes" ] ; then
|
|
||||||
for dom in $DOMAINS ; do
|
|
||||||
name=$(get_domname ${dom})
|
|
||||||
if is_running ${name} ; then
|
|
||||||
ebegin " Asking domain ${name} to shutdown in the background..."
|
|
||||||
xl shutdown -w ${name} >/dev/null &
|
|
||||||
else
|
|
||||||
einfo " Not stopping domain ${name} - not running"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
einfo " Waiting for shutdown of domains that are still running"
|
|
||||||
wait
|
|
||||||
eend $?
|
|
||||||
else
|
|
||||||
for dom in $DOMAINS ; do
|
|
||||||
name=$(get_domname ${dom})
|
|
||||||
if is_running ${name} ; then
|
|
||||||
ebegin " Waiting for domain ${name} to shutdown"
|
|
||||||
xl shutdown -w ${name} >/dev/null
|
|
||||||
eend $?
|
|
||||||
else
|
|
||||||
einfo " Not stopping domain ${name} - not running"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
if using_screen ; then
|
|
||||||
if ${screen_cmd} sleep 0 >/dev/null 2>&1 ; then
|
|
||||||
ebegin "Closing screen session ${SCREEN_NAME}"
|
|
||||||
${screen_cmd} quit
|
|
||||||
eend $?
|
|
||||||
else
|
|
||||||
eend 0
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
status() {
|
|
||||||
/usr/sbin/xl list
|
|
||||||
}
|
|
|
@ -1,7 +0,0 @@
|
||||||
# /etc/conf.d/xenqemudev
|
|
||||||
|
|
||||||
# To enable QEMU file backend, set to 'yes'
|
|
||||||
XENQEMUDEV_FILE_BACKEND_ENABLE=""
|
|
||||||
|
|
||||||
# Common options for xenqemudev
|
|
||||||
XENQEMUDEV_OPTS=""
|
|
|
@ -1,84 +0,0 @@
|
||||||
#!/sbin/openrc-run
|
|
||||||
# Copyright 1999-2017 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
depend() {
|
|
||||||
need xencommons xenstored xenconsoled
|
|
||||||
}
|
|
||||||
|
|
||||||
is_privileged_domain() {
|
|
||||||
grep -qsE '^control_d$' /proc/xen/capabilities
|
|
||||||
return $?
|
|
||||||
}
|
|
||||||
|
|
||||||
xen_setvars() {
|
|
||||||
. /etc/xen/scripts/hotplugpath.sh
|
|
||||||
|
|
||||||
XENQEMUDEV_PIDFILE=/run/xenqemudev.pid
|
|
||||||
|
|
||||||
# xen-4.5 change the path
|
|
||||||
XEN_QEMU="${LIBEXEC}/qemu-system-i386"
|
|
||||||
[ -e ${XEN_QEMU} ] && return
|
|
||||||
XEN_QEMU="${LIBEXEC_BIN}/qemu-system-i386"
|
|
||||||
}
|
|
||||||
|
|
||||||
xen_qemu_start() {
|
|
||||||
if [ -z "${XENQEMUDEV_FILE_BACKEND_ENABLE}" ]; then
|
|
||||||
ewarn " QEMU disk backend not enabled"
|
|
||||||
ewarn " enable XENQEMUDEV_FILE_BACKEND_ENABLE in /etc/conf.d/xenqemudev"
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
xen_setvars
|
|
||||||
|
|
||||||
if [ ! -c /dev/xen/gntdev ]; then
|
|
||||||
einfo " Xen gntdev driver not loaded"
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -e "${XEN_QEMU}" ]; then
|
|
||||||
einfo " Starting QEMU as disk backend for dom0"
|
|
||||||
|
|
||||||
XENQEMUDEV_DEFAULT_OPTS="-xen-domid 0 -xen-attach -name dom0 \
|
|
||||||
-nographic -M xenpv -daemonize \
|
|
||||||
-monitor /dev/null -serial /dev/null -parallel /dev/null"
|
|
||||||
|
|
||||||
XENQEMUDEV_OPTS=${XENQEMUDEV_OPTS:-${XENQEMUDEV_DEFAULT_OPTS}}
|
|
||||||
|
|
||||||
start-stop-daemon --start --exec ${XEN_QEMU} \
|
|
||||||
--pidfile ${XENQEMUDEV_PIDFILE} \
|
|
||||||
-- -pidfile ${XENQEMUDEV_PIDFILE} \
|
|
||||||
${XENQEMUDEV_OPTS}
|
|
||||||
return $?
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
start() {
|
|
||||||
ebegin "Starting xenqemudev daemon"
|
|
||||||
|
|
||||||
# not running in Xen dom0 or domU
|
|
||||||
if [ ! -d /proc/xen ]; then
|
|
||||||
eend 1 "Not running in Xen mode"
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! is_privileged_domain; then
|
|
||||||
eend 1 "Not running on a privileged domain. xenqemudev not started"
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
xen_qemu_start
|
|
||||||
|
|
||||||
eend $? "Failed to start xenqemudev"
|
|
||||||
}
|
|
||||||
|
|
||||||
stop () {
|
|
||||||
ebegin "Stopping xenqemudev"
|
|
||||||
|
|
||||||
xen_setvars
|
|
||||||
|
|
||||||
start-stop-daemon --stop --exec ${XEN_QEMU} \
|
|
||||||
--pidfile ${XENQEMUDEV_PIDFILE}
|
|
||||||
|
|
||||||
eend $? "Stopping xenqemudev, as it cannot be restarted."
|
|
||||||
}
|
|
|
@ -1,2 +0,0 @@
|
||||||
# /etc/conf.d/xenstored
|
|
||||||
XENSTORED_OPTS=""
|
|
|
@ -1,42 +0,0 @@
|
||||||
#!/sbin/openrc-run
|
|
||||||
# Copyright 1999-2017 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
depend() {
|
|
||||||
before xendomains xend sshd ntp-client ntpd nfs nfsmount rsyncd portmap dhcp
|
|
||||||
need xencommons
|
|
||||||
}
|
|
||||||
|
|
||||||
xenstored_dir_check() {
|
|
||||||
# create dir dynamically
|
|
||||||
local i
|
|
||||||
for i in /var/lock/subsys /run/xen /run/xend/boot /run/xenstored; do
|
|
||||||
[ -x $i ] || mkdir -p $i
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
start() {
|
|
||||||
ebegin "Starting xenstored daemon"
|
|
||||||
xenstored_dir_check
|
|
||||||
start-stop-daemon --start --exec /usr/sbin/xenstored \
|
|
||||||
--pidfile /run/xenstored.pid \
|
|
||||||
-- --pid-file=/run/xenstored.pid \
|
|
||||||
$XENSTORED_OPTS
|
|
||||||
until xenstore-exists / || $((15 < ++i))
|
|
||||||
do
|
|
||||||
printf "."
|
|
||||||
sleep 1
|
|
||||||
done
|
|
||||||
einfo "Setting domain0 name record"
|
|
||||||
/usr/libexec/xen/bin/xen-init-dom0
|
|
||||||
|
|
||||||
eend $*
|
|
||||||
}
|
|
||||||
|
|
||||||
stop() {
|
|
||||||
ebegin "Stopping xenstored daemon"
|
|
||||||
start-stop-daemon --stop --exec /usr/sbin/xenstored \
|
|
||||||
--pidfile /run/xenstored.pid
|
|
||||||
eend $?
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,30 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
|
||||||
<pkgmetadata>
|
|
||||||
<maintainer type="person" proxied="yes">
|
|
||||||
<email>hydrapolic@gmail.com</email>
|
|
||||||
<name>Tomáš Mózes</name>
|
|
||||||
</maintainer>
|
|
||||||
<maintainer type="project" proxied="proxy">
|
|
||||||
<email>proxy-maint@gentoo.org</email>
|
|
||||||
<name>Proxy Maintainers</name>
|
|
||||||
</maintainer>
|
|
||||||
<maintainer type="project">
|
|
||||||
<email>xen@gentoo.org</email>
|
|
||||||
<name>Gentoo Xen Project</name>
|
|
||||||
</maintainer>
|
|
||||||
<use>
|
|
||||||
<flag name="api">Build the C libxenapi bindings</flag>
|
|
||||||
<flag name="hvm">Enable support for hardware based virtualization (VT-x,AMD-v)</flag>
|
|
||||||
<flag name="ipxe">Enable ipxe support</flag>
|
|
||||||
<flag name="ovmf">Enable support to boot UEFI guest vm, needed by hvm</flag>
|
|
||||||
<flag name="pygrub">Install the pygrub boot loader</flag>
|
|
||||||
<flag name="qemu">Enable IOEMU support via the use of qemu-dm</flag>
|
|
||||||
<flag name="qemu-traditional">Build the old qemu traditional device model (useful only if you cannot change to the new device model e.g. Windows VMs)</flag>
|
|
||||||
<flag name="rombios">Enable rombios support, needed by ipxe</flag>
|
|
||||||
<flag name="screen">Enable support for running domain U console in an <pkg>app-misc/screen</pkg> session</flag>
|
|
||||||
<flag name="system-ipxe">Using <pkg>sys-firmware/ipxe</pkg> instead of the bundled one</flag>
|
|
||||||
<flag name="system-qemu">Using <pkg>app-emulation/qemu</pkg> instead of the bundled one</flag>
|
|
||||||
<flag name="system-seabios">Using <pkg>sys-firmware/seabios</pkg> instead of the bundled one</flag>
|
|
||||||
</use>
|
|
||||||
</pkgmetadata>
|
|
|
@ -1,534 +0,0 @@
|
||||||
# Copyright 1999-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_{8..9} )
|
|
||||||
PYTHON_REQ_USE='ncurses,xml,threads(+)'
|
|
||||||
|
|
||||||
inherit bash-completion-r1 flag-o-matic multilib python-single-r1 toolchain-funcs
|
|
||||||
|
|
||||||
MY_PV=${PV/_/-}
|
|
||||||
|
|
||||||
if [[ ${PV} == *9999 ]]; then
|
|
||||||
inherit git-r3
|
|
||||||
REPO="xen.git"
|
|
||||||
EGIT_REPO_URI="git://xenbits.xen.org/${REPO}"
|
|
||||||
S="${WORKDIR}/${REPO}"
|
|
||||||
else
|
|
||||||
KEYWORDS="amd64 ~arm ~arm64 x86"
|
|
||||||
UPSTREAM_VER=
|
|
||||||
SECURITY_VER=
|
|
||||||
# xen-tools's gentoo patches tarball
|
|
||||||
GENTOO_VER=23
|
|
||||||
# xen-tools's gentoo patches version which apply to this specific ebuild
|
|
||||||
GENTOO_GPV=0
|
|
||||||
# xen-tools ovmf's patches
|
|
||||||
OVMF_VER=
|
|
||||||
|
|
||||||
SEABIOS_VER="1.14.0"
|
|
||||||
EDK2_COMMIT="06dc822d045c2bb42e497487935485302486e151"
|
|
||||||
EDK2_OPENSSL_VERSION="1_1_1g"
|
|
||||||
EDK2_SOFTFLOAT_COMMIT="b64af41c3276f97f0e181920400ee056b9c88037"
|
|
||||||
EDK2_BROTLI_COMMIT="666c3280cc11dc433c303d79a83d4ffbdd12cc8d"
|
|
||||||
IPXE_COMMIT="988d2c13cdf0f0b4140685af35ced70ac5b3283c"
|
|
||||||
|
|
||||||
[[ -n ${UPSTREAM_VER} ]] && \
|
|
||||||
UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P/-tools/}-upstream-patches-${UPSTREAM_VER}.tar.xz
|
|
||||||
https://github.com/hydrapolic/gentoo-dist/raw/master/xen/${P/-tools/}-upstream-patches-${UPSTREAM_VER}.tar.xz"
|
|
||||||
[[ -n ${SECURITY_VER} ]] && \
|
|
||||||
SECURITY_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-security-patches-${SECURITY_VER}.tar.xz
|
|
||||||
https://github.com/hydrapolic/gentoo-dist/raw/master/xen/${PN/-tools/}-security-patches-${SECURITY_VER}.tar.xz"
|
|
||||||
[[ -n ${GENTOO_VER} ]] && \
|
|
||||||
GENTOO_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-gentoo-patches-${GENTOO_VER}.tar.xz
|
|
||||||
https://github.com/hydrapolic/gentoo-dist/raw/master/xen/${PN/-tools/}-gentoo-patches-${GENTOO_VER}.tar.xz"
|
|
||||||
[[ -n ${OVMF_VER} ]] && \
|
|
||||||
OVMF_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-ovmf-patches-${OVMF_VER}.tar.xz"
|
|
||||||
|
|
||||||
SRC_URI="https://downloads.xenproject.org/release/xen/${MY_PV}/xen-${MY_PV}.tar.gz
|
|
||||||
https://www.seabios.org/downloads/seabios-${SEABIOS_VER}.tar.gz
|
|
||||||
ipxe? ( http://xenbits.xen.org/xen-extfiles/ipxe-git-${IPXE_COMMIT}.tar.gz )
|
|
||||||
ovmf? ( https://github.com/tianocore/edk2/archive/${EDK2_COMMIT}.tar.gz -> edk2-${EDK2_COMMIT}.tar.gz
|
|
||||||
https://github.com/openssl/openssl/archive/OpenSSL_${EDK2_OPENSSL_VERSION}.tar.gz
|
|
||||||
https://github.com/ucb-bar/berkeley-softfloat-3/archive/${EDK2_SOFTFLOAT_COMMIT}.tar.gz -> berkeley-softfloat-${EDK2_SOFTFLOAT_COMMIT}.tar.gz
|
|
||||||
https://github.com/google/brotli/archive/${EDK2_BROTLI_COMMIT}.tar.gz -> brotli-${EDK2_BROTLI_COMMIT}.tar.gz
|
|
||||||
${OVMF_PATCHSET_URI} )
|
|
||||||
${UPSTREAM_PATCHSET_URI}
|
|
||||||
${SECURITY_PATCHSET_URI}
|
|
||||||
${GENTOO_PATCHSET_URI}"
|
|
||||||
|
|
||||||
S="${WORKDIR}/xen-${MY_PV}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
DESCRIPTION="Xen tools including QEMU and xl"
|
|
||||||
HOMEPAGE="https://www.xenproject.org"
|
|
||||||
DOCS=( README )
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0/$(ver_cut 1-2)"
|
|
||||||
# Inclusion of IUSE ocaml on stabalizing requires maintainer of ocaml to (get off his hands and) make
|
|
||||||
# >=dev-lang/ocaml-4 stable
|
|
||||||
# Masked in profiles/eapi-5-files instead
|
|
||||||
IUSE="api debug doc +hvm +ipxe ocaml ovmf +pam pygrub python +qemu +qemu-traditional +rombios screen selinux sdl static-libs system-ipxe system-qemu system-seabios"
|
|
||||||
|
|
||||||
REQUIRED_USE="
|
|
||||||
${PYTHON_REQUIRED_USE}
|
|
||||||
ipxe? ( rombios )
|
|
||||||
ovmf? ( hvm )
|
|
||||||
pygrub? ( python )
|
|
||||||
rombios? ( hvm )
|
|
||||||
system-ipxe? ( rombios )
|
|
||||||
?? ( ipxe system-ipxe )
|
|
||||||
?? ( qemu system-qemu )"
|
|
||||||
|
|
||||||
COMMON_DEPEND="
|
|
||||||
sys-apps/pciutils
|
|
||||||
dev-libs/lzo:2
|
|
||||||
dev-libs/glib:2
|
|
||||||
dev-libs/yajl
|
|
||||||
dev-libs/libaio
|
|
||||||
dev-libs/libgcrypt:0
|
|
||||||
sys-libs/zlib
|
|
||||||
${PYTHON_DEPS}
|
|
||||||
"
|
|
||||||
|
|
||||||
RDEPEND="${COMMON_DEPEND}
|
|
||||||
sys-apps/iproute2[-minimal]
|
|
||||||
net-misc/bridge-utils
|
|
||||||
screen? (
|
|
||||||
app-misc/screen
|
|
||||||
app-admin/logrotate
|
|
||||||
)
|
|
||||||
selinux? ( sec-policy/selinux-xen )"
|
|
||||||
|
|
||||||
DEPEND="${COMMON_DEPEND}
|
|
||||||
app-misc/pax-utils
|
|
||||||
>=sys-kernel/linux-headers-4.11
|
|
||||||
x11-libs/pixman
|
|
||||||
$(python_gen_cond_dep '
|
|
||||||
dev-python/lxml[${PYTHON_USEDEP}]
|
|
||||||
pam? ( dev-python/pypam[${PYTHON_USEDEP}] )
|
|
||||||
')
|
|
||||||
x86? ( sys-devel/dev86
|
|
||||||
system-ipxe? ( sys-firmware/ipxe[qemu] )
|
|
||||||
sys-power/iasl )
|
|
||||||
api? ( dev-libs/libxml2
|
|
||||||
net-misc/curl )
|
|
||||||
|
|
||||||
ovmf? (
|
|
||||||
!arm? ( !arm64? ( dev-lang/nasm ) )
|
|
||||||
$(python_gen_impl_dep sqlite)
|
|
||||||
)
|
|
||||||
!amd64? ( >=sys-apps/dtc-1.4.0 )
|
|
||||||
amd64? ( sys-power/iasl
|
|
||||||
system-seabios? ( sys-firmware/seabios )
|
|
||||||
system-ipxe? ( sys-firmware/ipxe[qemu] )
|
|
||||||
rombios? ( sys-devel/bin86 sys-devel/dev86 ) )
|
|
||||||
doc? (
|
|
||||||
app-text/ghostscript-gpl
|
|
||||||
app-text/pandoc
|
|
||||||
$(python_gen_cond_dep '
|
|
||||||
dev-python/markdown[${PYTHON_USEDEP}]
|
|
||||||
')
|
|
||||||
dev-texlive/texlive-latexextra
|
|
||||||
media-gfx/transfig
|
|
||||||
)
|
|
||||||
hvm? ( x11-base/xorg-proto )
|
|
||||||
qemu? (
|
|
||||||
app-arch/snappy:=
|
|
||||||
sdl? (
|
|
||||||
media-libs/libsdl[X]
|
|
||||||
media-libs/libsdl2[X]
|
|
||||||
)
|
|
||||||
)
|
|
||||||
system-qemu? ( app-emulation/qemu[xen] )
|
|
||||||
ocaml? ( dev-ml/findlib
|
|
||||||
dev-lang/ocaml[ocamlopt] )
|
|
||||||
python? ( >=dev-lang/swig-4.0.0 )"
|
|
||||||
|
|
||||||
BDEPEND="dev-lang/perl
|
|
||||||
sys-devel/bison
|
|
||||||
sys-devel/gettext"
|
|
||||||
|
|
||||||
# hvmloader is used to bootstrap a fully virtualized kernel
|
|
||||||
# Approved by QA team in bug #144032
|
|
||||||
QA_WX_LOAD="
|
|
||||||
usr/libexec/xen/boot/hvmloader
|
|
||||||
usr/share/qemu-xen/qemu/hppa-firmware.img
|
|
||||||
usr/share/qemu-xen/qemu/s390-ccw.img
|
|
||||||
usr/share/qemu-xen/qemu/u-boot.e500
|
|
||||||
"
|
|
||||||
|
|
||||||
QA_PREBUILT="
|
|
||||||
usr/libexec/xen/bin/elf2dmp
|
|
||||||
usr/libexec/xen/bin/ivshmem-client
|
|
||||||
usr/libexec/xen/bin/ivshmem-server
|
|
||||||
usr/libexec/xen/bin/qemu-edid
|
|
||||||
usr/libexec/xen/bin/qemu-img
|
|
||||||
usr/libexec/xen/bin/qemu-io
|
|
||||||
usr/libexec/xen/bin/qemu-keymap
|
|
||||||
usr/libexec/xen/bin/qemu-nbd
|
|
||||||
usr/libexec/xen/bin/qemu-pr-helper
|
|
||||||
usr/libexec/xen/bin/qemu-system-i386
|
|
||||||
usr/libexec/xen/bin/virtfs-proxy-helper
|
|
||||||
usr/libexec/xen/libexec/xen-bridge-helper
|
|
||||||
usr/share/qemu-xen/qemu/s390-ccw.img
|
|
||||||
usr/share/qemu-xen/qemu/s390-netboot.img
|
|
||||||
usr/share/qemu-xen/qemu/u-boot.e500
|
|
||||||
"
|
|
||||||
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
python_setup
|
|
||||||
export "CONFIG_LOMOUNT=y"
|
|
||||||
|
|
||||||
#bug 522642, disable compile tools/tests
|
|
||||||
export "CONFIG_TESTS=n"
|
|
||||||
|
|
||||||
if [[ -z ${XEN_TARGET_ARCH} ]] ; then
|
|
||||||
if use x86 && use amd64; then
|
|
||||||
die "Confusion! Both x86 and amd64 are set in your use flags!"
|
|
||||||
elif use x86; then
|
|
||||||
export XEN_TARGET_ARCH="x86_32"
|
|
||||||
elif use amd64 ; then
|
|
||||||
export XEN_TARGET_ARCH="x86_64"
|
|
||||||
elif use arm; then
|
|
||||||
export XEN_TARGET_ARCH="arm32"
|
|
||||||
elif use arm64; then
|
|
||||||
export XEN_TARGET_ARCH="arm64"
|
|
||||||
else
|
|
||||||
die "Unsupported architecture!"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
local i
|
|
||||||
|
|
||||||
# Upstream's patchset
|
|
||||||
if [[ -n ${UPSTREAM_VER} ]]; then
|
|
||||||
einfo "Try to apply Xen Upstream patch set"
|
|
||||||
eapply "${WORKDIR}"/patches-upstream
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Security patchset
|
|
||||||
if [[ -n ${SECURITY_VER} ]]; then
|
|
||||||
einfo "Try to apply Xen Security patch set"
|
|
||||||
# apply main xen patches
|
|
||||||
# Two parallel systems, both work side by side
|
|
||||||
# Over time they may concdense into one. This will suffice for now
|
|
||||||
EPATCH_SUFFIX="patch"
|
|
||||||
EPATCH_FORCE="yes"
|
|
||||||
|
|
||||||
source "${WORKDIR}"/patches-security/${PV}.conf || die
|
|
||||||
|
|
||||||
for i in ${XEN_SECURITY_MAIN}; do
|
|
||||||
eapply "${WORKDIR}"/patches-security/xen/$i
|
|
||||||
done
|
|
||||||
|
|
||||||
# apply qemu-xen/upstream patches
|
|
||||||
pushd "${S}"/tools/qemu-xen/ > /dev/null
|
|
||||||
for i in ${XEN_SECURITY_QEMUU}; do
|
|
||||||
eapply "${WORKDIR}"/patches-security/qemuu/$i
|
|
||||||
done
|
|
||||||
popd > /dev/null
|
|
||||||
|
|
||||||
# apply qemu-traditional patches
|
|
||||||
pushd "${S}"/tools/qemu-xen-traditional/ > /dev/null
|
|
||||||
for i in ${XEN_SECURITY_QEMUT}; do
|
|
||||||
eapply "${WORKDIR}"/patches-security/qemut/$i
|
|
||||||
done
|
|
||||||
popd > /dev/null
|
|
||||||
fi
|
|
||||||
|
|
||||||
# move before Gentoo patch, one patch should apply to seabios, to fix gcc-4.5.x build err
|
|
||||||
mv ../seabios-${SEABIOS_VER} tools/firmware/seabios-dir-remote || die
|
|
||||||
pushd tools/firmware/ > /dev/null
|
|
||||||
ln -s seabios-dir-remote seabios-dir || die
|
|
||||||
popd > /dev/null
|
|
||||||
|
|
||||||
# Gentoo's patchset
|
|
||||||
if [[ -n ${GENTOO_VER} && -n ${GENTOO_GPV} ]]; then
|
|
||||||
einfo "Try to apply Gentoo specific patch set"
|
|
||||||
source "${FILESDIR}"/gentoo-patches.conf || die
|
|
||||||
_gpv=_gpv_${PN/-/_}_${PV//./}_${GENTOO_GPV}
|
|
||||||
for i in ${!_gpv}; do
|
|
||||||
eapply "${WORKDIR}"/patches-gentoo/$i
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Ovmf's patchset
|
|
||||||
if use ovmf; then
|
|
||||||
if [[ -n ${OVMF_VER} ]];then
|
|
||||||
einfo "Try to apply Ovmf patch set"
|
|
||||||
pushd "${WORKDIR}"/edk2-*/ > /dev/null
|
|
||||||
eapply "${WORKDIR}"/patches-ovmf
|
|
||||||
popd > /dev/null
|
|
||||||
fi
|
|
||||||
mv ../edk2-${EDK2_COMMIT} tools/firmware/ovmf-dir-remote || die
|
|
||||||
rm -r tools/firmware/ovmf-dir-remote/CryptoPkg/Library/OpensslLib/openssl || die
|
|
||||||
rm -r tools/firmware/ovmf-dir-remote/ArmPkg/Library/ArmSoftFloatLib/berkeley-softfloat-3 || die
|
|
||||||
rm -r tools/firmware/ovmf-dir-remote/BaseTools/Source/C/BrotliCompress/brotli || die
|
|
||||||
rm -r tools/firmware/ovmf-dir-remote/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli || die
|
|
||||||
mv ../openssl-OpenSSL_${EDK2_OPENSSL_VERSION} tools/firmware/ovmf-dir-remote/CryptoPkg/Library/OpensslLib/openssl || die
|
|
||||||
mv ../berkeley-softfloat-3-${EDK2_SOFTFLOAT_COMMIT} tools/firmware/ovmf-dir-remote/ArmPkg/Library/ArmSoftFloatLib/berkeley-softfloat-3 || die
|
|
||||||
cp -r ../brotli-${EDK2_BROTLI_COMMIT} tools/firmware/ovmf-dir-remote/BaseTools/Source/C/BrotliCompress/brotli || die
|
|
||||||
cp -r ../brotli-${EDK2_BROTLI_COMMIT} tools/firmware/ovmf-dir-remote/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli || die
|
|
||||||
cp tools/firmware/ovmf-makefile tools/firmware/ovmf-dir-remote/Makefile || die
|
|
||||||
eapply "${FILESDIR}"/xen-tools-4.14.3-brotli.patch
|
|
||||||
fi
|
|
||||||
|
|
||||||
# ipxe
|
|
||||||
if use ipxe; then
|
|
||||||
cp "${DISTDIR}/ipxe-git-${IPXE_COMMIT}.tar.gz" tools/firmware/etherboot/_ipxe.tar.gz || die
|
|
||||||
|
|
||||||
# gcc 11
|
|
||||||
cp "${WORKDIR}/patches-gentoo/${PN}-4.15.0-ipxe-gcc11.patch" tools/firmware/etherboot/patches/ipxe-gcc11.patch || die
|
|
||||||
echo ipxe-gcc11.patch >> tools/firmware/etherboot/patches/series || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
mv tools/qemu-xen/qemu-bridge-helper.c tools/qemu-xen/xen-bridge-helper.c || die
|
|
||||||
|
|
||||||
# Fix texi2html build error with new texi2html, qemu.doc.html
|
|
||||||
sed -i -e "/texi2html -monolithic/s/-number//" tools/qemu-xen-traditional/Makefile || die
|
|
||||||
|
|
||||||
use api || sed -e "/SUBDIRS-\$(LIBXENAPI_BINDINGS) += libxen/d" -i tools/Makefile || die
|
|
||||||
sed -e 's:$(MAKE) PYTHON=$(PYTHON) subdirs-$@:LC_ALL=C "$(MAKE)" PYTHON=$(PYTHON) subdirs-$@:' \
|
|
||||||
-i tools/firmware/Makefile || die
|
|
||||||
|
|
||||||
# Drop .config, fixes to gcc-4.6
|
|
||||||
sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop"
|
|
||||||
|
|
||||||
# drop flags
|
|
||||||
unset CFLAGS
|
|
||||||
unset LDFLAGS
|
|
||||||
unset ASFLAGS
|
|
||||||
unset CPPFLAGS
|
|
||||||
|
|
||||||
if ! use pygrub; then
|
|
||||||
sed -e '/^SUBDIRS-y += pygrub/d' -i tools/Makefile || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! use python; then
|
|
||||||
sed -e '/^SUBDIRS-y += python$/d' -i tools/Makefile || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! use hvm; then
|
|
||||||
sed -e '/SUBDIRS-$(CONFIG_X86) += firmware/d' -i tools/Makefile || die
|
|
||||||
# Bug 351648
|
|
||||||
elif ! use x86 && ! has x86 $(get_all_abis); then
|
|
||||||
mkdir -p "${WORKDIR}"/extra-headers/gnu || die
|
|
||||||
touch "${WORKDIR}"/extra-headers/gnu/stubs-32.h || die
|
|
||||||
export CPATH="${WORKDIR}"/extra-headers
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use qemu; then
|
|
||||||
if use sdl; then
|
|
||||||
sed -i -e "s:\$\$source/configure:\0 --enable-sdl:" \
|
|
||||||
tools/Makefile || die
|
|
||||||
else
|
|
||||||
sed -i -e "s:\${QEMU_ROOT\:\-\.}/configure:\0 --disable-sdl:" \
|
|
||||||
tools/qemu-xen-traditional/xen-setup || die
|
|
||||||
sed -i -e "s:\$\$source/configure:\0 --disable-sdl:" \
|
|
||||||
tools/Makefile || die
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
# Don't bother with qemu, only needed for fully virtualised guests
|
|
||||||
sed -i '/SUBDIRS-$(CONFIG_QEMU_XEN)/s/^/#/g' tools/Makefile || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Reset bash completion dir; Bug 472438
|
|
||||||
sed -e "s:^BASH_COMPLETION_DIR ?= \$(CONFIG_DIR)/bash_completion.d:BASH_COMPLETION_DIR ?= $(get_bashcompdir):" \
|
|
||||||
-i Config.mk || die
|
|
||||||
sed -i -e "/bash-completion/s/xl\.sh/xl/g" tools/libxl/Makefile || die
|
|
||||||
|
|
||||||
# xencommons, Bug #492332, sed lighter weight than patching
|
|
||||||
sed -e 's:\$QEMU_XEN -xen-domid:test -e "\$QEMU_XEN" \&\& &:' \
|
|
||||||
-i tools/hotplug/Linux/init.d/xencommons.in || die
|
|
||||||
|
|
||||||
# fix bashishm
|
|
||||||
sed -e '/Usage/s/\$//g' \
|
|
||||||
-i tools/hotplug/Linux/init.d/xendriverdomain.in || die
|
|
||||||
|
|
||||||
# respect multilib, usr/lib/libcacard.so.0.0.0
|
|
||||||
sed -e "/^libdir=/s/\/lib/\/$(get_libdir)/" \
|
|
||||||
-i tools/qemu-xen/configure || die
|
|
||||||
|
|
||||||
#bug 518136, don't build 32bit exactuable for nomultilib profile
|
|
||||||
if [[ "${ARCH}" == 'amd64' ]] && ! has_multilib_profile; then
|
|
||||||
sed -i -e "/x86_emulator/d" tools/tests/Makefile || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
# uncomment lines in xl.conf
|
|
||||||
sed -e 's:^#autoballoon=:autoballoon=:' \
|
|
||||||
-e 's:^#lockfile=:lockfile=:' \
|
|
||||||
-e 's:^#vif.default.script=:vif.default.script=:' \
|
|
||||||
-i tools/examples/xl.conf || die
|
|
||||||
|
|
||||||
# disable capstone (Bug #673474)
|
|
||||||
sed -e "s:\$\$source/configure:\0 --disable-capstone:" \
|
|
||||||
-i tools/Makefile || die
|
|
||||||
|
|
||||||
# disable glusterfs
|
|
||||||
sed -e "s:\$\$source/configure:\0 --disable-glusterfs:" \
|
|
||||||
-i tools/Makefile || die
|
|
||||||
|
|
||||||
# disable jpeg automagic
|
|
||||||
sed -e "s:\$\$source/configure:\0 --disable-vnc-jpeg:" \
|
|
||||||
-i tools/Makefile || die
|
|
||||||
|
|
||||||
# disable png automagic
|
|
||||||
sed -e "s:\$\$source/configure:\0 --disable-vnc-png:" \
|
|
||||||
-i tools/Makefile || die
|
|
||||||
|
|
||||||
# disable docker (Bug #732970)
|
|
||||||
sed -e "s:\$\$source/configure:\0 --disable-containers:" \
|
|
||||||
-i tools/Makefile || die
|
|
||||||
|
|
||||||
# disable abi-dumper (Bug #791172)
|
|
||||||
sed -e 's/$(ABI_DUMPER) /echo /g' \
|
|
||||||
-i tools/libs/libs.mk || die
|
|
||||||
|
|
||||||
default
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local myconf="--prefix=${PREFIX}/usr \
|
|
||||||
--libdir=${PREFIX}/usr/$(get_libdir) \
|
|
||||||
--libexecdir=${PREFIX}/usr/libexec \
|
|
||||||
--localstatedir=${EPREFIX}/var \
|
|
||||||
--disable-golang \
|
|
||||||
--disable-werror \
|
|
||||||
--disable-xen \
|
|
||||||
--enable-tools \
|
|
||||||
--enable-docs \
|
|
||||||
$(use_enable api xenapi) \
|
|
||||||
$(use_enable ipxe) \
|
|
||||||
$(usex system-ipxe '--with-system-ipxe=/usr/share/ipxe' '') \
|
|
||||||
$(use_enable ocaml ocamltools) \
|
|
||||||
$(use_enable ovmf) \
|
|
||||||
$(use_enable pam) \
|
|
||||||
$(use_enable rombios) \
|
|
||||||
--with-xenstored=$(usex ocaml 'oxenstored' 'xenstored') \
|
|
||||||
"
|
|
||||||
|
|
||||||
use system-seabios && myconf+=" --with-system-seabios=/usr/share/seabios/bios.bin"
|
|
||||||
use system-qemu && myconf+=" --with-system-qemu=/usr/bin/qemu-system-x86_64"
|
|
||||||
use amd64 && myconf+=" $(use_enable qemu-traditional)"
|
|
||||||
tc-ld-disable-gold # Bug 669570
|
|
||||||
econf ${myconf}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
local myopt
|
|
||||||
use debug && myopt="${myopt} debug=y"
|
|
||||||
use python && myopt="${myopt} XENSTAT_PYTHON_BINDINGS=y"
|
|
||||||
|
|
||||||
if test-flag-CC -fno-strict-overflow; then
|
|
||||||
append-flags -fno-strict-overflow
|
|
||||||
fi
|
|
||||||
|
|
||||||
emake CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" build-tools ${myopt}
|
|
||||||
|
|
||||||
if use doc; then
|
|
||||||
emake -C docs build
|
|
||||||
else
|
|
||||||
emake -C docs man-pages
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
# Override auto-detection in the build system, bug #382573
|
|
||||||
export INITD_DIR=/tmp/init.d
|
|
||||||
export CONFIG_LEAF_DIR=../tmp/default
|
|
||||||
|
|
||||||
# Let the build system compile installed Python modules.
|
|
||||||
local PYTHONDONTWRITEBYTECODE
|
|
||||||
export PYTHONDONTWRITEBYTECODE
|
|
||||||
|
|
||||||
emake DESTDIR="${ED}" DOCDIR="/usr/share/doc/${PF}" \
|
|
||||||
XEN_PYTHON_NATIVE_INSTALL=y install-tools
|
|
||||||
|
|
||||||
# Created at runtime
|
|
||||||
rm -rv "${ED}/var/run" || die
|
|
||||||
|
|
||||||
# Fix the remaining Python shebangs.
|
|
||||||
python_fix_shebang "${D}"
|
|
||||||
|
|
||||||
# Remove RedHat-specific stuff
|
|
||||||
rm -rf "${D}"/tmp || die
|
|
||||||
|
|
||||||
if use doc; then
|
|
||||||
emake DESTDIR="${D}" DOCDIR="/usr/share/doc/${PF}" install-docs
|
|
||||||
dodoc -r docs/{pdf,txt}
|
|
||||||
else
|
|
||||||
emake -C docs DESTDIR="${D}" DOCDIR="/usr/share/doc/${PF}" install-man-pages # Bug 668032
|
|
||||||
fi
|
|
||||||
dodoc ${DOCS[@]}
|
|
||||||
|
|
||||||
newconfd "${FILESDIR}"/xendomains.confd xendomains
|
|
||||||
newconfd "${FILESDIR}"/xenstored.confd xenstored
|
|
||||||
newconfd "${FILESDIR}"/xenconsoled.confd xenconsoled
|
|
||||||
newinitd "${FILESDIR}"/xendomains.initd-r2 xendomains
|
|
||||||
newinitd "${FILESDIR}"/xenstored.initd-r1 xenstored
|
|
||||||
newinitd "${FILESDIR}"/xenconsoled.initd xenconsoled
|
|
||||||
newinitd "${FILESDIR}"/xencommons.initd xencommons
|
|
||||||
newconfd "${FILESDIR}"/xencommons.confd xencommons
|
|
||||||
newinitd "${FILESDIR}"/xenqemudev.initd xenqemudev
|
|
||||||
newconfd "${FILESDIR}"/xenqemudev.confd xenqemudev
|
|
||||||
newinitd "${FILESDIR}"/xen-watchdog.initd xen-watchdog
|
|
||||||
|
|
||||||
if use screen; then
|
|
||||||
cat "${FILESDIR}"/xendomains-screen.confd >> "${D}"/etc/conf.d/xendomains || die
|
|
||||||
cp "${FILESDIR}"/xen-consoles.logrotate "${D}"/etc/xen/ || die
|
|
||||||
keepdir /var/log/xen-consoles
|
|
||||||
fi
|
|
||||||
|
|
||||||
# For -static-libs wrt Bug 384355
|
|
||||||
if ! use static-libs; then
|
|
||||||
rm -f "${D}"/usr/$(get_libdir)/*.a "${D}"/usr/$(get_libdir)/ocaml/*/*.a
|
|
||||||
fi
|
|
||||||
|
|
||||||
# for xendomains
|
|
||||||
keepdir /etc/xen/auto
|
|
||||||
|
|
||||||
# Remove files failing QA AFTER emake installs them, avoiding seeking absent files
|
|
||||||
find "${D}" \( -name openbios-sparc32 -o -name openbios-sparc64 \
|
|
||||||
-o -name openbios-ppc -o -name palcode-clipper \) -delete || die
|
|
||||||
|
|
||||||
keepdir /var/lib/xen/dump
|
|
||||||
keepdir /var/lib/xen/xenpaging
|
|
||||||
keepdir /var/lib/xenstored
|
|
||||||
keepdir /var/log/xen
|
|
||||||
|
|
||||||
if use python; then
|
|
||||||
python_domodule "${S}/tools/xenstat/libxenstat/bindings/swig/python/xenstat.py"
|
|
||||||
python_domodule "${S}/tools/xenstat/libxenstat/bindings/swig/python/_xenstat.so"
|
|
||||||
fi
|
|
||||||
|
|
||||||
python_optimize
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
elog "Official Xen Guide and the offical wiki page:"
|
|
||||||
elog "https://wiki.gentoo.org/wiki/Xen"
|
|
||||||
elog "https://wiki.xen.org/wiki/Main_Page"
|
|
||||||
elog ""
|
|
||||||
elog "Recommended to utilise the xencommons script to config system at boot"
|
|
||||||
elog "Add by use of rc-update on completion of the install"
|
|
||||||
|
|
||||||
if ! use hvm; then
|
|
||||||
echo
|
|
||||||
elog "HVM (VT-x and AMD-V) support has been disabled. If you need hvm"
|
|
||||||
elog "support enable the hvm use flag."
|
|
||||||
elog "An x86 or amd64 system is required to build HVM support."
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use qemu; then
|
|
||||||
elog "The qemu-bridge-helper is renamed to the xen-bridge-helper in the in source"
|
|
||||||
elog "build of qemu. This allows for app-emulation/qemu to be emerged concurrently"
|
|
||||||
elog "with the qemu capable xen. It is up to the user to distinguish between and utilise"
|
|
||||||
elog "the qemu-bridge-helper and the xen-bridge-helper. File bugs of any issues that arise"
|
|
||||||
fi
|
|
||||||
}
|
|
|
@ -1,11 +0,0 @@
|
||||||
AUX fontconfig.Gentoo.properties 11196 BLAKE2B 31abb25a488c4680ee6a276d4c4fd0f0c8da5572a923cc1f755a6baf6ef007453c1cda4fb280fa108ae124c888a5b36b05658a9695dc5311f859742fbf9e7a79 SHA512 1802e52383a04efd0d7fb4d6a3903f99128dce90afcb10b9dd0d3515e5feafb807449024dbe5742c7dfa9d43736e474412e1a289e06b29cf3a58e59deedd56f9
|
|
||||||
AUX fontconfig.properties 11196 BLAKE2B 31abb25a488c4680ee6a276d4c4fd0f0c8da5572a923cc1f755a6baf6ef007453c1cda4fb280fa108ae124c888a5b36b05658a9695dc5311f859742fbf9e7a79 SHA512 1802e52383a04efd0d7fb4d6a3903f99128dce90afcb10b9dd0d3515e5feafb807449024dbe5742c7dfa9d43736e474412e1a289e06b29cf3a58e59deedd56f9
|
|
||||||
AUX oracle-jdk-bin-1.7.env 880 BLAKE2B c5cc5d09534e9ada0c05f9eda0a0609ae81d39d985ba21610955af8b532381030ed6231e0f129fe1648fe4a711c49896afc6797ba31f540bb6db38d269b6f117 SHA512 f230fd95f07638690b1ce64bf25b366b6fb11828735e7bb75fa30152435485e4f529f73e88a50f623db348c0ed68ea5617b7691f4c1c3be56b37216d0a7fa59a
|
|
||||||
AUX oracle-jdk-bin.env.sh 833 BLAKE2B 2e8254aff8d35795f073fb599c1c51dcd2ecb0356b4e90977577b9cd41376c3517a72e634bfb1420c37c8149af89044f48aa374480b26a19c875d4c1b78390eb SHA512 8d41679b4631016dbe98b15368ed027df9e6f4d96db17133c56bbf16b9a81be908d139617bc5350aa6b0e51bddc56bb1ce1abc5a8a4fad74868172cfdde6ffd8
|
|
||||||
DIST UnlimitedJCEPolicyJDK7.zip 7426 BLAKE2B 1cd63919e35248e25e4e104c8f87deed84db70280c7a4262c999d02edc8f9757c8ac6a369ac326686f61da7391f1788ec1da65d253e0bc6ff674c4e0c7dc3fb7 SHA512 02eca7da8f3fffea388431d5352290535a63d53a1f5c795d6511ccba62445787a0ee6ad4bc1852e5262860b6d607ba2a8c6a3dbb0c3e1d7c3a67ac7bbc783204
|
|
||||||
DIST jdk-7u80-linux-i586.tar.gz 154850445 BLAKE2B a94426088fa12456b74b24938279e9415d73cdb45857fa9b6234a9b5de24962690a28cf00097103f1cd94b3b9a7fd3eabb137edcca9572e035d6f27dca8a7608 SHA512 69e2ee7964b18e9e8b57db917b303eb9ea629c432300fe4749177118d2f5c365e72b976649e21354643fe4957120a2b23de025bab4dc45977837d4847a61ffb6
|
|
||||||
DIST jdk-7u80-linux-x64.tar.gz 153530841 BLAKE2B 9ff05c97b65b3b49f4d5088fa4b021aaa58806a1d9937b3c65db8e25bd44465880e66f60b75483bed12b9f562d3bf6430480516a86724a16262776231044a95e SHA512 a772878f740e87835bafc82841e8f4c1dfbe8bc79e072d3f6c5c74d3a206eb9001a53b474d91a22819c7c0d6407ed88993635c39738779c2b08c22c7a1c2e9e9
|
|
||||||
DIST jdk-8u241-linux-i586.tar.gz 195143852 BLAKE2B 595e614fb34122a72fca5ce70a4ed4702e725a2f3a3084c7f6a86be8901799f9b4eb11b04b9b054d59d011a285276922532dbc52a04e33a5c49b9a22fe9bdcb4 SHA512 66edeb10d4ab38e05f74a17f8bdfe681069e2ca14a42b2c0f6159cefed6ccba69581086d0d6209476cb731913451b58a3a503bc28456ac6c5ef68722d124a04d
|
|
||||||
DIST jdk-8u241-linux-x64.tar.gz 194545143 BLAKE2B 13369d68bc0c328c4efbba90697080fe4d65fb8167bc9b20b92b6d4d6845c48486c53f2371e362fdb6195e8ffdb3ad8f4b486115ffbcf3e2f8e2966b6ad46d4c SHA512 1123fb82926ac207fdbfc1dd3efd588832feed15cac755d1ca604e321816c2fb3c695b9ce3f99b5a14f6c45973cc8dadae87d5c79c49d67336f8a5cb50c56050
|
|
||||||
EBUILD oracle-jdk-bin-1.7.0.80.ebuild 7525 BLAKE2B cf5997f8872494b1334653c7637a72472326f04be56460c5cdce7b318b96867fbd921c2d1a124f29e78d1e0a0c1e5bf9c1841af8e22a8daac22ba55ccb41975b SHA512 5526de842d446d6e78ab783cb905c11733b951e61f2f4b6d0bd2a0bdc5776e6c83b10612d1889dcef139e352fa6f187facb60633ab80496da30bcd8cd70f3508
|
|
||||||
EBUILD oracle-jdk-bin-1.8.0.241.ebuild 8238 BLAKE2B 39a8ef091be7f6195367ae50fb18d7d12f0e9255ce9d04012eb2da8f6be067c096f8f3d17b266c16409391ff6b64236434b273a2c4b36b8aad640af86100aca1 SHA512 e5877fc6bcf3498300e516384434ff423fb7920de365278a1aa104c1147398af1e7b263d2dff94e0321d84d0dfacc0b04b0e337cbcb32339e504a9d44f4fe563
|
|
|
@ -1,161 +0,0 @@
|
||||||
# Version
|
|
||||||
|
|
||||||
version=1
|
|
||||||
|
|
||||||
# Component Font Mappings
|
|
||||||
|
|
||||||
allfonts.chinese-gb18030=-misc-ming for iso10646 -medium-r-normal--*-%d-*-*-c-*-iso10646-1
|
|
||||||
allfonts.chinese-gb18030.motif=-isas-song ti-medium-r-normal--*-%d-*-*-c-*-gb2312.1980-0
|
|
||||||
allfonts.chinese-big5=-arphic technology co.-ar pl mingti2l big5-medium-r-normal--*-%d-*-*-c-*-iso10646-1
|
|
||||||
allfonts.chinese-big5.motif=-taipei-fixed-medium-r-normal--*-%d-*-*-c-*-big5-0
|
|
||||||
allfonts.lucida=-b&h-lucidasans-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1
|
|
||||||
|
|
||||||
serif.plain.japanese-x0208=-misc-kochi mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
|
|
||||||
serif.plain.korean=-misc-baekmuk batang-medium-r-normal--*-%d-*-*-c-*-iso10646-1
|
|
||||||
serif.plain.korean.motif=-misc-baekmuk batang-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0
|
|
||||||
serif.plain.latin-1=-b&h-lucidabright-medium-r-normal--*-%d-*-*-p-*-iso8859-1
|
|
||||||
serif.plain.latin-1.motif=-b&h-luxi serif-medium-r-normal--*-%d-*-*-p-*-iso8859-1
|
|
||||||
|
|
||||||
serif.bold.japanese-x0208=-misc-kochi mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
|
|
||||||
serif.bold.korean=-misc-baekmuk batang-medium-r-normal--*-%d-*-*-c-*-iso10646-1
|
|
||||||
serif.bold.korean.motif=-misc-baekmuk batang-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0
|
|
||||||
serif.bold.latin-1=-b&h-lucidabright-demibold-r-normal--*-%d-*-*-p-*-iso8859-1
|
|
||||||
serif.bold.latin-1.motif=-b&h-luxi serif-bold-r-normal--*-%d-*-*-p-*-iso8859-1
|
|
||||||
|
|
||||||
serif.italic.japanese-x0208=-misc-kochi mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
|
|
||||||
serif.italic.korean=-misc-baekmuk batang-medium-r-normal--*-%d-*-*-c-*-iso10646-1
|
|
||||||
serif.italic.korean.motif=-misc-baekmuk batang-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0
|
|
||||||
serif.italic.latin-1=-b&h-lucidabright-medium-i-normal--*-%d-*-*-p-*-iso8859-1
|
|
||||||
serif.italic.latin-1.motif=-b&h-luxi serif-medium-i-normal--*-%d-*-*-p-*-iso8859-1
|
|
||||||
|
|
||||||
serif.bolditalic.japanese-x0208=-misc-kochi mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
|
|
||||||
serif.bolditalic.korean=-misc-baekmuk batang-medium-r-normal--*-%d-*-*-c-*-iso10646-1
|
|
||||||
serif.bolditalic.korean.motif=-misc-baekmuk batang-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0
|
|
||||||
serif.bolditalic.latin-1=-b&h-lucidabright-demibold-i-normal--*-%d-*-*-p-*-iso8859-1
|
|
||||||
serif.bolditalic.latin-1.motif=-b&h-luxi serif-bold-i-normal--*-%d-*-*-p-*-iso8859-1
|
|
||||||
|
|
||||||
sansserif.plain.japanese-x0208=-misc-kochi gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
|
|
||||||
sansserif.plain.korean=-misc-baekmuk gulim-medium-r-normal--*-%d-*-*-c-*-iso10646-1
|
|
||||||
sansserif.plain.korean.motif=-misc-baekmuk gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0
|
|
||||||
sansserif.plain.latin-1=-b&h-lucidasans-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1
|
|
||||||
sansserif.plain.latin-1.motif=-b&h-luxi sans-medium-r-normal--*-%d-*-*-p-*-iso8859-1
|
|
||||||
|
|
||||||
sansserif.bold.japanese-x0208=-misc-kochi gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
|
|
||||||
sansserif.bold.korean=-misc-baekmuk gulim-medium-r-normal--*-%d-*-*-c-*-iso10646-1
|
|
||||||
sansserif.bold.korean.motif=-misc-baekmuk gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0
|
|
||||||
sansserif.bold.latin-1=-b&h-lucidasans-bold-r-normal-sans-*-%d-*-*-p-*-iso8859-1
|
|
||||||
sansserif.bold.latin-1.motif=-b&h-luxi sans-bold-r-normal--*-%d-*-*-p-*-iso8859-1
|
|
||||||
|
|
||||||
sansserif.italic.japanese-x0208=-misc-kochi gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
|
|
||||||
sansserif.italic.korean=-misc-baekmuk gulim-medium-r-normal--*-%d-*-*-c-*-iso10646-1
|
|
||||||
sansserif.italic.korean.motif=-misc-baekmuk gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0
|
|
||||||
sansserif.italic.latin-1=-b&h-lucidasans-medium-i-normal-sans-*-%d-*-*-p-*-iso8859-1
|
|
||||||
sansserif.italic.latin-1.motif=-b&h-luxi sans-medium-i-normal--*-%d-*-*-p-*-iso8859-1
|
|
||||||
|
|
||||||
sansserif.bolditalic.japanese-x0208=-misc-kochi gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
|
|
||||||
sansserif.bolditalic.korean=-misc-baekmuk gulim-medium-r-normal--*-%d-*-*-c-*-iso10646-1
|
|
||||||
sansserif.bolditalic.korean.motif=-misc-baekmuk gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0
|
|
||||||
sansserif.bolditalic.latin-1=-b&h-lucidasans-bold-i-normal-sans-*-%d-*-*-p-*-iso8859-1
|
|
||||||
sansserif.bolditalic.latin-1.motif=-b&h-luxi sans-bold-i-normal--*-%d-*-*-p-*-iso8859-1
|
|
||||||
|
|
||||||
monospaced.plain.japanese-x0208=-misc-kochi mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
|
|
||||||
monospaced.plain.korean=-misc-baekmuk batang-medium-r-normal--*-%d-*-*-c-*-iso10646-1
|
|
||||||
monospaced.plain.korean.motif=-misc-baekmuk batang-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0
|
|
||||||
monospaced.plain.latin-1=-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1
|
|
||||||
monospaced.plain.latin-1.motif=-b&h-luxi mono-medium-r-normal--*-%d-*-*-m-*-iso8859-1
|
|
||||||
|
|
||||||
monospaced.bold.japanese-x0208=-misc-kochi mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
|
|
||||||
monospaced.bold.korean=-misc-baekmuk batang-medium-r-normal--*-%d-*-*-c-*-iso10646-1
|
|
||||||
monospaced.bold.korean.motif=-misc-baekmuk batang-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0
|
|
||||||
monospaced.bold.latin-1=-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1
|
|
||||||
monospaced.bold.latin-1.motif=-b&h-luxi mono-bold-r-normal--*-%d-*-*-m-*-iso8859-1
|
|
||||||
|
|
||||||
monospaced.italic.japanese-x0208=-misc-kochi mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
|
|
||||||
monospaced.italic.korean=-misc-baekmuk batang-medium-r-normal--*-%d-*-*-c-*-iso10646-1
|
|
||||||
monospaced.italic.korean.motif=-misc-baekmuk batang-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0
|
|
||||||
monospaced.italic.latin-1=-b&h-lucidatypewriter-medium-i-normal-sans-*-%d-*-*-m-*-iso8859-1
|
|
||||||
monospaced.italic.latin-1.motif=-b&h-luxi mono-medium-i-normal--*-%d-*-*-m-*-iso8859-1
|
|
||||||
|
|
||||||
monospaced.bolditalic.japanese-x0208=-misc-kochi mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
|
|
||||||
monospaced.bolditalic.korean=-misc-baekmuk batang-medium-r-normal--*-%d-*-*-c-*-iso10646-1
|
|
||||||
monospaced.bolditalic.korean.motif=-misc-baekmuk batang-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0
|
|
||||||
monospaced.bolditalic.latin-1=-b&h-lucidatypewriter-bold-i-normal-sans-*-%d-*-*-m-*-iso8859-1
|
|
||||||
monospaced.bolditalic.latin-1.motif=-b&h-luxi mono-bold-i-normal--*-%d-*-*-m-*-iso8859-1
|
|
||||||
|
|
||||||
dialog.plain.japanese-x0208=-misc-kochi gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
|
|
||||||
dialog.plain.korean=-misc-baekmuk gulim-medium-r-normal--*-%d-*-*-c-*-iso10646-1
|
|
||||||
dialog.plain.korean.motif=-misc-baekmuk gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0
|
|
||||||
dialog.plain.latin-1=-b&h-lucidasans-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1
|
|
||||||
dialog.plain.latin-1.motif=-b&h-luxi sans-medium-r-normal--*-%d-*-*-p-*-iso8859-1
|
|
||||||
|
|
||||||
dialog.bold.japanese-x0208=-misc-kochi gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
|
|
||||||
dialog.bold.korean=-misc-baekmuk gulim-medium-r-normal--*-%d-*-*-c-*-iso10646-1
|
|
||||||
dialog.bold.korean.motif=-misc-baekmuk gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0
|
|
||||||
dialog.bold.latin-1=-b&h-lucidasans-bold-r-normal-sans-*-%d-*-*-p-*-iso8859-1
|
|
||||||
dialog.bold.latin-1.motif=-b&h-luxi sans-bold-r-normal--*-%d-*-*-p-*-iso8859-1
|
|
||||||
|
|
||||||
dialog.italic.japanese-x0208=-misc-kochi gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
|
|
||||||
dialog.italic.korean=-misc-baekmuk gulim-medium-r-normal--*-%d-*-*-c-*-iso10646-1
|
|
||||||
dialog.italic.korean.motif=-misc-baekmuk gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0
|
|
||||||
dialog.italic.latin-1=-b&h-lucidasans-medium-i-normal-sans-*-%d-*-*-p-*-iso8859-1
|
|
||||||
dialog.italic.latin-1.motif=-b&h-luxi sans-medium-i-normal--*-%d-*-*-p-*-iso8859-1
|
|
||||||
|
|
||||||
dialog.bolditalic.japanese-x0208=-misc-kochi gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
|
|
||||||
dialog.bolditalic.korean=-misc-baekmuk gulim-medium-r-normal--*-%d-*-*-c-*-iso10646-1
|
|
||||||
dialog.bolditalic.korean.motif=-misc-baekmuk gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0
|
|
||||||
dialog.bolditalic.latin-1=-b&h-lucidasans-bold-i-normal-sans-*-%d-*-*-p-*-iso8859-1
|
|
||||||
dialog.bolditalic.latin-1.motif=-b&h-luxi sans-bold-i-normal--*-%d-*-*-p-*-iso8859-1
|
|
||||||
|
|
||||||
dialoginput.plain.japanese-x0208=-misc-kochi mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
|
|
||||||
dialoginput.plain.korean=-misc-baekmuk batang-medium-r-normal--*-%d-*-*-c-*-iso10646-1
|
|
||||||
dialoginput.plain.korean.motif=-misc-baekmuk batang-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0
|
|
||||||
dialoginput.plain.latin-1=-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1
|
|
||||||
dialoginput.plain.latin-1.motif=-b&h-luxi mono-medium-r-normal--*-%d-*-*-m-*-iso8859-1
|
|
||||||
|
|
||||||
dialoginput.bold.japanese-x0208=-misc-kochi mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
|
|
||||||
dialoginput.bold.korean=-misc-baekmuk batang-medium-r-normal--*-%d-*-*-c-*-iso10646-1
|
|
||||||
dialoginput.bold.korean.motif=-misc-baekmuk batang-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0
|
|
||||||
dialoginput.bold.latin-1=-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1
|
|
||||||
dialoginput.bold.latin-1.motif=-b&h-luxi mono-bold-r-normal--*-%d-*-*-m-*-iso8859-1
|
|
||||||
|
|
||||||
dialoginput.italic.japanese-x0208=-misc-kochi mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
|
|
||||||
dialoginput.italic.korean=-misc-baekmuk batang-medium-r-normal--*-%d-*-*-c-*-iso10646-1
|
|
||||||
dialoginput.italic.korean.motif=-misc-baekmuk batang-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0
|
|
||||||
dialoginput.italic.latin-1=-b&h-lucidatypewriter-medium-i-normal-sans-*-%d-*-*-m-*-iso8859-1
|
|
||||||
dialoginput.italic.latin-1.motif=-b&h-luxi mono-medium-i-normal--*-%d-*-*-m-*-iso8859-1
|
|
||||||
|
|
||||||
dialoginput.bolditalic.japanese-x0208=-misc-kochi mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
|
|
||||||
dialoginput.bolditalic.korean=-misc-baekmuk batang-medium-r-normal--*-%d-*-*-c-*-iso10646-1
|
|
||||||
dialoginput.bolditalic.korean.motif=-misc-baekmuk batang-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0
|
|
||||||
dialoginput.bolditalic.latin-1=-b&h-lucidatypewriter-bold-i-normal-sans-*-%d-*-*-m-*-iso8859-1
|
|
||||||
dialoginput.bolditalic.latin-1.motif=-b&h-luxi mono-bold-i-normal--*-%d-*-*-m-*-iso8859-1
|
|
||||||
|
|
||||||
# Search Sequences
|
|
||||||
|
|
||||||
sequence.allfonts=latin-1
|
|
||||||
sequence.allfonts.Big5=latin-1,chinese-big5
|
|
||||||
sequence.allfonts.GB2312=latin-1,chinese-gb18030
|
|
||||||
sequence.allfonts.x-euc-jp-linux=latin-1,japanese-x0208
|
|
||||||
sequence.allfonts.EUC-KR=latin-1,korean
|
|
||||||
sequence.allfonts.GB18030=latin-1,chinese-gb18030
|
|
||||||
sequence.fallback=lucida,chinese-big5,chinese-gb18030,japanese-x0208,korean
|
|
||||||
|
|
||||||
# Exclusion Ranges
|
|
||||||
|
|
||||||
exclusion.japanese-x0208=0390-03d6,2200-22ef,2701-27be
|
|
||||||
|
|
||||||
# Font File Names
|
|
||||||
|
|
||||||
filename.-arphic_technology_co.-ar_pl_mingti2l_big5-medium-r-normal--*-%d-*-*-c-*-iso10646-1=@GENTOO_PORTAGE_EPREFIX@/usr/share/fonts/arphicfonts/bsmi00lp.ttf
|
|
||||||
filename.-misc-baekmuk_batang-medium-r-normal--*-%d-*-*-c-*-iso10646-1=@GENTOO_PORTAGE_EPREFIX@/usr/share/fonts/baekmuk-fonts/batang.ttf
|
|
||||||
filename.-misc-baekmuk_gulim-medium-r-normal--*-%d-*-*-c-*-iso10646-1=@GENTOO_PORTAGE_EPREFIX@/usr/share/fonts/baekmuk-fonts/gulim.ttf
|
|
||||||
filename.-misc-kochi_gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0=@GENTOO_PORTAGE_EPREFIX@/usr/share/fonts/kochi-substitute/kochi-gothic-subst.ttf
|
|
||||||
filename.-misc-kochi_mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0=@GENTOO_PORTAGE_EPREFIX@/usr/share/fonts/kochi-substitute/kochi-mincho-subst.ttf
|
|
||||||
filename.-misc-ming for iso10646 -medium-r-normal--*-%d-*-*-c-*-iso10646-1=@GENTOO_PORTAGE_EPREFIX@/usr/share/fonts/hkscs-ming/min_uni.ttf
|
|
||||||
|
|
||||||
# AWT X11 font paths
|
|
||||||
awtfontpath.latin-1=@GENTOO_PORTAGE_EPREFIX@/usr/share/fonts/Type1
|
|
||||||
awtfontpath.chinese-big5=@GENTOO_PORTAGE_EPREFIX@/usr/share/fonts/arphicfonts
|
|
||||||
awtfontpath.chinese-gb18030=@GENTOO_PORTAGE_EPREFIX@/usr/share/fonts/arphicfonts
|
|
||||||
awtfontpath.japanese-x0208=@GENTOO_PORTAGE_EPREFIX@/usr/share/fonts/kochi-substitute
|
|
||||||
awtfontpath.korean=@GENTOO_PORTAGE_EPREFIX@/usr/share/fonts/baekmuk-fonts
|
|
|
@ -1,161 +0,0 @@
|
||||||
# Version
|
|
||||||
|
|
||||||
version=1
|
|
||||||
|
|
||||||
# Component Font Mappings
|
|
||||||
|
|
||||||
allfonts.chinese-gb18030=-misc-ming for iso10646 -medium-r-normal--*-%d-*-*-c-*-iso10646-1
|
|
||||||
allfonts.chinese-gb18030.motif=-isas-song ti-medium-r-normal--*-%d-*-*-c-*-gb2312.1980-0
|
|
||||||
allfonts.chinese-big5=-arphic technology co.-ar pl mingti2l big5-medium-r-normal--*-%d-*-*-c-*-iso10646-1
|
|
||||||
allfonts.chinese-big5.motif=-taipei-fixed-medium-r-normal--*-%d-*-*-c-*-big5-0
|
|
||||||
allfonts.lucida=-b&h-lucidasans-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1
|
|
||||||
|
|
||||||
serif.plain.japanese-x0208=-misc-kochi mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
|
|
||||||
serif.plain.korean=-misc-baekmuk batang-medium-r-normal--*-%d-*-*-c-*-iso10646-1
|
|
||||||
serif.plain.korean.motif=-misc-baekmuk batang-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0
|
|
||||||
serif.plain.latin-1=-b&h-lucidabright-medium-r-normal--*-%d-*-*-p-*-iso8859-1
|
|
||||||
serif.plain.latin-1.motif=-b&h-luxi serif-medium-r-normal--*-%d-*-*-p-*-iso8859-1
|
|
||||||
|
|
||||||
serif.bold.japanese-x0208=-misc-kochi mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
|
|
||||||
serif.bold.korean=-misc-baekmuk batang-medium-r-normal--*-%d-*-*-c-*-iso10646-1
|
|
||||||
serif.bold.korean.motif=-misc-baekmuk batang-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0
|
|
||||||
serif.bold.latin-1=-b&h-lucidabright-demibold-r-normal--*-%d-*-*-p-*-iso8859-1
|
|
||||||
serif.bold.latin-1.motif=-b&h-luxi serif-bold-r-normal--*-%d-*-*-p-*-iso8859-1
|
|
||||||
|
|
||||||
serif.italic.japanese-x0208=-misc-kochi mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
|
|
||||||
serif.italic.korean=-misc-baekmuk batang-medium-r-normal--*-%d-*-*-c-*-iso10646-1
|
|
||||||
serif.italic.korean.motif=-misc-baekmuk batang-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0
|
|
||||||
serif.italic.latin-1=-b&h-lucidabright-medium-i-normal--*-%d-*-*-p-*-iso8859-1
|
|
||||||
serif.italic.latin-1.motif=-b&h-luxi serif-medium-i-normal--*-%d-*-*-p-*-iso8859-1
|
|
||||||
|
|
||||||
serif.bolditalic.japanese-x0208=-misc-kochi mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
|
|
||||||
serif.bolditalic.korean=-misc-baekmuk batang-medium-r-normal--*-%d-*-*-c-*-iso10646-1
|
|
||||||
serif.bolditalic.korean.motif=-misc-baekmuk batang-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0
|
|
||||||
serif.bolditalic.latin-1=-b&h-lucidabright-demibold-i-normal--*-%d-*-*-p-*-iso8859-1
|
|
||||||
serif.bolditalic.latin-1.motif=-b&h-luxi serif-bold-i-normal--*-%d-*-*-p-*-iso8859-1
|
|
||||||
|
|
||||||
sansserif.plain.japanese-x0208=-misc-kochi gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
|
|
||||||
sansserif.plain.korean=-misc-baekmuk gulim-medium-r-normal--*-%d-*-*-c-*-iso10646-1
|
|
||||||
sansserif.plain.korean.motif=-misc-baekmuk gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0
|
|
||||||
sansserif.plain.latin-1=-b&h-lucidasans-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1
|
|
||||||
sansserif.plain.latin-1.motif=-b&h-luxi sans-medium-r-normal--*-%d-*-*-p-*-iso8859-1
|
|
||||||
|
|
||||||
sansserif.bold.japanese-x0208=-misc-kochi gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
|
|
||||||
sansserif.bold.korean=-misc-baekmuk gulim-medium-r-normal--*-%d-*-*-c-*-iso10646-1
|
|
||||||
sansserif.bold.korean.motif=-misc-baekmuk gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0
|
|
||||||
sansserif.bold.latin-1=-b&h-lucidasans-bold-r-normal-sans-*-%d-*-*-p-*-iso8859-1
|
|
||||||
sansserif.bold.latin-1.motif=-b&h-luxi sans-bold-r-normal--*-%d-*-*-p-*-iso8859-1
|
|
||||||
|
|
||||||
sansserif.italic.japanese-x0208=-misc-kochi gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
|
|
||||||
sansserif.italic.korean=-misc-baekmuk gulim-medium-r-normal--*-%d-*-*-c-*-iso10646-1
|
|
||||||
sansserif.italic.korean.motif=-misc-baekmuk gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0
|
|
||||||
sansserif.italic.latin-1=-b&h-lucidasans-medium-i-normal-sans-*-%d-*-*-p-*-iso8859-1
|
|
||||||
sansserif.italic.latin-1.motif=-b&h-luxi sans-medium-i-normal--*-%d-*-*-p-*-iso8859-1
|
|
||||||
|
|
||||||
sansserif.bolditalic.japanese-x0208=-misc-kochi gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
|
|
||||||
sansserif.bolditalic.korean=-misc-baekmuk gulim-medium-r-normal--*-%d-*-*-c-*-iso10646-1
|
|
||||||
sansserif.bolditalic.korean.motif=-misc-baekmuk gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0
|
|
||||||
sansserif.bolditalic.latin-1=-b&h-lucidasans-bold-i-normal-sans-*-%d-*-*-p-*-iso8859-1
|
|
||||||
sansserif.bolditalic.latin-1.motif=-b&h-luxi sans-bold-i-normal--*-%d-*-*-p-*-iso8859-1
|
|
||||||
|
|
||||||
monospaced.plain.japanese-x0208=-misc-kochi mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
|
|
||||||
monospaced.plain.korean=-misc-baekmuk batang-medium-r-normal--*-%d-*-*-c-*-iso10646-1
|
|
||||||
monospaced.plain.korean.motif=-misc-baekmuk batang-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0
|
|
||||||
monospaced.plain.latin-1=-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1
|
|
||||||
monospaced.plain.latin-1.motif=-b&h-luxi mono-medium-r-normal--*-%d-*-*-m-*-iso8859-1
|
|
||||||
|
|
||||||
monospaced.bold.japanese-x0208=-misc-kochi mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
|
|
||||||
monospaced.bold.korean=-misc-baekmuk batang-medium-r-normal--*-%d-*-*-c-*-iso10646-1
|
|
||||||
monospaced.bold.korean.motif=-misc-baekmuk batang-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0
|
|
||||||
monospaced.bold.latin-1=-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1
|
|
||||||
monospaced.bold.latin-1.motif=-b&h-luxi mono-bold-r-normal--*-%d-*-*-m-*-iso8859-1
|
|
||||||
|
|
||||||
monospaced.italic.japanese-x0208=-misc-kochi mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
|
|
||||||
monospaced.italic.korean=-misc-baekmuk batang-medium-r-normal--*-%d-*-*-c-*-iso10646-1
|
|
||||||
monospaced.italic.korean.motif=-misc-baekmuk batang-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0
|
|
||||||
monospaced.italic.latin-1=-b&h-lucidatypewriter-medium-i-normal-sans-*-%d-*-*-m-*-iso8859-1
|
|
||||||
monospaced.italic.latin-1.motif=-b&h-luxi mono-medium-i-normal--*-%d-*-*-m-*-iso8859-1
|
|
||||||
|
|
||||||
monospaced.bolditalic.japanese-x0208=-misc-kochi mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
|
|
||||||
monospaced.bolditalic.korean=-misc-baekmuk batang-medium-r-normal--*-%d-*-*-c-*-iso10646-1
|
|
||||||
monospaced.bolditalic.korean.motif=-misc-baekmuk batang-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0
|
|
||||||
monospaced.bolditalic.latin-1=-b&h-lucidatypewriter-bold-i-normal-sans-*-%d-*-*-m-*-iso8859-1
|
|
||||||
monospaced.bolditalic.latin-1.motif=-b&h-luxi mono-bold-i-normal--*-%d-*-*-m-*-iso8859-1
|
|
||||||
|
|
||||||
dialog.plain.japanese-x0208=-misc-kochi gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
|
|
||||||
dialog.plain.korean=-misc-baekmuk gulim-medium-r-normal--*-%d-*-*-c-*-iso10646-1
|
|
||||||
dialog.plain.korean.motif=-misc-baekmuk gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0
|
|
||||||
dialog.plain.latin-1=-b&h-lucidasans-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1
|
|
||||||
dialog.plain.latin-1.motif=-b&h-luxi sans-medium-r-normal--*-%d-*-*-p-*-iso8859-1
|
|
||||||
|
|
||||||
dialog.bold.japanese-x0208=-misc-kochi gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
|
|
||||||
dialog.bold.korean=-misc-baekmuk gulim-medium-r-normal--*-%d-*-*-c-*-iso10646-1
|
|
||||||
dialog.bold.korean.motif=-misc-baekmuk gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0
|
|
||||||
dialog.bold.latin-1=-b&h-lucidasans-bold-r-normal-sans-*-%d-*-*-p-*-iso8859-1
|
|
||||||
dialog.bold.latin-1.motif=-b&h-luxi sans-bold-r-normal--*-%d-*-*-p-*-iso8859-1
|
|
||||||
|
|
||||||
dialog.italic.japanese-x0208=-misc-kochi gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
|
|
||||||
dialog.italic.korean=-misc-baekmuk gulim-medium-r-normal--*-%d-*-*-c-*-iso10646-1
|
|
||||||
dialog.italic.korean.motif=-misc-baekmuk gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0
|
|
||||||
dialog.italic.latin-1=-b&h-lucidasans-medium-i-normal-sans-*-%d-*-*-p-*-iso8859-1
|
|
||||||
dialog.italic.latin-1.motif=-b&h-luxi sans-medium-i-normal--*-%d-*-*-p-*-iso8859-1
|
|
||||||
|
|
||||||
dialog.bolditalic.japanese-x0208=-misc-kochi gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
|
|
||||||
dialog.bolditalic.korean=-misc-baekmuk gulim-medium-r-normal--*-%d-*-*-c-*-iso10646-1
|
|
||||||
dialog.bolditalic.korean.motif=-misc-baekmuk gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0
|
|
||||||
dialog.bolditalic.latin-1=-b&h-lucidasans-bold-i-normal-sans-*-%d-*-*-p-*-iso8859-1
|
|
||||||
dialog.bolditalic.latin-1.motif=-b&h-luxi sans-bold-i-normal--*-%d-*-*-p-*-iso8859-1
|
|
||||||
|
|
||||||
dialoginput.plain.japanese-x0208=-misc-kochi mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
|
|
||||||
dialoginput.plain.korean=-misc-baekmuk batang-medium-r-normal--*-%d-*-*-c-*-iso10646-1
|
|
||||||
dialoginput.plain.korean.motif=-misc-baekmuk batang-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0
|
|
||||||
dialoginput.plain.latin-1=-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1
|
|
||||||
dialoginput.plain.latin-1.motif=-b&h-luxi mono-medium-r-normal--*-%d-*-*-m-*-iso8859-1
|
|
||||||
|
|
||||||
dialoginput.bold.japanese-x0208=-misc-kochi mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
|
|
||||||
dialoginput.bold.korean=-misc-baekmuk batang-medium-r-normal--*-%d-*-*-c-*-iso10646-1
|
|
||||||
dialoginput.bold.korean.motif=-misc-baekmuk batang-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0
|
|
||||||
dialoginput.bold.latin-1=-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1
|
|
||||||
dialoginput.bold.latin-1.motif=-b&h-luxi mono-bold-r-normal--*-%d-*-*-m-*-iso8859-1
|
|
||||||
|
|
||||||
dialoginput.italic.japanese-x0208=-misc-kochi mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
|
|
||||||
dialoginput.italic.korean=-misc-baekmuk batang-medium-r-normal--*-%d-*-*-c-*-iso10646-1
|
|
||||||
dialoginput.italic.korean.motif=-misc-baekmuk batang-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0
|
|
||||||
dialoginput.italic.latin-1=-b&h-lucidatypewriter-medium-i-normal-sans-*-%d-*-*-m-*-iso8859-1
|
|
||||||
dialoginput.italic.latin-1.motif=-b&h-luxi mono-medium-i-normal--*-%d-*-*-m-*-iso8859-1
|
|
||||||
|
|
||||||
dialoginput.bolditalic.japanese-x0208=-misc-kochi mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0
|
|
||||||
dialoginput.bolditalic.korean=-misc-baekmuk batang-medium-r-normal--*-%d-*-*-c-*-iso10646-1
|
|
||||||
dialoginput.bolditalic.korean.motif=-misc-baekmuk batang-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0
|
|
||||||
dialoginput.bolditalic.latin-1=-b&h-lucidatypewriter-bold-i-normal-sans-*-%d-*-*-m-*-iso8859-1
|
|
||||||
dialoginput.bolditalic.latin-1.motif=-b&h-luxi mono-bold-i-normal--*-%d-*-*-m-*-iso8859-1
|
|
||||||
|
|
||||||
# Search Sequences
|
|
||||||
|
|
||||||
sequence.allfonts=latin-1
|
|
||||||
sequence.allfonts.Big5=latin-1,chinese-big5
|
|
||||||
sequence.allfonts.GB2312=latin-1,chinese-gb18030
|
|
||||||
sequence.allfonts.x-euc-jp-linux=latin-1,japanese-x0208
|
|
||||||
sequence.allfonts.EUC-KR=latin-1,korean
|
|
||||||
sequence.allfonts.GB18030=latin-1,chinese-gb18030
|
|
||||||
sequence.fallback=lucida,chinese-big5,chinese-gb18030,japanese-x0208,korean
|
|
||||||
|
|
||||||
# Exclusion Ranges
|
|
||||||
|
|
||||||
exclusion.japanese-x0208=0390-03d6,2200-22ef,2701-27be
|
|
||||||
|
|
||||||
# Font File Names
|
|
||||||
|
|
||||||
filename.-arphic_technology_co.-ar_pl_mingti2l_big5-medium-r-normal--*-%d-*-*-c-*-iso10646-1=@GENTOO_PORTAGE_EPREFIX@/usr/share/fonts/arphicfonts/bsmi00lp.ttf
|
|
||||||
filename.-misc-baekmuk_batang-medium-r-normal--*-%d-*-*-c-*-iso10646-1=@GENTOO_PORTAGE_EPREFIX@/usr/share/fonts/baekmuk-fonts/batang.ttf
|
|
||||||
filename.-misc-baekmuk_gulim-medium-r-normal--*-%d-*-*-c-*-iso10646-1=@GENTOO_PORTAGE_EPREFIX@/usr/share/fonts/baekmuk-fonts/gulim.ttf
|
|
||||||
filename.-misc-kochi_gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0=@GENTOO_PORTAGE_EPREFIX@/usr/share/fonts/kochi-substitute/kochi-gothic-subst.ttf
|
|
||||||
filename.-misc-kochi_mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0=@GENTOO_PORTAGE_EPREFIX@/usr/share/fonts/kochi-substitute/kochi-mincho-subst.ttf
|
|
||||||
filename.-misc-ming for iso10646 -medium-r-normal--*-%d-*-*-c-*-iso10646-1=@GENTOO_PORTAGE_EPREFIX@/usr/share/fonts/hkscs-ming/min_uni.ttf
|
|
||||||
|
|
||||||
# AWT X11 font paths
|
|
||||||
awtfontpath.latin-1=@GENTOO_PORTAGE_EPREFIX@/usr/share/fonts/Type1
|
|
||||||
awtfontpath.chinese-big5=@GENTOO_PORTAGE_EPREFIX@/usr/share/fonts/arphicfonts
|
|
||||||
awtfontpath.chinese-gb18030=@GENTOO_PORTAGE_EPREFIX@/usr/share/fonts/arphicfonts
|
|
||||||
awtfontpath.japanese-x0208=@GENTOO_PORTAGE_EPREFIX@/usr/share/fonts/kochi-substitute
|
|
||||||
awtfontpath.korean=@GENTOO_PORTAGE_EPREFIX@/usr/share/fonts/baekmuk-fonts
|
|
|
@ -1,17 +0,0 @@
|
||||||
# Copyright 1999-2011 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
VERSION="Oracle JDK @PV@"
|
|
||||||
JAVA_HOME="@GENTOO_PORTAGE_EPREFIX@/opt/@P@"
|
|
||||||
JDK_HOME="@GENTOO_PORTAGE_EPREFIX@/opt/@P@"
|
|
||||||
JAVAC=${JAVA_HOME}/bin/javac
|
|
||||||
PATH="${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin"
|
|
||||||
ROOTPATH="${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin"
|
|
||||||
LDPATH="${JAVA_HOME}/jre/lib/@PLATFORM@/:${JAVA_HOME}/jre/lib/@PLATFORM@/xawt/:${JAVA_HOME}/jre/lib/@PLATFORM@/server/"
|
|
||||||
MANPATH="@GENTOO_PORTAGE_EPREFIX@/opt/@P@/man"
|
|
||||||
PROVIDES_TYPE="JDK JRE"
|
|
||||||
PROVIDES_VERSION="1.7"
|
|
||||||
BOOTCLASSPATH="${JAVA_HOME}/jre/lib/resources.jar:${JAVA_HOME}/jre/lib/rt.jar:${JAVA_HOME}/jre/lib/sunrsasign.jar:${JAVA_HOME}/jre/lib/jsse.jar:${JAVA_HOME}/jre/lib/jce.jar:${JAVA_HOME}/jre/lib/charsets.jar:${JAVA_HOME}/jre/classes"
|
|
||||||
GENERATION="2"
|
|
||||||
ENV_VARS="JAVA_HOME JDK_HOME JAVAC PATH ROOTPATH LDPATH MANPATH"
|
|
|
@ -1,16 +0,0 @@
|
||||||
# Copyright 1999-2017 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
VERSION="Oracle JDK ${PV}"
|
|
||||||
JAVA_HOME="${EPREFIX}/opt/${P}"
|
|
||||||
JDK_HOME="${EPREFIX}/opt/${P}"
|
|
||||||
JAVAC="\${JAVA_HOME}/bin/javac"
|
|
||||||
PATH="\${JAVA_HOME}/bin:\${JAVA_HOME}/jre/bin"
|
|
||||||
ROOTPATH="\${JAVA_HOME}/bin:\${JAVA_HOME}/jre/bin"
|
|
||||||
LDPATH="\${JAVA_HOME}/jre/lib/$(get_system_arch)/:\${JAVA_HOME}/jre/lib/$(get_system_arch)/server/"
|
|
||||||
MANPATH="${EPREFIX}/opt/${P}/man"
|
|
||||||
PROVIDES_TYPE="JDK JRE"
|
|
||||||
PROVIDES_VERSION="${SLOT}"
|
|
||||||
BOOTCLASSPATH="\${JAVA_HOME}/jre/lib/resources.jar:\${JAVA_HOME}/jre/lib/rt.jar:\${JAVA_HOME}/jre/lib/sunrsasign.jar:\${JAVA_HOME}/jre/lib/jsse.jar:\${JAVA_HOME}/jre/lib/jce.jar:\${JAVA_HOME}/jre/lib/charsets.jar:\${JAVA_HOME}/jre/classes"
|
|
||||||
GENERATION="2"
|
|
||||||
ENV_VARS="JAVA_HOME JDK_HOME JAVAC PATH ROOTPATH LDPATH MANPATH"
|
|
|
@ -1,243 +0,0 @@
|
||||||
# Copyright 1999-2015 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI="6"
|
|
||||||
|
|
||||||
inherit eutils java-vm-2 prefix versionator
|
|
||||||
|
|
||||||
MY_PV="$(get_version_component_range 2)u$(get_version_component_range 4)"
|
|
||||||
S_PV="$(replace_version_separator 3 '_')"
|
|
||||||
|
|
||||||
# This URIs need to be updated when bumping!
|
|
||||||
JDK_URI="http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html#jdk-${MY_PV}-oth-JPR"
|
|
||||||
JCE_URI="http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html"
|
|
||||||
# This is a list of archs supported by this update.
|
|
||||||
# Currently arm comes and goes.
|
|
||||||
AT_AVAILABLE=( amd64 x86 )
|
|
||||||
# Sometimes some or all of the demos are missing, this is to not have to rewrite half
|
|
||||||
# the ebuild when it happens.
|
|
||||||
DEMOS_AVAILABLE=( )
|
|
||||||
#amd64 x86 x64-solaris x86-solaris sparc-solaris sparc64-solaris x86-macos x64-macos )
|
|
||||||
FX_VERSION="2_2_$(get_version_component_range 4)"
|
|
||||||
|
|
||||||
AT_x86="jdk-${MY_PV}-linux-i586.tar.gz"
|
|
||||||
AT_amd64="jdk-${MY_PV}-linux-x64.tar.gz"
|
|
||||||
|
|
||||||
FXDEMOS_linux="javafx_samples-${FX_VERSION}-linux.zip"
|
|
||||||
|
|
||||||
DEMOS_x86="${FXDEMOS_linux} jdk-${MY_PV}-linux-i586-demos.tar.gz"
|
|
||||||
DEMOS_amd64="${FXDEMOS_linux} jdk-${MY_PV}-linux-x64-demos.tar.gz"
|
|
||||||
|
|
||||||
JCE_DIR="UnlimitedJCEPolicy"
|
|
||||||
JCE_FILE="${JCE_DIR}JDK7.zip"
|
|
||||||
|
|
||||||
DESCRIPTION="Oracle's Java SE Development Kit"
|
|
||||||
HOMEPAGE="http://www.oracle.com/technetwork/java/javase/"
|
|
||||||
for d in "${AT_AVAILABLE[@]}"; do
|
|
||||||
SRC_URI+=" ${d}? ("
|
|
||||||
SRC_URI+=" $(eval "echo \${$(echo AT_${d/-/_})}")"
|
|
||||||
if has ${d} "${DEMOS_AVAILABLE[@]}"; then
|
|
||||||
SRC_URI+=" examples? ( $(eval "echo \${$(echo DEMOS_${d/-/_})}") )"
|
|
||||||
fi
|
|
||||||
SRC_URI+=" )"
|
|
||||||
done
|
|
||||||
unset d
|
|
||||||
SRC_URI+=" jce? ( ${JCE_FILE} )"
|
|
||||||
|
|
||||||
LICENSE="Oracle-BCLA-JavaSE examples? ( BSD )"
|
|
||||||
SLOT="1.7"
|
|
||||||
KEYWORDS="amd64 x86"
|
|
||||||
IUSE="+X alsa aqua derby doc examples +fontconfig jce nsplugin pax_kernel selinux source"
|
|
||||||
|
|
||||||
RESTRICT="fetch strip"
|
|
||||||
QA_PREBUILT="*"
|
|
||||||
|
|
||||||
COMMON_DEP=""
|
|
||||||
RDEPEND="${COMMON_DEP}
|
|
||||||
X? ( !aqua? (
|
|
||||||
x11-libs/libX11
|
|
||||||
x11-libs/libXext
|
|
||||||
x11-libs/libXi
|
|
||||||
x11-libs/libXrender
|
|
||||||
x11-libs/libXtst
|
|
||||||
) )
|
|
||||||
alsa? ( media-libs/alsa-lib )
|
|
||||||
doc? ( dev-java/java-sdk-docs:1.7 )
|
|
||||||
fontconfig? ( media-libs/fontconfig )
|
|
||||||
!prefix? ( sys-libs/glibc )
|
|
||||||
selinux? ( sec-policy/selinux-java )"
|
|
||||||
# scanelf won't create a PaX header, so depend on paxctl to avoid fallback
|
|
||||||
# marking. #427642
|
|
||||||
DEPEND="${COMMON_DEP}
|
|
||||||
jce? ( app-arch/unzip )
|
|
||||||
examples? ( kernel_linux? ( app-arch/unzip ) )
|
|
||||||
pax_kernel? ( sys-apps/paxctl )"
|
|
||||||
|
|
||||||
S="${WORKDIR}"/jdk${S_PV}
|
|
||||||
|
|
||||||
check_tarballs_available() {
|
|
||||||
local uri=$1; shift
|
|
||||||
local dl= unavailable=
|
|
||||||
for dl in "${@}"; do
|
|
||||||
[[ ! -f "${DISTDIR}/${dl}" ]] && unavailable+=" ${dl}"
|
|
||||||
done
|
|
||||||
|
|
||||||
if [[ -n "${unavailable}" ]]; then
|
|
||||||
if [[ -z ${_check_tarballs_available_once} ]]; then
|
|
||||||
einfo
|
|
||||||
einfo "Oracle requires you to download the needed files manually after"
|
|
||||||
einfo "accepting their license through a javascript capable web browser."
|
|
||||||
einfo
|
|
||||||
_check_tarballs_available_once=1
|
|
||||||
fi
|
|
||||||
einfo "Download the following files:"
|
|
||||||
for dl in ${unavailable}; do
|
|
||||||
einfo " ${dl}"
|
|
||||||
done
|
|
||||||
einfo "at '${uri}'"
|
|
||||||
einfo "and move them to '${DISTDIR}'"
|
|
||||||
einfo
|
|
||||||
einfo "If the above mentioned urls do not point to the correct version anymore,"
|
|
||||||
einfo "please download the files from Oracle's java download archive:"
|
|
||||||
einfo
|
|
||||||
einfo " http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase7-521261.html#jdk-${MY_PV}-oth-JPR"
|
|
||||||
einfo
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_nofetch() {
|
|
||||||
local distfiles=( $(eval "echo \${$(echo AT_${ARCH/-/_})}") )
|
|
||||||
if use examples && has ${ARCH} "${DEMOS_AVAILABLE[@]}"; then
|
|
||||||
distfiles+=( $(eval "echo \${$(echo DEMOS_${ARCH/-/_})}") )
|
|
||||||
fi
|
|
||||||
check_tarballs_available "${JDK_URI}" "${distfiles[@]}"
|
|
||||||
|
|
||||||
use jce && check_tarballs_available "${JCE_URI}" "${JCE_FILE}"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
if use jce; then
|
|
||||||
mv "${WORKDIR}"/${JCE_DIR} "${S}"/jre/lib/security/ || die
|
|
||||||
fi
|
|
||||||
eapply_user
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local dest="/opt/${P}"
|
|
||||||
local ddest="${ED}${dest}"
|
|
||||||
|
|
||||||
# Create files used as storage for system preferences.
|
|
||||||
mkdir jre/.systemPrefs || die
|
|
||||||
touch jre/.systemPrefs/.system.lock || die
|
|
||||||
touch jre/.systemPrefs/.systemRootModFile || die
|
|
||||||
|
|
||||||
# We should not need the ancient plugin for Firefox 2 anymore, plus it has
|
|
||||||
# writable executable segments
|
|
||||||
if use x86; then
|
|
||||||
rm -vf {,jre/}lib/i386/libjavaplugin_oji.so \
|
|
||||||
{,jre/}lib/i386/libjavaplugin_nscp*.so
|
|
||||||
rm -vrf jre/plugin/i386
|
|
||||||
fi
|
|
||||||
# Without nsplugin flag, also remove the new plugin
|
|
||||||
local arch=${ARCH};
|
|
||||||
use x86 && arch=i386;
|
|
||||||
if ! use nsplugin; then
|
|
||||||
rm -vf {,jre/}lib/${arch}/libnpjp2.so \
|
|
||||||
{,jre/}lib/${arch}/libjavaplugin_jni.so
|
|
||||||
fi
|
|
||||||
|
|
||||||
dodoc COPYRIGHT
|
|
||||||
docinto html
|
|
||||||
dodoc README.html
|
|
||||||
|
|
||||||
dodir "${dest}"
|
|
||||||
cp -pPR bin include jre lib man "${ddest}" || die
|
|
||||||
|
|
||||||
if use derby; then
|
|
||||||
cp -pPR db "${ddest}" || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use examples && has ${ARCH} "${DEMOS_AVAILABLE[@]}"; then
|
|
||||||
cp -pPR demo sample "${ddest}" || die
|
|
||||||
if use kernel_linux; then
|
|
||||||
cp -pPR "${WORKDIR}"/javafx-samples-${FX_VERSION//_/.} \
|
|
||||||
"${ddest}"/javafx-samples || die
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use jce; then
|
|
||||||
dodir "${dest}"/jre/lib/security/strong-jce
|
|
||||||
mv "${ddest}"/jre/lib/security/US_export_policy.jar \
|
|
||||||
"${ddest}"/jre/lib/security/strong-jce || die
|
|
||||||
mv "${ddest}"/jre/lib/security/local_policy.jar \
|
|
||||||
"${ddest}"/jre/lib/security/strong-jce || die
|
|
||||||
dosym "${dest}"/jre/lib/security/${JCE_DIR}/US_export_policy.jar \
|
|
||||||
"${dest}"/jre/lib/security/US_export_policy.jar
|
|
||||||
dosym "${dest}"/jre/lib/security/${JCE_DIR}/local_policy.jar \
|
|
||||||
"${dest}"/jre/lib/security/local_policy.jar
|
|
||||||
fi
|
|
||||||
|
|
||||||
# if use nsplugin; then
|
|
||||||
# install_mozilla_plugin "${dest}"/jre/lib/${arch}/libnpjp2.so
|
|
||||||
# fi
|
|
||||||
|
|
||||||
if use source; then
|
|
||||||
cp -p src.zip "${ddest}" || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use !arm ; then
|
|
||||||
# Install desktop file for the Java Control Panel.
|
|
||||||
# Using ${PN}-${SLOT} to prevent file collision with jre and or
|
|
||||||
# other slots. make_desktop_entry can't be used as ${P} would
|
|
||||||
# end up in filename.
|
|
||||||
newicon jre/lib/desktop/icons/hicolor/48x48/apps/sun-jcontrol.png \
|
|
||||||
sun-jcontrol-${PN}-${SLOT}.png || die
|
|
||||||
sed -e "s#Name=.*#Name=Java Control Panel for Oracle JDK ${SLOT}#" \
|
|
||||||
-e "s#Exec=.*#Exec=/opt/${P}/jre/bin/jcontrol#" \
|
|
||||||
-e "s#Icon=.*#Icon=sun-jcontrol-${PN}-${SLOT}#" \
|
|
||||||
-e "s#Application;##" \
|
|
||||||
-e "/Encoding/d" \
|
|
||||||
jre/lib/desktop/applications/sun_java.desktop \
|
|
||||||
> "${T}"/jcontrol-${PN}-${SLOT}.desktop || die
|
|
||||||
domenu "${T}"/jcontrol-${PN}-${SLOT}.desktop
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Prune all fontconfig files so libfontconfig will be used and only install
|
|
||||||
# a Gentoo specific one if fontconfig is disabled.
|
|
||||||
# http://docs.oracle.com/javase/7/docs/technotes/guides/intl/fontconfig.html
|
|
||||||
rm "${ddest}"/jre/lib/fontconfig.*
|
|
||||||
if ! use fontconfig; then
|
|
||||||
cp "${FILESDIR}"/fontconfig.Gentoo.properties "${T}"/fontconfig.properties || die
|
|
||||||
eprefixify "${T}"/fontconfig.properties
|
|
||||||
insinto "${dest}"/jre/lib/
|
|
||||||
doins "${T}"/fontconfig.properties
|
|
||||||
fi
|
|
||||||
|
|
||||||
# This needs to be done before CDS - #215225
|
|
||||||
java-vm_set-pax-markings "${ddest}"
|
|
||||||
|
|
||||||
# see bug #207282
|
|
||||||
einfo "Creating the Class Data Sharing archives"
|
|
||||||
case ${ARCH} in
|
|
||||||
arm|ia64)
|
|
||||||
${ddest}/bin/java -client -Xshare:dump || die
|
|
||||||
;;
|
|
||||||
x86)
|
|
||||||
${ddest}/bin/java -client -Xshare:dump || die
|
|
||||||
# limit heap size for large memory on x86 #467518
|
|
||||||
# this is a workaround and shouldn't be needed.
|
|
||||||
${ddest}/bin/java -server -Xms64m -Xmx64m -Xshare:dump || die
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
${ddest}/bin/java -server -Xshare:dump || die
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# Remove empty dirs we might have copied
|
|
||||||
find "${D}" -type d -empty -exec rmdir -v {} + || die
|
|
||||||
|
|
||||||
set_java_env
|
|
||||||
java-vm_revdep-mask
|
|
||||||
java-vm_sandbox-predict /dev/random /proc/self/coredump_filter
|
|
||||||
}
|
|
|
@ -1,291 +0,0 @@
|
||||||
# Copyright 1999-2019 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
inherit desktop gnome2-utils java-vm-2 prefix versionator
|
|
||||||
|
|
||||||
KEYWORDS="-* amd64 x86"
|
|
||||||
|
|
||||||
if [[ "$(get_version_component_range 4)" == 0 ]] ; then
|
|
||||||
S_PV="$(get_version_component_range 1-3)"
|
|
||||||
else
|
|
||||||
MY_PV_EXT="u$(get_version_component_range 4)"
|
|
||||||
S_PV="$(get_version_component_range 1-4)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
MY_PV="$(get_version_component_range 2)${MY_PV_EXT}"
|
|
||||||
|
|
||||||
declare -A ARCH_FILES
|
|
||||||
ARCH_FILES[amd64]="jdk-${MY_PV}-linux-x64.tar.gz"
|
|
||||||
ARCH_FILES[arm]="jdk-${MY_PV}-linux-arm32-vfp-hflt.tar.gz"
|
|
||||||
ARCH_FILES[arm64]="jdk-${MY_PV}-linux-arm64-vfp-hflt.tar.gz"
|
|
||||||
ARCH_FILES[x86]="jdk-${MY_PV}-linux-i586.tar.gz"
|
|
||||||
ARCH_FILES[x64-macos]="jdk-${MY_PV}-macosx-x64.dmg"
|
|
||||||
ARCH_FILES[sparc64-solaris]="jdk-${MY_PV}-solaris-sparcv9.tar.gz"
|
|
||||||
ARCH_FILES[x64-solaris]="jdk-${MY_PV}-solaris-x64.tar.gz"
|
|
||||||
|
|
||||||
for keyword in ${KEYWORDS//-\*} ; do
|
|
||||||
case "${keyword#\~}" in
|
|
||||||
*-linux) continue ;;
|
|
||||||
x64-macos) demo="jdk-${MY_PV}-macosx-x86_64-demos.zip" ;;
|
|
||||||
*) demo=${ARCH_FILES[${keyword#\~}]/./-demos.} ;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
SRC_URI+="
|
|
||||||
${keyword#\~}? (
|
|
||||||
${ARCH_FILES[${keyword#\~}]}
|
|
||||||
)"
|
|
||||||
done
|
|
||||||
|
|
||||||
DESCRIPTION="Oracle's Java SE Development Kit"
|
|
||||||
HOMEPAGE="http://www.oracle.com/technetwork/java/javase/"
|
|
||||||
LICENSE="Oracle-BCLA-JavaSE"
|
|
||||||
SLOT="1.8"
|
|
||||||
IUSE="alsa commercial cups doc +fontconfig headless-awt javafx jce nsplugin selinux source visualvm"
|
|
||||||
REQUIRED_USE="javafx? ( alsa fontconfig )"
|
|
||||||
RESTRICT="bindist fetch preserve-libs strip"
|
|
||||||
QA_PREBUILT="*"
|
|
||||||
|
|
||||||
# NOTES:
|
|
||||||
#
|
|
||||||
# * cups is dlopened.
|
|
||||||
#
|
|
||||||
# * libpng is also dlopened but only by libsplashscreen, which isn't
|
|
||||||
# important, so we can exclude that.
|
|
||||||
#
|
|
||||||
# * We still need to work out the exact AWT and JavaFX dependencies
|
|
||||||
# under MacOS. It doesn't appear to use many, if any, of the
|
|
||||||
# dependencies below.
|
|
||||||
#
|
|
||||||
RDEPEND="!x64-macos? (
|
|
||||||
!headless-awt? (
|
|
||||||
x11-libs/libX11
|
|
||||||
x11-libs/libXext
|
|
||||||
x11-libs/libXi
|
|
||||||
x11-libs/libXrender
|
|
||||||
x11-libs/libXtst
|
|
||||||
)
|
|
||||||
javafx? (
|
|
||||||
dev-libs/glib:2
|
|
||||||
dev-libs/libxml2:2
|
|
||||||
dev-libs/libxslt
|
|
||||||
media-libs/freetype:2
|
|
||||||
x11-libs/cairo
|
|
||||||
x11-libs/gtk+:2
|
|
||||||
x11-libs/libX11
|
|
||||||
x11-libs/libXtst
|
|
||||||
x11-libs/libXxf86vm
|
|
||||||
x11-libs/pango
|
|
||||||
virtual/opengl
|
|
||||||
)
|
|
||||||
)
|
|
||||||
alsa? ( media-libs/alsa-lib )
|
|
||||||
cups? ( net-print/cups )
|
|
||||||
doc? ( dev-java/java-sdk-docs:${SLOT} )
|
|
||||||
fontconfig? ( media-libs/fontconfig:1.0 )
|
|
||||||
!prefix? ( sys-libs/glibc:* )
|
|
||||||
selinux? ( sec-policy/selinux-java )"
|
|
||||||
|
|
||||||
DEPEND="app-arch/zip"
|
|
||||||
|
|
||||||
S="${WORKDIR}/jdk$(replace_version_separator 3 _ ${S_PV})"
|
|
||||||
|
|
||||||
pkg_nofetch() {
|
|
||||||
local a
|
|
||||||
einfo "Please download these files and move them to your distfiles directory:"
|
|
||||||
einfo
|
|
||||||
for a in ${A} ; do
|
|
||||||
[[ ! -f ${DISTDIR}/${a} ]] && einfo " ${a}"
|
|
||||||
done
|
|
||||||
einfo
|
|
||||||
einfo " http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html"
|
|
||||||
einfo
|
|
||||||
einfo "If the above mentioned URL does not point to the correct version anymore,"
|
|
||||||
einfo "please download the file from Oracle's Java download archive:"
|
|
||||||
einfo
|
|
||||||
einfo " http://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase8-2177648.html"
|
|
||||||
einfo
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
if use x64-macos ; then
|
|
||||||
mkdir -p "${T}"/dmgmount || die
|
|
||||||
hdiutil attach "${DISTDIR}"/jdk-${MY_PV}-macosx-x64.dmg \
|
|
||||||
-mountpoint "${T}"/dmgmount || die
|
|
||||||
local jdkgen=$(get_version_component_range 2)
|
|
||||||
local uver=$(get_version_component_range 4)
|
|
||||||
( cd "${T}" &&
|
|
||||||
xar -xf "${T}/dmgmount/JDK ${jdkgen} Update ${uver}.pkg" \
|
|
||||||
jdk${PV//.}.pkg/Payload ) || die
|
|
||||||
zcat "${T}"/jdk${PV//.}.pkg/Payload | cpio -idv || die
|
|
||||||
hdiutil detach "${T}"/dmgmount || die
|
|
||||||
mv Contents/Home "${S}" || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
default
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
|
|
||||||
if [[ -n ${JAVA_PKG_STRICT} ]] ; then
|
|
||||||
# Mark this binary early to run it now.
|
|
||||||
pax-mark m ./bin/javap
|
|
||||||
|
|
||||||
eqawarn "Ensure that this only calls trackJavaUsage(). If not, see bug #559936."
|
|
||||||
eqawarn
|
|
||||||
eqawarn "$(./bin/javap -J-Duser.home=${T} -c sun.misc.PostVMInitHook || die)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Remove the hook that calls Oracle's evil usage tracker. Not just
|
|
||||||
# because it's evil but because it breaks the sandbox during builds
|
|
||||||
# and we can't find any other feasible way to disable it or make it
|
|
||||||
# write somewhere else. See bug #559936 for details.
|
|
||||||
zip -d jre/lib/rt.jar sun/misc/PostVMInitHook.class || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local dest="/opt/${P}"
|
|
||||||
local ddest="${ED}${dest#/}"
|
|
||||||
|
|
||||||
# Create files used as storage for system preferences.
|
|
||||||
mkdir jre/.systemPrefs || die
|
|
||||||
touch jre/.systemPrefs/.system.lock || die
|
|
||||||
touch jre/.systemPrefs/.systemRootModFile || die
|
|
||||||
|
|
||||||
if ! use alsa ; then
|
|
||||||
rm -vf jre/lib/*/libjsoundalsa.* || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! use commercial ; then
|
|
||||||
rm -vfr lib/missioncontrol jre/lib/jfr* || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use headless-awt ; then
|
|
||||||
rm -vf {,jre/}lib/*/lib*{[jx]awt,splashscreen}* \
|
|
||||||
{,jre/}bin/{javaws,policytool} \
|
|
||||||
bin/appletviewer || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! use javafx ; then
|
|
||||||
rm -vf jre/lib/*/lib*{decora,fx,glass,prism}* \
|
|
||||||
jre/lib/*/libgstreamer-lite.* {,jre/}lib/{,ext/}*fx* \
|
|
||||||
bin/*javafx* bin/javapackager || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! use nsplugin ; then
|
|
||||||
rm -vf jre/lib/*/libnpjp2.* || die
|
|
||||||
else
|
|
||||||
local nsplugin=$(echo jre/lib/*/libnpjp2.*)
|
|
||||||
local nsplugin_link=${nsplugin##*/}
|
|
||||||
nsplugin_link=${nsplugin_link/./-${PN}-${SLOT}.}
|
|
||||||
dosym "${dest}/${nsplugin}" "/usr/$(get_libdir)/nsbrowser/plugins/${nsplugin_link}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Even though plugins linked against multiple ffmpeg versions are
|
|
||||||
# provided, they generally lag behind what Gentoo has available.
|
|
||||||
rm -vf jre/lib/*/libavplugin* || die
|
|
||||||
|
|
||||||
# Prune all fontconfig files so that libfontconfig will be used.
|
|
||||||
rm -v jre/lib/fontconfig.* || die
|
|
||||||
|
|
||||||
# Packaged as dev-util/visualvm but some users prefer this version.
|
|
||||||
use visualvm || find -name "*visualvm*" -exec rm -vfr {} + || die
|
|
||||||
|
|
||||||
# Install desktop file for the Java Control Panel. Using
|
|
||||||
# ${PN}-${SLOT} to prevent file collision with JRE and other slots.
|
|
||||||
if [[ -d jre/lib/desktop/icons ]] ; then
|
|
||||||
local icon
|
|
||||||
pushd jre/lib/desktop/icons >/dev/null || die
|
|
||||||
for icon in */*/apps/sun-jcontrol.png ; do
|
|
||||||
insinto /usr/share/icons/"${icon%/*}"
|
|
||||||
newins "${icon}" sun-jcontrol-${PN}-${SLOT}.png
|
|
||||||
done
|
|
||||||
popd >/dev/null || die
|
|
||||||
make_desktop_entry \
|
|
||||||
"${dest}"/bin/jcontrol \
|
|
||||||
"Java Control Panel for Oracle JDK ${SLOT}" \
|
|
||||||
sun-jcontrol-${PN}-${SLOT} \
|
|
||||||
"Settings;Java;"
|
|
||||||
fi
|
|
||||||
|
|
||||||
dodoc COPYRIGHT
|
|
||||||
dodir "${dest}"
|
|
||||||
cp -pPR bin include jre lib man "${ddest}" || die
|
|
||||||
|
|
||||||
ln -s policy/$(usex jce unlimited limited)/{US_export,local}_policy.jar \
|
|
||||||
"${ddest}"/jre/lib/security/ || die
|
|
||||||
|
|
||||||
if use source ; then
|
|
||||||
cp -v src.zip "${ddest}" || die
|
|
||||||
|
|
||||||
if use javafx ; then
|
|
||||||
cp -v javafx-src.zip "${ddest}" || die
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Only install Gentoo-specific fontconfig if flag is disabled.
|
|
||||||
# https://docs.oracle.com/javase/8/docs/technotes/guides/intl/fontconfig.html
|
|
||||||
if ! use fontconfig ; then
|
|
||||||
insinto "${dest}"/jre/lib/
|
|
||||||
doins "$(prefixify_ro "${FILESDIR}"/fontconfig.properties)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Needs to be done before CDS, bug #215225.
|
|
||||||
java-vm_set-pax-markings "${ddest}"
|
|
||||||
|
|
||||||
# See bug #207282.
|
|
||||||
einfo "Creating the Class Data Sharing archives"
|
|
||||||
case ${ARCH} in
|
|
||||||
arm|ia64)
|
|
||||||
${ddest}/bin/java -client -Xshare:dump || die
|
|
||||||
;;
|
|
||||||
x86)
|
|
||||||
${ddest}/bin/java -client -Xshare:dump || die
|
|
||||||
# limit heap size for large memory on x86 #467518
|
|
||||||
# this is a workaround and shouldn't be needed.
|
|
||||||
${ddest}/bin/java -server -Xms64m -Xmx64m -Xshare:dump || die
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
${ddest}/bin/java -server -Xshare:dump || die
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# Remove empty dirs we might have copied.
|
|
||||||
find "${D}" -type d -empty -exec rmdir -v {} + || die
|
|
||||||
|
|
||||||
if use x64-macos ; then
|
|
||||||
local lib
|
|
||||||
for lib in lib{decora_sse,glass,prism_{common,es2,sw}}.dylib ; do
|
|
||||||
ebegin "Fixing self-reference of ${lib}"
|
|
||||||
install_name_tool \
|
|
||||||
-id "${EPREFIX}${dest}"/jre/lib/${lib} \
|
|
||||||
"${ddest}"/jre/lib/${lib} || die
|
|
||||||
eend $?
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
||||||
java-vm_install-env "${FILESDIR}"/${PN}.env.sh
|
|
||||||
java-vm_revdep-mask
|
|
||||||
java-vm_sandbox-predict /dev/random /proc/self/coredump_filter
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_preinst() {
|
|
||||||
gnome2_icon_savelist
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
gnome2_icon_cache_update
|
|
||||||
java-vm-2_pkg_postinst
|
|
||||||
|
|
||||||
if ! use headless-awt && ! use javafx ; then
|
|
||||||
ewarn "You have disabled the javafx flag. Some modern desktop Java applications"
|
|
||||||
ewarn "require this and they may fail with a confusing error message."
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
gnome2_icon_cache_update
|
|
||||||
java-vm-2_pkg_postrm
|
|
||||||
}
|
|
|
@ -1,8 +0,0 @@
|
||||||
AUX 20php5-envd 145 BLAKE2B 06476b8fc04d1e835496b417ac752f0834ddbe8584e4fddc6db0aa5e6845b82cdea0a1355c77125375dcdd0f0a3c19de5f3a8a64ee93950f96c437a16f971567 SHA512 581aa86479e3cd584ee1bc6dc6d4a135fe8ec343fe5519566d728d81f7018cfb23658bd0c0368951d380982c75adbb4f45acf3c146868aaf4e4ec8e9f2fad1ce
|
|
||||||
AUX php-fpm_at-simple.service 316 BLAKE2B 0ba10f3e3b004fbf14956e1e4f04f59b8a127e6717fe6b92c09b9f931033a11551c75fbbee9010f6b694c5a8758ca0eec9eed457ae304ba0dea8f2c256c3b8d4 SHA512 7367a3f8d3874f8e0c76f331ba613a0250db02f60ad9f87affaf448dcb5bc34bcecb91d88f415764a12b24b46ae3d1b738a002af9f77a4b707e916e83a0021fd
|
|
||||||
AUX php-fpm_at.service 317 BLAKE2B f13fc38fcc0575a8517ee8d07b120efda37eabd2355061d0fdc303604c6b02ad42d7301180d86c977d5e585f5dd685343c592e37a6e0f44933707be79e0b77e0 SHA512 27982f9e2d958bfa75c89c7d3531e48d17fc388b1cdcbc8e09051b236b1184ee2baabdfcc567c19d9fcd067d4b3b86f171015616d8da42fccdabd89432d865e8
|
|
||||||
AUX php-icu-fix.patch 404 BLAKE2B 9ddd108f1817f54eb1c3d20dfe7eda1f3a618f56bb44d89a174fec36c576363bc3e80b9b348fae67dbbd897ba18ce2f97b8b70b46a7b80382f8a68f5be40d84d SHA512 57aa49c580c489497bc54f2824c1f99fd104e7b1b7c524b7a0626ddcd28ed1c1867d1ada171ae381905c872b1ae564c0515e574c05e6d468f263b038b2f4597a
|
|
||||||
DIST php-5.6.40.tar.xz 12472236 BLAKE2B f41147eaec9b15e965540f9e871691cc88848dd619bae6af85e7bba0130b71ce91bad5cdbbadbb537c42df83369f5c731007339a9d9e21e689e913c135201afc SHA512 997b5a952a60cf9166671cc91fcc34c674dd62bfd5cb0a9cdf3fdf2d088b5d19943d94c1cf193f8ab71fc4957d9a9a4c7c2fb8826f937501c1c0a0858f10e329
|
|
||||||
DIST php-patches-7.1.33bp.tar.bz2 39945 BLAKE2B 9f7137f61b7ea07cc263b054401a319042f5a40d6cdaf3561a45778ae009e3279c72f2a6a0f9c97805bc39acef1c8c9d72d290c2ce873f44209fb2d65d620810 SHA512 8e36fb57bdadfcc4e976ecb7dc8f44290dc3b507eb27f4445aa2c8eba528e7cb53286e7fd9b1b9141f12fd6e29278282e4f0eb6445ed06046dd48a1d5d1bc789
|
|
||||||
EBUILD php-5.6.40-r7.ebuild 23020 BLAKE2B 15fbb3ad3fd1460d6985ba5f022fee6dad05fd1df6de2d9bc6c84922d52dee5f933bb1c798aa5bcba9baf73eaeca605cfdf8aa6cd408e264260a31fc62fae3c9 SHA512 a67068f5434a9eefc2e63ca69cd89a0a82d4bc3bd37657110c5b3b7494d228c4dcd3a86b8f36719fa150c0e3b5e252ed91c7234b67167a514d549e0fd1ea0140
|
|
||||||
MISC metadata.xml 3352 BLAKE2B 155c08bb52b049c3f79557d27ab6be9402cd35797cd385d53fc8c239c0eca089f65e106d54beca0642b8d182bfd0e172886b863a692575e9002140af7a62fa08 SHA512 f37c4c7b709bf91da6db41b0468c36cebffc630dabdcf4d43259017be5cf0577bb329ed0e206ff14d68bacc33425fba4789fc13fa34aa61acccce9fda11eee86
|
|
|
@ -1,2 +0,0 @@
|
||||||
MANPATH="/usr/lib/php5/man/"
|
|
||||||
CONFIG_PROTECT_MASK="/etc/php/cli-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/apache2-php5/ext-active/"
|
|
|
@ -1,13 +0,0 @@
|
||||||
[Unit]
|
|
||||||
Description=The PHP FastCGI Process Manager
|
|
||||||
After=network.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=simple
|
|
||||||
PIDFile=/run/php-fpm/php-fpm-%I.pid
|
|
||||||
ExecStart=/usr/libexec/php-fpm-launcher php%I -y /etc/php/fpm-php%I/php-fpm.conf --nodaemonize
|
|
||||||
ExecReload=/bin/kill -USR2 $MAINPID
|
|
||||||
PrivateTmp=true
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
|
@ -1,14 +0,0 @@
|
||||||
[Unit]
|
|
||||||
Description=The PHP FastCGI Process Manager
|
|
||||||
After=network.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=notify
|
|
||||||
PIDFile=/run/php-fpm/php-fpm-%I.pid
|
|
||||||
ExecStart=/usr/libexec/php-fpm-launcher php%I -y /etc/php/fpm-php%I/php-fpm.conf --nodaemonize
|
|
||||||
ExecReload=/bin/kill -USR2 $MAINPID
|
|
||||||
PrivateTmp=true
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
|
|
|
@ -1,12 +0,0 @@
|
||||||
--- php-5.6.40/acinclude.m4 2021-01-31 11:00:18.549678215 +0100
|
|
||||||
+++ php-5.6.40/acinclude.m4 2021-01-31 11:01:50.030900044 +0100
|
|
||||||
@@ -2212,6 +2212,9 @@
|
|
||||||
if test "$PKG_CONFIG icu-io --atleast-version=60"; then
|
|
||||||
ICU_CFLAGS="$ICU_CFLAGS -DU_HIDE_OBSOLETE_UTF_OLD_H=1"
|
|
||||||
fi
|
|
||||||
+
|
|
||||||
+ ICU_CFLAGS="$ICU_CFLAGS -DU_DEFINE_FALSE_AND_TRUE=1"
|
|
||||||
+ ICU_CXXFLAGS="$ICU_CXXFLAGS -DU_DEFINE_FALSE_AND_TRUE=1"
|
|
||||||
])
|
|
||||||
|
|
||||||
dnl
|
|
|
@ -1,70 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
|
||||||
<pkgmetadata>
|
|
||||||
<maintainer type="project">
|
|
||||||
<email>php-bugs@gentoo.org</email>
|
|
||||||
<name>PHP</name>
|
|
||||||
</maintainer>
|
|
||||||
<use>
|
|
||||||
<flag name="argon2">Enable password hashing algorithm from <pkg>app-crypt/argon2</pkg></flag>
|
|
||||||
<flag name="bcmath">Add support for libbcmath</flag>
|
|
||||||
<flag name="cli">Enable CLI SAPI</flag>
|
|
||||||
<flag name="coverage">
|
|
||||||
Include gcov symbols for test coverage and lcov reports. Only
|
|
||||||
useful for extension developers, and requires GCC.
|
|
||||||
</flag>
|
|
||||||
<flag name="ctype">Enable ctype functions</flag>
|
|
||||||
<flag name="embed">Enable embed SAPI </flag>
|
|
||||||
<flag name="enchant">Add supports Enchant spelling library. </flag>
|
|
||||||
<flag name="ffi"> Add foreign function interface (ffi extension) support</flag>
|
|
||||||
<flag name="fileinfo"> Add fileinfo extension support</flag>
|
|
||||||
<flag name="filter">Add filter extension support</flag>
|
|
||||||
<flag name="flatfile">Add dbm support for flat files</flag>
|
|
||||||
<flag name="fpm">Enable the FastCGI Process Manager SAPI</flag>
|
|
||||||
<flag name="gd">Adds support for gd (bundled with PHP)</flag>
|
|
||||||
<flag name="hash">Enable the hash extension</flag>
|
|
||||||
<flag name="inifile">Add dbm support for .ini files</flag>
|
|
||||||
<flag name="json">Enable JSON support</flag>
|
|
||||||
<flag name="ldap-sasl">Add SASL support for the PHP LDAP extension</flag>
|
|
||||||
<flag name="libmysqlclient">
|
|
||||||
Use libmyslclient driver for mysql, mysqli, PDO_Mysql (not recommended)
|
|
||||||
</flag>
|
|
||||||
<flag name="lmdb">Enable support for <pkg>dev-db/lmdb</pkg> db backend</flag>
|
|
||||||
<flag name="intl">
|
|
||||||
Enables the intl extension for extended internalization support
|
|
||||||
</flag>
|
|
||||||
<flag name="opcache">
|
|
||||||
Enables built-in opcode cache, replacing pecl-apc et al.
|
|
||||||
</flag>
|
|
||||||
<flag name="pcntl">Add support for process creation functions</flag>
|
|
||||||
<flag name="pdo">Enable the bundled PDO extensions</flag>
|
|
||||||
<flag name="phar">
|
|
||||||
Enables the phar extension to provide phar archive support
|
|
||||||
</flag>
|
|
||||||
<flag name="phpdbg">
|
|
||||||
Enable the PHP Debug Command Line SAPI (like gdb for php)
|
|
||||||
</flag>
|
|
||||||
<flag name="session-mm">
|
|
||||||
Include <pkg>dev-libs/mm</pkg> support for session storage
|
|
||||||
</flag>
|
|
||||||
<flag name="sharedmem">Add support for shared memory use</flag>
|
|
||||||
<flag name="simplexml">Support for SimpleXML</flag>
|
|
||||||
<flag name="sodium">
|
|
||||||
Enable support for crypto through <pkg>dev-libs/libsodium</pkg>
|
|
||||||
</flag>
|
|
||||||
<flag name="sybase-ct">Add support for Sybase-CT</flag>
|
|
||||||
<flag name="sysvipc">
|
|
||||||
Support for System V-compatible inter-process communication
|
|
||||||
</flag>
|
|
||||||
<flag name="tokenizer">Add support for the PHP file parser</flag>
|
|
||||||
<flag name="tokyocabinet">
|
|
||||||
Enable support for <pkg>dev-db/tokyocabinet</pkg> db backend</flag>
|
|
||||||
<flag name="xmlreader">Enable XMLReader support</flag>
|
|
||||||
<flag name="xmlwriter">Enable XMLWriter support</flag>
|
|
||||||
<flag name="xslt">Enable the XSL extension</flag>
|
|
||||||
<flag name="vpx">Enable webp support for GD in php-5.x</flag>
|
|
||||||
<flag name="wddx">Add support for Web Distributed Data eXchange</flag>
|
|
||||||
<flag name="webp">Enable webp support for GD in php-7.x</flag>
|
|
||||||
<flag name="zip-encryption">Enable ZIP file encryption from <pkg>dev-libs/libzip</pkg></flag>
|
|
||||||
</use>
|
|
||||||
</pkgmetadata>
|
|
|
@ -1,794 +0,0 @@
|
||||||
# Copyright 1999-2019 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI="7"
|
|
||||||
|
|
||||||
inherit autotools flag-o-matic systemd
|
|
||||||
|
|
||||||
PATCH_V="7.1.33bp"
|
|
||||||
|
|
||||||
DESCRIPTION="The PHP language runtime engine"
|
|
||||||
HOMEPAGE="https://secure.php.net/"
|
|
||||||
SRC_URI="https://php.net/distributions/${P}.tar.xz
|
|
||||||
https://gitweb.gentoo.org/proj/php-patches.git/snapshot/php-patches-${PATCH_V}.tar.bz2"
|
|
||||||
|
|
||||||
LICENSE="PHP-3.01
|
|
||||||
BSD
|
|
||||||
Zend-2.0
|
|
||||||
bcmath? ( LGPL-2.1+ )
|
|
||||||
fpm? ( BSD-2 )
|
|
||||||
gd? ( gd )
|
|
||||||
unicode? ( BSD-2 LGPL-2.1 )"
|
|
||||||
|
|
||||||
SLOT="$(ver_cut 1-2)"
|
|
||||||
KEYWORDS="~alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
|
||||||
|
|
||||||
# We can build the following SAPIs in the given order
|
|
||||||
SAPIS="embed cli cgi fpm apache2"
|
|
||||||
|
|
||||||
# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
|
|
||||||
IUSE="${IUSE}
|
|
||||||
${SAPIS/cli/+cli}
|
|
||||||
threads"
|
|
||||||
|
|
||||||
IUSE="${IUSE} acl bcmath berkdb bzip2 calendar cdb cjk
|
|
||||||
coverage crypt +ctype curl debug
|
|
||||||
enchant exif +fileinfo +filter firebird
|
|
||||||
+flatfile ftp gd gdbm gmp +hash +iconv imap inifile
|
|
||||||
intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit libressl
|
|
||||||
mhash mssql mysql libmysqlclient mysqli nls
|
|
||||||
oci8-instant-client odbc +opcache pcntl pdo +phar +posix postgres qdbm
|
|
||||||
readline recode selinux +session sharedmem
|
|
||||||
+simplexml snmp soap sockets spell sqlite ssl
|
|
||||||
sybase-ct sysvipc systemd tidy +tokenizer truetype unicode vpx wddx
|
|
||||||
+xml xmlreader xmlwriter xmlrpc xpm xslt zip zlib"
|
|
||||||
|
|
||||||
# The supported (that is, autodetected) versions of BDB are listed in
|
|
||||||
# the ./configure script. Other versions *work*, but we need to stick to
|
|
||||||
# the ones that can be detected to avoid a repeat of bug #564824.
|
|
||||||
COMMON_DEPEND="
|
|
||||||
>=app-eselect/eselect-php-0.9.1[apache2?,fpm?]
|
|
||||||
>=dev-libs/libpcre-8.32[unicode]
|
|
||||||
fpm? ( acl? ( sys-apps/acl ) )
|
|
||||||
apache2? ( www-servers/apache[apache2_modules_unixd(+),threads=] )
|
|
||||||
berkdb? ( || ( sys-libs/db:5.3
|
|
||||||
sys-libs/db:5.1
|
|
||||||
sys-libs/db:4.8
|
|
||||||
sys-libs/db:4.7
|
|
||||||
sys-libs/db:4.6
|
|
||||||
sys-libs/db:4.5 ) )
|
|
||||||
bzip2? ( app-arch/bzip2:0= )
|
|
||||||
cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
|
|
||||||
cjk? ( !gd? (
|
|
||||||
virtual/jpeg:0
|
|
||||||
media-libs/libpng:0=
|
|
||||||
sys-libs/zlib:0=
|
|
||||||
) )
|
|
||||||
coverage? ( dev-util/lcov )
|
|
||||||
crypt? ( >=dev-libs/libmcrypt-2.4 )
|
|
||||||
curl? ( >=net-misc/curl-7.10.5 )
|
|
||||||
enchant? ( app-text/enchant )
|
|
||||||
exif? ( !gd? (
|
|
||||||
virtual/jpeg:0
|
|
||||||
media-libs/libpng:0=
|
|
||||||
sys-libs/zlib:0=
|
|
||||||
) )
|
|
||||||
firebird? ( dev-db/firebird )
|
|
||||||
gd? ( virtual/jpeg:0 media-libs/libpng:0= sys-libs/zlib:0= )
|
|
||||||
gdbm? ( >=sys-libs/gdbm-1.8.0:0= )
|
|
||||||
gmp? ( dev-libs/gmp:0= )
|
|
||||||
iconv? ( virtual/libiconv )
|
|
||||||
imap? ( >=virtual/imap-c-client-2[kerberos=,ssl=] )
|
|
||||||
intl? ( dev-libs/icu:= )
|
|
||||||
iodbc? ( dev-db/libiodbc )
|
|
||||||
kerberos? ( virtual/krb5 )
|
|
||||||
ldap? ( >=net-nds/openldap-1.2.11 )
|
|
||||||
ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
|
|
||||||
libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
|
|
||||||
mssql? ( dev-db/freetds[mssql] )
|
|
||||||
libmysqlclient? (
|
|
||||||
mysql? ( <dev-db/mysql-connector-c-8.0:0= )
|
|
||||||
mysqli? ( <dev-db/mysql-connector-c-8.0:0= )
|
|
||||||
)
|
|
||||||
nls? ( sys-devel/gettext )
|
|
||||||
oci8-instant-client? ( dev-db/oracle-instantclient-basic )
|
|
||||||
odbc? ( >=dev-db/unixODBC-1.8.13 )
|
|
||||||
postgres? ( dev-db/postgresql:* )
|
|
||||||
qdbm? ( dev-db/qdbm )
|
|
||||||
readline? ( sys-libs/readline:0= )
|
|
||||||
recode? ( app-text/recode )
|
|
||||||
sharedmem? ( dev-libs/mm )
|
|
||||||
simplexml? ( >=dev-libs/libxml2-2.6.8 )
|
|
||||||
snmp? ( >=net-analyzer/net-snmp-5.2 )
|
|
||||||
soap? ( >=dev-libs/libxml2-2.6.8 )
|
|
||||||
spell? ( >=app-text/aspell-0.50 )
|
|
||||||
sqlite? ( >=dev-db/sqlite-3.7.6.3 )
|
|
||||||
ssl? (
|
|
||||||
!libressl? ( dev-libs/openssl:0= )
|
|
||||||
libressl? ( dev-libs/libressl:0= )
|
|
||||||
)
|
|
||||||
sybase-ct? ( dev-db/freetds )
|
|
||||||
tidy? ( app-text/htmltidy )
|
|
||||||
truetype? (
|
|
||||||
=media-libs/freetype-2*
|
|
||||||
>=media-libs/t1lib-5.0.0
|
|
||||||
!gd? (
|
|
||||||
virtual/jpeg:0 media-libs/libpng:0= sys-libs/zlib:0= )
|
|
||||||
)
|
|
||||||
unicode? ( dev-libs/oniguruma:= )
|
|
||||||
vpx? ( media-libs/libvpx:0= )
|
|
||||||
wddx? ( >=dev-libs/libxml2-2.6.8 )
|
|
||||||
xml? ( >=dev-libs/libxml2-2.6.8 )
|
|
||||||
xmlrpc? ( >=dev-libs/libxml2-2.6.8 virtual/libiconv )
|
|
||||||
xmlreader? ( >=dev-libs/libxml2-2.6.8 )
|
|
||||||
xmlwriter? ( >=dev-libs/libxml2-2.6.8 )
|
|
||||||
xpm? (
|
|
||||||
x11-libs/libXpm
|
|
||||||
virtual/jpeg:0
|
|
||||||
media-libs/libpng:0= sys-libs/zlib:0=
|
|
||||||
)
|
|
||||||
xslt? ( dev-libs/libxslt >=dev-libs/libxml2-2.6.8 )
|
|
||||||
zip? ( sys-libs/zlib:0= )
|
|
||||||
zlib? ( sys-libs/zlib:0= )
|
|
||||||
"
|
|
||||||
|
|
||||||
RDEPEND="${COMMON_DEPEND}
|
|
||||||
virtual/mta
|
|
||||||
fpm? (
|
|
||||||
selinux? ( sec-policy/selinux-phpfpm )
|
|
||||||
systemd? ( sys-apps/systemd ) )"
|
|
||||||
|
|
||||||
DEPEND="${COMMON_DEPEND}
|
|
||||||
app-arch/xz-utils
|
|
||||||
>=sys-devel/bison-3.0.1
|
|
||||||
sys-devel/flex
|
|
||||||
>=sys-devel/m4-1.4.3
|
|
||||||
>=sys-devel/libtool-1.5.18"
|
|
||||||
|
|
||||||
# Without USE=readline or libedit, the interactive "php -a" CLI will hang.
|
|
||||||
REQUIRED_USE="
|
|
||||||
|| ( cli cgi fpm apache2 embed )
|
|
||||||
cli? ( ^^ ( readline libedit ) )
|
|
||||||
truetype? ( gd zlib )
|
|
||||||
vpx? ( gd zlib )
|
|
||||||
cjk? ( gd zlib )
|
|
||||||
exif? ( gd zlib )
|
|
||||||
xpm? ( gd zlib )
|
|
||||||
gd? ( zlib )
|
|
||||||
simplexml? ( xml )
|
|
||||||
soap? ( xml )
|
|
||||||
wddx? ( xml )
|
|
||||||
xmlrpc? ( || ( xml iconv ) )
|
|
||||||
xmlreader? ( xml )
|
|
||||||
xslt? ( xml )
|
|
||||||
ldap-sasl? ( ldap )
|
|
||||||
mhash? ( hash )
|
|
||||||
phar? ( hash )
|
|
||||||
recode? ( !imap !mysql !mysqli !libmysqlclient )
|
|
||||||
libmysqlclient? ( || (
|
|
||||||
mysql
|
|
||||||
mysqli
|
|
||||||
pdo
|
|
||||||
) )
|
|
||||||
|
|
||||||
qdbm? ( !gdbm )
|
|
||||||
readline? ( !libedit )
|
|
||||||
sharedmem? ( !threads )
|
|
||||||
"
|
|
||||||
|
|
||||||
PHP_MV="$(ver_cut 1)"
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}"/php-icu-fix.patch
|
|
||||||
)
|
|
||||||
|
|
||||||
php_install_ini() {
|
|
||||||
local phpsapi="${1}"
|
|
||||||
|
|
||||||
# work out where we are installing the ini file
|
|
||||||
php_set_ini_dir "${phpsapi}"
|
|
||||||
|
|
||||||
# Always install the production INI file, bug 611214.
|
|
||||||
local phpinisrc="php.ini-production-${phpsapi}"
|
|
||||||
cp php.ini-production "${phpinisrc}" || die
|
|
||||||
|
|
||||||
# default to /tmp for save_path, bug #282768
|
|
||||||
sed -e 's|^;session.save_path .*$|session.save_path = "'"${EPREFIX}"'/tmp"|g' -i "${phpinisrc}" || die
|
|
||||||
|
|
||||||
# Set the extension dir
|
|
||||||
sed -e "s|^extension_dir .*$|extension_dir = ${extension_dir}|g" \
|
|
||||||
-i "${phpinisrc}" || die
|
|
||||||
|
|
||||||
# Set the include path to point to where we want to find PEAR packages
|
|
||||||
sed -e 's|^;include_path = ".:/php/includes".*|include_path = ".:'"${EPREFIX}"'/usr/share/php'${PHP_MV}':'"${EPREFIX}"'/usr/share/php"|' -i "${phpinisrc}" || die
|
|
||||||
|
|
||||||
dodir "${PHP_INI_DIR#${EPREFIX}}"
|
|
||||||
insinto "${PHP_INI_DIR#${EPREFIX}}"
|
|
||||||
newins "${phpinisrc}" php.ini
|
|
||||||
|
|
||||||
elog "Installing php.ini for ${phpsapi} into ${PHP_INI_DIR#${EPREFIX}}"
|
|
||||||
elog
|
|
||||||
|
|
||||||
dodir "${PHP_EXT_INI_DIR#${EPREFIX}}"
|
|
||||||
dodir "${PHP_EXT_INI_DIR_ACTIVE#${EPREFIX}}"
|
|
||||||
|
|
||||||
if use opcache; then
|
|
||||||
elog "Adding opcache to $PHP_EXT_INI_DIR"
|
|
||||||
echo "zend_extension=${PHP_DESTDIR}/$(get_libdir)/opcache.so" >> \
|
|
||||||
"${D}/${PHP_EXT_INI_DIR}"/opcache.ini
|
|
||||||
dosym "${PHP_EXT_INI_DIR#${EPREFIX}}/opcache.ini" \
|
|
||||||
"${PHP_EXT_INI_DIR_ACTIVE#${EPREFIX}}/opcache.ini"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# SAPI-specific handling
|
|
||||||
if [[ "${sapi}" == "fpm" ]] ; then
|
|
||||||
einfo "Installing FPM config file php-fpm.conf"
|
|
||||||
insinto "${PHP_INI_DIR#${EPREFIX}}"
|
|
||||||
doins sapi/fpm/php-fpm.conf
|
|
||||||
fi
|
|
||||||
|
|
||||||
dodoc php.ini-{development,production}
|
|
||||||
}
|
|
||||||
|
|
||||||
php_set_ini_dir() {
|
|
||||||
PHP_INI_DIR="${EPREFIX}/etc/php/${1}-php${SLOT}"
|
|
||||||
PHP_EXT_INI_DIR="${PHP_INI_DIR}/ext"
|
|
||||||
PHP_EXT_INI_DIR_ACTIVE="${PHP_INI_DIR}/ext-active"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
local patchdir="${WORKDIR}/php-patches-${PATCH_V}"
|
|
||||||
|
|
||||||
eapply "${patchdir}/"
|
|
||||||
|
|
||||||
eapply "${PATCHES[@]}"
|
|
||||||
|
|
||||||
# Copy test binaries from patches
|
|
||||||
local ext_src
|
|
||||||
for ext_src in exif iconv ; do
|
|
||||||
cp "${patchdir}/${ext_src}/"* "ext/${ext_src}/tests/" || die
|
|
||||||
done
|
|
||||||
|
|
||||||
# Change PHP branding
|
|
||||||
# Get the alpha/beta/rc version
|
|
||||||
sed -re "s|^(PHP_EXTRA_VERSION=\").*(\")|\1-pl${PR/r/}-gentoo\2|g" \
|
|
||||||
-i configure.in || die "Unable to change PHP branding"
|
|
||||||
|
|
||||||
# Patch PHP to show Gentoo as the server platform
|
|
||||||
sed -e 's/PHP_UNAME=`uname -a | xargs`/PHP_UNAME=`uname -s -n -r -v | xargs`/g' \
|
|
||||||
-i configure.in || die "Failed to fix server platform name"
|
|
||||||
|
|
||||||
# Prevent PHP from activating the Apache config,
|
|
||||||
# as we will do that ourselves
|
|
||||||
sed -i \
|
|
||||||
-e "s,-i -a -n php${PHP_MV},-i -n php${PHP_MV},g" \
|
|
||||||
-e "s,-i -A -n php${PHP_MV},-i -n php${PHP_MV},g" \
|
|
||||||
configure sapi/apache2filter/config.m4 sapi/apache2handler/config.m4 \
|
|
||||||
|| die
|
|
||||||
|
|
||||||
# Patch PHP to support heimdal instead of mit-krb5
|
|
||||||
if has_version "app-crypt/heimdal" ; then
|
|
||||||
sed -e 's|gssapi_krb5|gssapi|g' -i acinclude.m4 \
|
|
||||||
|| die "Failed to fix heimdal libname"
|
|
||||||
sed -e 's|PHP_ADD_LIBRARY(k5crypto, 1, $1)||g' -i acinclude.m4 \
|
|
||||||
|| die "Failed to fix heimdal crypt library reference"
|
|
||||||
fi
|
|
||||||
|
|
||||||
eapply_user
|
|
||||||
|
|
||||||
# Force rebuilding aclocal.m4
|
|
||||||
rm -f aclocal.m4 || die "failed to remove aclocal.m4 in src_prepare"
|
|
||||||
|
|
||||||
mv configure.in configure.ac || die
|
|
||||||
|
|
||||||
eautoreconf
|
|
||||||
|
|
||||||
if [[ ${CHOST} == *-darwin* ]] ; then
|
|
||||||
# http://bugs.php.net/bug.php?id=48795, bug #343481
|
|
||||||
sed -i -e '/BUILD_CGI="\\$(CC)/s/CC/CXX/' configure || die
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
addpredict /usr/share/snmp/mibs/.index #nowarn
|
|
||||||
addpredict /var/lib/net-snmp/mib_indexes #nowarn
|
|
||||||
|
|
||||||
PHP_DESTDIR="${EPREFIX}/usr/$(get_libdir)/php${SLOT}"
|
|
||||||
|
|
||||||
# The php-fpm config file wants localstatedir to be ${EPREFIX}/var
|
|
||||||
# and not the Gentoo default ${EPREFIX}/var/lib. See bug 572002.
|
|
||||||
local our_conf=(
|
|
||||||
--prefix="${PHP_DESTDIR}"
|
|
||||||
--mandir="${PHP_DESTDIR}/man"
|
|
||||||
--infodir="${PHP_DESTDIR}/info"
|
|
||||||
--libdir="${PHP_DESTDIR}/lib"
|
|
||||||
--with-libdir="$(get_libdir)"
|
|
||||||
--localstatedir="${EPREFIX}/var"
|
|
||||||
--without-pear
|
|
||||||
$(use_enable threads maintainer-zts)
|
|
||||||
)
|
|
||||||
|
|
||||||
our_conf+=(
|
|
||||||
$(use_enable bcmath bcmath)
|
|
||||||
$(use_with bzip2 bz2 "${EPREFIX}/usr")
|
|
||||||
$(use_enable calendar calendar)
|
|
||||||
$(use_enable coverage gcov)
|
|
||||||
$(use_enable ctype ctype)
|
|
||||||
$(use_with curl curl "${EPREFIX}/usr")
|
|
||||||
$(use_enable xml dom)
|
|
||||||
$(use_with enchant enchant "${EPREFIX}/usr")
|
|
||||||
$(use_enable exif exif)
|
|
||||||
$(use_enable fileinfo fileinfo)
|
|
||||||
$(use_enable filter filter)
|
|
||||||
$(use_enable ftp ftp)
|
|
||||||
$(use_with nls gettext "${EPREFIX}/usr")
|
|
||||||
$(use_with gmp gmp "${EPREFIX}/usr")
|
|
||||||
$(use_enable hash hash)
|
|
||||||
$(use_with mhash mhash "${EPREFIX}/usr")
|
|
||||||
$(use_with iconv iconv \
|
|
||||||
$(use elibc_glibc || use elibc_musl || use elibc_FreeBSD || echo "${EPREFIX}/usr"))
|
|
||||||
$(use_enable intl intl)
|
|
||||||
$(use_enable ipv6 ipv6)
|
|
||||||
$(use_enable json json)
|
|
||||||
$(use_with kerberos kerberos "${EPREFIX}/usr")
|
|
||||||
$(use_enable xml libxml)
|
|
||||||
$(use_with xml libxml-dir "${EPREFIX}/usr")
|
|
||||||
$(use_enable unicode mbstring)
|
|
||||||
$(use_with crypt mcrypt "${EPREFIX}/usr")
|
|
||||||
$(use_with mssql mssql "${EPREFIX}/usr")
|
|
||||||
$(use_with unicode onig "${EPREFIX}/usr")
|
|
||||||
$(use_with ssl openssl "${EPREFIX}/usr")
|
|
||||||
$(use_with ssl openssl-dir "${EPREFIX}/usr")
|
|
||||||
$(use_enable pcntl pcntl)
|
|
||||||
$(use_enable phar phar)
|
|
||||||
$(use_enable pdo pdo)
|
|
||||||
$(use_enable opcache opcache)
|
|
||||||
$(use_with postgres pgsql "${EPREFIX}/usr")
|
|
||||||
$(use_enable posix posix)
|
|
||||||
$(use_with spell pspell "${EPREFIX}/usr")
|
|
||||||
$(use_with recode recode "${EPREFIX}/usr")
|
|
||||||
$(use_enable simplexml simplexml)
|
|
||||||
$(use_enable sharedmem shmop)
|
|
||||||
$(use_with snmp snmp "${EPREFIX}/usr")
|
|
||||||
$(use_enable soap soap)
|
|
||||||
$(use_enable sockets sockets)
|
|
||||||
$(use_with sqlite sqlite3 "${EPREFIX}/usr")
|
|
||||||
$(use_with sybase-ct sybase-ct "${EPREFIX}/usr")
|
|
||||||
$(use_enable sysvipc sysvmsg)
|
|
||||||
$(use_enable sysvipc sysvsem)
|
|
||||||
$(use_enable sysvipc sysvshm)
|
|
||||||
$(use_with tidy tidy "${EPREFIX}/usr")
|
|
||||||
$(use_enable tokenizer tokenizer)
|
|
||||||
$(use_enable wddx wddx)
|
|
||||||
$(use_enable xml xml)
|
|
||||||
$(use_enable xmlreader xmlreader)
|
|
||||||
$(use_enable xmlwriter xmlwriter)
|
|
||||||
$(use_with xmlrpc xmlrpc)
|
|
||||||
$(use_with xslt xsl "${EPREFIX}/usr")
|
|
||||||
$(use_enable zip zip)
|
|
||||||
$(use_with zlib zlib "${EPREFIX}/usr")
|
|
||||||
$(use_enable debug debug)
|
|
||||||
)
|
|
||||||
|
|
||||||
# DBA support
|
|
||||||
if use cdb || use berkdb || use flatfile || use gdbm || use inifile \
|
|
||||||
|| use qdbm ; then
|
|
||||||
our_conf+=( "--enable-dba${shared}" )
|
|
||||||
fi
|
|
||||||
|
|
||||||
# DBA drivers support
|
|
||||||
our_conf+=(
|
|
||||||
$(use_with cdb cdb)
|
|
||||||
$(use_with berkdb db4 "${EPREFIX}/usr")
|
|
||||||
$(use_enable flatfile flatfile)
|
|
||||||
$(use_with gdbm gdbm "${EPREFIX}/usr")
|
|
||||||
$(use_enable inifile inifile)
|
|
||||||
$(use_with qdbm qdbm "${EPREFIX}/usr")
|
|
||||||
)
|
|
||||||
|
|
||||||
# Support for the GD graphics library
|
|
||||||
our_conf+=(
|
|
||||||
$(use_with truetype freetype-dir "${EPREFIX}/usr")
|
|
||||||
$(use_with truetype t1lib "${EPREFIX}/usr")
|
|
||||||
$(use_enable cjk gd-jis-conv)
|
|
||||||
$(use_with gd jpeg-dir "${EPREFIX}/usr")
|
|
||||||
$(use_with gd png-dir "${EPREFIX}/usr")
|
|
||||||
$(use_with xpm xpm-dir "${EPREFIX}/usr")
|
|
||||||
$(use_with vpx vpx-dir "${EPREFIX}/usr")
|
|
||||||
)
|
|
||||||
# enable gd last, so configure can pick up the previous settings
|
|
||||||
our_conf+=( $(use_with gd gd) )
|
|
||||||
|
|
||||||
# IMAP support
|
|
||||||
if use imap ; then
|
|
||||||
our_conf+=(
|
|
||||||
$(use_with imap imap "${EPREFIX}/usr")
|
|
||||||
$(use_with ssl imap-ssl "${EPREFIX}/usr")
|
|
||||||
)
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Interbase/firebird support
|
|
||||||
our_conf+=( $(use_with firebird interbase "${EPREFIX}/usr") )
|
|
||||||
|
|
||||||
# LDAP support
|
|
||||||
if use ldap ; then
|
|
||||||
our_conf+=(
|
|
||||||
$(use_with ldap ldap "${EPREFIX}/usr")
|
|
||||||
$(use_with ldap-sasl ldap-sasl "${EPREFIX}/usr")
|
|
||||||
)
|
|
||||||
fi
|
|
||||||
|
|
||||||
# MySQL support
|
|
||||||
local mysqllib="mysqlnd"
|
|
||||||
local mysqlilib="mysqlnd"
|
|
||||||
use libmysqlclient && mysqllib="${EPREFIX}/usr"
|
|
||||||
use libmysqlclient && mysqlilib="${EPREFIX}/usr/bin/mysql_config"
|
|
||||||
|
|
||||||
our_conf+=( $(use_with mysql mysql "${mysqllib}") )
|
|
||||||
our_conf+=( $(use_with mysqli mysqli "${mysqlilib}") )
|
|
||||||
|
|
||||||
local mysqlsock="${EPREFIX}/var/run/mysqld/mysqld.sock"
|
|
||||||
if use mysql || use mysqli ; then
|
|
||||||
our_conf+=( $(use_with mysql mysql-sock "${mysqlsock}") )
|
|
||||||
fi
|
|
||||||
|
|
||||||
# ODBC support
|
|
||||||
our_conf+=(
|
|
||||||
$(use_with odbc unixODBC "${EPREFIX}/usr")
|
|
||||||
$(use_with iodbc iodbc "${EPREFIX}/usr")
|
|
||||||
)
|
|
||||||
|
|
||||||
# Oracle support
|
|
||||||
our_conf+=( $(use_with oci8-instant-client oci8) )
|
|
||||||
|
|
||||||
# PDO support
|
|
||||||
if use pdo ; then
|
|
||||||
our_conf+=(
|
|
||||||
$(use_with mssql pdo-dblib)
|
|
||||||
$(use_with mysql pdo-mysql "${mysqllib}")
|
|
||||||
$(use_with postgres pdo-pgsql)
|
|
||||||
$(use_with sqlite pdo-sqlite "${EPREFIX}/usr")
|
|
||||||
$(use_with firebird pdo-firebird "${EPREFIX}/usr")
|
|
||||||
$(use_with odbc pdo-odbc "unixODBC,${EPREFIX}/usr")
|
|
||||||
$(use_with oci8-instant-client pdo-oci)
|
|
||||||
)
|
|
||||||
fi
|
|
||||||
|
|
||||||
# readline/libedit support
|
|
||||||
our_conf+=(
|
|
||||||
$(use_with readline readline "${EPREFIX}/usr")
|
|
||||||
$(use_with libedit libedit "${EPREFIX}/usr")
|
|
||||||
)
|
|
||||||
|
|
||||||
# Session support
|
|
||||||
if use session ; then
|
|
||||||
our_conf+=( $(use_with sharedmem mm "${EPREFIX}/usr") )
|
|
||||||
else
|
|
||||||
our_conf+=( $(use_enable session session) )
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Use pic for shared modules such as apache2's mod_php
|
|
||||||
our_conf+=( --with-pic )
|
|
||||||
|
|
||||||
# we use the system copy of pcre
|
|
||||||
# --with-pcre-regex affects ext/pcre
|
|
||||||
# --with-pcre-dir affects ext/filter and ext/zip
|
|
||||||
our_conf+=(
|
|
||||||
--with-pcre-regex="${EPREFIX}/usr"
|
|
||||||
--with-pcre-dir="${EPREFIX}/usr"
|
|
||||||
)
|
|
||||||
|
|
||||||
# Catch CFLAGS problems
|
|
||||||
# Fixes bug #14067.
|
|
||||||
# Changed order to run it in reverse for bug #32022 and #12021.
|
|
||||||
replace-cpu-flags "k6*" "i586"
|
|
||||||
|
|
||||||
# Cache the ./configure test results between SAPIs.
|
|
||||||
our_conf+=( --cache-file="${T}/config.cache" )
|
|
||||||
|
|
||||||
# Support user-passed configuration parameters
|
|
||||||
our_conf+=( ${EXTRA_ECONF:-} )
|
|
||||||
|
|
||||||
# Support the Apache2 extras, they must be set globally for all
|
|
||||||
# SAPIs to work correctly, especially for external PHP extensions
|
|
||||||
|
|
||||||
mkdir -p "${WORKDIR}/sapis-build" || die
|
|
||||||
for one_sapi in $SAPIS ; do
|
|
||||||
use "${one_sapi}" || continue
|
|
||||||
php_set_ini_dir "${one_sapi}"
|
|
||||||
|
|
||||||
# The BUILD_DIR variable is used to determine where to output
|
|
||||||
# the files that autotools creates. This was all originally
|
|
||||||
# based on the autotools-utils eclass.
|
|
||||||
BUILD_DIR="${WORKDIR}/sapis-build/${one_sapi}"
|
|
||||||
cp -a "${S}" "${BUILD_DIR}" || die
|
|
||||||
cd "${BUILD_DIR}" || die
|
|
||||||
|
|
||||||
local sapi_conf=(
|
|
||||||
--with-config-file-path="${PHP_INI_DIR}"
|
|
||||||
--with-config-file-scan-dir="${PHP_EXT_INI_DIR_ACTIVE}"
|
|
||||||
)
|
|
||||||
|
|
||||||
for sapi in $SAPIS ; do
|
|
||||||
case "$sapi" in
|
|
||||||
cli|cgi|embed|fpm)
|
|
||||||
if [[ "${one_sapi}" == "${sapi}" ]] ; then
|
|
||||||
sapi_conf+=( "--enable-${sapi}" )
|
|
||||||
if [[ "fpm" == "${sapi}" ]] ; then
|
|
||||||
sapi_conf+=(
|
|
||||||
$(use_with acl fpm-acl)
|
|
||||||
$(use_with systemd fpm-systemd)
|
|
||||||
)
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
sapi_conf+=( "--disable-${sapi}" )
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
|
|
||||||
apache2)
|
|
||||||
if [[ "${one_sapi}" == "${sapi}" ]] ; then
|
|
||||||
sapi_conf+=( --with-apxs2="${EPREFIX}/usr/bin/apxs" )
|
|
||||||
else
|
|
||||||
sapi_conf+=( --without-apxs2 )
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
# Construct the $myeconfargs array by concatenating $our_conf
|
|
||||||
# (the common args) and $sapi_conf (the SAPI-specific args).
|
|
||||||
local myeconfargs=( "${our_conf[@]}" )
|
|
||||||
myeconfargs+=( "${sapi_conf[@]}" )
|
|
||||||
|
|
||||||
pushd "${BUILD_DIR}" > /dev/null || die
|
|
||||||
econf "${myeconfargs[@]}"
|
|
||||||
popd > /dev/null || die
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
# snmp seems to run during src_compile, too (bug #324739)
|
|
||||||
addpredict /usr/share/snmp/mibs/.index #nowarn
|
|
||||||
addpredict /var/lib/net-snmp/mib_indexes #nowarn
|
|
||||||
|
|
||||||
for sapi in ${SAPIS} ; do
|
|
||||||
if use "${sapi}"; then
|
|
||||||
cd "${WORKDIR}/sapis-build/$sapi" || \
|
|
||||||
die "Failed to change dir to ${WORKDIR}/sapis-build/$1"
|
|
||||||
emake
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
# see bug #324739 for what happens when we don't have that
|
|
||||||
addpredict /usr/share/snmp/mibs/.index #nowarn
|
|
||||||
|
|
||||||
# grab the first SAPI that got built and install common files from there
|
|
||||||
local first_sapi=""
|
|
||||||
for sapi in $SAPIS ; do
|
|
||||||
if use $sapi ; then
|
|
||||||
first_sapi=$sapi
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
# Makefile forgets to create this before trying to write to it...
|
|
||||||
dodir "${PHP_DESTDIR#${EPREFIX}}/bin"
|
|
||||||
|
|
||||||
# Install php environment (without any sapis)
|
|
||||||
cd "${WORKDIR}/sapis-build/$first_sapi" || die
|
|
||||||
emake INSTALL_ROOT="${D}" \
|
|
||||||
install-build install-headers install-programs
|
|
||||||
|
|
||||||
local extension_dir="$("${ED}/${PHP_DESTDIR#${EPREFIX}}/bin/php-config" --extension-dir)"
|
|
||||||
|
|
||||||
# Create the directory where we'll put version-specific php scripts
|
|
||||||
keepdir "/usr/share/php${PHP_MV}"
|
|
||||||
|
|
||||||
local sapi="", file=""
|
|
||||||
local sapi_list=""
|
|
||||||
|
|
||||||
for sapi in ${SAPIS}; do
|
|
||||||
if use "${sapi}" ; then
|
|
||||||
einfo "Installing SAPI: ${sapi}"
|
|
||||||
cd "${WORKDIR}/sapis-build/${sapi}" || die
|
|
||||||
|
|
||||||
if [[ "${sapi}" == "apache2" ]] ; then
|
|
||||||
# We're specifically not using emake install-sapi as libtool
|
|
||||||
# may cause unnecessary relink failures (see bug #351266)
|
|
||||||
insinto "${PHP_DESTDIR#${EPREFIX}}/apache2/"
|
|
||||||
newins ".libs/libphp5$(get_libname)" \
|
|
||||||
"libphp${PHP_MV}$(get_libname)"
|
|
||||||
keepdir "/usr/$(get_libdir)/apache2/modules"
|
|
||||||
else
|
|
||||||
# needed each time, php_install_ini would reset it
|
|
||||||
local dest="${PHP_DESTDIR#${EPREFIX}}"
|
|
||||||
into "${dest}"
|
|
||||||
case "$sapi" in
|
|
||||||
cli)
|
|
||||||
source="sapi/cli/php"
|
|
||||||
;;
|
|
||||||
cgi)
|
|
||||||
source="sapi/cgi/php-cgi"
|
|
||||||
;;
|
|
||||||
fpm)
|
|
||||||
source="sapi/fpm/php-fpm"
|
|
||||||
;;
|
|
||||||
embed)
|
|
||||||
source="libs/libphp${PHP_MV}$(get_libname)"
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
die "unhandled sapi in src_install"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
if [[ "${source}" == *"$(get_libname)" ]]; then
|
|
||||||
dolib.so "${source}"
|
|
||||||
else
|
|
||||||
dobin "${source}"
|
|
||||||
local name="$(basename ${source})"
|
|
||||||
dosym "${dest}/bin/${name}" "/usr/bin/${name}${SLOT}"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
php_install_ini "${sapi}"
|
|
||||||
|
|
||||||
# construct correct SAPI string for php-config
|
|
||||||
# thanks to ferringb for the bash voodoo
|
|
||||||
if [[ "${sapi}" == "apache2" ]]; then
|
|
||||||
sapi_list="${sapi_list:+${sapi_list} }apache2handler"
|
|
||||||
else
|
|
||||||
sapi_list="${sapi_list:+${sapi_list} }${sapi}"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
# Installing opcache module
|
|
||||||
if use opcache ; then
|
|
||||||
into "${PHP_DESTDIR#${EPREFIX}}"
|
|
||||||
dolib.so "modules/opcache$(get_libname)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Install env.d files
|
|
||||||
newenvd "${FILESDIR}/20php5-envd" "20php${SLOT}"
|
|
||||||
sed -e "s|/lib/|/$(get_libdir)/|g" -i "${ED}/etc/env.d/20php${SLOT}" || die
|
|
||||||
sed -e "s|php5|php${SLOT}|g" -i "${ED}/etc/env.d/20php${SLOT}" || die
|
|
||||||
|
|
||||||
# set php-config variable correctly (bug #278439)
|
|
||||||
sed -e "s:^\(php_sapis=\)\".*\"$:\1\"${sapi_list}\":" -i \
|
|
||||||
"${ED}/usr/$(get_libdir)/php${SLOT}/bin/php-config" || die
|
|
||||||
|
|
||||||
if use fpm ; then
|
|
||||||
if use systemd; then
|
|
||||||
systemd_newunit "${FILESDIR}/php-fpm_at.service" \
|
|
||||||
"php-fpm@${SLOT}.service"
|
|
||||||
else
|
|
||||||
systemd_newunit "${FILESDIR}/php-fpm_at-simple.service" \
|
|
||||||
"php-fpm@${SLOT}.service"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
echo ">>> Test phase [test]: ${CATEGORY}/${PF}"
|
|
||||||
PHP_BIN="${WORKDIR}/sapis-build/cli/sapi/cli/php"
|
|
||||||
if [[ ! -x "${PHP_BIN}" ]] ; then
|
|
||||||
ewarn "Test phase requires USE=cli, skipping"
|
|
||||||
return
|
|
||||||
else
|
|
||||||
export TEST_PHP_EXECUTABLE="${PHP_BIN}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -x "${WORKDIR}/sapis/cgi/php-cgi" ]] ; then
|
|
||||||
export TEST_PHP_CGI_EXECUTABLE="${WORKDIR}/sapis/cgi/php-cgi"
|
|
||||||
fi
|
|
||||||
|
|
||||||
REPORT_EXIT_STATUS=1 "${TEST_PHP_EXECUTABLE}" -n -d \
|
|
||||||
"session.save_path=${T}" \
|
|
||||||
"${WORKDIR}/sapis-build/cli/run-tests.php" -n -q -d \
|
|
||||||
"session.save_path=${T}"
|
|
||||||
|
|
||||||
for name in ${EXPECTED_TEST_FAILURES}; do
|
|
||||||
mv "${name}.out" "${name}.out.orig" 2>/dev/null || die
|
|
||||||
done
|
|
||||||
|
|
||||||
local failed="$(find -name '*.out')"
|
|
||||||
if [[ ${failed} != "" ]] ; then
|
|
||||||
ewarn "The following test cases failed unexpectedly:"
|
|
||||||
for name in ${failed}; do
|
|
||||||
ewarn " ${name/.out/}"
|
|
||||||
done
|
|
||||||
else
|
|
||||||
einfo "No unexpected test failures, all fine"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ ${PHP_SHOW_UNEXPECTED_TEST_PASS} == "1" ]] ; then
|
|
||||||
local passed=""
|
|
||||||
for name in ${EXPECTED_TEST_FAILURES}; do
|
|
||||||
[[ -f "${name}.diff" ]] && continue
|
|
||||||
passed="${passed} ${name}"
|
|
||||||
done
|
|
||||||
if [[ ${passed} != "" ]] ; then
|
|
||||||
einfo "The following test cases passed unexpectedly:"
|
|
||||||
for name in ${passed}; do
|
|
||||||
ewarn " ${passed}"
|
|
||||||
done
|
|
||||||
else
|
|
||||||
einfo "None of the known-to-fail tests passed, all fine"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
# Output some general info to the user
|
|
||||||
if use apache2 ; then
|
|
||||||
elog
|
|
||||||
elog "To enable PHP in apache, you will need to add \"-D PHP\" to"
|
|
||||||
elog "your apache2 command. OpenRC users can append that string to"
|
|
||||||
elog "APACHE2_OPTS in /etc/conf.d/apache2."
|
|
||||||
elog
|
|
||||||
elog "The apache module configuration file 70_mod_php.conf is"
|
|
||||||
elog "provided (and maintained) by eselect-php."
|
|
||||||
elog
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Create the symlinks for php
|
|
||||||
for m in ${SAPIS}; do
|
|
||||||
[[ ${m} == 'embed' ]] && continue;
|
|
||||||
if use $m ; then
|
|
||||||
local ci=$(eselect php show $m)
|
|
||||||
if [[ -z $ci ]]; then
|
|
||||||
eselect php set $m php${SLOT} || die
|
|
||||||
einfo "Switched ${m} to use php:${SLOT}"
|
|
||||||
einfo
|
|
||||||
elif [[ $ci != "php${SLOT}" ]] ; then
|
|
||||||
elog "To switch $m to use php:${SLOT}, run"
|
|
||||||
elog " eselect php set $m php${SLOT}"
|
|
||||||
elog
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
# Remove dead symlinks for SAPIs that were just disabled. For
|
|
||||||
# example, if the user has the cgi SAPI enabled, then he has an
|
|
||||||
# eselect-php symlink for it. If he later reinstalls PHP with
|
|
||||||
# USE="-cgi", that symlink will break. This call to eselect is
|
|
||||||
# supposed to remove that dead link per bug 572436.
|
|
||||||
eselect php cleanup || die
|
|
||||||
|
|
||||||
if ! has "php${SLOT/./-}" ${PHP_TARGETS}; then
|
|
||||||
elog "To build extensions for this version of PHP, you will need to"
|
|
||||||
elog "add php${SLOT/./-} to your PHP_TARGETS USE_EXPAND variable."
|
|
||||||
elog
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Warn about the removal of PHP_INI_VERSION if the user has it set.
|
|
||||||
if [[ -n "${PHP_INI_VERSION}" ]]; then
|
|
||||||
ewarn 'The PHP_INI_VERSION variable has been phased out. You may'
|
|
||||||
ewarn 'remove it from your configuration at your convenience. See'
|
|
||||||
ewarn
|
|
||||||
ewarn ' https://bugs.gentoo.org/611214'
|
|
||||||
ewarn
|
|
||||||
ewarn 'for more information.'
|
|
||||||
fi
|
|
||||||
|
|
||||||
elog "For details on how version slotting works, please see"
|
|
||||||
elog "the wiki:"
|
|
||||||
elog
|
|
||||||
elog " https://wiki.gentoo.org/wiki/PHP"
|
|
||||||
elog
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
# This serves two purposes. First, if we have just removed the last
|
|
||||||
# installed version of PHP, then this will remove any dead symlinks
|
|
||||||
# belonging to eselect-php. Second, if a user upgrades slots from
|
|
||||||
# (say) 5.6 to 7.0 and depcleans the old slot, then this will update
|
|
||||||
# his existing symlinks to point to the new 7.0 installation. The
|
|
||||||
# latter is bug 432962.
|
|
||||||
#
|
|
||||||
# Note: the eselect-php package may not be installed at this point,
|
|
||||||
# so we can't die() if this command fails.
|
|
||||||
eselect php cleanup
|
|
||||||
}
|
|
|
@ -1,3 +0,0 @@
|
||||||
DIST apcu-4.0.11.tgz 119535 BLAKE2B 2c1f8a0463b2802b11ae679987807127556b04fb099e4872bff9d1ea51c633140d978b66373eb987d5207403ed9389e58f1afa7ca94360680d9a9693230fb87a SHA512 e3b97066240e33850419e96f0fd9df0e66ee3b0fa238c418e07ac639d07439e9edfa1696e56a620e33f1ffc0993c57bde585b0c170b22995e7d5c0ae550b7899
|
|
||||||
EBUILD pecl-apcu-4.0.11.ebuild 1537 BLAKE2B 36711117b55ff29299313a30dc336805330e38d263f2b1028639c7303293e424147e3bbdbb9be41c8f694ec720901d93367fb5743ee27ecd894835976b0ce8f7 SHA512 82cd877571c42a85a2e5bc31c68bc5ff3521ed77d968984942ecb95ff103e18d3796f32a222a1285e6630f020e4da732ef874a16f49e06d4da75909719e694c3
|
|
||||||
MISC metadata.xml 540 BLAKE2B a29196911604b13d643db1b09cdae2c578c52f3b3ce92f9d6ae534c6fe9872435a46b15dca79ce8ccf5ca02070f2e694f518c69524ea9380eff8e597d8d4124d SHA512 acd09a9a8e52ddc7e4cde2f048db7f7721fcbe3e24b7b628bf1c14b17381a75b463dede6faa0acfecf8e270693001c30b83758f8ad761979fcbdccb454098e56
|
|
|
@ -1,14 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
|
||||||
<pkgmetadata>
|
|
||||||
<maintainer type="project">
|
|
||||||
<email>php-bugs@gentoo.org</email>
|
|
||||||
<name>PHP</name>
|
|
||||||
</maintainer>
|
|
||||||
<use>
|
|
||||||
<flag name="lock-semaphore">Enable semaphore locks instead of fcntl</flag>
|
|
||||||
<flag name="lock-pthreadmutex">Enable pthread mutex locking</flag>
|
|
||||||
<flag name="lock-pthreadrw">Enable pthread read/write locking</flag>
|
|
||||||
<flag name="lock-spinlock">Enable spin locks (EXPERIMENTAL)</flag>
|
|
||||||
</use>
|
|
||||||
</pkgmetadata>
|
|
|
@ -1,77 +0,0 @@
|
||||||
# Copyright 1999-2019 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
PHP_EXT_NAME="apcu"
|
|
||||||
PHP_EXT_INI="yes"
|
|
||||||
PHP_EXT_ZENDEXT="no"
|
|
||||||
DOCS=( NOTICE README.md TECHNOTES.txt TODO )
|
|
||||||
|
|
||||||
USE_PHP="php5-6 php7-1 php7-2 php7-3"
|
|
||||||
|
|
||||||
inherit php-ext-pecl-r3
|
|
||||||
|
|
||||||
USE_PHP="php5-6"
|
|
||||||
|
|
||||||
KEYWORDS="amd64 ~arm64 x86"
|
|
||||||
|
|
||||||
DESCRIPTION="Stripped down version of APC supporting only user cache"
|
|
||||||
LICENSE="PHP-3.01"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="+mmap"
|
|
||||||
|
|
||||||
DEPEND=""
|
|
||||||
PDEPEND="
|
|
||||||
php_targets_php7-1? ( dev-php/pecl-apcu:7[php_targets_php7-1] )
|
|
||||||
php_targets_php7-2? ( dev-php/pecl-apcu:7[php_targets_php7-2] )
|
|
||||||
php_targets_php7-3? ( dev-php/pecl-apcu:7[php_targets_php7-3] )
|
|
||||||
"
|
|
||||||
|
|
||||||
LOCKS="pthreadmutex pthreadrw spinlock semaphore"
|
|
||||||
|
|
||||||
LUSE=""
|
|
||||||
for l in ${LOCKS}; do
|
|
||||||
LUSE+="lock-${l} "
|
|
||||||
done
|
|
||||||
|
|
||||||
IUSE+=" ${LUSE/lock-pthreadrw/+lock-pthreadrw}"
|
|
||||||
|
|
||||||
REQUIRED_USE="^^ ( $LUSE )"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
if use php_targets_php5-6 ; then
|
|
||||||
php-ext-source-r3_src_prepare
|
|
||||||
else
|
|
||||||
eapply_user
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
if use php_targets_php5-6 ; then
|
|
||||||
local PHP_EXT_ECONF_ARGS=(
|
|
||||||
--enable-apcu
|
|
||||||
$(use_enable mmap apcu-mmap)
|
|
||||||
$(use_enable lock-pthreadrw apcu-rwlocks)
|
|
||||||
$(use_enable lock-spinlock apcu-spinlocks)
|
|
||||||
)
|
|
||||||
|
|
||||||
php-ext-source-r3_src_configure
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
if use php_targets_php5-6 ; then
|
|
||||||
php-ext-pecl-r3_src_install
|
|
||||||
|
|
||||||
insinto "${PHP_EXT_SHARED_DIR#$EPREFIX}"
|
|
||||||
doins apc.php
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
if use php_targets_php5-6 ; then
|
|
||||||
elog "The apc.php file shipped with this release of pecl-apcu was"
|
|
||||||
elog "installed into ${PHP_EXT_SHARED_DIR}."
|
|
||||||
fi
|
|
||||||
}
|
|
|
@ -1,3 +0,0 @@
|
||||||
DIST j2cli-0.3.12b.tar.gz 16797 BLAKE2B 08b434596021576dcecbaa8e700479c103f5d93c3d42880f8f5062fb0db78d4bd0bcc43c068e56b950a654b383a27b5aaff3b58ef22382c6fd6da8d9135ede98 SHA512 6c64aee49091969650214c7e581435d61a32211da14be3b80504af192e30d0de545e698426c3b68deb71e4ac8e422036a8202f0ea4d29f1cc3598872c4299b90
|
|
||||||
EBUILD j2cli-0.3.12b.ebuild 810 BLAKE2B f9f678a713aae9224c2a513bc13be1fb4a8e5c0320b8d78359d78e7f8fbd735584720cda334f19dc02cc0c071021c86ca597390429c9985b6a69e42782b4a6d4 SHA512 ef651fdf3d01cab2182bfa589921a42e6a69c258ee0aa9e1fece97fe42f47134078e44d516fd849215e83c72e8258bf9689742b3590bec11e091aac8290a5f58
|
|
||||||
MISC metadata.xml 217 BLAKE2B 2ff165b31e242337c0eb4ec7fc67dcf0ed3a5eb2962197600231e2b80bf9dabbabe485678d9a2cf4bdf26b23ae4b55f3101aa15e6b92010cab20953a1d513686 SHA512 a0130ab6cf8d4cc029ff0768bd12265b81b47bdfa6d815cbb70368ac79535cf4777d3113e77b877e9f7a222bdc36321672c42db40b2a8f603421adb40d6eb50e
|
|
|
@ -1,37 +0,0 @@
|
||||||
# Copyright 1999-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
PYTHON_COMPAT=( python3_{6,7,8,9} )
|
|
||||||
DISTUTILS_USE_SETUPTOOLS=rdepend
|
|
||||||
|
|
||||||
inherit distutils-r1
|
|
||||||
|
|
||||||
DESCRIPTION="Jinja2 Command-Line Tool, reworked."
|
|
||||||
HOMEPAGE="http://pypi.python.org/pypi/j2cli"
|
|
||||||
SRC_URI="https://github.com/kolypto/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="BSD"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="x86 amd64"
|
|
||||||
IUSE="+yaml test"
|
|
||||||
|
|
||||||
CDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
|
||||||
DEPEND="
|
|
||||||
${CDEPEND}
|
|
||||||
test? (
|
|
||||||
dev-python/wheel[${PYTHON_USEDEP}]
|
|
||||||
dev-python/nose[${PYTHON_USEDEP}]
|
|
||||||
)
|
|
||||||
"
|
|
||||||
RDEPEND="
|
|
||||||
${CDEPEND}
|
|
||||||
>=dev-python/jinja-2.7.2[${PYTHON_USEDEP}]
|
|
||||||
yaml? (
|
|
||||||
>=dev-python/pyyaml-3.10[${PYTHON_USEDEP}]
|
|
||||||
)
|
|
||||||
"
|
|
||||||
|
|
||||||
python_test() {
|
|
||||||
nosetests j2cli/tests || die "tests failed under ${EPYTHON}"
|
|
||||||
}
|
|
|
@ -1,7 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
|
||||||
<pkgmetadata>
|
|
||||||
<upstream>
|
|
||||||
<remote-id type="github">kolypto/j2cli</remote-id>
|
|
||||||
</upstream>
|
|
||||||
</pkgmetadata>
|
|
|
@ -1,3 +0,0 @@
|
||||||
DIST onetimepass-1.0.1.tar.gz 6046 BLAKE2B 5d469fe571f7b15bdca62e415bb746a9ef0928b271d4d99d1ebd64ae4073ddbab5bf0b9c237ef44fe7cbb3460803aee9b0218ea106619b5389b2b58f0427109f SHA512 380a5f61eff2c0f781ea9559f23d51b06625735494be20e857c2508c79c14bd1d2d314d9e86dfb043571a01ab52a96f1afefc7b440c9ab374d7a69017c6dee72
|
|
||||||
EBUILD onetimepass-1.0.1.ebuild 409 BLAKE2B 059d05678c731130122f8226731fe48b8bf65488a27af7ecd3576a0f9e82893efefdf3b256df35ce01164573b693207edbdeda49c52976b43b6c9c70a157ba3e SHA512 be9eec8ab165f5c1f96bdd2b23d1c0e66e183a3bf7edd288a679f502a3472ad094baea85ae49f22d5711c9f6b5c3c686e3f1c32d413cfb0dd6cd9ad10861f60c
|
|
||||||
MISC metadata.xml 270 BLAKE2B f4c9d727b664f735d21d3bae552046a1245a3be56332a23228c970d1f0e625c4907a2fb9b8aa28a53d7e1cad8af39e0950d9f647826615cc284ada8d30a72b99 SHA512 f127c0b84809aabeef24cf9a4bd58f62027793a0111b481a4ac0f1cee361fd8762f210357c9da65827f42b2c50f3dff3bbedb0cddf87c5fbb1904e6c05c022ea
|
|
|
@ -1,8 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
|
||||||
<pkgmetadata>
|
|
||||||
<upstream>
|
|
||||||
<remote-id type="github">adeck/onetimepass</remote-id>
|
|
||||||
<remote-id type="pypi">onetimepass</remote-id>
|
|
||||||
</upstream>
|
|
||||||
</pkgmetadata>
|
|
|
@ -1,18 +0,0 @@
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_{8,9} )
|
|
||||||
inherit distutils-r1
|
|
||||||
|
|
||||||
DESCRIPTION="OneTimePass module"
|
|
||||||
HOMEPAGE="https://github.com/adeck/onetimepass https://pypi.org/project/onetimepass/"
|
|
||||||
SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="amd64 x86"
|
|
||||||
|
|
||||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
|
||||||
|
|
||||||
python_test() {
|
|
||||||
"${EPYTHON}" test/test.py || die "Tests fail with ${EPYTHON}"
|
|
||||||
}
|
|
|
@ -1,3 +0,0 @@
|
||||||
DIST totp-1.3.0.tar.gz 7507 BLAKE2B 7d50ea611ed1a6bb571438bd9442136dc2ceb7e85d2756ced6ea711aa9084f21b0311ca30ba69c60c05c708e4d24b8515e284c1e409b0cc80ced6f5b55ff0718 SHA512 c465078356c858403d19a12d497e861eae28bda55bb895ecbf66d4bf933bf3ffbd96aa81ce1d6c1813134a2f61624faaf577c1384cbd6b35dc41201376c7e7a3
|
|
||||||
EBUILD totp-1.3.0.ebuild 447 BLAKE2B c20f688ad3501b28070705fc9c4746f562adc855c45fe8e8731e284ead04b4694eb0babfe9e31472e7c883497eb153c50a25380a279a76a495861e5cda7ea337 SHA512 a9165e1bc19f445df622b9ef65c71f3e8adb1305d7042e056ee59953892c474b8a3d944a397ab83fa60ea43f661f5fb6dfc3b9e4f559f3d0cdb617805526e522
|
|
||||||
MISC metadata.xml 265 BLAKE2B a591e693e3aba386101689db1b845e78c4ff8857d505b883bfb7b35fd24a668c1cb14fa2095df87a97c2e06a5d3fb5abd6c90893acd40ffab66a449b997c786b SHA512 78faefae13df7c4357dc7173e114e8314bb0bd1d678ca24d66590a45769e2a0a4b40a020dd45380980561cd4512cac7567a025bf1579ae7da6fd09901aa75f4c
|
|
|
@ -1,8 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
|
||||||
<pkgmetadata>
|
|
||||||
<upstream>
|
|
||||||
<remote-id type="github">WhyNotHugo/totp-cli</remote-id>
|
|
||||||
<remote-id type="pypi">totp</remote-id>
|
|
||||||
</upstream>
|
|
||||||
</pkgmetadata>
|
|
|
@ -1,19 +0,0 @@
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_{8,9} )
|
|
||||||
inherit distutils-r1
|
|
||||||
|
|
||||||
DESCRIPTION="OTP module"
|
|
||||||
HOMEPAGE="https://github.com/WhyNotHugo/totp-cli https://pypi.org/project/totp/"
|
|
||||||
SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="ISC"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="amd64 x86"
|
|
||||||
|
|
||||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
|
||||||
RDEPEND="dev-python/onetimepass[${PYTHON_USEDEP}]"
|
|
||||||
|
|
||||||
python_test() {
|
|
||||||
"${EPYTHON}" test/test.py || die "Tests fail with ${EPYTHON}"
|
|
||||||
}
|
|
|
@ -1,386 +0,0 @@
|
||||||
# Copyright 1999-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
# @DEAD
|
|
||||||
# @ECLASS: autotools-utils.eclass
|
|
||||||
# @MAINTAINER:
|
|
||||||
# Maciej Mrozowski <reavertm@gentoo.org>
|
|
||||||
# Michał Górny <mgorny@gentoo.org>
|
|
||||||
# @SUPPORTED_EAPIS: 4 5
|
|
||||||
# @BLURB: common ebuild functions for autotools-based packages
|
|
||||||
# @DEPRECATED: out-of-source
|
|
||||||
# @DESCRIPTION:
|
|
||||||
# autotools-utils.eclass is autotools.eclass(5) and base.eclass(5) wrapper
|
|
||||||
# providing all inherited features along with econf arguments as Bash array,
|
|
||||||
# out of source build with overridable build dir location, static archives
|
|
||||||
# handling, libtool files removal.
|
|
||||||
#
|
|
||||||
# Please note that autotools-utils does not support mixing of its phase
|
|
||||||
# functions with regular econf/emake calls. If necessary, please call
|
|
||||||
# autotools-utils_src_compile instead of the latter.
|
|
||||||
#
|
|
||||||
# @EXAMPLE:
|
|
||||||
# Typical ebuild using autotools-utils.eclass:
|
|
||||||
#
|
|
||||||
# @CODE
|
|
||||||
# EAPI="2"
|
|
||||||
#
|
|
||||||
# inherit autotools-utils
|
|
||||||
#
|
|
||||||
# DESCRIPTION="Foo bar application"
|
|
||||||
# HOMEPAGE="http://example.org/foo/"
|
|
||||||
# SRC_URI="mirror://sourceforge/foo/${P}.tar.bz2"
|
|
||||||
#
|
|
||||||
# LICENSE="LGPL-2.1"
|
|
||||||
# KEYWORDS=""
|
|
||||||
# SLOT="0"
|
|
||||||
# IUSE="debug doc examples qt4 static-libs tiff"
|
|
||||||
#
|
|
||||||
# CDEPEND="
|
|
||||||
# media-libs/libpng:0
|
|
||||||
# qt4? (
|
|
||||||
# dev-qt/qtcore:4
|
|
||||||
# dev-qt/qtgui:4
|
|
||||||
# )
|
|
||||||
# tiff? ( media-libs/tiff:0 )
|
|
||||||
# "
|
|
||||||
# RDEPEND="${CDEPEND}
|
|
||||||
# !media-gfx/bar
|
|
||||||
# "
|
|
||||||
# DEPEND="${CDEPEND}
|
|
||||||
# doc? ( app-doc/doxygen )
|
|
||||||
# "
|
|
||||||
#
|
|
||||||
# # bug 123456
|
|
||||||
# AUTOTOOLS_IN_SOURCE_BUILD=1
|
|
||||||
#
|
|
||||||
# DOCS=(AUTHORS ChangeLog README "Read me.txt" TODO)
|
|
||||||
#
|
|
||||||
# PATCHES=(
|
|
||||||
# "${FILESDIR}/${P}-gcc44.patch" # bug 123458
|
|
||||||
# "${FILESDIR}/${P}-as-needed.patch"
|
|
||||||
# "${FILESDIR}/${P}-unbundle_libpng.patch"
|
|
||||||
# )
|
|
||||||
#
|
|
||||||
# src_configure() {
|
|
||||||
# local myeconfargs=(
|
|
||||||
# $(use_enable debug)
|
|
||||||
# $(use_with qt4)
|
|
||||||
# $(use_enable threads multithreading)
|
|
||||||
# $(use_with tiff)
|
|
||||||
# )
|
|
||||||
# autotools-utils_src_configure
|
|
||||||
# }
|
|
||||||
#
|
|
||||||
# src_compile() {
|
|
||||||
# autotools-utils_src_compile
|
|
||||||
# use doc && autotools-utils_src_compile docs
|
|
||||||
# }
|
|
||||||
#
|
|
||||||
# src_install() {
|
|
||||||
# use doc && HTML_DOCS=("${BUILD_DIR}/apidocs/html/")
|
|
||||||
# autotools-utils_src_install
|
|
||||||
# if use examples; then
|
|
||||||
# dobin "${BUILD_DIR}"/foo_example{1,2,3} \\
|
|
||||||
# || die 'dobin examples failed'
|
|
||||||
# fi
|
|
||||||
# }
|
|
||||||
#
|
|
||||||
# @CODE
|
|
||||||
|
|
||||||
# Keep variable names synced with cmake-utils and the other way around!
|
|
||||||
|
|
||||||
case ${EAPI:-0} in
|
|
||||||
6) die "${ECLASS}.eclass is banned in EAPI ${EAPI}";;
|
|
||||||
4|5) ;;
|
|
||||||
*) die "EAPI=${EAPI} is not supported" ;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# @ECLASS-VARIABLE: AUTOTOOLS_AUTORECONF
|
|
||||||
# @DEFAULT_UNSET
|
|
||||||
# @DESCRIPTION:
|
|
||||||
# Set to a non-empty value before calling inherit to enable running autoreconf
|
|
||||||
# in src_prepare() and adding autotools dependencies.
|
|
||||||
#
|
|
||||||
# This is usually necessary when using live sources or applying patches
|
|
||||||
# modifying configure.ac or Makefile.am files. Note that in the latter case
|
|
||||||
# setting this variable is obligatory even though the eclass will work without
|
|
||||||
# it (to add the necessary dependencies).
|
|
||||||
#
|
|
||||||
# The eclass will try to determine the correct autotools to run including a few
|
|
||||||
# external tools: gettext, glib-gettext, intltool, gtk-doc, gnome-doc-prepare.
|
|
||||||
# If your tool is not supported, please open a bug and we'll add support for it.
|
|
||||||
#
|
|
||||||
# Note that dependencies are added for autoconf, automake and libtool only.
|
|
||||||
# If your package needs one of the external tools listed above, you need to add
|
|
||||||
# appropriate packages to DEPEND yourself.
|
|
||||||
[[ ${AUTOTOOLS_AUTORECONF} ]] || : ${AUTOTOOLS_AUTO_DEPEND:=no}
|
|
||||||
|
|
||||||
# eutils for eqawarn, path_exists
|
|
||||||
inherit autotools epatch eutils libtool ltprune
|
|
||||||
|
|
||||||
EXPORT_FUNCTIONS src_prepare src_configure src_compile src_install src_test
|
|
||||||
|
|
||||||
# @ECLASS-VARIABLE: BUILD_DIR
|
|
||||||
# @DEFAULT_UNSET
|
|
||||||
# @DESCRIPTION:
|
|
||||||
# Build directory, location where all autotools generated files should be
|
|
||||||
# placed. For out of source builds it defaults to ${WORKDIR}/${P}_build.
|
|
||||||
#
|
|
||||||
# This variable has been called AUTOTOOLS_BUILD_DIR formerly.
|
|
||||||
# It is set under that name for compatibility.
|
|
||||||
|
|
||||||
# @ECLASS-VARIABLE: AUTOTOOLS_IN_SOURCE_BUILD
|
|
||||||
# @DEFAULT_UNSET
|
|
||||||
# @DESCRIPTION:
|
|
||||||
# Set to enable in-source build.
|
|
||||||
|
|
||||||
# @ECLASS-VARIABLE: ECONF_SOURCE
|
|
||||||
# @DEFAULT_UNSET
|
|
||||||
# @DESCRIPTION:
|
|
||||||
# Specify location of autotools' configure script. By default it uses ${S}.
|
|
||||||
|
|
||||||
# @ECLASS-VARIABLE: DOCS
|
|
||||||
# @DEFAULT_UNSET
|
|
||||||
# @DESCRIPTION:
|
|
||||||
# Array containing documents passed to dodoc command.
|
|
||||||
#
|
|
||||||
# In EAPIs 4+, can list directories as well.
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# @CODE
|
|
||||||
# DOCS=( NEWS README )
|
|
||||||
# @CODE
|
|
||||||
|
|
||||||
# @ECLASS-VARIABLE: HTML_DOCS
|
|
||||||
# @DEFAULT_UNSET
|
|
||||||
# @DESCRIPTION:
|
|
||||||
# Array containing documents passed to dohtml command.
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# @CODE
|
|
||||||
# HTML_DOCS=( doc/html/ )
|
|
||||||
# @CODE
|
|
||||||
|
|
||||||
# @ECLASS-VARIABLE: PATCHES
|
|
||||||
# @DEFAULT_UNSET
|
|
||||||
# @DESCRIPTION:
|
|
||||||
# PATCHES array variable containing all various patches to be applied.
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# @CODE
|
|
||||||
# PATCHES=( "${FILESDIR}"/${P}-mypatch.patch )
|
|
||||||
# @CODE
|
|
||||||
|
|
||||||
# @ECLASS-VARIABLE: AUTOTOOLS_PRUNE_LIBTOOL_FILES
|
|
||||||
# @DEFAULT_UNSET
|
|
||||||
# @DESCRIPTION:
|
|
||||||
# Sets the mode of pruning libtool files. The values correspond to
|
|
||||||
# prune_libtool_files parameters, with leading dashes stripped.
|
|
||||||
#
|
|
||||||
# Defaults to pruning the libtool files when static libraries are not
|
|
||||||
# installed or can be linked properly without them. Libtool files
|
|
||||||
# for modules (plugins) will be kept in case plugin loader needs them.
|
|
||||||
#
|
|
||||||
# If set to 'modules', the .la files for modules will be removed
|
|
||||||
# as well. This is often the preferred option.
|
|
||||||
#
|
|
||||||
# If set to 'all', all .la files will be removed unconditionally. This
|
|
||||||
# option is discouraged and shall be used only if 'modules' does not
|
|
||||||
# remove the files.
|
|
||||||
#
|
|
||||||
# If set to 'none', no .la files will be pruned ever. Use in corner
|
|
||||||
# cases only.
|
|
||||||
|
|
||||||
# Determine using IN or OUT source build
|
|
||||||
_check_build_dir() {
|
|
||||||
: ${ECONF_SOURCE:=${S}}
|
|
||||||
# Respect both the old variable and the new one, depending
|
|
||||||
# on which one was set by the ebuild.
|
|
||||||
if [[ ! ${BUILD_DIR} && ${AUTOTOOLS_BUILD_DIR} ]]; then
|
|
||||||
eqawarn "The AUTOTOOLS_BUILD_DIR variable has been renamed to BUILD_DIR."
|
|
||||||
eqawarn "Please migrate the ebuild to use the new one."
|
|
||||||
|
|
||||||
# In the next call, both variables will be set already
|
|
||||||
# and we'd have to know which one takes precedence.
|
|
||||||
_RESPECT_AUTOTOOLS_BUILD_DIR=1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ ${_RESPECT_AUTOTOOLS_BUILD_DIR} ]]; then
|
|
||||||
BUILD_DIR=${AUTOTOOLS_BUILD_DIR:-${WORKDIR}/${P}_build}
|
|
||||||
else
|
|
||||||
if [[ -n ${AUTOTOOLS_IN_SOURCE_BUILD} ]]; then
|
|
||||||
: ${BUILD_DIR:=${ECONF_SOURCE}}
|
|
||||||
else
|
|
||||||
: ${BUILD_DIR:=${WORKDIR}/${P}_build}
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Backwards compatibility for getting the value.
|
|
||||||
AUTOTOOLS_BUILD_DIR=${BUILD_DIR}
|
|
||||||
echo ">>> Working in BUILD_DIR: \"${BUILD_DIR}\""
|
|
||||||
}
|
|
||||||
|
|
||||||
# @FUNCTION: autotools-utils_src_prepare
|
|
||||||
# @DESCRIPTION:
|
|
||||||
# The src_prepare function.
|
|
||||||
#
|
|
||||||
# Supporting PATCHES array and user patches. See base.eclass(5) for reference.
|
|
||||||
autotools-utils_src_prepare() {
|
|
||||||
debug-print-function ${FUNCNAME} "$@"
|
|
||||||
|
|
||||||
local want_autoreconf=${AUTOTOOLS_AUTORECONF}
|
|
||||||
|
|
||||||
[[ ${PATCHES} ]] && epatch "${PATCHES[@]}"
|
|
||||||
|
|
||||||
at_checksum() {
|
|
||||||
find '(' -name 'Makefile.am' \
|
|
||||||
-o -name 'configure.ac' \
|
|
||||||
-o -name 'configure.in' ')' \
|
|
||||||
-exec cksum {} + | sort -k2
|
|
||||||
}
|
|
||||||
|
|
||||||
[[ ! ${want_autoreconf} ]] && local checksum=$(at_checksum)
|
|
||||||
epatch_user
|
|
||||||
if [[ ! ${want_autoreconf} ]]; then
|
|
||||||
if [[ ${checksum} != $(at_checksum) ]]; then
|
|
||||||
einfo 'Will autoreconfigure due to user patches applied.'
|
|
||||||
want_autoreconf=yep
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
[[ ${want_autoreconf} ]] && eautoreconf
|
|
||||||
elibtoolize --patch-only
|
|
||||||
}
|
|
||||||
|
|
||||||
# @FUNCTION: autotools-utils_src_configure
|
|
||||||
# @DESCRIPTION:
|
|
||||||
# The src_configure function. For out of source build it creates build
|
|
||||||
# directory and runs econf there. Configuration parameters defined
|
|
||||||
# in myeconfargs are passed here to econf. Additionally following USE
|
|
||||||
# flags are known:
|
|
||||||
#
|
|
||||||
# IUSE="static-libs" passes --enable-shared and either --disable-static/--enable-static
|
|
||||||
# to econf respectively.
|
|
||||||
|
|
||||||
# @VARIABLE: myeconfargs
|
|
||||||
# @DEFAULT_UNSET
|
|
||||||
# @DESCRIPTION:
|
|
||||||
# Optional econf arguments as Bash array. Should be defined before calling src_configure.
|
|
||||||
# @CODE
|
|
||||||
# src_configure() {
|
|
||||||
# local myeconfargs=(
|
|
||||||
# --disable-readline
|
|
||||||
# --with-confdir="/etc/nasty foo confdir/"
|
|
||||||
# $(use_enable debug cnddebug)
|
|
||||||
# $(use_enable threads multithreading)
|
|
||||||
# )
|
|
||||||
# autotools-utils_src_configure
|
|
||||||
# }
|
|
||||||
# @CODE
|
|
||||||
autotools-utils_src_configure() {
|
|
||||||
debug-print-function ${FUNCNAME} "$@"
|
|
||||||
|
|
||||||
[[ -z ${myeconfargs+1} || $(declare -p myeconfargs) == 'declare -a'* ]] \
|
|
||||||
|| die 'autotools-utils.eclass: myeconfargs has to be an array.'
|
|
||||||
|
|
||||||
# Common args
|
|
||||||
local econfargs=()
|
|
||||||
|
|
||||||
_check_build_dir
|
|
||||||
if "${ECONF_SOURCE}"/configure --help 2>&1 | grep -q '^ *--docdir='; then
|
|
||||||
econfargs+=(
|
|
||||||
--docdir="${EPREFIX}"/usr/share/doc/${PF}
|
|
||||||
)
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Handle static-libs found in IUSE, disable them by default
|
|
||||||
if in_iuse static-libs; then
|
|
||||||
econfargs+=(
|
|
||||||
--enable-shared
|
|
||||||
$(use_enable static-libs static)
|
|
||||||
)
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Append user args
|
|
||||||
econfargs+=("${myeconfargs[@]}")
|
|
||||||
|
|
||||||
mkdir -p "${BUILD_DIR}" || die
|
|
||||||
pushd "${BUILD_DIR}" > /dev/null || die
|
|
||||||
econf "${econfargs[@]}" "$@"
|
|
||||||
popd > /dev/null || die
|
|
||||||
}
|
|
||||||
|
|
||||||
# @FUNCTION: autotools-utils_src_compile
|
|
||||||
# @DESCRIPTION:
|
|
||||||
# The autotools src_compile function, invokes emake in specified BUILD_DIR.
|
|
||||||
autotools-utils_src_compile() {
|
|
||||||
debug-print-function ${FUNCNAME} "$@"
|
|
||||||
|
|
||||||
_check_build_dir
|
|
||||||
pushd "${BUILD_DIR}" > /dev/null || die
|
|
||||||
emake "$@" || die 'emake failed'
|
|
||||||
popd > /dev/null || die
|
|
||||||
}
|
|
||||||
|
|
||||||
# @FUNCTION: autotools-utils_src_install
|
|
||||||
# @DESCRIPTION:
|
|
||||||
# The autotools src_install function. Runs emake install, unconditionally
|
|
||||||
# removes unnecessary static libs (based on shouldnotlink libtool property)
|
|
||||||
# and removes unnecessary libtool files when static-libs USE flag is defined
|
|
||||||
# and unset.
|
|
||||||
#
|
|
||||||
# DOCS and HTML_DOCS arrays are supported. See base.eclass(5) for reference.
|
|
||||||
autotools-utils_src_install() {
|
|
||||||
debug-print-function ${FUNCNAME} "$@"
|
|
||||||
|
|
||||||
_check_build_dir
|
|
||||||
pushd "${BUILD_DIR}" > /dev/null || die
|
|
||||||
emake DESTDIR="${D}" "$@" install || die "emake install failed"
|
|
||||||
popd > /dev/null || die
|
|
||||||
|
|
||||||
# XXX: support installing them from builddir as well?
|
|
||||||
if declare -p DOCS &>/dev/null; then
|
|
||||||
# an empty list == don't install anything
|
|
||||||
if [[ ${DOCS[@]} ]]; then
|
|
||||||
# dies by itself
|
|
||||||
dodoc -r "${DOCS[@]}"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
local f
|
|
||||||
# same list as in PMS
|
|
||||||
for f in README* ChangeLog AUTHORS NEWS TODO CHANGES \
|
|
||||||
THANKS BUGS FAQ CREDITS CHANGELOG; do
|
|
||||||
if [[ -s ${f} ]]; then
|
|
||||||
dodoc "${f}" || die "(default) dodoc ${f} failed"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
if [[ ${HTML_DOCS} ]]; then
|
|
||||||
dohtml -r "${HTML_DOCS[@]}" || die "dohtml failed"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Remove libtool files and unnecessary static libs
|
|
||||||
local prune_ltfiles=${AUTOTOOLS_PRUNE_LIBTOOL_FILES}
|
|
||||||
if [[ ${prune_ltfiles} != none ]]; then
|
|
||||||
prune_libtool_files ${prune_ltfiles:+--${prune_ltfiles}}
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
# @FUNCTION: autotools-utils_src_test
|
|
||||||
# @DESCRIPTION:
|
|
||||||
# The autotools src_test function. Runs emake check in build directory.
|
|
||||||
autotools-utils_src_test() {
|
|
||||||
debug-print-function ${FUNCNAME} "$@"
|
|
||||||
|
|
||||||
_check_build_dir
|
|
||||||
pushd "${BUILD_DIR}" > /dev/null || die
|
|
||||||
|
|
||||||
if make -ni check "${@}" &>/dev/null; then
|
|
||||||
emake check "${@}" || die 'emake check failed.'
|
|
||||||
elif make -ni test "${@}" &>/dev/null; then
|
|
||||||
emake test "${@}" || die 'emake test failed.'
|
|
||||||
fi
|
|
||||||
|
|
||||||
popd > /dev/null || die
|
|
||||||
}
|
|
|
@ -1,25 +0,0 @@
|
||||||
# @ECLASS: font-custom.eclass
|
|
||||||
|
|
||||||
inherit font
|
|
||||||
|
|
||||||
IUSE=""
|
|
||||||
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86"
|
|
||||||
RESTRICT="mirror strip binchecks"
|
|
||||||
SLOT="0"
|
|
||||||
|
|
||||||
# Google provides TrueType fonts only.
|
|
||||||
FONT_SUFFIX="ttf"
|
|
||||||
|
|
||||||
# Working directory containing the fonts.
|
|
||||||
S="${WORKDIR}/${PN}"
|
|
||||||
FONT_S="${S}"
|
|
||||||
|
|
||||||
# No unpacking needed.
|
|
||||||
font-custom_src_unpack() {
|
|
||||||
mkdir -p "${FONT_S}"
|
|
||||||
for file in ${A}; do
|
|
||||||
cp "${DISTDIR}/$file" "${FONT_S}/$file"
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
EXPORT_FUNCTIONS src_unpack
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,80 +0,0 @@
|
||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
#
|
|
||||||
# @DEAD
|
|
||||||
# @ECLASS: nsplugins.eclass
|
|
||||||
# @MAINTAINER:
|
|
||||||
# Mozilla Team <mozilla@gentoo.org>
|
|
||||||
# @AUTHOR:
|
|
||||||
# Original Author: Martin Schlemmer <azarah@gentoo.org>
|
|
||||||
# @BLURB: reusable functions for netscape/moz plugin sharing
|
|
||||||
# @DESCRIPTION:
|
|
||||||
# Reusable functions that promote sharing of netscape/moz plugins, also provides
|
|
||||||
# share_plugins_dir function for mozilla applications.
|
|
||||||
|
|
||||||
inherit eutils multilib versionator mozextension
|
|
||||||
|
|
||||||
PLUGINS_DIR="nsbrowser/plugins"
|
|
||||||
|
|
||||||
# This function move the plugin dir in src_install() to
|
|
||||||
# ${D}/usr/$(get_libdir)/${PLUGIN_DIR}. First argument should be
|
|
||||||
# the full path (without $D) to old plugin dir.
|
|
||||||
src_mv_plugins() {
|
|
||||||
has "${EAPI:-0}" 0 1 2 && ! use prefix && ED="${D}"
|
|
||||||
|
|
||||||
# Move plugins dir. We use keepdir so that it might not be unmerged
|
|
||||||
# by mistake ...
|
|
||||||
keepdir /usr/$(get_libdir)/${PLUGINS_DIR}
|
|
||||||
cp -a "${ED}"/$1/* "${ED}"/usr/$(get_libdir)/${PLUGINS_DIR}
|
|
||||||
rm -rf "${ED}"/$1
|
|
||||||
dosym /usr/$(get_libdir)/${PLUGINS_DIR} $1
|
|
||||||
}
|
|
||||||
|
|
||||||
# This function move plugins in pkg_preinst() in old dir to
|
|
||||||
# ${ROOT}/usr/$(get_libdir)/${PLUGIN_DIR}. First argument should be
|
|
||||||
# the full path (without $ROOT) to old plugin dir.
|
|
||||||
pkg_mv_plugins() {
|
|
||||||
has "${EAPI:-0}" 0 1 2 && ! use prefix && ED="${ROOT}"
|
|
||||||
|
|
||||||
# Move old plugins dir
|
|
||||||
if [ -d "${ROOT}/$1" -a ! -L "${ROOT}/$1" ]
|
|
||||||
then
|
|
||||||
mkdir -p "${EROOT}"/usr/$(get_libdir)/${PLUGINS_DIR}
|
|
||||||
cp -a "${EROOT}"/$1/* "${EROOT}"/usr/$(get_libdir)/${PLUGINS_DIR}
|
|
||||||
rm -rf "${EROOT}"/$1
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
# This function installs a plugin with dosym to PLUGINS_DIR.
|
|
||||||
# First argument should be the plugin file.
|
|
||||||
inst_plugin() {
|
|
||||||
if [[ -z "${1}" ]]; then
|
|
||||||
eerror "The plugin file \"${1}\" does not exist."
|
|
||||||
die "No such file or directory."
|
|
||||||
fi
|
|
||||||
|
|
||||||
dodir /usr/$(get_libdir)/${PLUGINS_DIR}
|
|
||||||
dosym ${1} /usr/$(get_libdir)/${PLUGINS_DIR}/$(basename ${1})
|
|
||||||
}
|
|
||||||
|
|
||||||
# This function ensures we use proper plugin path for Gentoo.
|
|
||||||
# This should only be used by mozilla packages.
|
|
||||||
# ${MOZILLA_FIVE_HOME} must be defined in src_install to support
|
|
||||||
share_plugins_dir() {
|
|
||||||
if [[ ${PN} == seamonkey ]] ; then
|
|
||||||
rm -rf "${D}"${MOZILLA_FIVE_HOME}/plugins \
|
|
||||||
|| die "failed to remove existing plugins dir"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ ${PN} == *-bin ]] ; then
|
|
||||||
PLUGIN_BASE_PATH="/usr/$(get_libdir)"
|
|
||||||
else
|
|
||||||
PLUGIN_BASE_PATH=".."
|
|
||||||
fi
|
|
||||||
|
|
||||||
if $(mozversion_extension_location) ; then
|
|
||||||
dosym "${PLUGIN_BASE_PATH}/nsbrowser/plugins" "${MOZILLA_FIVE_HOME}/browser/plugins"
|
|
||||||
else
|
|
||||||
dosym "${PLUGIN_BASE_PATH}/nsbrowser/plugins" "${MOZILLA_FIVE_HOME}/plugins"
|
|
||||||
fi
|
|
||||||
}
|
|
|
@ -32,6 +32,7 @@ fi
|
||||||
if [[ ! ${_PYTHON_UTILS_R1} ]]; then
|
if [[ ! ${_PYTHON_UTILS_R1} ]]; then
|
||||||
|
|
||||||
[[ ${EAPI} == 5 ]] && inherit eutils multilib
|
[[ ${EAPI} == 5 ]] && inherit eutils multilib
|
||||||
|
[[ ${EAPI} == [67] ]] && inherit eapi8-dosym
|
||||||
inherit toolchain-funcs
|
inherit toolchain-funcs
|
||||||
|
|
||||||
# @ECLASS-VARIABLE: _PYTHON_ALL_IMPLS
|
# @ECLASS-VARIABLE: _PYTHON_ALL_IMPLS
|
||||||
|
@ -1279,6 +1280,16 @@ build_sphinx() {
|
||||||
HTML_DOCS+=( "${dir}/_build/html/." )
|
HTML_DOCS+=( "${dir}/_build/html/." )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# @FUNCTION: _python_check_EPYTHON
|
||||||
|
# @INTERNAL
|
||||||
|
# @DESCRIPTION:
|
||||||
|
# Check if EPYTHON is set, die if not.
|
||||||
|
_python_check_EPYTHON() {
|
||||||
|
if [[ -z ${EPYTHON} ]]; then
|
||||||
|
die "EPYTHON unset, invalid call context"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
# -- python.eclass functions --
|
# -- python.eclass functions --
|
||||||
|
|
||||||
_python_check_dead_variables() {
|
_python_check_dead_variables() {
|
||||||
|
|
|
@ -32,6 +32,7 @@ fi
|
||||||
if [[ ! ${_PYTHON_UTILS_R1} ]]; then
|
if [[ ! ${_PYTHON_UTILS_R1} ]]; then
|
||||||
|
|
||||||
[[ ${EAPI} == 5 ]] && inherit eutils multilib
|
[[ ${EAPI} == 5 ]] && inherit eutils multilib
|
||||||
|
[[ ${EAPI} == [67] ]] && inherit eapi8-dosym
|
||||||
inherit toolchain-funcs
|
inherit toolchain-funcs
|
||||||
|
|
||||||
# @ECLASS-VARIABLE: _PYTHON_ALL_IMPLS
|
# @ECLASS-VARIABLE: _PYTHON_ALL_IMPLS
|
||||||
|
@ -1279,6 +1280,16 @@ build_sphinx() {
|
||||||
HTML_DOCS+=( "${dir}/_build/html/." )
|
HTML_DOCS+=( "${dir}/_build/html/." )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# @FUNCTION: _python_check_EPYTHON
|
||||||
|
# @INTERNAL
|
||||||
|
# @DESCRIPTION:
|
||||||
|
# Check if EPYTHON is set, die if not.
|
||||||
|
_python_check_EPYTHON() {
|
||||||
|
if [[ -z ${EPYTHON} ]]; then
|
||||||
|
die "EPYTHON unset, invalid call context"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
# -- python.eclass functions --
|
# -- python.eclass functions --
|
||||||
|
|
||||||
_python_check_dead_variables() {
|
_python_check_dead_variables() {
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
AUX libspf2-1.2.10-varargs.patch 1385 BLAKE2B 0fcf2c91cc8b01f8d20ec1d7e1896f59c01115de45b505c7cf81e68d0850456a08b87c1e2f59a5e37824298bee969650f9dd391ec25addf5186478e07a07d182 SHA512 886a347c6526c4e81bc035d7e0069f72aaa5ad2103f0e035e46dbd7e1e5f328ebbbc81842fd32397d195a5b18cf841784455a4142291276c1be8942a1c753b4d
|
|
||||||
DIST libspf2-1.2.10.tar.gz 508842 BLAKE2B d15a44f64c5e3da20aa349e61a6cc02a15f83ed3acff93fe4c23970e30533d6424b1db35d7d60ff488c9a239d343f8544426fbf8fcb66271237155e0b57df1b5 SHA512 162ce382628c6fcadac3e11f5a12442db622bb23f7ec503e16f5ba7fc88afdd777bce6b093c12a58210355985fd11b74b140f08fab347334d82d953dd183b130
|
|
||||||
EBUILD libspf2-1.2.10.ebuild 1235 BLAKE2B adcc1f456a4342e364c39e603365906bc48d63a7759573e3f7597832746e82ca84da664fa0e74ecc678affd968de39ac772a41ea8f0fc10da7908dc0a534081f SHA512 1aafa7786af9e8b74a0d241a2b0f2a1faaf7f3bb2fdbe97904c08f12e715c427ab62fa55fc3be6a0c92f313a57ad7ef1984270ca32e3d2e14807c3f09961d035
|
|
||||||
MISC metadata.xml 662 BLAKE2B 93065bf12cb61aa27cb99767141dfef8b60a98b7c69da698ba0080bd5f25bce4df3c9a4284bfdf1d94a3be808876c20cdcb39bbd1536a3231ced1a86a0f49afe SHA512 255a23e45243c57a00be6d18c487a0574c92b16110d31352f83529bbb7fa5386354a4e5b7f5a3575596fa7cb701ddfb4408077393576e60537b6b70c9bda89a3
|
|
|
@ -1,29 +0,0 @@
|
||||||
From 5852828582f556e73751076ad092f72acf7fc8b6 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Shevek <shevek@anarres.org>
|
|
||||||
Date: Tue, 23 Sep 2014 01:03:00 -0700
|
|
||||||
Subject: [PATCH] Fix #4: Use gcc trick for variadic macros. Does this break
|
|
||||||
anyone else?
|
|
||||||
|
|
||||||
---
|
|
||||||
src/include/spf_log.h | 8 ++++----
|
|
||||||
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/src/include/spf_log.h b/src/include/spf_log.h
|
|
||||||
index 0d2adeb..9b09714 100644
|
|
||||||
--- a/src/include/spf_log.h
|
|
||||||
+++ b/src/include/spf_log.h
|
|
||||||
@@ -60,10 +60,10 @@ void SPF_debugv( const char *file, int line, const char *format, va_list ap ) __
|
|
||||||
|
|
||||||
#if defined( __STDC_VERSION__ ) && __STDC_VERSION__ >= 199901L
|
|
||||||
|
|
||||||
-#define SPF_errorf(format, ... ) SPF_errorx( __FILE__, __LINE__, format, __VA_ARGS__ )
|
|
||||||
-#define SPF_warningf(format, ... ) SPF_warningx( __FILE__, __LINE__, format, __VA_ARGS__ )
|
|
||||||
-#define SPF_infof(format, ... ) SPF_infox( __FILE__, __LINE__, format, __VA_ARGS__ )
|
|
||||||
-#define SPF_debugf(format, ... ) SPF_debugx( __FILE__, __LINE__, format, __VA_ARGS__ )
|
|
||||||
+#define SPF_errorf(format, ... ) SPF_errorx( __FILE__, __LINE__, format, ##__VA_ARGS__ )
|
|
||||||
+#define SPF_warningf(format, ... ) SPF_warningx( __FILE__, __LINE__, format, ##__VA_ARGS__ )
|
|
||||||
+#define SPF_infof(format, ... ) SPF_infox( __FILE__, __LINE__, format, ##__VA_ARGS__ )
|
|
||||||
+#define SPF_debugf(format, ... ) SPF_debugx( __FILE__, __LINE__, format, ##__VA_ARGS__ )
|
|
||||||
|
|
||||||
#elif defined( __GNUC__ )
|
|
||||||
|
|
|
@ -1,46 +0,0 @@
|
||||||
# Copyright 1999-2015 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
inherit eutils autotools
|
|
||||||
|
|
||||||
DESCRIPTION="libspf2 implements the Sender Policy Framework, a part of the SPF/SRS protocol pair"
|
|
||||||
HOMEPAGE="http://www.libspf2.org"
|
|
||||||
SRC_URI="http://www.libspf2.org/spf/libspf2-${PV}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="|| ( LGPL-2.1 BSD-2 )"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="alpha amd64 ~arm hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd"
|
|
||||||
IUSE="static static-libs"
|
|
||||||
|
|
||||||
DEPEND=""
|
|
||||||
RDEPEND="!dev-perl/Mail-SPF-Query"
|
|
||||||
REQUIRED_USE="static? ( static-libs )"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
epatch "${FILESDIR}/${PN}-1.2.10-varargs.patch"
|
|
||||||
|
|
||||||
if ! use static; then
|
|
||||||
sed -i -e '/bin_PROGRAMS/s/spfquery_static//' src/spfquery/Makefile.am \
|
|
||||||
-e '/bin_PROGRAMS/s/spftest_static//' src/spftest/Makefile.am \
|
|
||||||
-e '/bin_PROGRAMS/s/spfd_static//' src/spfd/Makefile.am \
|
|
||||||
-e '/bin_PROGRAMS/s/spf_example_static//' src/spf_example/Makefile.am \
|
|
||||||
|| die
|
|
||||||
#eautoreconf
|
|
||||||
fi
|
|
||||||
|
|
||||||
sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' configure.ac || die
|
|
||||||
eautoreconf
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
econf \
|
|
||||||
$(use_enable static-libs static)
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
emake DESTDIR="${D}" install
|
|
||||||
dodoc README TODO INSTALL
|
|
||||||
|
|
||||||
use static-libs || rm -f "${D}"/usr/lib*/libspf2.la
|
|
||||||
}
|
|
|
@ -1,9 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
|
||||||
<pkgmetadata>
|
|
||||||
<maintainer type="project">
|
|
||||||
<email>net-mail@gentoo.org</email>
|
|
||||||
<name>Net-Mail</name>
|
|
||||||
</maintainer>
|
|
||||||
<longdescription>libspf2 implements the Sender Policy Framework, a part of the SPF/SRS protocol pair. libspf2 is a library which allows email systems such as Sendmail, Postfix, Exim, Zmailer and MS Exchange to check SPF records and make sure that the email is authorized by the domain name that it is coming from. This prevents email forgery, commonly used by spammers, scammers and email viruses/worms.</longdescription>
|
|
||||||
</pkgmetadata>
|
|
|
@ -1,6 +0,0 @@
|
||||||
AUX razor-2.85-cosmetic-pv-fix.patch 616 BLAKE2B 58def0277c1142b664f65ae9f6e7f312f51ae5a926379616818fda3f0c450b7d157b12fb1777603ac70731d55ca9059708c3c70100c930bdb0371ef60d5b23aa SHA512 c7e7985e779185d704d88ff4c39d106df46ba20daee92c4a4410e8a1af7d4c31bdca0646018fb5d1f7d58e106036c8442a0fa2635b39a5e1df2a259f79eced91
|
|
||||||
AUX razor-2.85-fix-makefile.patch 442 BLAKE2B 70158f913fff2313d08ef8067758a38466f690df2756b0e59d6f615a56e3898d30966d0e3055841365d1659a23e0cc36d9b7b71eb64992cea66f349404a85559 SHA512 5e0f9f9a4e59d0e0f243dd70dda14c780abb8b3451dfc35c36dfb3c79ab8911b4657d871c25017bab8d18bbd20d204f35be3beff9b7cd3caf74dbf2cff025811
|
|
||||||
AUX razor-2.85-use-sha-not-sha1.patch 3897 BLAKE2B 5cbdd0cbf6a80f4d2e1eba364d2db5ef972368257110daaf07c8ee6444884b07ff930184a4c92c1b0e7af89cfd5384ada7d00ddd79114c799bc8ad34e8f61a51 SHA512 891a93408f56bb6a7b43814a501cce8775c51abe7cf227c39dd18699ac5f4c1aa5484842435edda58f7141a87e5ebe1496bfe959afab09fb44c3558c66511289
|
|
||||||
DIST razor-agents-2.85.tar.bz2 81691 BLAKE2B fdb389ca4192dc2a3b87935fe97a4750ab715ae163aa1cf8adf5c6dd54e8e2f2ca53f1fcc37505b5ea0ec4e9bdb78a14ae8b30fca770de80a2a69e3e534ec3ab SHA512 31dded1969dde963389a5939514c29638ad07f45dbb2f4c633cf20ebc4abab94e65e9a6d8885233cdde686ef365aab11fa5eba2ca38d79c5b8fab689143ff5db
|
|
||||||
EBUILD razor-2.85-r2.ebuild 2757 BLAKE2B f112237a2c381f1e1f740a2e30792fce5fa0c2dc1a316a8073f208460b33849cd5ffc858d32db357da6c506a5d12949bcefdc6524b29b34c5bbfd1d89b72083e SHA512 cc5fa4467597de39bc2c9f626eb6297284e144f06ff9cee4fde551f918bf9231f2c63e54fd1944bf0388d0c5083f52d43ba35a5ee56b1fb5c7d2d011db4c81e3
|
|
||||||
MISC metadata.xml 705 BLAKE2B d0672ed0f1b55a34b285b706ed221673caf3bdba562c4f981f0e9a711f15a55213058568ff853e0469578bf569c8ae3a8095a27f3791ec3b015482d4ca570d03 SHA512 7634caefc54a09f7c83ae77103110e4f48641b1d6f1a091951a9e969c934303bdb4227120eec35cf46c1000f414782436c7eb8248f59b8bd4dcd4dbcce1047b7
|
|
|
@ -1,22 +0,0 @@
|
||||||
--- a/lib/Razor2/Client/Version.pm 2007-05-10 22:32:10.000000000 +0200
|
|
||||||
+++ b/lib/Razor2/Client/Version.pm 2010-03-25 11:11:36.911409707 +0100
|
|
||||||
@@ -14,7 +14,7 @@
|
|
||||||
|
|
||||||
$PROTOCOL = 3;
|
|
||||||
|
|
||||||
-$VERSION = '2.84';
|
|
||||||
+$VERSION = '2.85';
|
|
||||||
|
|
||||||
1;
|
|
||||||
|
|
||||||
--- a/META.yml 2007-05-23 20:29:34.000000000 +0200
|
|
||||||
+++ b/META.yml 2010-03-25 11:11:43.691408628 +0100
|
|
||||||
@@ -1,7 +1,7 @@
|
|
||||||
# http://module-build.sourceforge.net/META-spec.html
|
|
||||||
#XXXXXXX This is a prototype!!! It will change in the future!!! XXXXX#
|
|
||||||
name: razor-agents
|
|
||||||
-version: 2.84
|
|
||||||
+version: 2.85
|
|
||||||
version_from: lib/Razor2/Client/Version.pm
|
|
||||||
installdirs: site
|
|
||||||
requires:
|
|
|
@ -1,14 +0,0 @@
|
||||||
--- Makefile.PL.orig 2007-05-09 00:47:53.000000000 +0200
|
|
||||||
+++ Makefile.PL 2017-04-25 19:38:38.082079219 +0200
|
|
||||||
@@ -140,9 +140,9 @@
|
|
||||||
my $inherited = $self->SUPER::install(@_);
|
|
||||||
|
|
||||||
my $man5 = q{ \\
|
|
||||||
- $(INST_MAN5DIR) $(INSTALLMAN5DIR)};
|
|
||||||
+ "$(INST_MAN5DIR)" "$(INSTALLMAN5DIR)"};
|
|
||||||
|
|
||||||
- $inherited =~ s/(\$\((?:DEST)?INSTALL\w*MAN1DIR\))/$1$man5/gm;
|
|
||||||
+ $inherited =~ s/("\$\((?:DEST)?INSTALL\w*MAN1DIR\)")/$1$man5/gm;
|
|
||||||
|
|
||||||
return $inherited;
|
|
||||||
}
|
|
|
@ -1,119 +0,0 @@
|
||||||
Patch-URL: http://cvs.fedoraproject.org/viewvc/devel/perl-Razor-Agent/razor-agents-2.85-use-sha-not-sha1.patch?view=log
|
|
||||||
|
|
||||||
diff -urN razor-agents-2.85.orig/lib/Razor2/Client/Engine.pm razor-agents-2.85/lib/Razor2/Client/Engine.pm
|
|
||||||
--- razor-agents-2.85.orig/lib/Razor2/Client/Engine.pm 2005-06-13 19:42:25.000000000 -0400
|
|
||||||
+++ razor-agents-2.85/lib/Razor2/Client/Engine.pm 2009-11-01 13:45:08.125369192 -0500
|
|
||||||
@@ -1,7 +1,6 @@
|
|
||||||
package Razor2::Client::Engine;
|
|
||||||
|
|
||||||
use strict;
|
|
||||||
-use Digest::SHA1 qw(sha1_hex);
|
|
||||||
use Data::Dumper;
|
|
||||||
use Razor2::Signature::Ephemeral;
|
|
||||||
use Razor2::Engine::VR8;
|
|
||||||
diff -urN razor-agents-2.85.orig/lib/Razor2/Signature/Ephemeral.pm razor-agents-2.85/lib/Razor2/Signature/Ephemeral.pm
|
|
||||||
--- razor-agents-2.85.orig/lib/Razor2/Signature/Ephemeral.pm 2003-03-03 18:09:50.000000000 -0500
|
|
||||||
+++ razor-agents-2.85/lib/Razor2/Signature/Ephemeral.pm 2009-11-01 13:45:08.125369192 -0500
|
|
||||||
@@ -2,9 +2,13 @@
|
|
||||||
|
|
||||||
package Razor2::Signature::Ephemeral;
|
|
||||||
use strict;
|
|
||||||
-use Digest::SHA1;
|
|
||||||
use Data::Dumper;
|
|
||||||
|
|
||||||
+BEGIN {
|
|
||||||
+ eval { require Digest::SHA; import Digest::SHA qw(sha1_hex); 1 }
|
|
||||||
+ or do { require Digest::SHA1; import Digest::SHA1 qw(sha1_hex) }
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
sub new {
|
|
||||||
|
|
||||||
my ($class, %args) = @_;
|
|
||||||
@@ -86,16 +90,12 @@
|
|
||||||
}
|
|
||||||
|
|
||||||
my $digest;
|
|
||||||
- my $ctx = Digest::SHA1->new;
|
|
||||||
|
|
||||||
if ($seclength > 128) {
|
|
||||||
- $ctx->add($section1);
|
|
||||||
- $ctx->add($section2);
|
|
||||||
- $digest = $ctx->hexdigest;
|
|
||||||
+ $digest = sha1_hex($section1, $section2);
|
|
||||||
} else {
|
|
||||||
debug("Sections too small... reverting back to orginal content.");
|
|
||||||
- $ctx->add($content);
|
|
||||||
- $digest = $ctx->hexdigest;
|
|
||||||
+ $digest = sha1_hex($content);
|
|
||||||
}
|
|
||||||
|
|
||||||
debug("Computed e-hash is $digest");
|
|
||||||
diff -urN razor-agents-2.85.orig/lib/Razor2/Signature/Whiplash.pm razor-agents-2.85/lib/Razor2/Signature/Whiplash.pm
|
|
||||||
--- razor-agents-2.85.orig/lib/Razor2/Signature/Whiplash.pm 2007-05-08 18:22:36.000000000 -0400
|
|
||||||
+++ razor-agents-2.85/lib/Razor2/Signature/Whiplash.pm 2009-11-01 13:45:08.124368017 -0500
|
|
||||||
@@ -7,7 +7,10 @@
|
|
||||||
|
|
||||||
package Razor2::Signature::Whiplash;
|
|
||||||
|
|
||||||
-use Digest::SHA1;
|
|
||||||
+BEGIN {
|
|
||||||
+ eval { require Digest::SHA; import Digest::SHA qw(sha1_hex); 1 }
|
|
||||||
+ or do { require Digest::SHA1; import Digest::SHA1 qw(sha1_hex) }
|
|
||||||
+}
|
|
||||||
|
|
||||||
sub new {
|
|
||||||
|
|
||||||
@@ -683,13 +686,8 @@
|
|
||||||
# the value of length to the nearest multiple of ``length_error''.
|
|
||||||
# Take the first 20 hex chars from SHA1 and call it the signature.
|
|
||||||
|
|
||||||
- my $sha1 = Digest::SHA1->new();
|
|
||||||
-
|
|
||||||
- $sha1->add($host);
|
|
||||||
- $sig = substr $sha1->hexdigest, 0, 12;
|
|
||||||
-
|
|
||||||
- $sha1->add($corrected_length);
|
|
||||||
- $sig .= substr $sha1->hexdigest, 0, 4;
|
|
||||||
+ $sig = substr sha1_hex($host), 0, 12;
|
|
||||||
+ $sig .= substr sha1_hex($corrected_length), 0, 4;
|
|
||||||
|
|
||||||
push @sigs, $sig;
|
|
||||||
$sig_meta{$sig} = [$host, $corrected_length];
|
|
||||||
diff -urN razor-agents-2.85.orig/lib/Razor2/String.pm razor-agents-2.85/lib/Razor2/String.pm
|
|
||||||
--- razor-agents-2.85.orig/lib/Razor2/String.pm 2005-06-13 17:09:59.000000000 -0400
|
|
||||||
+++ razor-agents-2.85/lib/Razor2/String.pm 2009-11-01 13:45:08.123368518 -0500
|
|
||||||
@@ -1,11 +1,15 @@
|
|
||||||
# $Id$
|
|
||||||
package Razor2::String;
|
|
||||||
|
|
||||||
-use Digest::SHA1 qw(sha1_hex);
|
|
||||||
use URI::Escape;
|
|
||||||
use Razor2::Preproc::enBase64;
|
|
||||||
use Data::Dumper;
|
|
||||||
|
|
||||||
+BEGIN {
|
|
||||||
+ eval { require Digest::SHA; import Digest::SHA qw(sha1_hex); 1 }
|
|
||||||
+ or do { require Digest::SHA1; import Digest::SHA1 qw(sha1_hex) }
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
#use MIME::Parser;
|
|
||||||
|
|
||||||
require Exporter;
|
|
||||||
@@ -69,15 +73,8 @@
|
|
||||||
return unless $text && $iv1 && $iv2;
|
|
||||||
die "no ref's allowed" if ref($text);
|
|
||||||
|
|
||||||
- my $ctx = Digest::SHA1->new;
|
|
||||||
- $ctx->add($iv2);
|
|
||||||
- $ctx->add($text);
|
|
||||||
- my $digest = $ctx->hexdigest;
|
|
||||||
-
|
|
||||||
- $ctx = Digest::SHA1->new;
|
|
||||||
- $ctx->add($iv1);
|
|
||||||
- $ctx->add($digest);
|
|
||||||
- $digest = $ctx->hexdigest;
|
|
||||||
+ my $digest = sha1_hex($iv2, $text);
|
|
||||||
+ $digest = sha1_hex($iv1, $digest);
|
|
||||||
|
|
||||||
return (hextobase64($digest), $digest);
|
|
||||||
}
|
|
|
@ -1,23 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
|
||||||
<pkgmetadata>
|
|
||||||
<maintainer type="project">
|
|
||||||
<email>proxy-maint@gentoo.org</email>
|
|
||||||
<name>Proxy Maintainers</name>
|
|
||||||
</maintainer>
|
|
||||||
<maintainer type="project">
|
|
||||||
<email>net-mail@gentoo.org</email>
|
|
||||||
<name>Net-Mail</name>
|
|
||||||
</maintainer>
|
|
||||||
<maintainer type="person">
|
|
||||||
<email>razor-admin@cloudmark.com</email>
|
|
||||||
<description>
|
|
||||||
A contact designated by upstream developers. This email address
|
|
||||||
should always be added to CC list of any Razor bug that needs
|
|
||||||
upstream care.
|
|
||||||
</description>
|
|
||||||
</maintainer>
|
|
||||||
<upstream>
|
|
||||||
<remote-id type="sourceforge">razor</remote-id>
|
|
||||||
</upstream>
|
|
||||||
</pkgmetadata>
|
|
|
@ -1,79 +0,0 @@
|
||||||
# Copyright 1999-2014 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
inherit perl-module
|
|
||||||
|
|
||||||
MY_PN="razor-agents"
|
|
||||||
MY_P="${MY_PN}-${PV}"
|
|
||||||
DESCRIPTION="Vipul's Razor is a distributed, collaborative spam detection and filtering network"
|
|
||||||
HOMEPAGE="http://razor.sourceforge.net/"
|
|
||||||
SRC_URI="mirror://sourceforge/razor/${MY_P}.tar.bz2"
|
|
||||||
|
|
||||||
LICENSE="Artistic"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="alpha amd64 hppa ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~x86-macos"
|
|
||||||
# This package warrants IUSE doc
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
DEPEND=""
|
|
||||||
|
|
||||||
RDEPEND="dev-perl/Net-DNS
|
|
||||||
virtual/perl-Net-Ping
|
|
||||||
virtual/perl-Time-HiRes
|
|
||||||
|| ( virtual/perl-Digest-SHA dev-perl/Digest-SHA1 )
|
|
||||||
dev-perl/URI
|
|
||||||
dev-perl/Digest-Nilsimsa"
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}/${PN}-2.85-use-sha-not-sha1.patch"
|
|
||||||
"${FILESDIR}/${PN}-2.85-cosmetic-pv-fix.patch"
|
|
||||||
"${FILESDIR}/${PN}-2.85-fix-makefile.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
# Install docs/ content
|
|
||||||
mydoc="docs/*"
|
|
||||||
SRC_TEST="do parallel"
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
elog
|
|
||||||
elog "Run 'razor-admin -create' to create a default config file in your"
|
|
||||||
elog "home directory under /home/user/.razor. (Remember to change user to"
|
|
||||||
elog "your username from root before running razor-admin)"
|
|
||||||
elog
|
|
||||||
elog "Razor v2 requires reporters to be registered so their reputations can"
|
|
||||||
elog "be computed over time and they can participate in the revocation"
|
|
||||||
elog "mechanism. Registration is done with razor-admin -register. It has to be"
|
|
||||||
elog "manually invoked in either of the following ways:"
|
|
||||||
elog
|
|
||||||
elog "To register user foo with 's1kr3t' as password: "
|
|
||||||
elog
|
|
||||||
elog "razor-admin -register -user=foo -pass=s1kr3t"
|
|
||||||
elog
|
|
||||||
elog "To register with an email address and have the password assigned:"
|
|
||||||
elog
|
|
||||||
elog "razor-admin -register -user=foo@bar.com "
|
|
||||||
elog
|
|
||||||
elog "To have both (random) username and password assgined: "
|
|
||||||
elog
|
|
||||||
elog "razor-admin -register "
|
|
||||||
elog
|
|
||||||
elog "razor-admin -register negotiates a registration with the Nomination Server"
|
|
||||||
elog "and writes the identity information in"
|
|
||||||
elog "/home/user/.razor/identity-username, or /etc/razor/identity-username"
|
|
||||||
elog "when invoked as root."
|
|
||||||
elog
|
|
||||||
elog "You can edit razor-agent.conf to change the defaults. Config options"
|
|
||||||
elog "and their values are defined in the razor-agent.conf(5) manpage."
|
|
||||||
elog
|
|
||||||
elog "The next step is to integrate razor-check, razor-report and"
|
|
||||||
elog "razor-revoke in your mail system. If you are running Razor v1, the"
|
|
||||||
elog "change will be transparent, new versions of razor agents will overwrite"
|
|
||||||
elog "the old ones. You would still need to plugin razor-revoke in your MUA,"
|
|
||||||
elog "since it's a new addition in Razor v2. If you are not running Razor v1,"
|
|
||||||
elog "refer to manpages of razor-check(1), razor-report(1), and"
|
|
||||||
elog "razor-revoke(1) for integration instructions."
|
|
||||||
elog
|
|
||||||
}
|
|
|
@ -1,25 +0,0 @@
|
||||||
AUX auth_conf.sub 790 BLAKE2B 28ad6e3b494396c0bd42e7ac13de9e8e3cbd553f3e78e787925e0c08b6896e479da495b94b511e739cbe31fc3ab3e6948373b566db5c9aeb3cd46cb52109ba31 SHA512 c0799a44e0fabdd4eb33c9c4a009c7abed80d5b2ab773206b11d644e54bb79004c5741fc510df77fe9856bdff979a14f1cf9a58da19fb00aaae05c623da287b3
|
|
||||||
AUX exim-4.14-tail.patch 446 BLAKE2B 62e46f052c6d958246570c40ed67819f67c4a4ee74fbfe3c82c6f8494ef98ab65089845dd89ffc01516a0c861d9003ade5e4d67476cb34185d27b99cf233dd86 SHA512 a0365b15f0a48076f9660ebc424d48f68995ac21bbf77f407bdca5103ca65758d7f2241d0151eb5c78476557e240b24a95c23d3b12cfffc1b34ab6f89f2c2110
|
|
||||||
AUX exim-4.20-maildir.patch 478 BLAKE2B 60feb354143a35631c3a71e46410e069d67cb7eab6643e6b2d4f4cfc15b497b96bb8f69a02ec67c3a6294f4d3c1da9e0787ca996f140713a19ecbcacc8ce0d4d SHA512 2c6f68e3c162a51e62ce6e391db8e79733f11bba20cc8778737650158203b88f9a77b7bbbd2a32b2cf8ae50f039b794fb0996f198acec6a50b94cad6a111f432
|
|
||||||
AUX exim-4.69-r1.27021.patch 1447 BLAKE2B d1f40f68b056ae49cd78408d3dc54a1f4fb1584fec003c68645c8a7245499ef96c1bc3af8aac57d31ee10cb0d4ff2808a50bf35bb36f17df929b2c24abed90e2 SHA512 45a5b833c698da4690485716c7c45d762a9194d5ae41514028bbad548bbd44373cf7a3a3c6a1c4f635f3f50d1695ac7ead098bf8be15cd1f691c7cc6c7f8d715
|
|
||||||
AUX exim-4.74-localscan_dlopen.patch 9280 BLAKE2B 11e1e9bd4700ba4d897cd585b751cfecbc3a9f2058961ed2ef876e42ff43d98357c35ced65e1866927e11a3d4ae2de5012456aab17f1a66ed20d10ff4054ece5 SHA512 bfd35b8fcc7b8bd50a28b2bb7865d358ed1af3978b057da1c83a0be38ba30a737d983b6b5cf829559ba8c490709d28bdb7d679eb825fe7e24798ec223bedc94e
|
|
||||||
AUX exim-4.74-radius-db-ENV-clash.patch 667 BLAKE2B 3cc03dd925333774c08484efbb5daadcebc819cc49283205960146f176d225c8952dacb891e1a1be13046bb68e6d6571a732dbbb7d78c6b1758d93f256e41509 SHA512 040bbdb2259df882569a428b7fef03f89c3685428654ac29e93360a4791bdabe66e52d33d14f0822461fac119295bd31aad5998f63d59d4af057bd26b310a568
|
|
||||||
AUX exim-4.76-crosscompile.patch 462 BLAKE2B de78322f93760cef0d5a768b8be6c723f00d5c7557da6189ffa6ee34215c41ebe8896a2457b2e6a704d05a1730eab09c8cc73e3ba3140954f9ac32423210b612 SHA512 d4fd4417c1ce727f139999c399795312cdbbb9735d0793d68f8e3150240bc53b31277cb26f9946ba549b34c661fc0a61147d376bda09aa6763cab55d80d62343
|
|
||||||
AUX exim-4.80-spool-mail-group.patch 946 BLAKE2B a3b6783b77823c5a8373623d16b85e2ba209b419b6724f307c46bf961bc5195690453208cdd40e45bc36e5a070892414c7737a97fa04e653e78050c153c59079 SHA512 24f30e9a9d90dc0f1fe8b3db26f8bc2649182b4e78110dc28a9c0f3a3feb7589f923144a4f1c54a1c46ff8cfe40826a1f2212787753be752f4d15a72d54a143b
|
|
||||||
AUX exim-4.82-makefile-freebsd.patch 1252 BLAKE2B 29c58b487850e28e0b2dfd5bbaa7e8ac341ebc00093a46a9d6b44c8d1c508629f78f646ccd3d022b2acee20d0572320f79acc21c519727f007e11e08623f4fec SHA512 fb440ad3e46b90d4c2e4826841944f4006390ccebee08154a39e46f6854be15edd7d0b028333b41451a0511f886ad3a30cb4b86e7ba8be99f12616a137f09d56
|
|
||||||
AUX exim-4.89-as-needed-ldflags.patch 6048 BLAKE2B 229dbc384c64a30f620c2965b030f6e6773efca5390ccd67a6a69b5565b0d2d536f0385d8095f92e43e1bc45ab43822efd10cb8aafe2d3cee7d21c0b330e08d1 SHA512 a0ac891c2708afdf8be339a15e6c74d27a19ac87ab63e97de71b5b5d4fab63b898018f7f0ad1dc2e22a86d71c05c1a1b250d598d7622e6172f187ac36e5c3adf
|
|
||||||
AUX exim-4.92-fix-eval-expansion-32bit.patch 1792 BLAKE2B 81ac3cc505e62c95624b8f55771d7cdce39c882cbcdd553e9cd6263417f31fe7a800dec4386cc4534609fa9b20fc493d2ae6393c8de0d09dd3b3056f3b7da501 SHA512 108e782f1483dcb2d1a34ba226d1829da78fbfb18eddd68def8e693091cf05c8e448c1bcd197fe893dc51996c434f8d9168c131e5ca67125e6362491c5aeeb77
|
|
||||||
AUX exim-4.92-localscan_dlopen.patch 9483 BLAKE2B 8fe480bbdccfa7388428fcb9aad876bcdcfc33220a529aebfca64e90c62f5a3b5ccf3477586349204f3c0be9ee3bb4d753e18cc24e759f26cf1a427d4f3e77da SHA512 7226ae2ef3d29537241f8c392dcc7522978861f8ad32ca280ec2da2f465f6dad0561ea3ad6a7606f8f6b2e7328704d464c892cd2ddaf0e132bc51f29f8003f4c
|
|
||||||
AUX exim-submission.socket 161 BLAKE2B 409a5a687897af369a6a2ff0c30564096cc6b308dbc5d0afb6742df44d2aa972e45bad9681d2cb72be9731b260d23fdadb80bae644e7b875af5e34e9c8b8b40f SHA512 4a233761793e3510e9efa5aad3a6098c41b757f13133a7ea825680f2b393aba8d7935f16bf1dd065dde884fe7ba45639a8d398333a7d9bf0a6b72f88c8f2a09d
|
|
||||||
AUX exim-submission_at.service 360 BLAKE2B 9ebcac1ab0f01a8264141843a4e711d77f634bdd910406bd466a0c197fdad8a9ff4bc31b9b28ef73c810aaff3e549eb60c0a2546507910dfc800da154eb1da00 SHA512 dc28698f15e8eaa4614ae81fc8cb76d92fed1110ce02f7a6ee8feace418dbb194711eb2d4dd444cf818628c11721e21d80b7b974879ab6ddd78cc717cce17c2f
|
|
||||||
AUX exim.confd 141 BLAKE2B bc200e6121544d17e7feb0e162b5f6a5157647c3323492218da1556a19f3a2febf89a698e157a6dc657540d2f46088a9b1e34700655c715fbeaf0c201bc4aa9f SHA512 cb5e4aa71d3f0b7945e9806064f6a3ab64cb894381654ead40c73a49ae2d1bbb3dc587919952a09b2c81b9fcf8784f73d59c12081cda96a5b7210442f5088998
|
|
||||||
AUX exim.logrotate 116 BLAKE2B c3689e95e31ccaaaca70e43ff8dbe3e69105da2266e701b57673fa90ee1cdf8c55be0fa2010ad9c10b2fba5443d6303584411bfe56198695995b5491efcfd8de SHA512 24bb8dcfadb1204c2ab0316d57de287b5092754731949390cfb3c88fa6827d45acfe1048cf9e26f615ca0449e8d780d0c98ea55ed61be9d1558755d3e53b9ec8
|
|
||||||
AUX exim.rc10 1135 BLAKE2B abc7247ee8171069f30f954d9e4275fa85f09f5488a372f9c4f7fd6cf16247dce6bd306d0a8631185cd1afb92ca8919301bf5f21aa3fcac5929a715b9abec510 SHA512 5c7cee6139145983c62df8f5ef6c401d34d2eb7eae3146c28045129ba40868ca4d3d10d4b7056887cf4d4d8a83271592f7fa0a527663f727fa8694b621eb5624
|
|
||||||
AUX exim.service 229 BLAKE2B 6d6396ef98b8e7c4fcfa28e24223bd58393387abedfb960284dfd1a297d1612deea6b77e2affeca8c5ff6f7db3eb32717893ed0dc1eaf3525e6969520e8589a3 SHA512 a071e9fb74b5fc2fdf0c73ad64ddfbc3954d8f7095d6a363dacf8c75d72a479fbf6821822ec5c8f3846d7687342e1bd447b97f91ca7b0582e5c98008aac30cca
|
|
||||||
AUX exim.socket 139 BLAKE2B bb8281a98fdac1b52031d5250fd1e658bf5a2c32e24b49ed0daa857d0d32285abf6db23c3d717992c43443ab4bcd97a19ec3811f182200a2d99a48ced6cfb6bc SHA512 db621116907ceb573e6f34581f47c91f751bff593054d7ddc32397b34c7f2405bec184bdb0589d2ac457fa3a61bcba072761e3a6293a99c9c764d2d9fd6069ae
|
|
||||||
AUX exim_at.service 140 BLAKE2B 8624f4a555e2acdc7aaf917952c4152ad00dc063a51076aefa1d023d47d5f7fe8b268f3308734f363ed9628cd8551ccac7fc369657e0fdf65507d2e6419f704c SHA512 11c8133ee15b3e5193c9b1c59aed66c81b6e045dd23310bede9fcde6c88905db5ef08afdb798b53b75a7465915ea1247e980edf95db07a7f9b7bb58ce95fbb5a
|
|
||||||
DIST exim-4.92.tar.xz 1767136 BLAKE2B 6c97578807073a782112218c65de460cc94f046d807eddc7330f2f67266c0ef341ded61050a16aca13c88e606a923a9e08033c8bfb618a7ef34b3d2ea6db32ca SHA512 62c327e6184a358ba7f0dbc38b44d2537234be91727a5bfac97e74af64a8d77e376b3221dcfdd8f6eca7d812f9233595503dc6e50e2972bed40a1b74eb209c31
|
|
||||||
DIST exim-pdf-4.92.tar.xz 2038812 BLAKE2B d5966a27f980a2ceb31293d92049a6691a08262bd20ae7315f41929f0d7a45b5d66c7000f9596b193e74d0c17f91c56a3262602047673c49649f1cad6b216547 SHA512 3a40818025fceaa7ac17f8e7ce06a61e3cf65267c821aea93e1a1a659782b047ab177b88a38c9b2271c0a296e1dc7939e23fe0f89415a11cd45693cb8af10c15
|
|
||||||
DIST system_filter.exim.gz 3075 BLAKE2B d05e872b5cef377d29126cda03fc0a74c8777b2119b76ff43da6e8de808035eb9bfcb034a85d81824f135d484e864bfc0629fc1af2c228a7277d5ee7cf9cde79 SHA512 cb358d3ce2499a0bb5920d962a06f2af8486e55ec90c8c928bd8e3aefb279aa57f5f960d5adfcef68bd94110b405eaa144e9629cfe6014a529c79c544600bbf3
|
|
||||||
EBUILD exim-4.92-r2.ebuild 13511 BLAKE2B 53836e205475bc3b2d22afb9d09d9a17a76a7308d6c2ac85d048c28b068f01a530d198f634b30b50f0d455db92bfab5982f4ae6cfeeec38dd85d1f1f202438fd SHA512 258d728ca84c1a0dc62428a6354af50bf5249e3a9299f33fe625a3345361a34d3bac6a7ff72f135a66712b805781ef994858ec0a80069d92c6af30d4504941ee
|
|
||||||
MISC metadata.xml 2457 BLAKE2B c1dcbaedd069b41c4cfb190806b44014229d53cf6d6f72e04b99dc91f223567cb4f30100792aae72658780da0579fa26e6fb8a0266565bcc0c307996d59ac3ed SHA512 9044abccd15525c7676fc218b62d9b663bd155482894eced9c0cfc8a22e8cd7353009adc75a9f3de15b14f267e6ee6b4f4c91d8bd9260931c0b9de6bf48c762f
|
|
|
@ -1,577 +0,0 @@
|
||||||
# Copyright 1999-2019 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI="6"
|
|
||||||
|
|
||||||
inherit db-use eutils toolchain-funcs multilib pam systemd
|
|
||||||
|
|
||||||
IUSE="arc dane dcc +dkim dlfunc dmarc +dnsdb doc dovecot-sasl dsn elibc_glibc exiscan-acl gnutls idn ipv6 ldap libressl lmtp maildir mbx mysql nis pam perl pkcs11 postgres +prdr proxy radius redis sasl selinux spf sqlite srs ssl syslog tcpd +tpda X"
|
|
||||||
REQUIRED_USE="
|
|
||||||
arc? ( dkim spf )
|
|
||||||
dane? ( ssl !gnutls )
|
|
||||||
dmarc? ( dkim spf )
|
|
||||||
gnutls? ( ssl )
|
|
||||||
pkcs11? ( ssl )
|
|
||||||
spf? ( exiscan-acl )
|
|
||||||
srs? ( exiscan-acl )
|
|
||||||
"
|
|
||||||
# NOTE on USE="gnutls dane", gnutls[dane] is masked in base, unmasked
|
|
||||||
# for x86 and amd64 only, due to this, repoman won't allow depending on
|
|
||||||
# gnutls[dane] for all else. Because we cannot express USE=dane when
|
|
||||||
# USE=gnutls is in effect only in package.use.mask, the only option we
|
|
||||||
# have left is to a) ignore the dependency (but that results in bug
|
|
||||||
# #661164) or b) mask the usage of USE=dane with USE=gnutls. Both are
|
|
||||||
# incorrect, but b) is the only "correct" view from repoman.
|
|
||||||
|
|
||||||
COMM_URI="https://downloads.exim.org/exim4$([[ ${PV} == *_rc* ]] && echo /test)"
|
|
||||||
|
|
||||||
DESCRIPTION="A highly configurable, drop-in replacement for sendmail"
|
|
||||||
SRC_URI="${COMM_URI}/${P//rc/RC}.tar.xz
|
|
||||||
mirror://gentoo/system_filter.exim.gz
|
|
||||||
doc? ( ${COMM_URI}/${PN}-pdf-${PV//rc/RC}.tar.xz )"
|
|
||||||
HOMEPAGE="http://www.exim.org/"
|
|
||||||
|
|
||||||
SLOT="0"
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc x86 ~x86-fbsd ~x86-solaris"
|
|
||||||
|
|
||||||
COMMON_DEPEND=">=sys-apps/sed-4.0.5
|
|
||||||
( >=sys-libs/db-3.2:= <sys-libs/db-6:= )
|
|
||||||
dev-libs/libpcre
|
|
||||||
idn? ( net-dns/libidn:= net-dns/libidn2:= )
|
|
||||||
perl? ( dev-lang/perl:= )
|
|
||||||
pam? ( virtual/pam )
|
|
||||||
tcpd? ( sys-apps/tcp-wrappers )
|
|
||||||
ssl? (
|
|
||||||
!libressl? ( dev-libs/openssl:0= )
|
|
||||||
libressl? ( dev-libs/libressl:= )
|
|
||||||
)
|
|
||||||
gnutls? (
|
|
||||||
net-libs/gnutls:0=[pkcs11?]
|
|
||||||
dev-libs/libtasn1
|
|
||||||
)
|
|
||||||
ldap? ( >=net-nds/openldap-2.0.7 )
|
|
||||||
nis? (
|
|
||||||
elibc_glibc? (
|
|
||||||
net-libs/libtirpc
|
|
||||||
>=net-libs/libnsl-1:=
|
|
||||||
)
|
|
||||||
)
|
|
||||||
mysql? ( virtual/libmysqlclient )
|
|
||||||
postgres? ( dev-db/postgresql:= )
|
|
||||||
sasl? ( >=dev-libs/cyrus-sasl-2.1.26-r2 )
|
|
||||||
redis? ( dev-libs/hiredis )
|
|
||||||
spf? ( >=mail-filter/libspf2-1.2.5-r1 )
|
|
||||||
dmarc? ( mail-filter/opendmarc )
|
|
||||||
srs? ( mail-filter/libsrs_alt )
|
|
||||||
X? (
|
|
||||||
x11-libs/libX11
|
|
||||||
x11-libs/libXmu
|
|
||||||
x11-libs/libXt
|
|
||||||
x11-libs/libXaw
|
|
||||||
)
|
|
||||||
sqlite? ( dev-db/sqlite )
|
|
||||||
radius? ( net-dialup/freeradius-client )
|
|
||||||
virtual/libiconv
|
|
||||||
elibc_glibc? ( net-libs/libnsl )
|
|
||||||
"
|
|
||||||
# added X check for #57206
|
|
||||||
DEPEND="${COMMON_DEPEND}
|
|
||||||
virtual/pkgconfig"
|
|
||||||
RDEPEND="${COMMON_DEPEND}
|
|
||||||
!mail-mta/courier
|
|
||||||
!mail-mta/esmtp
|
|
||||||
!mail-mta/mini-qmail
|
|
||||||
!<mail-mta/msmtp-1.4.19-r1
|
|
||||||
!>=mail-mta/msmtp-1.4.19-r1[mta]
|
|
||||||
!mail-mta/netqmail
|
|
||||||
!mail-mta/nullmailer
|
|
||||||
!mail-mta/postfix
|
|
||||||
!mail-mta/qmail-ldap
|
|
||||||
!mail-mta/sendmail
|
|
||||||
!mail-mta/opensmtpd
|
|
||||||
!<mail-mta/ssmtp-2.64-r2
|
|
||||||
!>=mail-mta/ssmtp-2.64-r2[mta]
|
|
||||||
!net-mail/mailwrapper
|
|
||||||
>=net-mail/mailbase-0.00-r5
|
|
||||||
virtual/logger
|
|
||||||
dcc? ( mail-filter/dcc )
|
|
||||||
selinux? ( sec-policy/selinux-exim )
|
|
||||||
"
|
|
||||||
|
|
||||||
S=${WORKDIR}/${P//rc/RC}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
epatch "${FILESDIR}"/exim-4.14-tail.patch
|
|
||||||
epatch "${FILESDIR}"/exim-4.92-localscan_dlopen.patch
|
|
||||||
epatch "${FILESDIR}"/exim-4.69-r1.27021.patch
|
|
||||||
epatch "${FILESDIR}"/exim-4.74-radius-db-ENV-clash.patch # 287426
|
|
||||||
epatch "${FILESDIR}"/exim-4.82-makefile-freebsd.patch # 235785
|
|
||||||
epatch "${FILESDIR}"/exim-4.89-as-needed-ldflags.patch # 352265, 391279
|
|
||||||
epatch "${FILESDIR}"/exim-4.76-crosscompile.patch # 266591
|
|
||||||
epatch "${FILESDIR}"/exim-4.92-fix-eval-expansion-32bit.patch #687554
|
|
||||||
|
|
||||||
if use maildir ; then
|
|
||||||
epatch "${FILESDIR}"/exim-4.20-maildir.patch
|
|
||||||
else
|
|
||||||
epatch "${FILESDIR}"/exim-4.80-spool-mail-group.patch # 438606
|
|
||||||
fi
|
|
||||||
|
|
||||||
eapply_user
|
|
||||||
|
|
||||||
# user Exim believes it should be
|
|
||||||
MAILUSER=mail
|
|
||||||
MAILGROUP=mail
|
|
||||||
if use prefix && [[ ${EUID} != 0 ]] ; then
|
|
||||||
MAILUSER=$(id -un)
|
|
||||||
MAILGROUP=$(id -gn)
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
# general config and paths
|
|
||||||
|
|
||||||
local aliases="${EPREFIX}/etc/mail/aliases"
|
|
||||||
sed -i \
|
|
||||||
-e "/SYSTEM_ALIASES_FILE/s'SYSTEM_ALIASES_FILE'${aliases}'" \
|
|
||||||
src/configure.default || die
|
|
||||||
|
|
||||||
sed -i -e 's/^buildname=.*/buildname=exim-gentoo/' Makefile || die
|
|
||||||
|
|
||||||
if use elibc_musl; then
|
|
||||||
sed -i -e 's/^LIBS = -lnsl/LIBS =/g' OS/Makefile-Linux || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
local conffile="${EPREFIX}/etc/exim/exim.conf"
|
|
||||||
sed -e "48i\CFLAGS=${CFLAGS}" \
|
|
||||||
-e "s:BIN_DIRECTORY=/usr/exim/bin:BIN_DIRECTORY=${EPREFIX}/usr/sbin:" \
|
|
||||||
-e "s:EXIM_USER=:EXIM_USER=${MAILUSER}:" \
|
|
||||||
-e "s:CONFIGURE_FILE=.*$:CONFIGURE_FILE=${conffile}:" \
|
|
||||||
-e "s:ZCAT_COMMAND=.*$:ZCAT_COMMAND=${EPREFIX}/bin/zcat:" \
|
|
||||||
-e "s:COMPRESS_COMMAND=.*$:COMPRESS_COMMAND=${EPREFIX}/bin/gzip:" \
|
|
||||||
src/EDITME > Local/Makefile || die
|
|
||||||
|
|
||||||
# work on Local/Makefile from now on
|
|
||||||
cd Local
|
|
||||||
|
|
||||||
cat >> Makefile <<- EOC
|
|
||||||
INFO_DIRECTORY=${EPREFIX}/usr/share/info
|
|
||||||
PID_FILE_PATH=${EPREFIX}/run/exim.pid
|
|
||||||
SPOOL_DIRECTORY=${EPREFIX}/var/spool/exim
|
|
||||||
HAVE_ICONV=yes
|
|
||||||
EOC
|
|
||||||
|
|
||||||
# if we use libiconv, now is the time to tell so
|
|
||||||
use !elibc_glibc && use !elibc_musl && \
|
|
||||||
echo "EXTRALIBS_EXIM=-liconv" >> Makefile
|
|
||||||
|
|
||||||
# support for IPv6
|
|
||||||
if use ipv6; then
|
|
||||||
cat >> Makefile <<- EOC
|
|
||||||
HAVE_IPV6=YES
|
|
||||||
EOC
|
|
||||||
fi
|
|
||||||
|
|
||||||
# support i18n/IDNA
|
|
||||||
if use idn; then
|
|
||||||
cat >> Makefile <<- EOC
|
|
||||||
SUPPORT_I18N=yes
|
|
||||||
SUPPORT_I18N_2008=yes
|
|
||||||
EXTRALIBS_EXIM += -lidn -lidn2
|
|
||||||
EOC
|
|
||||||
fi
|
|
||||||
|
|
||||||
#
|
|
||||||
# mail storage formats
|
|
||||||
#
|
|
||||||
|
|
||||||
# mailstore is Exim's traditional storage format
|
|
||||||
cat >> Makefile <<- EOC
|
|
||||||
SUPPORT_MAILSTORE=yes
|
|
||||||
EOC
|
|
||||||
|
|
||||||
# mbox
|
|
||||||
if use mbx; then
|
|
||||||
cat >> Makefile <<- EOC
|
|
||||||
SUPPORT_MBX=yes
|
|
||||||
EOC
|
|
||||||
fi
|
|
||||||
|
|
||||||
# maildir
|
|
||||||
if use maildir; then
|
|
||||||
cat >> Makefile <<- EOC
|
|
||||||
SUPPORT_MAILDIR=yes
|
|
||||||
EOC
|
|
||||||
fi
|
|
||||||
|
|
||||||
#
|
|
||||||
# lookup methods
|
|
||||||
|
|
||||||
# use the "native" interfaces to the DBM and CDB libraries, support
|
|
||||||
# passwd and directory lookups by default
|
|
||||||
local DB_VERS="5.3 5.1 4.8 4.7 4.6 4.5 4.4 4.3 4.2 3.2"
|
|
||||||
cat >> Makefile <<- EOC
|
|
||||||
USE_DB=yes
|
|
||||||
CFLAGS+=-I$(db_includedir ${DB_VERS})
|
|
||||||
DBMLIB=-l$(db_libname ${DB_VERS})
|
|
||||||
LOOKUP_CDB=yes
|
|
||||||
LOOKUP_PASSWD=yes
|
|
||||||
LOOKUP_DSEARCH=yes
|
|
||||||
EOC
|
|
||||||
|
|
||||||
if ! use dnsdb; then
|
|
||||||
# DNSDB lookup is enabled by default
|
|
||||||
sed -i -e 's:^LOOKUP_DNSDB=yes:# LOOKUP_DNSDB=yes:' Makefile || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use ldap; then
|
|
||||||
cat >> Makefile <<- EOC
|
|
||||||
LOOKUP_LDAP=yes
|
|
||||||
LDAP_LIB_TYPE=OPENLDAP2
|
|
||||||
LOOKUP_INCLUDE += -I"${EPREFIX}"/usr/include/ldap
|
|
||||||
LOOKUP_LIBS += -lldap -llber
|
|
||||||
EOC
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use mysql; then
|
|
||||||
cat >> Makefile <<- EOC
|
|
||||||
LOOKUP_MYSQL=yes
|
|
||||||
LOOKUP_INCLUDE += $(mysql_config --include)
|
|
||||||
LOOKUP_LIBS += $(mysql_config --libs)
|
|
||||||
EOC
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use nis; then
|
|
||||||
cat >> Makefile <<- EOC
|
|
||||||
LOOKUP_NIS=yes
|
|
||||||
LOOKUP_NISPLUS=yes
|
|
||||||
EOC
|
|
||||||
if use elibc_glibc ; then
|
|
||||||
cat >> Makefile <<- EOC
|
|
||||||
CFLAGS += -I"${EPREFIX}"/usr/include/tirpc
|
|
||||||
EOC
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use postgres; then
|
|
||||||
cat >> Makefile <<- EOC
|
|
||||||
LOOKUP_PGSQL=yes
|
|
||||||
LOOKUP_INCLUDE += -I$(pg_config --includedir)
|
|
||||||
LOOKUP_LIBS += -L$(pg_config --libdir) -lpq
|
|
||||||
EOC
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use sqlite; then
|
|
||||||
cat >> Makefile <<- EOC
|
|
||||||
LOOKUP_SQLITE=yes
|
|
||||||
LOOKUP_SQLITE_PC=sqlite3
|
|
||||||
EOC
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use redis; then
|
|
||||||
cat >> Makefile <<- EOC
|
|
||||||
LOOKUP_REDIS=yes
|
|
||||||
LOOKUP_LIBS += -lhiredis
|
|
||||||
EOC
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Exim monitor, enabled by default, controlled via X USE-flag,
|
|
||||||
# disable if not requested, bug #46778
|
|
||||||
if use X; then
|
|
||||||
cp ../exim_monitor/EDITME eximon.conf || die
|
|
||||||
else
|
|
||||||
sed -i -e '/^EXIM_MONITOR=/s/^/# /' Makefile || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
#
|
|
||||||
# features
|
|
||||||
#
|
|
||||||
|
|
||||||
# content scanning support
|
|
||||||
if use exiscan-acl; then
|
|
||||||
cat >> Makefile <<- EOC
|
|
||||||
WITH_CONTENT_SCAN=yes
|
|
||||||
EOC
|
|
||||||
fi
|
|
||||||
|
|
||||||
# DomainKeys Identified Mail, RFC4871
|
|
||||||
if ! use dkim; then
|
|
||||||
# DKIM is enabled by default
|
|
||||||
cat >> Makefile <<- EOC
|
|
||||||
DISABLE_DKIM=yes
|
|
||||||
EOC
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Per-Recipient-Data-Response
|
|
||||||
if ! use prdr; then
|
|
||||||
# PRDR is enabled by default
|
|
||||||
cat >> Makefile <<- EOC
|
|
||||||
DISABLE_PRDR=yes
|
|
||||||
EOC
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Transport post-delivery actions
|
|
||||||
if use !tpda && use !dane; then
|
|
||||||
# EVENT is enabled by default
|
|
||||||
cat >> Makefile <<- EOC
|
|
||||||
DISABLE_EVENT=yes
|
|
||||||
EOC
|
|
||||||
fi
|
|
||||||
|
|
||||||
# log to syslog
|
|
||||||
if use syslog; then
|
|
||||||
local eximlog="${EPREFIX}/var/log/exim/exim_%s.log"
|
|
||||||
sed -i \
|
|
||||||
-e "s:LOG_FILE_PATH=${eximlog}:LOG_FILE_PATH=syslog:" \
|
|
||||||
Makefile || die
|
|
||||||
cat >> Makefile <<- EOC
|
|
||||||
LOG_FILE_PATH=syslog
|
|
||||||
EOC
|
|
||||||
else
|
|
||||||
cat >> Makefile <<- EOC
|
|
||||||
LOG_FILE_PATH=${EPREFIX}/var/log/exim/exim_%s.log
|
|
||||||
EOC
|
|
||||||
fi
|
|
||||||
|
|
||||||
# starttls support (ssl)
|
|
||||||
if use ssl; then
|
|
||||||
echo "SUPPORT_TLS=yes" >> Makefile
|
|
||||||
if use gnutls; then
|
|
||||||
echo "USE_GNUTLS=yes" >> Makefile
|
|
||||||
echo "USE_GNUTLS_PC=gnutls" >> Makefile
|
|
||||||
use pkcs11 || echo "AVOID_GNUTLS_PKCS11=yes" >> Makefile
|
|
||||||
else
|
|
||||||
echo "USE_OPENSSL_PC=openssl" >> Makefile
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# TCP wrappers
|
|
||||||
if use tcpd; then
|
|
||||||
cat >> Makefile <<- EOC
|
|
||||||
USE_TCP_WRAPPERS=yes
|
|
||||||
EXTRALIBS_EXIM += -lwrap
|
|
||||||
EOC
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Light Mail Transport Protocol
|
|
||||||
if use lmtp; then
|
|
||||||
cat >> Makefile <<- EOC
|
|
||||||
TRANSPORT_LMTP=yes
|
|
||||||
EOC
|
|
||||||
fi
|
|
||||||
|
|
||||||
# embedded Perl
|
|
||||||
if use perl; then
|
|
||||||
cat >> Makefile <<- EOC
|
|
||||||
EXIM_PERL=perl.o
|
|
||||||
EOC
|
|
||||||
fi
|
|
||||||
|
|
||||||
# dlfunc
|
|
||||||
if use dlfunc; then
|
|
||||||
cat >> Makefile <<- EOC
|
|
||||||
EXPAND_DLFUNC=yes
|
|
||||||
HAVE_LOCAL_SCAN=yes
|
|
||||||
DLOPEN_LOCAL_SCAN=yes
|
|
||||||
EOC
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Proxy Protocol
|
|
||||||
if use proxy; then
|
|
||||||
cat >> Makefile <<- EOC
|
|
||||||
SUPPORT_PROXY=yes
|
|
||||||
EOC
|
|
||||||
fi
|
|
||||||
|
|
||||||
# DANE
|
|
||||||
if use dane; then
|
|
||||||
cat >> Makefile <<- EOC
|
|
||||||
SUPPORT_DANE=yes
|
|
||||||
EOC
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Sender Policy Framework
|
|
||||||
if use spf; then
|
|
||||||
cat >> Makefile <<- EOC
|
|
||||||
SUPPORT_SPF=yes
|
|
||||||
EXTRALIBS_EXIM += -lspf2
|
|
||||||
EOC
|
|
||||||
fi
|
|
||||||
|
|
||||||
#
|
|
||||||
# experimental features
|
|
||||||
#
|
|
||||||
|
|
||||||
# Authenticated Receive Chain
|
|
||||||
if use arc; then
|
|
||||||
echo "EXPERIMENTAL_ARC=yes">> Makefile
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Distributed Checksum Clearinghouse
|
|
||||||
if use dcc; then
|
|
||||||
echo "EXPERIMENTAL_DCC=yes">> Makefile
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Sender Rewriting Scheme
|
|
||||||
if use srs; then
|
|
||||||
cat >> Makefile <<- EOC
|
|
||||||
EXPERIMENTAL_SRS=yes
|
|
||||||
EXTRALIBS_EXIM += -lsrs_alt
|
|
||||||
EOC
|
|
||||||
fi
|
|
||||||
|
|
||||||
# DMARC
|
|
||||||
if use dmarc; then
|
|
||||||
cat >> Makefile <<- EOC
|
|
||||||
EXPERIMENTAL_DMARC=yes
|
|
||||||
EXTRALIBS_EXIM += -lopendmarc
|
|
||||||
EOC
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Delivery Sender Notifications extra information in fail message
|
|
||||||
if use dsn; then
|
|
||||||
cat >> Makefile <<- EOC
|
|
||||||
EXPERIMENTAL_DSN_INFO=yes
|
|
||||||
EOC
|
|
||||||
fi
|
|
||||||
|
|
||||||
#
|
|
||||||
# authentication (SMTP AUTH)
|
|
||||||
#
|
|
||||||
|
|
||||||
# standard bits
|
|
||||||
cat >> Makefile <<- EOC
|
|
||||||
AUTH_SPA=yes
|
|
||||||
AUTH_CRAM_MD5=yes
|
|
||||||
AUTH_PLAINTEXT=yes
|
|
||||||
EOC
|
|
||||||
|
|
||||||
# Cyrus SASL
|
|
||||||
if use sasl; then
|
|
||||||
cat >> Makefile <<- EOC
|
|
||||||
CYRUS_SASLAUTHD_SOCKET=${EPREFIX}/run/saslauthd/mux
|
|
||||||
AUTH_CYRUS_SASL=yes
|
|
||||||
AUTH_LIBS += -lsasl2
|
|
||||||
EOC
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Dovecot
|
|
||||||
if use dovecot-sasl; then
|
|
||||||
cat >> Makefile <<- EOC
|
|
||||||
AUTH_DOVECOT=yes
|
|
||||||
EOC
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Pluggable Authentication Modules
|
|
||||||
if use pam; then
|
|
||||||
cat >> Makefile <<- EOC
|
|
||||||
SUPPORT_PAM=yes
|
|
||||||
AUTH_LIBS += -lpam
|
|
||||||
EOC
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Radius
|
|
||||||
if use radius; then
|
|
||||||
cat >> Makefile <<- EOC
|
|
||||||
RADIUS_CONFIG_FILE=${EPREFIX}/etc/radiusclient/radiusclient.conf
|
|
||||||
RADIUS_LIB_TYPE=RADIUSCLIENTNEW
|
|
||||||
AUTH_LIBS += -lfreeradius-client
|
|
||||||
EOC
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
emake CC="$(tc-getCC)" HOSTCC="$(tc-getCC $CBUILD)" \
|
|
||||||
AR="$(tc-getAR) cq" RANLIB="$(tc-getRANLIB)" FULLECHO='' \
|
|
||||||
|| die "make failed"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install () {
|
|
||||||
cd "${S}"/build-exim-gentoo || die
|
|
||||||
dosbin exim
|
|
||||||
if use X; then
|
|
||||||
dosbin eximon.bin
|
|
||||||
dosbin eximon
|
|
||||||
fi
|
|
||||||
fperms 4755 /usr/sbin/exim
|
|
||||||
|
|
||||||
dosym exim /usr/sbin/sendmail
|
|
||||||
dosym exim /usr/sbin/rsmtp
|
|
||||||
dosym exim /usr/sbin/rmail
|
|
||||||
dosym ../sbin/exim /usr/bin/mailq
|
|
||||||
dosym ../sbin/exim /usr/bin/newaliases
|
|
||||||
dosym ../sbin/sendmail /usr/lib/sendmail
|
|
||||||
|
|
||||||
for i in exicyclog exim_dbmbuild exim_dumpdb exim_fixdb exim_lock \
|
|
||||||
exim_tidydb exinext exiwhat exigrep eximstats exiqsumm exiqgrep \
|
|
||||||
convert4r3 convert4r4 exipick
|
|
||||||
do
|
|
||||||
dosbin $i
|
|
||||||
done
|
|
||||||
|
|
||||||
dodoc "${S}"/doc/*
|
|
||||||
doman "${S}"/doc/exim.8
|
|
||||||
use dsn && dodoc "${S}"/README.DSN
|
|
||||||
use doc && dodoc "${WORKDIR}"/${PN}-pdf-${PV//rc/RC}/doc/*.pdf
|
|
||||||
|
|
||||||
# conf files
|
|
||||||
insinto /etc/exim
|
|
||||||
newins "${S}"/src/configure.default exim.conf.dist
|
|
||||||
if use exiscan-acl; then
|
|
||||||
newins "${S}"/src/configure.default exim.conf.exiscan-acl
|
|
||||||
fi
|
|
||||||
doins "${WORKDIR}"/system_filter.exim
|
|
||||||
doins "${FILESDIR}"/auth_conf.sub
|
|
||||||
|
|
||||||
pamd_mimic system-auth exim auth account
|
|
||||||
|
|
||||||
# headers, #436406
|
|
||||||
if use dlfunc ; then
|
|
||||||
# fixup includes so they actually can be found when including
|
|
||||||
sed -i \
|
|
||||||
-e '/#include "\(config\|store\|mytypes\).h"/s:"\(.\+\)":<exim/\1>:' \
|
|
||||||
local_scan.h || die
|
|
||||||
insinto /usr/include/exim
|
|
||||||
doins {config,local_scan}.h ../src/{mytypes,store}.h
|
|
||||||
fi
|
|
||||||
|
|
||||||
insinto /etc/logrotate.d
|
|
||||||
newins "${FILESDIR}/exim.logrotate" exim
|
|
||||||
|
|
||||||
newinitd "${FILESDIR}"/exim.rc10 exim
|
|
||||||
newconfd "${FILESDIR}"/exim.confd exim
|
|
||||||
|
|
||||||
systemd_dounit \
|
|
||||||
"${FILESDIR}"/{exim.service,exim.socket,exim-submission.socket}
|
|
||||||
systemd_newunit \
|
|
||||||
"${FILESDIR}"/exim_at.service 'exim@.service'
|
|
||||||
systemd_newunit \
|
|
||||||
"${FILESDIR}"/exim-submission_at.service 'exim-submission@.service'
|
|
||||||
|
|
||||||
diropts -m 0750 -o ${MAILUSER} -g ${MAILGROUP}
|
|
||||||
keepdir /var/log/${PN}
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
if [[ ! -f ${EROOT}etc/exim/exim.conf ]] ; then
|
|
||||||
einfo "${EROOT}etc/exim/system_filter.exim is a sample system_filter."
|
|
||||||
einfo "${EROOT}etc/exim/auth_conf.sub contains the configuration sub"
|
|
||||||
einfo "for using smtp auth."
|
|
||||||
einfo "Please create ${EROOT}etc/exim/exim.conf from"
|
|
||||||
einfo " ${EROOT}etc/exim/exim.conf.dist."
|
|
||||||
fi
|
|
||||||
if use dcc ; then
|
|
||||||
einfo "DCC support is experimental, you can find some limited"
|
|
||||||
einfo "documentation at the bottom of this prerelease message:"
|
|
||||||
einfo "http://article.gmane.org/gmane.mail.exim.devel/3579"
|
|
||||||
fi
|
|
||||||
use srs && einfo "SRS support is experimental"
|
|
||||||
if use dmarc ; then
|
|
||||||
einfo "DMARC support is experimental. See global settings to"
|
|
||||||
einfo "configure DMARC, for usage see the documentation at "
|
|
||||||
einfo "experimental-spec.txt."
|
|
||||||
fi
|
|
||||||
use dsn && einfo "extra information in fail DSN message is experimental"
|
|
||||||
elog "The obsolete acl condition 'demime' is removed, the replacements"
|
|
||||||
elog "are the ACLs acl_smtp_mime and acl_not_smtp_mime"
|
|
||||||
}
|
|
|
@ -1,25 +0,0 @@
|
||||||
######################################################################
|
|
||||||
# AUTHENTICATION CONFIGURATION #
|
|
||||||
######################################################################
|
|
||||||
# If you're using PAM to authenticate, lifes real simple.
|
|
||||||
# This plain directive works for nearly everything except windows MUA's the
|
|
||||||
# login directive will allow you to authenticate your Outlook 2000 and
|
|
||||||
# outlook express clients.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
plain:
|
|
||||||
driver = plaintext
|
|
||||||
public_name = PLAIN
|
|
||||||
server_condition = "${if pam{$2:$3}{1}{0}}"
|
|
||||||
server_set_id = $2
|
|
||||||
|
|
||||||
login:
|
|
||||||
driver = plaintext
|
|
||||||
public_name = LOGIN
|
|
||||||
server_prompts = "Username:: : Password::"
|
|
||||||
server_condition = "${if pam{$1:${sg{$2}{:}{::}}}{1}{0}}"
|
|
||||||
server_set_id = $1
|
|
||||||
#
|
|
||||||
# FIXME
|
|
||||||
# Need to add authenticator for SPA!!
|
|
|
@ -1,11 +0,0 @@
|
||||||
--- scripts/Configure-config.h.orig 2003-07-17 18:01:19.000000000 -0400
|
|
||||||
+++ scripts/Configure-config.h 2003-07-17 18:01:25.000000000 -0400
|
|
||||||
@@ -41,7 +41,7 @@
|
|
||||||
|
|
||||||
# Double-check that config.h is complete.
|
|
||||||
|
|
||||||
-if [ "`tail -1 config.h`" != "/* End of config.h */" ] ; then
|
|
||||||
+if [ "`tail -n 1 config.h`" != "/* End of config.h */" ] ; then
|
|
||||||
echo "*** config.h appears to be incomplete"
|
|
||||||
echo "*** unexpected failure in buildconfig program"
|
|
||||||
exit 1
|
|
|
@ -1,14 +0,0 @@
|
||||||
diff -urN ./exim-4.20.orig/src/configure.default exim-4.20/src/configure.default
|
|
||||||
--- ./exim-4.20.orig/src/configure.default 2003-06-27 16:48:22.000000000 -0700
|
|
||||||
+++ exim-4.20/src/configure.default 2003-06-27 16:52:20.000000000 -0700
|
|
||||||
@@ -451,7 +451,9 @@
|
|
||||||
|
|
||||||
local_delivery:
|
|
||||||
driver = appendfile
|
|
||||||
- file = /var/mail/$local_part
|
|
||||||
+# file = /var/mail/$local_part
|
|
||||||
+ directory = /home/$local_part/.maildir
|
|
||||||
+ maildir_format
|
|
||||||
delivery_date_add
|
|
||||||
envelope_to_add
|
|
||||||
return_path_add
|
|
|
@ -1,48 +0,0 @@
|
||||||
diff -urN exim-4.69.orig/src/configure.default exim-4.69/src/configure.default
|
|
||||||
--- exim-4.69.orig/src/configure.default 2008-05-05 10:17:44.000000000 +0100
|
|
||||||
+++ exim-4.69/src/configure.default 2008-05-05 10:18:26.000000000 +0100
|
|
||||||
@@ -592,6 +592,22 @@
|
|
||||||
pipe_transport = address_pipe
|
|
||||||
reply_transport = address_reply
|
|
||||||
|
|
||||||
+# This router runs procmail if users have a .procmailrc file
|
|
||||||
+procmail:
|
|
||||||
+ check_local_user
|
|
||||||
+ driver = accept
|
|
||||||
+ transport = procmail_pipe
|
|
||||||
+ require_files = ${local_part}:+${home}:+${home}/.procmailrc:+/usr/bin/procmail
|
|
||||||
+ no_verify
|
|
||||||
+
|
|
||||||
+# This router runs maildrop if users have a .mailfilter file
|
|
||||||
+maildrop:
|
|
||||||
+ check_local_user
|
|
||||||
+ driver = accept
|
|
||||||
+ transport = maildrop_pipe
|
|
||||||
+ require_files = ${local_part}:+${home}:+${home}/.mailfilter:+/usr/bin/maildrop
|
|
||||||
+ no_verify
|
|
||||||
+
|
|
||||||
|
|
||||||
# This router matches local user mailboxes. If the router fails, the error
|
|
||||||
# message is "Unknown user".
|
|
||||||
@@ -676,6 +692,21 @@
|
|
||||||
address_reply:
|
|
||||||
driver = autoreply
|
|
||||||
|
|
||||||
+# This transport is used for procmail
|
|
||||||
+procmail_pipe:
|
|
||||||
+ driver = pipe
|
|
||||||
+ command = "/usr/bin/procmail -d ${local_part}"
|
|
||||||
+ return_path_add
|
|
||||||
+ delivery_date_add
|
|
||||||
+ envelope_to_add
|
|
||||||
+
|
|
||||||
+# This transport is used for courier-maildrop filtering (Maildir filter system)
|
|
||||||
+maildrop_pipe:
|
|
||||||
+ driver = pipe
|
|
||||||
+ command = "/usr/bin/maildrop -d ${local_part}"
|
|
||||||
+ return_path_add
|
|
||||||
+ delivery_date_add
|
|
||||||
+ envelope_to_add
|
|
||||||
|
|
||||||
|
|
||||||
######################################################################
|
|
|
@ -1,262 +0,0 @@
|
||||||
diff -Naur exim-4.32/src/EDITME exim-4.32-dlopen/src/EDITME
|
|
||||||
--- src/EDITME 2004-04-15 08:27:01.000000000 +0000
|
|
||||||
+++ src/EDITME 2004-05-06 16:15:47.000000000 +0000
|
|
||||||
@@ -505,6 +505,24 @@
|
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
+# On systems which support dynamic loading of shared libraries, Exim can
|
|
||||||
+# load a local_scan function specified in its config file instead of having
|
|
||||||
+# to be recompiled with the desired local_scan function. For a full
|
|
||||||
+# description of the API to this function, see the Exim specification.
|
|
||||||
+
|
|
||||||
+DLOPEN_LOCAL_SCAN=yes
|
|
||||||
+
|
|
||||||
+# If you set DLOPEN_LOCAL_SCAN, then you need to include -rdynamic in the
|
|
||||||
+# linker flags. Without it, the loaded .so won't be able to access any
|
|
||||||
+# functions from exim.
|
|
||||||
+
|
|
||||||
+LFLAGS = -rdynamic
|
|
||||||
+ifeq ($(OSTYPE),Linux)
|
|
||||||
+LFLAGS += -ldl
|
|
||||||
+endif
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+#------------------------------------------------------------------------------
|
|
||||||
# The default distribution of Exim contains only the plain text form of the
|
|
||||||
# documentation. Other forms are available separately. If you want to install
|
|
||||||
# the documentation in "info" format, first fetch the Texinfo documentation
|
|
||||||
diff -Naur exim-4.32/src/config.h.defaults exim-4.32-dlopen/src/config.h.defaults
|
|
||||||
--- src/config.h.defaults 2004-04-15 08:27:01.000000000 +0000
|
|
||||||
+++ src/config.h.defaults 2004-05-06 16:16:30.000000000 +0000
|
|
||||||
@@ -20,6 +20,8 @@
|
|
||||||
#define AUTH_PLAINTEXT
|
|
||||||
#define AUTH_SPA
|
|
||||||
|
|
||||||
+#define DLOPEN_LOCAL_SCAN
|
|
||||||
+
|
|
||||||
#define BIN_DIRECTORY
|
|
||||||
|
|
||||||
#define CONFIGURE_FILE
|
|
||||||
diff -Naur exim-4.32/src/globals.c exim-4.32-dlopen/src/globals.c
|
|
||||||
--- src/globals.c 2004-04-15 08:27:01.000000000 +0000
|
|
||||||
+++ src/globals.c 2004-05-06 16:17:07.000000000 +0000
|
|
||||||
@@ -109,6 +109,10 @@
|
|
||||||
uschar *tls_verify_hosts = NULL;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
+#ifdef DLOPEN_LOCAL_SCAN
|
|
||||||
+uschar *local_scan_path = NULL;
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
|
|
||||||
/* Input-reading functions for messages, so we can use special ones for
|
|
||||||
incoming TCP/IP. The defaults use stdin. We never need these for any
|
|
||||||
diff -Naur exim-4.32/src/globals.h exim-4.32-dlopen/src/globals.h
|
|
||||||
--- src/globals.h 2004-04-15 08:27:01.000000000 +0000
|
|
||||||
+++ src/globals.h 2004-05-06 16:17:50.000000000 +0000
|
|
||||||
@@ -73,6 +73,9 @@
|
|
||||||
extern uschar *tls_verify_hosts; /* Mandatory client verification */
|
|
||||||
#endif
|
|
||||||
|
|
||||||
+#ifdef DLOPEN_LOCAL_SCAN
|
|
||||||
+extern uschar *local_scan_path; /* Path to local_scan() library */
|
|
||||||
+#endif
|
|
||||||
|
|
||||||
/* Input-reading functions for messages, so we can use special ones for
|
|
||||||
incoming TCP/IP. */
|
|
||||||
diff -Naur exim-4.32/src/local_scan.c exim-4.32-dlopen/src/local_scan.c
|
|
||||||
--- src/local_scan.c 2004-04-15 08:27:01.000000000 +0000
|
|
||||||
+++ src/local_scan.c 2004-05-06 16:21:57.000000000 +0000
|
|
||||||
@@ -5,60 +5,131 @@
|
|
||||||
/* Copyright (c) University of Cambridge 1995 - 2004 */
|
|
||||||
/* See the file NOTICE for conditions of use and distribution. */
|
|
||||||
|
|
||||||
+#include "exim.h"
|
|
||||||
|
|
||||||
-/******************************************************************************
|
|
||||||
-This file contains a template local_scan() function that just returns ACCEPT.
|
|
||||||
-If you want to implement your own version, you should copy this file to, say
|
|
||||||
-Local/local_scan.c, and edit the copy. To use your version instead of the
|
|
||||||
-default, you must set
|
|
||||||
-
|
|
||||||
-LOCAL_SCAN_SOURCE=Local/local_scan.c
|
|
||||||
-
|
|
||||||
-in your Local/Makefile. This makes it easy to copy your version for use with
|
|
||||||
-subsequent Exim releases.
|
|
||||||
-
|
|
||||||
-For a full description of the API to this function, see the Exim specification.
|
|
||||||
-******************************************************************************/
|
|
||||||
-
|
|
||||||
-
|
|
||||||
-/* This is the only Exim header that you should include. The effect of
|
|
||||||
-including any other Exim header is not defined, and may change from release to
|
|
||||||
-release. Use only the documented interface! */
|
|
||||||
-
|
|
||||||
-#include "local_scan.h"
|
|
||||||
-
|
|
||||||
-
|
|
||||||
-/* This is a "do-nothing" version of a local_scan() function. The arguments
|
|
||||||
-are:
|
|
||||||
-
|
|
||||||
- fd The file descriptor of the open -D file, which contains the
|
|
||||||
- body of the message. The file is open for reading and
|
|
||||||
- writing, but modifying it is dangerous and not recommended.
|
|
||||||
-
|
|
||||||
- return_text A pointer to an unsigned char* variable which you can set in
|
|
||||||
- order to return a text string. It is initialized to NULL.
|
|
||||||
-
|
|
||||||
-The return values of this function are:
|
|
||||||
-
|
|
||||||
- LOCAL_SCAN_ACCEPT
|
|
||||||
- The message is to be accepted. The return_text argument is
|
|
||||||
- saved in $local_scan_data.
|
|
||||||
-
|
|
||||||
- LOCAL_SCAN_REJECT
|
|
||||||
- The message is to be rejected. The returned text is used
|
|
||||||
- in the rejection message.
|
|
||||||
-
|
|
||||||
- LOCAL_SCAN_TEMPREJECT
|
|
||||||
- This specifies a temporary rejection. The returned text
|
|
||||||
- is used in the rejection message.
|
|
||||||
-*/
|
|
||||||
+#ifdef DLOPEN_LOCAL_SCAN
|
|
||||||
+#include <dlfcn.h>
|
|
||||||
+static int (*local_scan_fn)(int fd, uschar **return_text) = NULL;
|
|
||||||
+static int load_local_scan_library(void);
|
|
||||||
+#endif
|
|
||||||
|
|
||||||
int
|
|
||||||
local_scan(int fd, uschar **return_text)
|
|
||||||
{
|
|
||||||
fd = fd; /* Keep picky compilers happy */
|
|
||||||
return_text = return_text;
|
|
||||||
-return LOCAL_SCAN_ACCEPT;
|
|
||||||
+#ifdef DLOPEN_LOCAL_SCAN
|
|
||||||
+/* local_scan_path is defined AND not the empty string */
|
|
||||||
+if (local_scan_path && *local_scan_path)
|
|
||||||
+ {
|
|
||||||
+ if (!local_scan_fn)
|
|
||||||
+ {
|
|
||||||
+ if (!load_local_scan_library())
|
|
||||||
+ {
|
|
||||||
+ char *base_msg , *error_msg , *final_msg ;
|
|
||||||
+ int final_length = -1 ;
|
|
||||||
+
|
|
||||||
+ base_msg=US"Local configuration error - local_scan() library failure\n";
|
|
||||||
+ error_msg = dlerror() ;
|
|
||||||
+
|
|
||||||
+ final_length = strlen(base_msg) + strlen(error_msg) + 1 ;
|
|
||||||
+ final_msg = (char*)malloc( final_length*sizeof(char) ) ;
|
|
||||||
+ *final_msg = '\0' ;
|
|
||||||
+
|
|
||||||
+ strcat( final_msg , base_msg ) ;
|
|
||||||
+ strcat( final_msg , error_msg ) ;
|
|
||||||
+
|
|
||||||
+ *return_text = final_msg ;
|
|
||||||
+ return LOCAL_SCAN_TEMPREJECT;
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+ return local_scan_fn(fd, return_text);
|
|
||||||
+ }
|
|
||||||
+else
|
|
||||||
+#endif
|
|
||||||
+ return LOCAL_SCAN_ACCEPT;
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+#ifdef DLOPEN_LOCAL_SCAN
|
|
||||||
+
|
|
||||||
+static int load_local_scan_library(void)
|
|
||||||
+{
|
|
||||||
+/* No point in keeping local_scan_lib since we'll never dlclose() anyway */
|
|
||||||
+void *local_scan_lib = NULL;
|
|
||||||
+int (*local_scan_version_fn)(void);
|
|
||||||
+int vers_maj;
|
|
||||||
+int vers_min;
|
|
||||||
+
|
|
||||||
+local_scan_lib = dlopen(local_scan_path, RTLD_NOW);
|
|
||||||
+if (!local_scan_lib)
|
|
||||||
+ {
|
|
||||||
+ log_write(0, LOG_MAIN|LOG_REJECT, "local_scan() library open failed - "
|
|
||||||
+ "message temporarily rejected");
|
|
||||||
+ return FALSE;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+local_scan_version_fn = dlsym(local_scan_lib, "local_scan_version_major");
|
|
||||||
+if (!local_scan_version_fn)
|
|
||||||
+ {
|
|
||||||
+ dlclose(local_scan_lib);
|
|
||||||
+ log_write(0, LOG_MAIN|LOG_REJECT, "local_scan() library doesn't contain "
|
|
||||||
+ "local_scan_version_major() function - message temporarily rejected");
|
|
||||||
+ return FALSE;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+/* The major number is increased when the ABI is changed in a non
|
|
||||||
+ backward compatible way. */
|
|
||||||
+vers_maj = local_scan_version_fn();
|
|
||||||
+
|
|
||||||
+local_scan_version_fn = dlsym(local_scan_lib, "local_scan_version_minor");
|
|
||||||
+if (!local_scan_version_fn)
|
|
||||||
+ {
|
|
||||||
+ dlclose(local_scan_lib);
|
|
||||||
+ log_write(0, LOG_MAIN|LOG_REJECT, "local_scan() library doesn't contain "
|
|
||||||
+ "local_scan_version_minor() function - message temporarily rejected");
|
|
||||||
+ return FALSE;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+/* The minor number is increased each time a new feature is added (in a
|
|
||||||
+ way that doesn't break backward compatibility) -- Marc */
|
|
||||||
+vers_min = local_scan_version_fn();
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+if (vers_maj != LOCAL_SCAN_ABI_VERSION_MAJOR)
|
|
||||||
+ {
|
|
||||||
+ dlclose(local_scan_lib);
|
|
||||||
+ local_scan_lib = NULL;
|
|
||||||
+ log_write(0, LOG_MAIN|LOG_REJECT, "local_scan() has an incompatible major"
|
|
||||||
+ "version number, you need to recompile your module for this version"
|
|
||||||
+ "of exim (The module was compiled for version %d.%d and this exim provides"
|
|
||||||
+ "ABI version %d.%d)", vers_maj, vers_min, LOCAL_SCAN_ABI_VERSION_MAJOR,
|
|
||||||
+ LOCAL_SCAN_ABI_VERSION_MINOR);
|
|
||||||
+ return FALSE;
|
|
||||||
+ }
|
|
||||||
+else if (vers_min > LOCAL_SCAN_ABI_VERSION_MINOR)
|
|
||||||
+ {
|
|
||||||
+ dlclose(local_scan_lib);
|
|
||||||
+ local_scan_lib = NULL;
|
|
||||||
+ log_write(0, LOG_MAIN|LOG_REJECT, "local_scan() has an incompatible minor"
|
|
||||||
+ "version number, you need to recompile your module for this version"
|
|
||||||
+ "of exim (The module was compiled for version %d.%d and this exim provides"
|
|
||||||
+ "ABI version %d.%d)", vers_maj, vers_min, LOCAL_SCAN_ABI_VERSION_MAJOR,
|
|
||||||
+ LOCAL_SCAN_ABI_VERSION_MINOR);
|
|
||||||
+ return FALSE;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+local_scan_fn = dlsym(local_scan_lib, "local_scan");
|
|
||||||
+if (!local_scan_fn)
|
|
||||||
+ {
|
|
||||||
+ dlclose(local_scan_lib);
|
|
||||||
+ log_write(0, LOG_MAIN|LOG_REJECT, "local_scan() library doesn't contain "
|
|
||||||
+ "local_scan() function - message temporarily rejected");
|
|
||||||
+ return FALSE;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
+#endif /* DLOPEN_LOCAL_SCAN */
|
|
||||||
+
|
|
||||||
/* End of local_scan.c */
|
|
||||||
diff -Naur exim-4.32/src/readconf.c exim-4.32-dlopen/src/readconf.c
|
|
||||||
--- src/readconf.c 2004-04-15 08:27:01.000000000 +0000
|
|
||||||
+++ src/readconf.c 2004-05-06 16:23:12.000000000 +0000
|
|
||||||
@@ -223,6 +223,9 @@
|
|
||||||
{ "local_from_prefix", opt_stringptr, &local_from_prefix },
|
|
||||||
{ "local_from_suffix", opt_stringptr, &local_from_suffix },
|
|
||||||
{ "local_interfaces", opt_stringptr, &local_interfaces },
|
|
||||||
+#ifdef DLOPEN_LOCAL_SCAN
|
|
||||||
+ { "local_scan_path", opt_stringptr, &local_scan_path },
|
|
||||||
+#endif
|
|
||||||
{ "local_scan_timeout", opt_time, &local_scan_timeout },
|
|
||||||
{ "local_sender_retain", opt_bool, &local_sender_retain },
|
|
||||||
{ "localhost_number", opt_stringptr, &host_number_string },
|
|
|
@ -1,22 +0,0 @@
|
||||||
Nasty workaround for
|
|
||||||
http://bugs.gentoo.org/show_bug.cgi?id=287426
|
|
||||||
|
|
||||||
--- src/auths/call_radius.c
|
|
||||||
+++ src/auths/call_radius.c
|
|
||||||
@@ -10,6 +10,16 @@
|
|
||||||
/* This file was originally supplied by Ian Kirk. The libradius support came
|
|
||||||
from Alex Kiernan. */
|
|
||||||
|
|
||||||
+/* ugly hack to work around redefinition of ENV by radiusclient.h and
|
|
||||||
+ * db.h: define _DB_H_ so the db.h include thinks it's already included,
|
|
||||||
+ * we can get away with it like this, since this file doesn't use any db
|
|
||||||
+ * functions. */
|
|
||||||
+#ifndef _DB_H_
|
|
||||||
+#define _DB_H_ 1
|
|
||||||
+#define _DB_EXT_PROT_IN_ 1
|
|
||||||
+#define DB void
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
#include "../exim.h"
|
|
||||||
|
|
||||||
/* This module contains functions that call the Radius authentication
|
|
|
@ -1,15 +0,0 @@
|
||||||
https://bugs.gentoo.org/show_bug.cgi?id=266591
|
|
||||||
|
|
||||||
--- OS/Makefile-Base
|
|
||||||
+++ OS/Makefile-Base
|
|
||||||
@@ -114,8 +114,8 @@
|
|
||||||
|
|
||||||
# Targets for special-purpose configuration header builders
|
|
||||||
buildconfig: buildconfig.c
|
|
||||||
- @echo "$(CC) buildconfig.c"
|
|
||||||
- $(FE)$(CC) $(CFLAGS) $(INCLUDE) -o buildconfig buildconfig.c $(LIBS)
|
|
||||||
+ @echo "$(HOSTCC) buildconfig.c"
|
|
||||||
+ $(FE)$(HOSTCC) $(HOSTCFLAGS) $(INCLUDE) -o buildconfig buildconfig.c $(LIBS)
|
|
||||||
|
|
||||||
|
|
||||||
# Target for the exicyclog utility script
|
|
|
@ -1,27 +0,0 @@
|
||||||
Change default such that we run on a stock Gentoo system. Bug #438606
|
|
||||||
|
|
||||||
--- src/configure.default
|
|
||||||
+++ src/configure.default
|
|
||||||
@@ -674,8 +674,9 @@
|
|
||||||
# BSD mailbox format. By default it will be run under the uid and gid of the
|
|
||||||
# local user, and requires the sticky bit to be set on the /var/mail directory.
|
|
||||||
# Some systems use the alternative approach of running mail deliveries under a
|
|
||||||
-# particular group instead of using the sticky bit. The commented options below
|
|
||||||
-# show how this can be done.
|
|
||||||
+# particular group instead of using the sticky bit. This is also the
|
|
||||||
+# default case on Gentoo, therefore group and mode are set below.
|
|
||||||
+# Comment them out, to get the default behaviour.
|
|
||||||
|
|
||||||
local_delivery:
|
|
||||||
driver = appendfile
|
|
||||||
@@ -683,8 +684,8 @@
|
|
||||||
delivery_date_add
|
|
||||||
envelope_to_add
|
|
||||||
return_path_add
|
|
||||||
-# group = mail
|
|
||||||
-# mode = 0660
|
|
||||||
+ group = mail
|
|
||||||
+ mode = 0660
|
|
||||||
|
|
||||||
|
|
||||||
# This transport is used for handling pipe deliveries generated by alias or
|
|
|
@ -1,45 +0,0 @@
|
||||||
--- OS/Makefile-FreeBSD.orig 2013-09-30 19:59:09.000000000 +0200
|
|
||||||
+++ OS/Makefile-FreeBSD 2013-09-30 20:01:22.000000000 +0200
|
|
||||||
@@ -1,10 +1,8 @@
|
|
||||||
-# Exim: OS-specific make file for FreeBSD
|
|
||||||
-# There's no setting of CFLAGS here, to allow the system default
|
|
||||||
-# for "make" to be the default.
|
|
||||||
-
|
|
||||||
-CHOWN_COMMAND=/usr/sbin/chown
|
|
||||||
-STRIP_COMMAND=/usr/bin/strip
|
|
||||||
-CHMOD_COMMAND=/bin/chmod
|
|
||||||
+# Exim: OS-specific FreeBSD make file, modified for Gentoo Prefix
|
|
||||||
+
|
|
||||||
+CHOWN_COMMAND=look_for_it
|
|
||||||
+STRIP_COMMAND=
|
|
||||||
+CHMOD_COMMAND=look_for_it
|
|
||||||
|
|
||||||
HAVE_SA_LEN=YES
|
|
||||||
|
|
||||||
@@ -15,17 +13,9 @@
|
|
||||||
CFLAGS_DYNAMIC=-shared -rdynamic -fPIC
|
|
||||||
|
|
||||||
# FreeBSD always ships with Berkeley DB
|
|
||||||
+DBMLIB = -ldb
|
|
||||||
USE_DB=yes
|
|
||||||
|
|
||||||
-# This code for building outside ports suggested by Richard Clayton
|
|
||||||
-.ifdef X11BASE
|
|
||||||
-X11=${X11BASE}
|
|
||||||
-.elifdef LOCALBASE
|
|
||||||
-X11=$(LOCALBASE)
|
|
||||||
-.else
|
|
||||||
-X11=/usr/local
|
|
||||||
-.endif
|
|
||||||
-
|
|
||||||
# nb: FreeBSD is entirely elf; objformat was removed prior to FreeBSD 7
|
|
||||||
# http://www.freebsd.org/cgi/cvsweb.cgi/src/usr.bin/objformat/Attic/objformat.c
|
|
||||||
# deleted Jan 2007.
|
|
||||||
@@ -37,6 +27,7 @@
|
|
||||||
# switch to default to ELF came with FreeBSD 3. elf(5) claims ELF support
|
|
||||||
# introduced in FreeBSD 2.2.6.
|
|
||||||
#
|
|
||||||
+X11=/usr/X11R6
|
|
||||||
XINCLUDE=-I$(X11)/include
|
|
||||||
XLFLAGS=-L$(X11)/lib -Wl,-rpath,${X11}/lib
|
|
||||||
X11_LD_LIB=$(X11)/lib
|
|
|
@ -1,145 +0,0 @@
|
||||||
https://bugs.gentoo.org/show_bug.cgi?id=352265
|
|
||||||
|
|
||||||
Make sure LDFLAGS comes first, such that all libraries are considered,
|
|
||||||
and not discarded when --as-needed is in effect.
|
|
||||||
|
|
||||||
https://bugs.gentoo.org/show_bug.cgi?id=391279
|
|
||||||
|
|
||||||
Use LDFLAGS for all targets, not just the exim binary, such that
|
|
||||||
--as-needed works as well.
|
|
||||||
|
|
||||||
|
|
||||||
--- OS/Makefile-Base
|
|
||||||
+++ OS/Makefile-Base
|
|
||||||
@@ -346,12 +346,12 @@
|
|
||||||
buildrouters buildtransports \
|
|
||||||
$(OBJ_EXIM) version.o
|
|
||||||
@echo "$(LNCC) -o exim"
|
|
||||||
- $(FE)$(PURIFY) $(LNCC) -o exim $(LFLAGS) $(OBJ_EXIM) version.o \
|
|
||||||
+ $(FE)$(PURIFY) $(LNCC) -o exim $(LDFLAGS) $(OBJ_EXIM) version.o \
|
|
||||||
routers/routers.a transports/transports.a lookups/lookups.a \
|
|
||||||
auths/auths.a pdkim/pdkim.a \
|
|
||||||
$(LIBRESOLV) $(LIBS) $(LIBS_EXIM) $(IPV6_LIBS) $(EXTRALIBS) \
|
|
||||||
$(EXTRALIBS_EXIM) $(DBMLIB) $(LOOKUP_LIBS) $(AUTH_LIBS) \
|
|
||||||
- $(PERL_LIBS) $(TLS_LIBS) $(PCRE_LIBS) $(LDFLAGS)
|
|
||||||
+ $(PERL_LIBS) $(TLS_LIBS) $(PCRE_LIBS) $(LFLAGS)
|
|
||||||
@if [ x"$(STRIP_COMMAND)" != x"" ]; then \
|
|
||||||
echo $(STRIP_COMMAND) exim; \
|
|
||||||
$(STRIP_COMMAND) exim; \
|
|
||||||
@@ -367,8 +367,8 @@
|
|
||||||
|
|
||||||
exim_dumpdb: $(OBJ_DUMPDB)
|
|
||||||
@echo "$(LNCC) -o exim_dumpdb"
|
|
||||||
- $(FE)$(LNCC) $(CFLAGS) $(INCLUDE) -o exim_dumpdb $(LFLAGS) $(OBJ_DUMPDB) \
|
|
||||||
- $(LIBS) $(EXTRALIBS) $(DBMLIB)
|
|
||||||
+ $(FE)$(LNCC) $(CFLAGS) $(INCLUDE) -o exim_dumpdb $(LDFLAGS) $(OBJ_DUMPDB) \
|
|
||||||
+ $(LIBS) $(EXTRALIBS) $(DBMLIB) $(LFLAGS)
|
|
||||||
@if [ x"$(STRIP_COMMAND)" != x"" ]; then \
|
|
||||||
echo $(STRIP_COMMAND) exim_dumpdb; \
|
|
||||||
$(STRIP_COMMAND) exim_dumpdb; \
|
|
||||||
@@ -382,8 +382,8 @@
|
|
||||||
|
|
||||||
exim_fixdb: $(OBJ_FIXDB) buildauths
|
|
||||||
@echo "$(LNCC) -o exim_fixdb"
|
|
||||||
- $(FE)$(LNCC) $(CFLAGS) $(INCLUDE) -o exim_fixdb $(LFLAGS) $(OBJ_FIXDB) \
|
|
||||||
- auths/auths.a $(LIBS) $(EXTRALIBS) $(DBMLIB)
|
|
||||||
+ $(FE)$(LNCC) $(CFLAGS) $(INCLUDE) -o exim_fixdb $(LDFLAGS) $(OBJ_FIXDB) \
|
|
||||||
+ auths/auths.a $(LIBS) $(EXTRALIBS) $(DBMLIB) $(LFLAGS)
|
|
||||||
@if [ x"$(STRIP_COMMAND)" != x"" ]; then \
|
|
||||||
echo $(STRIP_COMMAND) exim_fixdb; \
|
|
||||||
$(STRIP_COMMAND) exim_fixdb; \
|
|
||||||
@@ -397,8 +397,8 @@
|
|
||||||
|
|
||||||
exim_tidydb: $(OBJ_TIDYDB)
|
|
||||||
@echo "$(LNCC) -o exim_tidydb"
|
|
||||||
- $(FE)$(LNCC) $(CFLAGS) $(INCLUDE) -o exim_tidydb $(LFLAGS) $(OBJ_TIDYDB) \
|
|
||||||
- $(LIBS) $(EXTRALIBS) $(DBMLIB)
|
|
||||||
+ $(FE)$(LNCC) $(CFLAGS) $(INCLUDE) -o exim_tidydb $(LDFLAGS) $(OBJ_TIDYDB) \
|
|
||||||
+ $(LIBS) $(EXTRALIBS) $(DBMLIB) $(LFLAGS)
|
|
||||||
@if [ x"$(STRIP_COMMAND)" != x"" ]; then \
|
|
||||||
echo $(STRIP_COMMAND) exim_tidydb; \
|
|
||||||
$(STRIP_COMMAND) exim_tidydb; \
|
|
||||||
@@ -410,8 +410,8 @@
|
|
||||||
|
|
||||||
exim_dbmbuild: exim_dbmbuild.o
|
|
||||||
@echo "$(LNCC) -o exim_dbmbuild"
|
|
||||||
- $(FE)$(LNCC) $(CFLAGS) $(INCLUDE) -o exim_dbmbuild $(LFLAGS) exim_dbmbuild.o \
|
|
||||||
- $(LIBS) $(EXTRALIBS) $(DBMLIB)
|
|
||||||
+ $(FE)$(LNCC) $(CFLAGS) $(INCLUDE) -o exim_dbmbuild $(LDFLAGS) exim_dbmbuild.o \
|
|
||||||
+ $(LIBS) $(EXTRALIBS) $(DBMLIB) $(LFLAGS)
|
|
||||||
@if [ x"$(STRIP_COMMAND)" != x"" ]; then \
|
|
||||||
echo $(STRIP_COMMAND) exim_dbmbuild; \
|
|
||||||
$(STRIP_COMMAND) exim_dbmbuild; \
|
|
||||||
@@ -425,8 +425,8 @@
|
|
||||||
@echo "$(CC) exim_lock.c"
|
|
||||||
$(FE)$(CC) -c $(CFLAGS) $(INCLUDE) exim_lock.c
|
|
||||||
@echo "$(LNCC) -o exim_lock"
|
|
||||||
- $(FE)$(LNCC) -o exim_lock $(LFLAGS) exim_lock.o \
|
|
||||||
- $(LIBS) $(EXTRALIBS)
|
|
||||||
+ $(FE)$(LNCC) -o exim_lock $(LDFLAGS) exim_lock.o \
|
|
||||||
+ $(LIBS) $(EXTRALIBS) $(LFLAGS)
|
|
||||||
@if [ x"$(STRIP_COMMAND)" != x"" ]; then \
|
|
||||||
echo $(STRIP_COMMAND) exim_lock; \
|
|
||||||
$(STRIP_COMMAND) exim_lock; \
|
|
||||||
@@ -462,9 +462,9 @@
|
|
||||||
$(FE)$(CC) -o em_version.o -c \
|
|
||||||
$(CFLAGS) $(XINCLUDE) -I. ../exim_monitor/em_version.c
|
|
||||||
@echo "$(LNCC) -o eximon.bin"
|
|
||||||
- $(FE)$(PURIFY) $(LNCC) -o eximon.bin em_version.o $(LFLAGS) $(XLFLAGS) \
|
|
||||||
+ $(FE)$(PURIFY) $(LNCC) -o eximon.bin em_version.o $(LDFLAGS) $(XLFLAGS) \
|
|
||||||
$(OBJ_MONBIN) -lXaw -lXmu -lXt -lXext -lX11 $(PCRE_LIBS) \
|
|
||||||
- $(LIBS) $(LIBS_EXIMON) $(EXTRALIBS) $(EXTRALIBS_EXIMON) -lc
|
|
||||||
+ $(LIBS) $(LIBS_EXIMON) $(EXTRALIBS) $(EXTRALIBS_EXIMON) -lc $(LFLAGS)
|
|
||||||
@if [ x"$(STRIP_COMMAND)" != x"" ]; then \
|
|
||||||
echo $(STRIP_COMMAND) eximon.bin; \
|
|
||||||
$(STRIP_COMMAND) eximon.bin; \
|
|
||||||
@@ -780,9 +780,9 @@
|
|
||||||
string.o tod.o version.o utf8.o
|
|
||||||
$(CC) -c $(CFLAGS) $(INCLUDE) -DSTAND_ALONE dbfn.c
|
|
||||||
$(CC) -c $(CFLAGS) $(INCLUDE) -DCOMPILE_UTILITY store.c
|
|
||||||
- $(LNCC) -o test_dbfn $(LFLAGS) dbfn.o \
|
|
||||||
+ $(LNCC) -o test_dbfn $(LDFLAGS) dbfn.o \
|
|
||||||
dummies.o sa-globals.o sa-os.o store.o string.o \
|
|
||||||
- tod.o version.o utf8.o $(LIBS) $(DBMLIB) $(LDFLAGS)
|
|
||||||
+ tod.o version.o utf8.o $(LIBS) $(DBMLIB) $(LFLAGS)
|
|
||||||
rm -f dbfn.o store.o
|
|
||||||
|
|
||||||
test_host: config.h child.c host.c dns.c dummies.c sa-globals.o os.o \
|
|
||||||
@@ -790,29 +790,29 @@
|
|
||||||
$(CC) -c $(CFLAGS) $(INCLUDE) -DSTAND_ALONE -DTEST_HOST host.c
|
|
||||||
$(CC) -c $(CFLAGS) $(INCLUDE) -DSTAND_ALONE -DTEST_HOST dns.c
|
|
||||||
$(CC) -c $(CFLAGS) $(INCLUDE) -DSTAND_ALONE -DTEST_HOST dummies.c
|
|
||||||
- $(LNCC) -o test_host $(LFLAGS) \
|
|
||||||
+ $(LNCC) -o test_host $(LDFLAGS) \
|
|
||||||
host.o child.o dns.o dummies.o sa-globals.o os.o store.o string.o \
|
|
||||||
- tod.o tree.o $(LIBS) $(LIBRESOLV)
|
|
||||||
+ tod.o tree.o $(LIBS) $(LIBRESOLV) $(LFLAGS)
|
|
||||||
rm -f child.o dummies.o host.o dns.o
|
|
||||||
|
|
||||||
test_os: os.h os.c dummies.o sa-globals.o store.o string.o tod.o utf8.o
|
|
||||||
$(CC) -c $(CFLAGS) $(INCLUDE) -DSTAND_ALONE os.c
|
|
||||||
- $(LNCC) -o test_os $(LFLAGS) os.o dummies.o \
|
|
||||||
- sa-globals.o store.o string.o tod.o utf8.o $(LIBS) $(LDFLAGS)
|
|
||||||
+ $(LNCC) -o test_os $(LDFLAGS) os.o dummies.o \
|
|
||||||
+ sa-globals.o store.o string.o tod.o utf8.o $(LIBS) $(LFLAGS)
|
|
||||||
rm -f os.o
|
|
||||||
|
|
||||||
test_parse: config.h parse.c dummies.o sa-globals.o \
|
|
||||||
store.o string.o tod.o version.o utf8.o
|
|
||||||
$(CC) -c $(CFLAGS) $(INCLUDE) -DSTAND_ALONE parse.c
|
|
||||||
- $(LNCC) -o test_parse $(LFLAGS) parse.o \
|
|
||||||
+ $(LNCC) -o test_parse $(LDFLAGS) parse.o \
|
|
||||||
dummies.o sa-globals.o store.o string.o tod.o version.o \
|
|
||||||
- utf8.o $(LDFLAGS)
|
|
||||||
+ utf8.o $(LFLAGS)
|
|
||||||
rm -f parse.o
|
|
||||||
|
|
||||||
test_string: config.h string.c dummies.o sa-globals.o store.o tod.o utf8.o
|
|
||||||
$(CC) -c $(CFLAGS) $(INCLUDE) -DSTAND_ALONE string.c
|
|
||||||
- $(LNCC) -o test_string $(LFLAGS) -DSTAND_ALONE string.o \
|
|
||||||
- dummies.o sa-globals.o store.o tod.o utf8.o $(LIBS) $(LDFLAGS)
|
|
||||||
+ $(LNCC) -o test_string $(LDFLAGS) -DSTAND_ALONE string.o \
|
|
||||||
+ dummies.o sa-globals.o store.o tod.o utf8.o $(LIBS) $(LFLAGS)
|
|
||||||
rm -f string.o
|
|
||||||
|
|
||||||
# End
|
|
|
@ -1,51 +0,0 @@
|
||||||
Extract from complete patch from
|
|
||||||
https://git.exim.org/exim.git/patch/26dd3aa007b3b77969610c031f59388e0953bd00
|
|
||||||
to only take the buildconfig.c change because the git directory
|
|
||||||
structure is different from a release tarball causing this patch to fail
|
|
||||||
otherwise.
|
|
||||||
|
|
||||||
From 26dd3aa007b3b77969610c031f59388e0953bd00 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Jeremy Harris <jgh146exb@wizmail.org>
|
|
||||||
Date: Fri, 7 Jun 2019 11:54:10 +0100
|
|
||||||
Subject: [PATCH] Fix detection of 32b platform at build time. Bug 2405
|
|
||||||
|
|
||||||
---
|
|
||||||
src/src/buildconfig.c | 12 +++++---
|
|
||||||
test/scripts/0000-Basic/0002 | 72 +++++++++++++++++++++++---------------------
|
|
||||||
test/stdout/0002 | 72 +++++++++++++++++++++++---------------------
|
|
||||||
3 files changed, 83 insertions(+), 73 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/src/src/buildconfig.c b/src/src/buildconfig.c
|
|
||||||
index 71cf97b..a680b34 100644
|
|
||||||
--- a/src/src/buildconfig.c
|
|
||||||
+++ b/src/src/buildconfig.c
|
|
||||||
@@ -111,6 +111,7 @@ unsigned long test_ulong_t = 0L;
|
|
||||||
unsigned int test_uint_t = 0;
|
|
||||||
#endif
|
|
||||||
long test_long_t = 0;
|
|
||||||
+long long test_longlong_t = 0;
|
|
||||||
int test_int_t = 0;
|
|
||||||
FILE *base;
|
|
||||||
FILE *new;
|
|
||||||
@@ -155,15 +156,16 @@ This assumption is known to be OK for the common operating systems. */
|
|
||||||
|
|
||||||
fprintf(new, "#ifndef OFF_T_FMT\n");
|
|
||||||
if (sizeof(test_off_t) > sizeof(test_long_t))
|
|
||||||
- {
|
|
||||||
fprintf(new, "# define OFF_T_FMT \"%%lld\"\n");
|
|
||||||
- fprintf(new, "# define LONGLONG_T long long int\n");
|
|
||||||
- }
|
|
||||||
else
|
|
||||||
- {
|
|
||||||
fprintf(new, "# define OFF_T_FMT \"%%ld\"\n");
|
|
||||||
+fprintf(new, "#endif\n\n");
|
|
||||||
+
|
|
||||||
+fprintf(new, "#ifndef LONGLONG_T\n");
|
|
||||||
+if (sizeof(test_longlong_t) > sizeof(test_long_t))
|
|
||||||
+ fprintf(new, "# define LONGLONG_T long long int\n");
|
|
||||||
+else
|
|
||||||
fprintf(new, "# define LONGLONG_T long int\n");
|
|
||||||
- }
|
|
||||||
fprintf(new, "#endif\n\n");
|
|
||||||
|
|
||||||
/* Now do the same thing for time_t variables. If the length is greater than
|
|
|
@ -1,267 +0,0 @@
|
||||||
diff -ur exim-4.92.orig/src/config.h.defaults exim-4.92/src/config.h.defaults
|
|
||||||
--- exim-4.92.orig/src/config.h.defaults 2019-01-30 14:59:52.000000000 +0100
|
|
||||||
+++ exim-4.92/src/config.h.defaults 2019-02-16 18:17:24.547216157 +0100
|
|
||||||
@@ -32,6 +32,8 @@
|
|
||||||
|
|
||||||
#define AUTH_VARS 3
|
|
||||||
|
|
||||||
+#define DLOPEN_LOCAL_SCAN
|
|
||||||
+
|
|
||||||
#define BIN_DIRECTORY
|
|
||||||
|
|
||||||
#define CONFIGURE_FILE
|
|
||||||
Only in exim-4.92/src: config.h.defaults.orig
|
|
||||||
diff -ur exim-4.92.orig/src/EDITME exim-4.92/src/EDITME
|
|
||||||
--- exim-4.92.orig/src/EDITME 2019-01-30 14:59:52.000000000 +0100
|
|
||||||
+++ exim-4.92/src/EDITME 2019-02-16 18:17:24.547216157 +0100
|
|
||||||
@@ -824,6 +824,24 @@
|
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
+# On systems which support dynamic loading of shared libraries, Exim can
|
|
||||||
+# load a local_scan function specified in its config file instead of having
|
|
||||||
+# to be recompiled with the desired local_scan function. For a full
|
|
||||||
+# description of the API to this function, see the Exim specification.
|
|
||||||
+
|
|
||||||
+#DLOPEN_LOCAL_SCAN=yes
|
|
||||||
+
|
|
||||||
+# If you set DLOPEN_LOCAL_SCAN, then you need to include -rdynamic in the
|
|
||||||
+# linker flags. Without it, the loaded .so won't be able to access any
|
|
||||||
+# functions from exim.
|
|
||||||
+
|
|
||||||
+LFLAGS = -rdynamic
|
|
||||||
+ifeq ($(OSTYPE),Linux)
|
|
||||||
+LFLAGS += -ldl
|
|
||||||
+endif
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+#------------------------------------------------------------------------------
|
|
||||||
# The default distribution of Exim contains only the plain text form of the
|
|
||||||
# documentation. Other forms are available separately. If you want to install
|
|
||||||
# the documentation in "info" format, first fetch the Texinfo documentation
|
|
||||||
Only in exim-4.92/src: EDITME.orig
|
|
||||||
diff -ur exim-4.92.orig/src/globals.c exim-4.92/src/globals.c
|
|
||||||
--- exim-4.92.orig/src/globals.c 2019-01-30 14:59:52.000000000 +0100
|
|
||||||
+++ exim-4.92/src/globals.c 2019-02-16 18:17:24.549216150 +0100
|
|
||||||
@@ -41,6 +41,10 @@
|
|
||||||
|
|
||||||
uschar *no_aliases = NULL;
|
|
||||||
|
|
||||||
+#ifdef DLOPEN_LOCAL_SCAN
|
|
||||||
+uschar *local_scan_path = NULL;
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
|
|
||||||
/* For comments on these variables, see globals.h. I'm too idle to
|
|
||||||
duplicate them here... */
|
|
||||||
Only in exim-4.92/src: globals.c.orig
|
|
||||||
diff -ur exim-4.92.orig/src/globals.h exim-4.92/src/globals.h
|
|
||||||
--- exim-4.92.orig/src/globals.h 2019-01-30 14:59:52.000000000 +0100
|
|
||||||
+++ exim-4.92/src/globals.h 2019-02-16 18:17:24.549216150 +0100
|
|
||||||
@@ -152,6 +152,9 @@
|
|
||||||
extern int (*receive_ferror)(void);
|
|
||||||
extern BOOL (*receive_smtp_buffered)(void);
|
|
||||||
|
|
||||||
+#ifdef DLOPEN_LOCAL_SCAN
|
|
||||||
+extern uschar *local_scan_path; /* Path to local_scan() library */
|
|
||||||
+#endif
|
|
||||||
|
|
||||||
/* For clearing, saving, restoring address expansion variables. We have to have
|
|
||||||
the size of this vector set explicitly, because it is referenced from more than
|
|
||||||
Only in exim-4.92/src: globals.h.orig
|
|
||||||
diff -ur exim-4.92.orig/src/local_scan.c exim-4.92/src/local_scan.c
|
|
||||||
--- exim-4.92.orig/src/local_scan.c 2019-01-30 14:59:52.000000000 +0100
|
|
||||||
+++ exim-4.92/src/local_scan.c 2019-02-16 18:29:56.832732592 +0100
|
|
||||||
@@ -5,61 +5,131 @@
|
|
||||||
/* Copyright (c) University of Cambridge 1995 - 2009 */
|
|
||||||
/* See the file NOTICE for conditions of use and distribution. */
|
|
||||||
|
|
||||||
+#include "exim.h"
|
|
||||||
|
|
||||||
-/******************************************************************************
|
|
||||||
-This file contains a template local_scan() function that just returns ACCEPT.
|
|
||||||
-If you want to implement your own version, you should copy this file to, say
|
|
||||||
-Local/local_scan.c, and edit the copy. To use your version instead of the
|
|
||||||
-default, you must set
|
|
||||||
-
|
|
||||||
-HAVE_LOCAL_SCAN=yes
|
|
||||||
-LOCAL_SCAN_SOURCE=Local/local_scan.c
|
|
||||||
-
|
|
||||||
-in your Local/Makefile. This makes it easy to copy your version for use with
|
|
||||||
-subsequent Exim releases.
|
|
||||||
-
|
|
||||||
-For a full description of the API to this function, see the Exim specification.
|
|
||||||
-******************************************************************************/
|
|
||||||
-
|
|
||||||
-
|
|
||||||
-/* This is the only Exim header that you should include. The effect of
|
|
||||||
-including any other Exim header is not defined, and may change from release to
|
|
||||||
-release. Use only the documented interface! */
|
|
||||||
-
|
|
||||||
-#include "local_scan.h"
|
|
||||||
-
|
|
||||||
-
|
|
||||||
-/* This is a "do-nothing" version of a local_scan() function. The arguments
|
|
||||||
-are:
|
|
||||||
-
|
|
||||||
- fd The file descriptor of the open -D file, which contains the
|
|
||||||
- body of the message. The file is open for reading and
|
|
||||||
- writing, but modifying it is dangerous and not recommended.
|
|
||||||
-
|
|
||||||
- return_text A pointer to an unsigned char* variable which you can set in
|
|
||||||
- order to return a text string. It is initialized to NULL.
|
|
||||||
-
|
|
||||||
-The return values of this function are:
|
|
||||||
-
|
|
||||||
- LOCAL_SCAN_ACCEPT
|
|
||||||
- The message is to be accepted. The return_text argument is
|
|
||||||
- saved in $local_scan_data.
|
|
||||||
-
|
|
||||||
- LOCAL_SCAN_REJECT
|
|
||||||
- The message is to be rejected. The returned text is used
|
|
||||||
- in the rejection message.
|
|
||||||
-
|
|
||||||
- LOCAL_SCAN_TEMPREJECT
|
|
||||||
- This specifies a temporary rejection. The returned text
|
|
||||||
- is used in the rejection message.
|
|
||||||
-*/
|
|
||||||
+#ifdef DLOPEN_LOCAL_SCAN
|
|
||||||
+#include <dlfcn.h>
|
|
||||||
+static int (*local_scan_fn)(int fd, uschar **return_text) = NULL;
|
|
||||||
+static int load_local_scan_library(void);
|
|
||||||
+#endif
|
|
||||||
|
|
||||||
int
|
|
||||||
local_scan(int fd, uschar **return_text)
|
|
||||||
{
|
|
||||||
fd = fd; /* Keep picky compilers happy */
|
|
||||||
return_text = return_text;
|
|
||||||
-return LOCAL_SCAN_ACCEPT;
|
|
||||||
+#ifdef DLOPEN_LOCAL_SCAN
|
|
||||||
+/* local_scan_path is defined AND not the empty string */
|
|
||||||
+if (local_scan_path && *local_scan_path)
|
|
||||||
+ {
|
|
||||||
+ if (!local_scan_fn)
|
|
||||||
+ {
|
|
||||||
+ if (!load_local_scan_library())
|
|
||||||
+ {
|
|
||||||
+ char *base_msg , *error_msg , *final_msg ;
|
|
||||||
+ int final_length = -1 ;
|
|
||||||
+
|
|
||||||
+ base_msg=US"Local configuration error - local_scan() library failure\n";
|
|
||||||
+ error_msg = dlerror() ;
|
|
||||||
+
|
|
||||||
+ final_length = strlen(base_msg) + strlen(error_msg) + 1 ;
|
|
||||||
+ final_msg = (char*)malloc( final_length*sizeof(char) ) ;
|
|
||||||
+ *final_msg = '\0' ;
|
|
||||||
+
|
|
||||||
+ strcat( final_msg , base_msg ) ;
|
|
||||||
+ strcat( final_msg , error_msg ) ;
|
|
||||||
+
|
|
||||||
+ *return_text = final_msg ;
|
|
||||||
+ return LOCAL_SCAN_TEMPREJECT;
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+ return local_scan_fn(fd, return_text);
|
|
||||||
+ }
|
|
||||||
+else
|
|
||||||
+#endif
|
|
||||||
+ return LOCAL_SCAN_ACCEPT;
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+#ifdef DLOPEN_LOCAL_SCAN
|
|
||||||
+
|
|
||||||
+static int load_local_scan_library(void)
|
|
||||||
+{
|
|
||||||
+/* No point in keeping local_scan_lib since we'll never dlclose() anyway */
|
|
||||||
+void *local_scan_lib = NULL;
|
|
||||||
+int (*local_scan_version_fn)(void);
|
|
||||||
+int vers_maj;
|
|
||||||
+int vers_min;
|
|
||||||
+
|
|
||||||
+local_scan_lib = dlopen(local_scan_path, RTLD_NOW);
|
|
||||||
+if (!local_scan_lib)
|
|
||||||
+ {
|
|
||||||
+ log_write(0, LOG_MAIN|LOG_REJECT, "local_scan() library open failed - "
|
|
||||||
+ "message temporarily rejected");
|
|
||||||
+ return FALSE;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+local_scan_version_fn = dlsym(local_scan_lib, "local_scan_version_major");
|
|
||||||
+if (!local_scan_version_fn)
|
|
||||||
+ {
|
|
||||||
+ dlclose(local_scan_lib);
|
|
||||||
+ log_write(0, LOG_MAIN|LOG_REJECT, "local_scan() library doesn't contain "
|
|
||||||
+ "local_scan_version_major() function - message temporarily rejected");
|
|
||||||
+ return FALSE;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+/* The major number is increased when the ABI is changed in a non
|
|
||||||
+ backward compatible way. */
|
|
||||||
+vers_maj = local_scan_version_fn();
|
|
||||||
+
|
|
||||||
+local_scan_version_fn = dlsym(local_scan_lib, "local_scan_version_minor");
|
|
||||||
+if (!local_scan_version_fn)
|
|
||||||
+ {
|
|
||||||
+ dlclose(local_scan_lib);
|
|
||||||
+ log_write(0, LOG_MAIN|LOG_REJECT, "local_scan() library doesn't contain "
|
|
||||||
+ "local_scan_version_minor() function - message temporarily rejected");
|
|
||||||
+ return FALSE;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+/* The minor number is increased each time a new feature is added (in a
|
|
||||||
+ way that doesn't break backward compatibility) -- Marc */
|
|
||||||
+vers_min = local_scan_version_fn();
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+if (vers_maj != LOCAL_SCAN_ABI_VERSION_MAJOR)
|
|
||||||
+ {
|
|
||||||
+ dlclose(local_scan_lib);
|
|
||||||
+ local_scan_lib = NULL;
|
|
||||||
+ log_write(0, LOG_MAIN|LOG_REJECT, "local_scan() has an incompatible major"
|
|
||||||
+ "version number, you need to recompile your module for this version"
|
|
||||||
+ "of exim (The module was compiled for version %d.%d and this exim provides"
|
|
||||||
+ "ABI version %d.%d)", vers_maj, vers_min, LOCAL_SCAN_ABI_VERSION_MAJOR,
|
|
||||||
+ LOCAL_SCAN_ABI_VERSION_MINOR);
|
|
||||||
+ return FALSE;
|
|
||||||
+ }
|
|
||||||
+else if (vers_min > LOCAL_SCAN_ABI_VERSION_MINOR)
|
|
||||||
+ {
|
|
||||||
+ dlclose(local_scan_lib);
|
|
||||||
+ local_scan_lib = NULL;
|
|
||||||
+ log_write(0, LOG_MAIN|LOG_REJECT, "local_scan() has an incompatible minor"
|
|
||||||
+ "version number, you need to recompile your module for this version"
|
|
||||||
+ "of exim (The module was compiled for version %d.%d and this exim provides"
|
|
||||||
+ "ABI version %d.%d)", vers_maj, vers_min, LOCAL_SCAN_ABI_VERSION_MAJOR,
|
|
||||||
+ LOCAL_SCAN_ABI_VERSION_MINOR);
|
|
||||||
+ return FALSE;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+local_scan_fn = dlsym(local_scan_lib, "local_scan");
|
|
||||||
+if (!local_scan_fn)
|
|
||||||
+ {
|
|
||||||
+ dlclose(local_scan_lib);
|
|
||||||
+ log_write(0, LOG_MAIN|LOG_REJECT, "local_scan() library doesn't contain "
|
|
||||||
+ "local_scan() function - message temporarily rejected");
|
|
||||||
+ return FALSE;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
+#endif /* DLOPEN_LOCAL_SCAN */
|
|
||||||
+
|
|
||||||
/* End of local_scan.c */
|
|
||||||
diff -ur exim-4.92.orig/src/readconf.c exim-4.92/src/readconf.c
|
|
||||||
--- exim-4.92.orig/src/readconf.c 2019-01-30 14:59:52.000000000 +0100
|
|
||||||
+++ exim-4.92/src/readconf.c 2019-02-16 18:18:46.013947455 +0100
|
|
||||||
@@ -199,6 +199,9 @@
|
|
||||||
{ "local_from_prefix", opt_stringptr, &local_from_prefix },
|
|
||||||
{ "local_from_suffix", opt_stringptr, &local_from_suffix },
|
|
||||||
{ "local_interfaces", opt_stringptr, &local_interfaces },
|
|
||||||
+#ifdef DLOPEN_LOCAL_SCAN
|
|
||||||
+ { "local_scan_path", opt_stringptr, &local_scan_path },
|
|
||||||
+#endif
|
|
||||||
#ifdef HAVE_LOCAL_SCAN
|
|
||||||
{ "local_scan_timeout", opt_time, &local_scan_timeout },
|
|
||||||
#endif
|
|
|
@ -1,10 +0,0 @@
|
||||||
[Unit]
|
|
||||||
Description=Exim Mail Transfer Agent (message submission)
|
|
||||||
Conflicts=exim.service
|
|
||||||
|
|
||||||
[Socket]
|
|
||||||
ListenStream=587
|
|
||||||
Accept=yes
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=sockets.target
|
|
|
@ -1,11 +0,0 @@
|
||||||
# It doesn't make sense for this to be separate from exim@.service
|
|
||||||
# However, I couldn't think of a way to have two .socket files point
|
|
||||||
# to it ([Socket] Service= is rejected if Accept=yes is set).
|
|
||||||
|
|
||||||
[Unit]
|
|
||||||
Description=Exim Mail Daemon per-connection server (message submission)
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStart=-/usr/bin/exim -bs
|
|
||||||
StandardInput=socket
|
|
||||||
StandardError=syslog
|
|
|
@ -1,5 +0,0 @@
|
||||||
# Command-line options for running exim
|
|
||||||
EXIM_OPTS="-bd -q15m"
|
|
||||||
|
|
||||||
# Additional flags passed to exim_tidydb upon start (e.g. -t 7d)
|
|
||||||
TIDY_OPTS=""
|
|
|
@ -1,9 +0,0 @@
|
||||||
/var/log/exim/exim*.log {
|
|
||||||
daily
|
|
||||||
missingok
|
|
||||||
rotate 28
|
|
||||||
compress
|
|
||||||
delaycompress
|
|
||||||
notifempty
|
|
||||||
create 640 mail mail
|
|
||||||
}
|
|
|
@ -1,47 +0,0 @@
|
||||||
#!/sbin/openrc-run
|
|
||||||
# Copyright 1999-2017 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
extra_started_commands="reload"
|
|
||||||
|
|
||||||
depend() {
|
|
||||||
need logger
|
|
||||||
use antivirus net
|
|
||||||
provide mta
|
|
||||||
}
|
|
||||||
|
|
||||||
tidy_dbs() {
|
|
||||||
local spooldir=$(/usr/sbin/exim -C /etc/exim/${SVCNAME}.conf -bP -n spool_directory)
|
|
||||||
local db
|
|
||||||
local ret=0
|
|
||||||
ebegin "Tidying hints databases in ${spooldir}/db"
|
|
||||||
for db in "${spooldir}"/db/* ; do
|
|
||||||
case "${db}" in
|
|
||||||
*".lockfile"|*"*") continue ;;
|
|
||||||
esac
|
|
||||||
/usr/sbin/exim_tidydb ${TIDY_OPTS} "${spooldir}" ${db##*/} > /dev/null
|
|
||||||
: $((ret += $?))
|
|
||||||
done
|
|
||||||
eend ${ret}
|
|
||||||
}
|
|
||||||
|
|
||||||
start() {
|
|
||||||
# if you use multiple instances, make sure you set spool_directory
|
|
||||||
# in the configfile
|
|
||||||
tidy_dbs
|
|
||||||
ebegin "Starting ${SVCNAME}"
|
|
||||||
start-stop-daemon --start --exec /usr/sbin/exim --pidfile /run/${SVCNAME}.pid -- -C /etc/exim/${SVCNAME}.conf ${EXIM_OPTS:--bd -q15m}
|
|
||||||
eend $?
|
|
||||||
}
|
|
||||||
|
|
||||||
stop() {
|
|
||||||
ebegin "Stopping ${SVCNAME}"
|
|
||||||
start-stop-daemon --stop --pidfile /run/${SVCNAME}.pid --name exim
|
|
||||||
eend $?
|
|
||||||
}
|
|
||||||
|
|
||||||
reload() {
|
|
||||||
ebegin "Reloading ${SVCNAME}"
|
|
||||||
start-stop-daemon --signal HUP --pidfile /run/${SVCNAME}.pid --name exim
|
|
||||||
eend $?
|
|
||||||
}
|
|
|
@ -1,12 +0,0 @@
|
||||||
[Unit]
|
|
||||||
Description=Exim Mail Transport Agent
|
|
||||||
After=network.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Environment=QUEUE=15m
|
|
||||||
ExecStart=/usr/sbin/exim -bdf -q${QUEUE}
|
|
||||||
ExecReload=/bin/kill -HUP $MAINPID
|
|
||||||
PrivateTmp=true
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
|
@ -1,10 +0,0 @@
|
||||||
[Unit]
|
|
||||||
Description=Exim Mail Transfer Agent
|
|
||||||
Conflicts=exim.service
|
|
||||||
|
|
||||||
[Socket]
|
|
||||||
ListenStream=25
|
|
||||||
Accept=yes
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=sockets.target
|
|
|
@ -1,7 +0,0 @@
|
||||||
[Unit]
|
|
||||||
Description=Exim Mail Daemon per-connection server
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStart=-/usr/bin/exim -bs
|
|
||||||
StandardInput=socket
|
|
||||||
StandardError=syslog
|
|
|
@ -1,52 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
|
||||||
<pkgmetadata>
|
|
||||||
<maintainer type="person">
|
|
||||||
<email>grobian@gentoo.org</email>
|
|
||||||
</maintainer>
|
|
||||||
<longdescription>
|
|
||||||
Exim is a message transfer agent (MTA) developed at the University of
|
|
||||||
Cambridge for use on Unix systems connected to the Internet. It is
|
|
||||||
freely available under the terms of the GNU General Public Licence. In
|
|
||||||
style it is similar to Smail 3, but its facilities are more general.
|
|
||||||
There is a great deal of flexibility in the way mail can be routed, and
|
|
||||||
there are extensive facilities for checking incoming mail. Exim can be
|
|
||||||
installed in place of sendmail, although the configuration of exim is
|
|
||||||
quite different to that of sendmail.
|
|
||||||
</longdescription>
|
|
||||||
<use>
|
|
||||||
<flag name="arc">Adds support for Authenticated Receive Chain
|
|
||||||
(ARC)</flag>
|
|
||||||
<flag name="dcc">Adds support for Distributed Checksum Clearinghouse
|
|
||||||
(DCC)</flag>
|
|
||||||
<flag name="dane">Adds support for DNS-based Authentication of Named Entities</flag>
|
|
||||||
<flag name="dkim">Adds support for DomainKeys Identified Mail
|
|
||||||
(DKIM)</flag>
|
|
||||||
<flag name="dnsdb">Adds support for a DNS search for a record whose
|
|
||||||
domain name is the supplied query</flag>
|
|
||||||
<flag name="dovecot-sasl">Adds support for Dovecot's
|
|
||||||
authentication</flag>
|
|
||||||
<flag name="dlfunc">Install local_scan.h header to compile separate
|
|
||||||
dlfunc libraries</flag>
|
|
||||||
<flag name="dmarc">Adds support for DMARC</flag>
|
|
||||||
<flag name="dsn">Adds support for Delivery Status Notifications
|
|
||||||
(DSN)</flag>
|
|
||||||
<flag name="exiscan-acl">Patch providing support for content
|
|
||||||
scanning</flag>
|
|
||||||
<flag name="lmtp">Adds support for lmtp</flag>
|
|
||||||
<flag name="mbx">Adds support for UW's mbx format</flag>
|
|
||||||
<flag name="spf">Adds support for Sender Policy Framework</flag>
|
|
||||||
<flag name="srs">Adds support for Sender Rewriting Scheme</flag>
|
|
||||||
<flag name="proxy">Add support for being behind a proxy, such as HAProxy</flag>
|
|
||||||
<flag name="pkcs11">Require pkcs11 support in <pkg>net-libs/gnutls</pkg> with USE=gnutls</flag>
|
|
||||||
<flag name="redis">Adds support for querying <pkg>dev-db/redis</pkg></flag>
|
|
||||||
<flag name="prdr">Adds support for Per-Recipient Data Response</flag>
|
|
||||||
<flag name="tpda">Adds support for Transport Post-Delivery Actions</flag>
|
|
||||||
</use>
|
|
||||||
<upstream>
|
|
||||||
<bugs-to>http://bugs.exim.org/</bugs-to>
|
|
||||||
<!-- stupid DTD doesn't allow this
|
|
||||||
<vcs>http://git.exim.org/exim.git</vcs>
|
|
||||||
-->
|
|
||||||
</upstream>
|
|
||||||
</pkgmetadata>
|
|
|
@ -1,19 +0,0 @@
|
||||||
DIST Lato-Black.ttf 664748 BLAKE2B f48f577eae2867dad5968f3726002aa1808783b510985e5be7d12ef6a6037369849e2a9968d6fcfddbc930430fcb7d764c5ca685a0d8178d47bcbf4e31a3d7a8 SHA512 d48984df1bb4c0402a77219d57514d41231e6b4b0c643c8f148256ddce3c1847c4b13d0779a3688d5ad5ed181b7d9d0ef529e301b59605febd625e71f71584cf
|
|
||||||
DIST Lato-BlackItalic.ttf 698264 BLAKE2B 6f01b32be26008ad2319f96d4230ea7eea075612c6abdd4d9c987e38d1761d84f38e0a975ff9916194508d691985acb445a05f195a29f9a243ac26f6e98970c0 SHA512 702c393b1ccb5821958ed2687ca18055ee59e2a88a49853b6c155d60498afe289fbf83f6223519dcb3ed6b88361ae5af8c78704c82cb0a3f48cb892cdf87670e
|
|
||||||
DIST Lato-Bold.ttf 656544 BLAKE2B a7a57033aa65b14d0bd861f9bae6e035779988a304169d32d8489eb5e361add595716eb52fa71ebd8336ad717d46e474af8a7ab22cf33ce973a9936ec1fe15c7 SHA512 097cd16a3a037b4257fc02b4c5efe1aca0b316ab96bb73ffb59aba243b32a45e0cfd1d760c7c4c238c4cf949e22bce22a67c757556314f1147db76798022919b
|
|
||||||
DIST Lato-BoldItalic.ttf 698364 BLAKE2B 65c122051a74fe0294fa955e275f2fe4e46975cae6e422cafd5e2e95ce6b4512912a0e6ec48f168e6d684be34af61346e523bca9b2af147dafc0390f49f4e0df SHA512 921268e7a331f98c927a38f23346dfc5d739cf203455c621c1f8ea92ba64120ff6d4f6d0672b7ff16d5925e62b1e00b278fcc11c5019a99361e0901970a7b0e2
|
|
||||||
DIST Lato-ExtraBold.ttf 613920 BLAKE2B 67823075373006e71a19a60c79311093f3e2fe420baa2f46a4467839566f9f4867a2339f8920ee5c9694f491752d6f7c3bcee8c07bbff14ca51add142090df58 SHA512 2761564aa78e5b6ddce408931094c1d467062c9606993eaab8ad42f360d12376dd41674e7e089c1431edfbeacf57fbcd8bc7fc8316e5e4c174d55dc10773a719
|
|
||||||
DIST Lato-ExtraBoldItalic.ttf 671876 BLAKE2B 4dfc3897a17d74f18b2be85a2867767300c45504941aed23b3936378b0ff8303a4665769141a264d84e662cc01d9818892720697886e6319a5c526887e544052 SHA512 c2bfa7593ef4d316dfc6764c5a3be85641efde43e7c58dea561f2e767ee778ce0d2c16f7b442489d742ae7d53e575fa02f1137779d55980197b64f642101675c
|
|
||||||
DIST Lato-ExtraLight.ttf 626624 BLAKE2B 2be31aba8548bc9afccf148611ea57f3c310f6d9c585ff0d081c0eb164ec5d08e03f6086912ba07d084db82f40e8657c106a6a7d28784e7b75bfaf229c0637d5 SHA512 21a485d77ac1fcc484e516e140988eb5469eae3ea33691b748a66a11fe1efdb0fc026cd52217983f353a7807dc2fbacdd2044cb573f993382515d32c4b5f9f59
|
|
||||||
DIST Lato-ExtraLightItalic.ttf 653640 BLAKE2B ee0a539776e617e50810e8635a18d6470a7f28f91d6f284bdf8f9345cf3222476a7b8fc3736bc46e492d1d584cbec30430084e760f61c16c59fff0371ec61e34 SHA512 cfd3ce1491d0d06596a79e39ea14cd07841e5ae2a9818a5e885d853cccdf1f2ba18e15dfcb6a142ffd88fb719375bb13cfe0d91ac6d06ecce494b676390238d9
|
|
||||||
DIST Lato-Italic.ttf 722900 BLAKE2B a4ddefa0112e1ebb4affcc8ed3828933d1af5b765d6245a3cc800faaa8ec1c68410dfeff1757b87f3ee79e9a2f29591e8ecaded9c4a3c9e815a594e7c050d9d8 SHA512 76dd62014b200d287c750802a88dd38f0b855d0f62bf951bc0ba2fda6ce3a9ecbd4b4022a0dfbd0ef124e1e71109a1fddc06898c3cfbc87eab612cff5605459a
|
|
||||||
DIST Lato-Light.ttf 643884 BLAKE2B 432b0e098c34fd3fd8102f1ada160ec531e3f9f3612fb51e88aff8844c6015a07919ce78cc88e636b57c593f9d6ec1ac84bd211b9fd491cdc704cbdba455e8f0 SHA512 c5685218591b2521b8d4d415959d7c28b4485659613eb25c1d77997c52a49f148ca57a47a3da441ea355ef444a52ece4c5c204e1a1adaefae0152c05cfa4eaf9
|
|
||||||
DIST Lato-LightItalic.ttf 657552 BLAKE2B a0ae063de9a0e32b44647469633cdb18f2cbecf32fd237ed67ef1d39ee85a2bc00f03faa27fb83bda86b0799639831882387954f9cbfc7de7ba3a7304f6efa96 SHA512 60fa9a5fb24664733bdb8729d219d055d0182d2a2abccce7370ac1f035265443d9661252108473e63bde25566680a599d521bffca361989e9a6abde44df39a94
|
|
||||||
DIST Lato-Medium.ttf 636396 BLAKE2B 4f514ee460ebe727554df1eb54d9909774106afca054338eacc4fb31da3e8d928fc56d0bbf8912032d7d40b27b61056c34e87c3fb2cab7a55247281af69e7564 SHA512 da40c215356b4f588a8f30c63d3303ace637f1eeef1c93c29561e420dad610107e5e66542e3dbbf23a13db60333d89d740f9a147b071fecc48b077fbdd4f4514
|
|
||||||
DIST Lato-MediumItalic.ttf 694924 BLAKE2B 6a7bea8638004cfa579ee32dfee44c42f7195fc7d2f7cb5bfe51a52be24e1a459fac3c331b5ab02010af2a4404629b42056355a7b228ca8fa1c6a993575403d3 SHA512 711200db3f07caa48b700d5c7a67ceeeda0ff9e91043826ccfde64741ada7a4cc22b91e262169810562f75755b630857df6a815f8c7f2406488d5557e9ceb97d
|
|
||||||
DIST Lato-Regular.ttf 656568 BLAKE2B 804ab360bb26ade017a80e20fc2d5ed3b38a040c36e1fe867ea6e9ab1b3b9e31be3f11a179adeffe2fce7be224abff2a2daa7376809e7a0027f3e08bb58b816d SHA512 be6667e1f6a50e23ada324b52fb614ca82848600a82f6edc4ec881a3c5f5d9f0477580af2421f42b94e1b529e07ddda7d2d9231b128d93056b4a327d63fe7222
|
|
||||||
DIST Lato-SemiBold.ttf 668548 BLAKE2B 6a0f448aee7c23e66cf169e5a0fa8cfd52546a041dd3297188317cafdd3b494b8578f5c62c2c8938afac5f990c9469691e6e7010fd8aae8a19cfd12b83df428c SHA512 582a4eba883464a73a521227c0fbdcc9e47d9cfbf77748b3fcd1b376cd2f739862bbe45c322f8418d6319392a61edc1e0edac0a931a83462115e252922a87efe
|
|
||||||
DIST Lato-SemiBoldItalic.ttf 697364 BLAKE2B e66eac44a4e9a7d550f30f716f4dedf03aeb513588b15b8094762eda8d49dd277e44c54e963694440cbccde21ef47cbccbf5dde98e62fddf9c5032aec3f11b90 SHA512 d25c934693cc3a3a0ec5df7aeb3d4ecbec317cb1573cb7b3cb79cbfd9023d0526f9ee9059946168be61275df38c29f93eeee245a2fd022a8ae8537d8d301b395
|
|
||||||
DIST Lato-Thin.ttf 584056 BLAKE2B 961163b60b0ce65b65b83a32112dc8327f86a8c018254f708beee4848144fc3b165fa057f90697c47e8ae5288c0819512cd34bb4ba3b81dd410124632c883dc5 SHA512 6fad8fcdb4884a05201a183ee4ed4cf223748b4c3dbb7273eaa201dc51f0b76161428b06ae8c4c727ad99abd9d072bbc5c3cf9ef1e128370101f170aa78f5a6c
|
|
||||||
DIST Lato-ThinItalic.ttf 608716 BLAKE2B 5e60737b64e80211e77b3daf56e97284382cdd683071aabd185ab069c4168c0b033607260bd12a30b600d8b735d7910d1ac31b278500c36cacc998743bd946e6 SHA512 931c4245a79bafe01e85489ec4d2dc29b7d815185b62b3e29d17e7b2d1a66b303d960acccfb07906ff56460fa5319f6d75a938f36b87cc31f08609f892a34b34
|
|
||||||
EBUILD lato-1.104.ebuild 1470 BLAKE2B 600e94b1e3041eb544c67fd23853529451028d3c48786adbf859628fc7f25151455c51529da088f74cb51b487d77590056eb16d1d162d29873df49ea128b3905 SHA512 f8b92ef4d192f795bc9de924e9f93193decd4f0d23d95ed13158a82948ac8cb6c481bbd929e2dc9ee4ffb16d3ad857bda5ac0a5fc89cfc1d2adcb73258e2090f
|
|
|
@ -1,26 +0,0 @@
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
inherit font-custom
|
|
||||||
|
|
||||||
DESCRIPTION="Lato. A sans serif font family by Łukasz Dziedzic."
|
|
||||||
HOMEPAGE="https://fonts.google.com/specimen/Lato"
|
|
||||||
LICENSE="OFL-1.1"
|
|
||||||
|
|
||||||
SRC_URI="https://github.com/google/fonts/raw/master/ofl/lato/Lato-Black.ttf
|
|
||||||
https://github.com/google/fonts/raw/master/ofl/lato/Lato-BlackItalic.ttf
|
|
||||||
https://github.com/google/fonts/raw/master/ofl/lato/Lato-Bold.ttf
|
|
||||||
https://github.com/google/fonts/raw/master/ofl/lato/Lato-BoldItalic.ttf
|
|
||||||
https://github.com/google/fonts/raw/master/ofl/lato/Lato-ExtraBold.ttf
|
|
||||||
https://github.com/google/fonts/raw/master/ofl/lato/Lato-ExtraBoldItalic.ttf
|
|
||||||
https://github.com/google/fonts/raw/master/ofl/lato/Lato-ExtraLight.ttf
|
|
||||||
https://github.com/google/fonts/raw/master/ofl/lato/Lato-ExtraLightItalic.ttf
|
|
||||||
https://github.com/google/fonts/raw/master/ofl/lato/Lato-Italic.ttf
|
|
||||||
https://github.com/google/fonts/raw/master/ofl/lato/Lato-Light.ttf
|
|
||||||
https://github.com/google/fonts/raw/master/ofl/lato/Lato-LightItalic.ttf
|
|
||||||
https://github.com/google/fonts/raw/master/ofl/lato/Lato-Medium.ttf
|
|
||||||
https://github.com/google/fonts/raw/master/ofl/lato/Lato-MediumItalic.ttf
|
|
||||||
https://github.com/google/fonts/raw/master/ofl/lato/Lato-Regular.ttf
|
|
||||||
https://github.com/google/fonts/raw/master/ofl/lato/Lato-SemiBold.ttf
|
|
||||||
https://github.com/google/fonts/raw/master/ofl/lato/Lato-SemiBoldItalic.ttf
|
|
||||||
https://github.com/google/fonts/raw/master/ofl/lato/Lato-Thin.ttf
|
|
||||||
https://github.com/google/fonts/raw/master/ofl/lato/Lato-ThinItalic.ttf"
|
|
|
@ -1,2 +0,0 @@
|
||||||
DIST noto-20170403.tar.xz 11083152 BLAKE2B 8281cc19a100d1cbf7f57fba9cba077bb0005f7296f58d48247bef6c804b53597ff359dfab7b7d851e42c0294c757f311979b98dc9f1c22e2d3f3fabe4db77e7 SHA512 f8f1414b5b6f793e86ef3cc6a6320c4545f079b337c7672cb8cccc3c50d21d353d81557da4a555cdb6524c79be3e4c167f7d5aac102c38d64926f3b1887ca7f3
|
|
||||||
EBUILD noto-20170403.ebuild 817 BLAKE2B a76982655e79b2e982ba7f5328c3cf8ed4a4f26cfb6e1754e665455a3d35a4191fea99bc18beae8c4cbbf79a1981b731e1e9ab7525ee2c74ff8e498aa8e9fa85 SHA512 ee77227ea727f952296723f1d5d2543aa7b4392d0ce0436b464b5c589b2ffdfea5d531fcf23cc180454a33572bcaefe04cd49e2f0dfa43f04e90359305592a8b
|
|
|
@ -1,26 +0,0 @@
|
||||||
# Copyright 1999-2020 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
inherit font
|
|
||||||
|
|
||||||
DESCRIPTION="Google's font family that aims to support all the world's languages"
|
|
||||||
HOMEPAGE="https://www.google.com/get/noto/"
|
|
||||||
|
|
||||||
# https://noto-website.storage.googleapis.com/pkgs/Noto-hinted.zip
|
|
||||||
# Version number based on the timestamp of most recently updated font in the zip.
|
|
||||||
# When bumping, remove *CJK* and create a tarball (xz -9 gives the most
|
|
||||||
# compressed tarball)
|
|
||||||
SRC_URI="https://dev.gentoo.org/~floppym/dist/${P}.tar.xz"
|
|
||||||
|
|
||||||
LICENSE="OFL-1.1" # https://github.com/googlei18n/noto-fonts/blob/master/NEWS
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha amd64 arm ~arm64 ~mips ppc ppc64 sparc x86"
|
|
||||||
IUSE="cjk"
|
|
||||||
|
|
||||||
RDEPEND="cjk? ( media-fonts/noto-cjk )"
|
|
||||||
RESTRICT="binchecks strip"
|
|
||||||
|
|
||||||
FONT_S="${S}"
|
|
||||||
FONT_SUFFIX="ttf"
|
|
|
@ -1,11 +0,0 @@
|
||||||
DIST Rubik-Black.ttf 510760 BLAKE2B a656a198449bfe5422c31b61f5d567e0238fdfceb032168fd5fd5c84d2fc63d66517a2b5f0c3e4d28e9c527099f8904ef73f33af3f823d250528a8b67940434a SHA512 5362a67e56be5f5bee28d7c5a7389ddac4faa6cc32f5bcf1173b1f46be8209afe9976cb81c9924469891eba04e8650c10d170de81cffbf3cd899ba2b89dc5640
|
|
||||||
DIST Rubik-BlackItalic.ttf 540716 BLAKE2B 1855fb65afe489a049e1678dda93db364671c0d2ca9aa725810f5a5799bf50da54e4db35518e38475835326a7827433ae67e634c2dcbcefdbf667edb9f8a4267 SHA512 5f31e31b82d750c5b535e8d21b5232ab62aec1b51810a2c2dcd30b3bade6d679fddfb3e121dcd4585f08057cfdab79564183b47ac55bd4baf88bd69a046d9b55
|
|
||||||
DIST Rubik-Bold.ttf 529376 BLAKE2B 0fc042a4f92e8663ac3e099745bc5aa4ca4a8fd4f12ba563807cc3041ff1394b343b83152cd38db35b035e218300917d89a863e3e843fba83e8a97e2d7cce57b SHA512 73708010f383ebc7387b6760bb9ecb827c932c048e7aebff3373eea1efd4437ba8d30c57e2cbc1c5d30d6e5847e2cb7ce94afebbd085cf16c89c5b27bbfb23df
|
|
||||||
DIST Rubik-BoldItalic.ttf 574128 BLAKE2B c46b9dde24abc6de8f908d5c2d1bd2a51c12a19d9d61e8607b6f375f8819762f51b225467918e3f7a0cb2e40ebab135ccfd198dc5de4a81c53672f9a92ab90e5 SHA512 5b4425d6ed0f442db9e94c95f62da7ac26757ac152a150b81e1a98b8bcae7fe2491c3d95c75f8b40efd62325b05e4723fc8057225a9028326244acc83da71d18
|
|
||||||
DIST Rubik-Italic.ttf 582340 BLAKE2B 41156a1febcb290cb13b5a3a364da0b76b81d5fb666d624f24b4a95e775ce8e8bf4c415cb142afb077c6d9743c600247f9f1c34cb22dac7af89b9d50b1e12da9 SHA512 ec944037586558afd181cae34a9b440de259ce25401085f47d61c79c2e0c9fd2a2e47e880a3f8bd769e7e23653ab368903cc02a9eef3f7cdf08f455a1a7d891c
|
|
||||||
DIST Rubik-Light.ttf 523812 BLAKE2B c1a6407f7031f2f745622636e91fa75879179f215861d8faa7695efd9fbd2c84e10ac510037a0676e5952a7c3c06f7aa14f075310e9ef476ce1fd8312f816b6b SHA512 2eb14867eb537cf25fe2f5e248c0f9bcb4f37c55fa6328ae781211d1445ff0c68746d6cd5e784818cfc0347dd5004e0528f39cd9c62cd2a5d37863c3a306059d
|
|
||||||
DIST Rubik-LightItalic.ttf 586072 BLAKE2B e29df7f5a6d821838605c90651091f8665fbaf40cd0226691fb11e8781eefb450a900e5d2f3881a1a3e3c714978f51ae7ee87f26ec4c1c28f8b87cb7434668cf SHA512 c41f494c0448bcd45825d85ec7930c225709c33c7b84975428239ff0f3bbe5883d7960e3d47d0806af3b1e22354095b34a73dc66eb2b23948227fa8a72e387e1
|
|
||||||
DIST Rubik-Medium.ttf 527560 BLAKE2B a540456fd5eb439a5c0968af25e43ff5082392a254b3affdd9c9627868d1194cbf4a734702de2f3b33d1e93b567c79c096d43dc4e0b2f76bbf1f4a004704dc10 SHA512 ab860e75567b1777ca3ccef7c8de53fd8afe3998d742c90277a077ba584eb591f9bdbbd4397305d2340faeaa319ac06c1a0f9b88d099e58ff18823954e5be657
|
|
||||||
DIST Rubik-MediumItalic.ttf 578196 BLAKE2B 5ab3de390e478b96f38eb0dab4c2cf6c386f88480a11396bcb5bd010209c4655960aa89df2dfca90de94d592e6b52beacea737f5e97c38a938e7b53d58ce9814 SHA512 c8271918b6c56dd65755eb6af309ce74f2bc2a77e1d42e1a550620f784c63c977d06a74c37ce298b7839beb6741b683ff2caf069c3593d7f2c7a7340c2303509
|
|
||||||
DIST Rubik-Regular.ttf 529936 BLAKE2B ca1b18629d09425c8484f8244bfe956f599a3c898c43b6d113113b84588ac660f8e3757672804a138723e251b0e3f54e8be14ffdaf86cdc35b8d0fa2704e39e4 SHA512 36ce395eaf7b7c07a6c090a07cdc8a18df121e4d324ccd0bcb9679b99dac677d000625865df24ce3f7d1f5a1fc6ba01f66d78689ad48cc6c4a6c3313561f0e51
|
|
||||||
EBUILD rubik-2.100.ebuild 961 BLAKE2B fa220694bf818d295274b02b92bb13194a3211316f1ef9728e2cb34ac237775245f518f7cecc908d018b4d7a0bf79bd067ad59934f08150ea6a241762fc50420 SHA512 74010fa77d1cf754a08aa70f1deb84b00967b90696492b055a4a679c1d8e4db9fd69d10e08d708fb6e90c2b523c7a908a16ad3ea7302cd57e77b63a3f3df3408
|
|
|
@ -1,18 +0,0 @@
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
inherit font-custom
|
|
||||||
|
|
||||||
DESCRIPTION="Rubik. A sans serif font family with slightly rounded corners designed by Philipp Hubert and Sebastian Fischer."
|
|
||||||
HOMEPAGE="https://fonts.google.com/specimen/Rubik"
|
|
||||||
LICENSE="OFL-1.1"
|
|
||||||
|
|
||||||
SRC_URI="https://github.com/google/fonts/raw/master/ofl/rubik/Rubik-Black.ttf
|
|
||||||
https://github.com/google/fonts/raw/master/ofl/rubik/Rubik-BlackItalic.ttf
|
|
||||||
https://github.com/google/fonts/raw/master/ofl/rubik/Rubik-Bold.ttf
|
|
||||||
https://github.com/google/fonts/raw/master/ofl/rubik/Rubik-BoldItalic.ttf
|
|
||||||
https://github.com/google/fonts/raw/master/ofl/rubik/Rubik-Italic.ttf
|
|
||||||
https://github.com/google/fonts/raw/master/ofl/rubik/Rubik-Light.ttf
|
|
||||||
https://github.com/google/fonts/raw/master/ofl/rubik/Rubik-LightItalic.ttf
|
|
||||||
https://github.com/google/fonts/raw/master/ofl/rubik/Rubik-Medium.ttf
|
|
||||||
https://github.com/google/fonts/raw/master/ofl/rubik/Rubik-MediumItalic.ttf
|
|
||||||
https://github.com/google/fonts/raw/master/ofl/rubik/Rubik-Regular.ttf"
|
|
|
@ -1,13 +0,0 @@
|
||||||
DIST SourceSansPro-Black.ttf 288824 BLAKE2B dcf9a283364200541e422acfd03302c3f2eda2fcee001127a3175cef4d7339cdab2244668645b4508ca125b8ae514dcc4c8be3fa7513d35e4f24c95bc1abbedd SHA512 94e8e169a00a3b8f510a2666d3d972bfa43aa69e064ae02c5ec398d425c8f21c96406dc3dc8de8a8945d3972a18b81be63c567cef77b6ec95157ab0ceff3209f
|
|
||||||
DIST SourceSansPro-BlackItalic.ttf 102944 BLAKE2B 37b42b7b05bb0dd8ab663f31fcf7347f6fe04c5a96d3777b7989f43000a3a8f866cf66cdbe2fb1b70ab4701f60e7d5098a05224479d300ba1a65313ad2376821 SHA512 99323afbed7a1e97cb8aea02dda92338b3e02bbc44929a1f2a5638e45e60308cbb705edecaaa80679aebae3ac0bd9caf76ac4df8734d02ed9841bbe32166e5bb
|
|
||||||
DIST SourceSansPro-Bold.ttf 290916 BLAKE2B 09ddaee438329bac66b1c689f81ca371670008f1956a4edadb3f3d2643397302272fab66f9ba53862be53930bbccfd5bba2a56de02fb588d035d6ebc8df76dde SHA512 d3738085d8f4891bf1a475a52108a4298b07c8959100e32d1c79038af8b39c182e45fb9d531dd75f7bd2a514d70cf808649dce83d3558be236c74160923ff794
|
|
||||||
DIST SourceSansPro-BoldItalic.ttf 103200 BLAKE2B 3cc637da2869ff8ef66274ad77052921050d4c85f3c24e9f7ec380eb480e1408b2c6535a8950fc4f99935fc539f70cd24b802deda20332b9290011440e2fa30a SHA512 157af2eb0b1f4c5a9537c9b4cc194806f93363cb1af7ee52b9b04323462ec139dd3c33b36041e168ed97c03c0049d0674dad40b422c003e36c251f603d63268a
|
|
||||||
DIST SourceSansPro-ExtraLight.ttf 291112 BLAKE2B 582a27d9e3042d2c8082a9d3dbb883edaa04e783fbf26232cd347edd22c753d7b6ddfaca7d378bd8cca657365e9b36b5ff3b21ebfd2a599a2d2315b2603f0db5 SHA512 4dd6cbfd4f4dee41aa0027b42fa9d84ee32cb60cf1fcbd004e88d7445e7c0384953f08e4aa823a05aae5793aa6fac3b5c6f1491577f2e8c7750e68462b1bd270
|
|
||||||
DIST SourceSansPro-ExtraLightItalic.ttf 104304 BLAKE2B 1288032210f985c5e5300986454e9b53a903012279225dffbea6a4734cf55f3b3ec69ab1aa2811401231244533b5ae90a25929cc381b41a54749e1b84f7f2856 SHA512 796e0ba30c1dcb69ef188c046478f13f40927381c8ad823a2fa899a084c7f6ab1652931bbaaf4afc91226e467bf8fefa2c94af7ca228afa93c1d853f99fc9868
|
|
||||||
DIST SourceSansPro-Italic.ttf 103828 BLAKE2B 592b955ceccbfab00f7001cfac501349fe207fd909e95b6ac9c10f1f34150c2971155d4aba7aff3b5fe5c8bb6b14235fa4089b5d78bd4ee8aa1b75b9f68396ac SHA512 62310aeaf8c7c21c884ea8e670f01d9c3b71da8349c3d13a6bc699d012de80ef13ac609f26be54ded1e6d0c6ccb03ddf1f3128bc6a44312707d725befec37520
|
|
||||||
DIST SourceSansPro-Light.ttf 292680 BLAKE2B e718e5d3c875d752dd6c34193becccb8029a888e51d8b846960da9d3c013b24b87120c76f099d5685322fa283028cbceae43999a93865abca9bea73d83e9cf65 SHA512 2e9fd0558717b954ee73848c95c7f5495f4c907192ba33c2f2a615621dc9174a3f544e44cbdb086716b48b993b724e81484305eebf0c69666ea48919e3476e3f
|
|
||||||
DIST SourceSansPro-LightItalic.ttf 104156 BLAKE2B 0272e135de170a7f1f89485ff356354f432ec920e5ca8368da8fa3190a637f356f913231e95e324a51e2cb584183961fb8dc8cf24fd669fb4f50f2cbdb442a19 SHA512 e9040d395899a02ade6bcf082353828554a0151ab979eab8d9c47075eccbf065f111ca82cf898144a35b351c6ee85b7c714d167271a39e0c78acebd84842e166
|
|
||||||
DIST SourceSansPro-Regular.ttf 293516 BLAKE2B cd1c5225e59b502df7982b87af90a4d5701e31b6538c9c9b1b29d9c970508dc8dc0198d834b136a660112aef77d1762496f1c88efbc35ecce1f9360f644d2bd7 SHA512 cf37ee1e2c3574de5819e5c5328ee010832987750a3cdc0bc43f102c3bdafd3993a9984c8d51f66b18198e80049c0323fa2f8f692025d8947f9580eda6a7a5b2
|
|
||||||
DIST SourceSansPro-SemiBold.ttf 291864 BLAKE2B fe6e122211bd99ddc3362aaf532425cbffe1b0cca99016af44581c709512de5f9a4cb5da5ce7aa05f8af64438aa7636a174e2a8b0a795cf9344cbbf2816290a1 SHA512 1636e6e468218fa20f505b84d080c6a4ca4e06caab7062f2dd27590acb2623651c24e3d42195fee3126d58e57886b59463cca61bb60353e19afd7d721a869279
|
|
||||||
DIST SourceSansPro-SemiBoldItalic.ttf 103556 BLAKE2B 584dd49787e17b2bd0b19856f4d96ddc65e075c6a4661404a1f28e9fcb992f6270790b355e9280f4008fe95aaf0bc354f49be1a9a24218204124942ed647385b SHA512 c6cfb090f6c19b3c90d709ff1255ad9ede2283c4ac0df98e05895c7c1ab8bf98323a6f851efdd45fc1974c4283d28addd74ac9a0c72c2d3f7c7c03bab2651ad9
|
|
||||||
EBUILD sourcesanspro-2.021.ebuild 1270 BLAKE2B 46ee15827f2d785882db366c1513b1fdc6a9aab9efe71d118fd8e654be3888e9845b9c001f735885e76c57910b5843d0d2dc8fd6f01a0cead37b9e363f4206c2 SHA512 4f9f05ada2920d067a82ef78188327d11b653417d8cdec08227d3bf3be5638da9a7489aa2bdfaed5d11d3dc05d71885dd6fa386d9e763730eeeb7fd50a3767b0
|
|
|
@ -1,20 +0,0 @@
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
inherit font-custom
|
|
||||||
|
|
||||||
DESCRIPTION="Source Sans Pro. A sans serif font family by Paul D. Hunt."
|
|
||||||
HOMEPAGE="https://fonts.google.com/specimen/Source+Sans+Pro"
|
|
||||||
LICENSE="OFL-1.1"
|
|
||||||
|
|
||||||
SRC_URI="https://github.com/google/fonts/raw/master/ofl/sourcesanspro/SourceSansPro-Black.ttf
|
|
||||||
https://github.com/google/fonts/raw/master/ofl/sourcesanspro/SourceSansPro-BlackItalic.ttf
|
|
||||||
https://github.com/google/fonts/raw/master/ofl/sourcesanspro/SourceSansPro-Bold.ttf
|
|
||||||
https://github.com/google/fonts/raw/master/ofl/sourcesanspro/SourceSansPro-BoldItalic.ttf
|
|
||||||
https://github.com/google/fonts/raw/master/ofl/sourcesanspro/SourceSansPro-ExtraLight.ttf
|
|
||||||
https://github.com/google/fonts/raw/master/ofl/sourcesanspro/SourceSansPro-ExtraLightItalic.ttf
|
|
||||||
https://github.com/google/fonts/raw/master/ofl/sourcesanspro/SourceSansPro-Italic.ttf
|
|
||||||
https://github.com/google/fonts/raw/master/ofl/sourcesanspro/SourceSansPro-Light.ttf
|
|
||||||
https://github.com/google/fonts/raw/master/ofl/sourcesanspro/SourceSansPro-LightItalic.ttf
|
|
||||||
https://github.com/google/fonts/raw/master/ofl/sourcesanspro/SourceSansPro-Regular.ttf
|
|
||||||
https://github.com/google/fonts/raw/master/ofl/sourcesanspro/SourceSansPro-SemiBold.ttf
|
|
||||||
https://github.com/google/fonts/raw/master/ofl/sourcesanspro/SourceSansPro-SemiBoldItalic.ttf"
|
|
|
@ -1,6 +0,0 @@
|
||||||
DIST symbola-11.00.pdf 1610961 BLAKE2B be2ed31f7d6e2401d76292a417a1ef4ee2d9974b0ab84abb5febccbecee0e3e625fb234a8950114ef13b1ec1242c7220a16d819bc71c245947d9c75a60a036f0 SHA512 92cbc6f0953cc5a8bb7ba5306e9e1ddf2d1081a94b2ecbbafb8c8e8c6cece4e20d9d3367ff67ae3688e2cb88b67c69716b3bd058ab80d2efa6dd0e064b032697
|
|
||||||
DIST symbola-11.00.zip 2907542 BLAKE2B 38da4a33acda4d7177c70bcf832000647ad99c3d8aa6c15006792db1fdc5641399d5080e7f2970bcd321942ff87affa23a13c6c8239e104ee8817cde7140a6e8 SHA512 be7b3fd8b2070a6713b189c0ee0c6d8aef481eb0c7e476dabfa3eb1a599cc7f3a00f14d7b9ca1f563722d550c098f272f62bb99fc490aba8132ed5ae7de59a7b
|
|
||||||
DIST symbola-9.17.zip 4122777 BLAKE2B 60e7188366ff9204c41e42b99ee31242c0d2eefceb2bf663e6b68bb5a924a269d608d8ba2085e956dcb5d4c2c85d7a2993f199bdf8e0597d27e3d4bc34c50be6 SHA512 29c2141ba7d5be96b4d2faa52e4d2efbd1ff6a8368fdeae8986a4a3de50522a813c46efd462556b5b6c10bb97777ca068564b9dcdfd7961c485ece5fda18e04c
|
|
||||||
EBUILD symbola-11.00-r1.ebuild 677 BLAKE2B 6cdd1069f8d465d78f4761d035147de1c53e4f5af9954b879ab3ff70b61e3aac75b1d2a520534cd6c27215d97810665955f827d78ff8e85def8648aecf65c78c SHA512 19c584669d700eb59ba4bfefdc41144ce6a197ddbfddd0c5e9e561f049fb0df4f8cfda6a4e751715a015264d0a3427ff2d259c135e86197702fed3752bb88fc8
|
|
||||||
EBUILD symbola-9.17.ebuild 601 BLAKE2B 23d962965678153378d65f22ece86796e6b2af91d82ac89525e5a79ddaee1f3d31c85e67fbbbc88758c25f86d74690836cdf1be1b3d48963f6302e0de6598720 SHA512 a85b90fbf601eabbf93a4c8adb499bb1ab21ec1122ec0d645a864ae8bb0bf211423e89a9e8f1c36984999616422941d46722284bca5a15563dffad21e3cdf5f8
|
|
||||||
MISC metadata.xml 364 BLAKE2B a3ae59e04600fb512fe1e0dd6ebb3d146faee164775446754633c9bf88845f0ea0459fa4a145ce7e232206bde0bf2e72b4ed29420fe667620acfe5b8074d348a SHA512 2b2701e4698f5adc465a1ab038f176e405a0df1528560560831e43ae34421eb74e4332ad3001c6ad2eba43ac976b6856e2ee2690685a03428fd1ae71552017e5
|
|
|
@ -1,12 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
|
||||||
<pkgmetadata>
|
|
||||||
<maintainer type="person">
|
|
||||||
<email>chithanh@gentoo.org</email>
|
|
||||||
<name>Chí-Thanh Christopher Nguyễn</name>
|
|
||||||
</maintainer>
|
|
||||||
<maintainer type="project">
|
|
||||||
<email>fonts@gentoo.org</email>
|
|
||||||
<name>Fonts</name>
|
|
||||||
</maintainer>
|
|
||||||
</pkgmetadata>
|
|
|
@ -1,31 +0,0 @@
|
||||||
# Copyright 1999-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
MY_PN="${PN/s/S}"
|
|
||||||
|
|
||||||
inherit font
|
|
||||||
|
|
||||||
DESCRIPTION="Unicode font for Latin, IPA Extensions, Greek, Cyrillic and many Symbol Blocks"
|
|
||||||
HOMEPAGE="http://users.teilar.gr/~g1951d/"
|
|
||||||
SRC_URI="http://users.teilar.gr/~g1951d/${MY_PN}.zip -> ${P}.zip doc? ( http://users.teilar.gr/~g1951d/${MY_PN}.pdf -> ${P}.pdf )"
|
|
||||||
LICENSE="Unicode_Fonts_for_Ancient_Scripts"
|
|
||||||
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~arm ~ppc ~x86"
|
|
||||||
IUSE="doc"
|
|
||||||
|
|
||||||
DEPEND="app-arch/unzip"
|
|
||||||
RDEPEND=""
|
|
||||||
|
|
||||||
S="${WORKDIR}"
|
|
||||||
FONT_S="${S}"
|
|
||||||
FONT_SUFFIX="ttf"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
if use doc; then
|
|
||||||
DOCS="${DISTDIR}/${P}.pdf"
|
|
||||||
fi
|
|
||||||
default
|
|
||||||
}
|
|
|
@ -1,31 +0,0 @@
|
||||||
# Copyright 1999-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
MY_PN="${PN/s/S}"
|
|
||||||
|
|
||||||
inherit font
|
|
||||||
|
|
||||||
DESCRIPTION="Unicode font for Latin, IPA Extensions, Greek, Cyrillic and many Symbol Blocks"
|
|
||||||
HOMEPAGE="http://users.teilar.gr/~g1951d/"
|
|
||||||
SRC_URI="http://users.teilar.gr/~g1951d/${MY_PN}.zip -> ${P}.zip"
|
|
||||||
LICENSE="Unicode_Fonts_for_Ancient_Scripts"
|
|
||||||
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="amd64 arm ppc x86"
|
|
||||||
IUSE="doc"
|
|
||||||
|
|
||||||
DEPEND="app-arch/unzip"
|
|
||||||
RDEPEND=""
|
|
||||||
|
|
||||||
S="${WORKDIR}"
|
|
||||||
FONT_S="${S}"
|
|
||||||
FONT_SUFFIX="ttf"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
if use doc; then
|
|
||||||
DOCS="${MY_PN}.pdf"
|
|
||||||
fi
|
|
||||||
default
|
|
||||||
}
|
|
|
@ -1,3 +0,0 @@
|
||||||
DIST xine-lib-1.2.10.tar.xz 5226116 BLAKE2B e1bc088814c951ff56e55b626fe1f6f34c3da744e716de369a68e6c82a5adc414b452675ad19a5f82500bade6795b54efd503de8ffe4f1e65b534317ca0a26af SHA512 1cbe033da606d67a0a59f19968b2fe1cb46eaeb32c4b4aca7b91125b7230e15bd36d1e3e39e48e6eda56e556018f9f9bf84acb0012d3dd634306e7110fdc4c5f
|
|
||||||
EBUILD xine-lib-1.2.10.ebuild 5146 BLAKE2B e69301e844e4bf610228ba272a36b81fd357ef6597d18968f3ff91aa153dc89f85e93f51591959dd6e44aac30df6c51a100cc645e948aadb200764071c829944 SHA512 0a421c1b0775e7012e7cc20cdbf7fb5c71123f81e5101445a3621d79e0ceb91d00d41601b4fb2f50cc12ce6178db207605b79f1f18b73698ecff919c98c5fad9
|
|
||||||
MISC metadata.xml 2498 BLAKE2B 949a34fcf5204424c2a565ce2329b3f878e4ef817882839bbec09a6d721a8756be6dc37eff2a0bb7e007d333e2bc4896ac6c853f7fe5b1f9c8f4ed3a66ada640 SHA512 f975a8763a3f31a27a769e4649cd7c6ecd113cb4fcd36556f5f7830b9de989be219a0c9f90db4a4df87e9ffd584d4c2e86346da084c95d32dc17adcc30f98c28
|
|
|
@ -1,65 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
|
||||||
<pkgmetadata>
|
|
||||||
<maintainer type="project">
|
|
||||||
<email>media-video@gentoo.org</email>
|
|
||||||
</maintainer>
|
|
||||||
<use>
|
|
||||||
<flag name="bluray">
|
|
||||||
Enable playback of Blu-ray filesystems using <pkg>media-libs/libbluray</pkg>
|
|
||||||
</flag>
|
|
||||||
<flag name="dxr3">
|
|
||||||
Enable support for DXR3 mpeg acceleration cards.
|
|
||||||
</flag>
|
|
||||||
<flag name="flac">
|
|
||||||
Build the <pkg>media-libs/flac</pkg> based FLAC demuxer and decoder. This
|
|
||||||
flag is not needed for playing FLAC content, neither standalone nor in Ogg
|
|
||||||
container (OggFLAC), but might have better support for exotic features like
|
|
||||||
24-bit samples or 96kHz sample rates.
|
|
||||||
</flag>
|
|
||||||
<flag name="gtk">
|
|
||||||
Build the gdkpixbuf-based image decoder plugin.
|
|
||||||
</flag>
|
|
||||||
<flag name="imagemagick">
|
|
||||||
Build the ImageMagick-based image decoder plugin.
|
|
||||||
</flag>
|
|
||||||
<flag name="mad">
|
|
||||||
Build the <pkg>media-libs/libmad</pkg> based mp3 decoder. This mp3 decoder
|
|
||||||
has superior support compared to the one coming from FFmpeg that is used as
|
|
||||||
a fallback. If you experience any bad behaviour with mp3 files (skipping,
|
|
||||||
distorted sound) make sure you enabled this USE flag.
|
|
||||||
</flag>
|
|
||||||
<flag name="mmap">
|
|
||||||
Use mmap() function while reading file from local disks. Using mmap() will
|
|
||||||
use more virtual memory space, but leaves to the Kernel the task of caching
|
|
||||||
the file's data. mmap() access should be faster, but might misbehave if the
|
|
||||||
device where the file resides in is removed during playback.
|
|
||||||
</flag>
|
|
||||||
<flag name="truetype">
|
|
||||||
Use <pkg>media-libs/freetype</pkg> for font rendering and
|
|
||||||
<pkg>media-libs/fontconfig</pkg> for font discovery. Enabling this USE flag
|
|
||||||
will allow OSD (such as subtitles) to use more advanced font and to more
|
|
||||||
easily select which font to use. The support for TrueType fonts in xine-lib
|
|
||||||
is still experimental, and might not be as good looking as the bitmap fonts
|
|
||||||
used with this USE flag disabled.
|
|
||||||
</flag>
|
|
||||||
<flag name="vdr">
|
|
||||||
Build the VDR plugin
|
|
||||||
</flag>
|
|
||||||
<flag name="vidix">
|
|
||||||
Enable support for vidix video output.
|
|
||||||
</flag>
|
|
||||||
<flag name="vis">
|
|
||||||
Adds support for SIMD optimizations for UltraSPARC processors.
|
|
||||||
</flag>
|
|
||||||
<flag name="vpx">
|
|
||||||
Enable VP8 codec support via media-libs/libvpx.
|
|
||||||
</flag>
|
|
||||||
<flag name="xvmc">
|
|
||||||
Enable support for XVideo Motion Compensation (accelerated mpeg playback).
|
|
||||||
</flag>
|
|
||||||
</use>
|
|
||||||
<upstream>
|
|
||||||
<remote-id type="sourceforge">xine</remote-id>
|
|
||||||
</upstream>
|
|
||||||
</pkgmetadata>
|
|
|
@ -1,222 +0,0 @@
|
||||||
# Copyright 1999-2020 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
inherit flag-o-matic libtool
|
|
||||||
|
|
||||||
if [[ ${PV} == *9999* ]]; then
|
|
||||||
EHG_REPO_URI="http://hg.code.sf.net/p/xine/xine-lib-1.2"
|
|
||||||
inherit autotools mercurial
|
|
||||||
unset NLS_IUSE
|
|
||||||
NLS_DEPEND="sys-devel/gettext"
|
|
||||||
NLS_RDEPEND="virtual/libintl"
|
|
||||||
else
|
|
||||||
KEYWORDS="amd64 arm64 ~hppa ppc ppc64 x86"
|
|
||||||
SRC_URI="mirror://sourceforge/xine/${P}.tar.xz"
|
|
||||||
NLS_IUSE="nls"
|
|
||||||
NLS_DEPEND="nls? ( sys-devel/gettext )"
|
|
||||||
NLS_RDEPEND="nls? ( virtual/libintl )"
|
|
||||||
fi
|
|
||||||
|
|
||||||
DESCRIPTION="Core libraries for Xine movie player"
|
|
||||||
HOMEPAGE="http://xine.sourceforge.net/"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="1"
|
|
||||||
IUSE="a52 aac aalib +alsa altivec bluray +css dts dvb dxr3 fbcon flac gtk imagemagick ipv6 jack jpeg libcaca mad +mmap mng modplug musepack opengl oss pulseaudio samba sdl sftp speex theora truetype v4l vaapi vcd vdpau vdr vidix +vis vorbis vpx wavpack wayland +X xinerama +xv xvmc ${NLS_IUSE}"
|
|
||||||
|
|
||||||
RDEPEND="${NLS_RDEPEND}
|
|
||||||
dev-libs/libxdg-basedir
|
|
||||||
media-libs/libdvdnav
|
|
||||||
media-video/ffmpeg:0=
|
|
||||||
sys-libs/zlib:=
|
|
||||||
virtual/libiconv
|
|
||||||
a52? ( media-libs/a52dec )
|
|
||||||
aac? ( media-libs/faad2 )
|
|
||||||
aalib? ( media-libs/aalib )
|
|
||||||
alsa? ( media-libs/alsa-lib )
|
|
||||||
bluray? ( >=media-libs/libbluray-0.2.1:= )
|
|
||||||
css? ( >=media-libs/libdvdcss-1.2.10 )
|
|
||||||
dts? ( media-libs/libdca )
|
|
||||||
dxr3? ( media-libs/libfame )
|
|
||||||
flac? ( media-libs/flac )
|
|
||||||
gtk? ( x11-libs/gdk-pixbuf:2 )
|
|
||||||
imagemagick? ( virtual/imagemagick-tools )
|
|
||||||
jack? ( virtual/jack )
|
|
||||||
jpeg? ( virtual/jpeg:0 )
|
|
||||||
libcaca? ( media-libs/libcaca )
|
|
||||||
mad? ( media-libs/libmad )
|
|
||||||
mng? ( media-libs/libmng:= )
|
|
||||||
modplug? ( >=media-libs/libmodplug-0.8.8.1 )
|
|
||||||
musepack? ( >=media-sound/musepack-tools-444 )
|
|
||||||
opengl? (
|
|
||||||
virtual/glu
|
|
||||||
virtual/opengl
|
|
||||||
)
|
|
||||||
pulseaudio? ( media-sound/pulseaudio )
|
|
||||||
samba? ( net-fs/samba )
|
|
||||||
sdl? ( media-libs/libsdl )
|
|
||||||
sftp? ( net-libs/libssh2 )
|
|
||||||
speex? (
|
|
||||||
media-libs/libogg
|
|
||||||
media-libs/speex
|
|
||||||
)
|
|
||||||
theora? (
|
|
||||||
media-libs/libogg
|
|
||||||
media-libs/libtheora
|
|
||||||
)
|
|
||||||
truetype? (
|
|
||||||
media-libs/fontconfig
|
|
||||||
media-libs/freetype:2
|
|
||||||
)
|
|
||||||
v4l? ( media-libs/libv4l )
|
|
||||||
vaapi? ( x11-libs/libva:0=[X,opengl] )
|
|
||||||
vcd? (
|
|
||||||
>=media-video/vcdimager-0.7.23
|
|
||||||
dev-libs/libcdio:0=[-minimal]
|
|
||||||
)
|
|
||||||
vdpau? ( x11-libs/libvdpau )
|
|
||||||
vorbis? (
|
|
||||||
media-libs/libogg
|
|
||||||
media-libs/libvorbis
|
|
||||||
)
|
|
||||||
vpx? ( media-libs/libvpx:0= )
|
|
||||||
wavpack? ( media-sound/wavpack )
|
|
||||||
wayland? ( dev-libs/wayland )
|
|
||||||
X? (
|
|
||||||
x11-libs/libX11
|
|
||||||
x11-libs/libXext
|
|
||||||
x11-libs/libxcb
|
|
||||||
)
|
|
||||||
xinerama? ( x11-libs/libXinerama )
|
|
||||||
xv? ( x11-libs/libXv )
|
|
||||||
xvmc? ( x11-libs/libXvMC )
|
|
||||||
"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
${NLS_DEPEND}
|
|
||||||
app-arch/xz-utils
|
|
||||||
>=sys-devel/libtool-2.2.6b
|
|
||||||
virtual/pkgconfig
|
|
||||||
oss? ( virtual/os-headers )
|
|
||||||
v4l? ( virtual/os-headers )
|
|
||||||
X? (
|
|
||||||
x11-base/xorg-proto
|
|
||||||
x11-libs/libXt
|
|
||||||
)
|
|
||||||
xv? ( x11-base/xorg-proto )
|
|
||||||
xvmc? ( x11-base/xorg-proto )
|
|
||||||
xinerama? ( x11-base/xorg-proto )
|
|
||||||
"
|
|
||||||
REQUIRED_USE="
|
|
||||||
vidix? ( || ( X fbcon ) )
|
|
||||||
xv? ( X )
|
|
||||||
xinerama? ( X )
|
|
||||||
"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
|
|
||||||
sed -i -e '/define VDR_ABS_FIFO_DIR/s|".*"|"/var/vdr/xine"|' src/vdr/input_vdr.c || die
|
|
||||||
|
|
||||||
if [[ "${PV}" = *9999* ]] ; then
|
|
||||||
eautoreconf
|
|
||||||
else
|
|
||||||
elibtoolize
|
|
||||||
fi
|
|
||||||
|
|
||||||
local x
|
|
||||||
for x in 0 1 2 3; do
|
|
||||||
sed -i -e "/^O${x}_CFLAGS=\"-O${x}\"/d" configure || die
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
[[ ${CHOST} == i?86-* ]] && append-flags -fomit-frame-pointer #422519
|
|
||||||
|
|
||||||
local win32dir #197236
|
|
||||||
if has_multilib_profile; then
|
|
||||||
win32dir=/usr/$(ABI="x86" get_libdir)/win32
|
|
||||||
else
|
|
||||||
win32dir=/usr/$(get_libdir)/win32
|
|
||||||
fi
|
|
||||||
|
|
||||||
local myconf=(
|
|
||||||
--disable-directfb
|
|
||||||
--disable-gnomevfs
|
|
||||||
--disable-optimizations
|
|
||||||
--disable-real-codecs
|
|
||||||
--disable-v4l
|
|
||||||
--disable-w32dll
|
|
||||||
--enable-avformat
|
|
||||||
--with-external-dvdnav
|
|
||||||
--with-real-codecs-path=/usr/$(get_libdir)/codecs
|
|
||||||
--with-w32-path=${win32dir}
|
|
||||||
--with-xv-path=/usr/$(get_libdir)
|
|
||||||
--without-esound
|
|
||||||
--without-fusionsound
|
|
||||||
$(use_enable a52 a52dec)
|
|
||||||
$(use_enable aac faad)
|
|
||||||
$(use_enable aalib)
|
|
||||||
$(use_enable altivec)
|
|
||||||
$(use_enable bluray)
|
|
||||||
$(use_enable dts)
|
|
||||||
$(use_enable dvb)
|
|
||||||
$(use_enable dxr3)
|
|
||||||
$(use_enable fbcon fb)
|
|
||||||
$(use_enable gtk gdkpixbuf)
|
|
||||||
$(use_enable ipv6)
|
|
||||||
$(use_enable jpeg libjpeg)
|
|
||||||
$(use_enable mad)
|
|
||||||
$(use_enable mmap)
|
|
||||||
$(use_enable mng)
|
|
||||||
$(use_enable modplug)
|
|
||||||
$(use_enable musepack)
|
|
||||||
$(use_enable opengl)
|
|
||||||
$(use_enable opengl glu)
|
|
||||||
$(use_enable oss)
|
|
||||||
$(use_enable samba)
|
|
||||||
$(use_enable sftp)
|
|
||||||
$(use_enable v4l libv4l)
|
|
||||||
$(use_enable v4l v4l2)
|
|
||||||
$(use_enable vaapi)
|
|
||||||
$(use_enable vdpau)
|
|
||||||
$(use_enable vis)
|
|
||||||
$(use_enable vidix)
|
|
||||||
$(use_enable xinerama)
|
|
||||||
$(use_enable xvmc)
|
|
||||||
$(use_enable vcd)
|
|
||||||
$(use_enable vdr)
|
|
||||||
$(use_enable vpx)
|
|
||||||
$(use_enable wayland)
|
|
||||||
$(use_with alsa)
|
|
||||||
$(use_with flac libflac)
|
|
||||||
$(use_with imagemagick)
|
|
||||||
$(use_with jack)
|
|
||||||
$(use_with libcaca caca)
|
|
||||||
$(use_with pulseaudio)
|
|
||||||
$(use_with sdl)
|
|
||||||
$(use_with speex)
|
|
||||||
$(use_with theora)
|
|
||||||
$(use_with truetype fontconfig)
|
|
||||||
$(use_with truetype freetype)
|
|
||||||
$(use_with vorbis)
|
|
||||||
$(use_with wavpack)
|
|
||||||
$(use_with X x)
|
|
||||||
$(use_with X xcb)
|
|
||||||
)
|
|
||||||
[[ ${PV} == *9999* ]] || myconf+=( $(use_enable nls) )
|
|
||||||
|
|
||||||
econf "${myconf[@]}"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
# enable verbose building, bug #448140
|
|
||||||
emake V=1
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
default
|
|
||||||
find "${D}" -name '*.la' -delete || die
|
|
||||||
rm -f "${ED}"usr/share/doc/${PF}/COPYING || die
|
|
||||||
}
|
|
|
@ -1,17 +0,0 @@
|
||||||
AUX openssh1-6.7_p1-openssl-ignore-status.patch 765 BLAKE2B 6ddc498cef115a38054eb8f1fddac34048b94592e54f8e31dc11717fe872f3d66a7e6877d2449102fbe18a0ee2a35732991abe946b1fe10abfa48bbec6871b26 SHA512 ab15d6dfdb8d59946684501f6f30ac0eb82676855b7b57f19f2027a7ada072f9062fcb96911111a50cfc3838492faddd282db381ec83d22462644ccddccf0ae7
|
|
||||||
AUX openssh1-7.3-mips-seccomp-n32.patch 634 BLAKE2B 12e931e6c2364d4cdd3f0d9ef8cf72665b65fedc7e8211a75250abe1bf359460afdf9707fdd7f9be8b8f8fd8fe40fdaddcd842da741c4b63fef94c364738cd26 SHA512 eba3e843d3714501a1df3161d02134c54c8ce584db3af698b87d303fc17c16635bd06db4d7c2d9bb47f461c3b211d870b480fd927f4563207e11c9ed2c446770
|
|
||||||
AUX openssh1-7.5_p1-CVE-2017-15906.patch 1180 BLAKE2B 37fca347fc1fa969f410d514a76b3d7133914aa14c7ef577e6eb0b2f96b936313b20635c6cc23b5e91e3643e26c899e992b82769a5df6568d058eb4f7a43fab8 SHA512 dfba25e9962e4398688d5e6f9311de44931ea5292d7d50c69d8056838ceb41ce099c44f849c204f7b421515c3aa40bde6e9b98b80b9e99aa113c222841daecd4
|
|
||||||
AUX openssh1-7.5_p1-GSSAPI-dns.patch 11137 BLAKE2B a54ed4d6f81632ae03523b7b61f750402d178d3213ec310bc0e57c0705ed67607a89a786d429599395722eaf40b2fb591c5b8de87ffc4f1dd7f6713b543c31c2 SHA512 f84e1d3fdda7a534d9351884caaefc136be7599e735200f0393db0acad03a57abe6585f9402018b50e3454e6842c3281d630120d479ff819f591c4693252dd0e
|
|
||||||
AUX openssh1-7.5_p1-cross-cache.patch 1220 BLAKE2B 7176b86024b072ff601421143f8567e4e47de3d89b1d865bc92405da75bf7c64fa50b9f746d9c494dbf64bc09e04afc1960f673e68ea1d072a5381027afea63d SHA512 03cf3b5556fcf43c7053d1550c8aa35189759a0a2274a67427b28176ba7938b8d0019992de25fb614dc556c5f45a67649bb5d2d82889ac2c37edd986fc632550
|
|
||||||
AUX openssh1-7.5_p1-disable-conch-interop-tests.patch 554 BLAKE2B f5f45c000ec26c1f783669c3447ea3c80c5c0f9b971b86ca1e79e99e906a90a519abb6b14db462f5766572e9759180719ea44f048ef5aa8efc37efb61d2b6ef7 SHA512 f35b15f1e8d0eb276d748ee14c71004c6599ddb124c33e2f84623bc9eb02bb4fd4680d25d0ba0289d6a723a526c95c9a56b30496bdaa565bae853bf3d1bab61f
|
|
||||||
AUX openssh1-7.5_p1-hpn-x509-10.2-glue.patch 2847 BLAKE2B 8a6151ab121871e4f2d93ace0e07dce1106c6841031cacfb197e00cc76fc1d0cf153aae52757dcf98a5fb89971125493d0572bd4964d0e59cb3f391fd1256aef SHA512 bc23fdf5995ae38ff166f12f64082f79a2135ca28f2240e89bee42b1e3ba39ce94467ece9ddea99173f1829b09b069dbf56a0bce7dfd1ae5f63c12f73b5ffba7
|
|
||||||
AUX openssh1-7.5_p1-openssl-1.1.patch 112165 BLAKE2B d313d95d1844e0125dcc322f7efa6175a2b22043e323eec28a8fdc5e9eb109476d469e84f946918679d1e9a42c2096f1b0107c290d498b63a6f741932dea33b8 SHA512 88a148992e3c7234135e95701c9724064072e713494dbfcbc29072d2e5c6282605a21ffee5ed0c49a172f05b3a9af09affee7cc4b44924a441dba5f18b90f0fb
|
|
||||||
AUX openssh1-7.5_p1-s390-seccomp.patch 624 BLAKE2B 0bf595d72cd65993dde4e5aae0a3e091bb48021ef8affa84c988d55d9fe6a823b0329b6d9707c88e1556d45c304b6630ade7008f63fd649975594a75f570bb33 SHA512 058dc269eb032151e88e0ac79a0b0fd6fcd56d489e90e299ee431b1475a8f8080e8f4649244864af33e743820b081c9f90b32a1a93b8b60feeb491c0201a4d61
|
|
||||||
AUX openssh1-7.5_p1-ssh1.patch 8014 BLAKE2B a1dcbdf480f5800bc56a41834961c44e8f32ca16758f36155204605ceb3e672c3d86e3042fff42f979a1eecd13de1c155c912cf81b23d29c9fe3590a73c7fcb9 SHA512 73b5a1e3a7d0c241ccf2a7b146d72fa3066e7732a9400845b97a38640ebc4469691c295009dd6a2b58895fc08fd7161ac48b28403ba594cb78bc4062425e05f0
|
|
||||||
AUX openssh1-7.5_p1-x32-typo.patch 772 BLAKE2B 3f27d669ee76e191f2f6f7c7d86b1d9cb7297cecf17b2d88d86ef498c9ca35231adb0edc9fb811698ec86fd65527cc3fe9f2ce514836aebe5dc27bca2a3a55dc SHA512 20d19301873d4b8e908527f462f40c2f4a513d0bb89d4c7b885f9fc7eb5d483eea544eb108d87ff6aaa3d988d360c2029910c18f7125c96e8367485553f59a5e
|
|
||||||
DIST openssh-7.4_p1-sctp.patch.xz 8220 BLAKE2B 2d571cacaab342b7950b42ec826bd896edf78780e9ee73fcd441cbc9764eb59e408e295062862db986918824d10498383bf34ae7c93df0da2c056eaec4d2c031 SHA512 0c199e3b26949482125aeaa88216b2458292589e3eac8908d9134d13a1cae891094fcb0f752ed3009b3126cc72277b460205f39140c251792eb1b545271c3bd4
|
|
||||||
DIST openssh-7.5p1+x509-10.2.diff.gz 467040 BLAKE2B 4048b0f016bf7d43276f88117fc266d1a450d298563bfc6ce705ec2829b8f9d91af5c5232941d55004b5aea2d3e0fb682a9d4acd9510c9761ba7ede2f2f0e37f SHA512 ec760d38771749d09afc8d720120ea2aa065c1c7983898b45dba74a4411f7e61e7705da226864e1e8e62e2261eecc3a4ab654b528c71512a07798824d9fb1a9a
|
|
||||||
DIST openssh-7.5p1-hpnssh14v12.tar.xz 23068 BLAKE2B 15702338877e50c2143b33b93bfc87d0aa0fa55915db1f0cab9c22e55f8aa0c6eeb5a56f438d849544d1650bdc574384b851292d621b79f673b78bc37617aa0b SHA512 45c42090a212b9ce898fbaa8284ddf0f0d17236af13c4a780e00bf265b0c7a4286027e90a7ce9ad70066309db722709dd2f0a7914f57e5364ffbaf7c4859cdf9
|
|
||||||
DIST openssh-7.5p1.tar.gz 1510857 BLAKE2B 505764a210018136456c0f5dd40ad9f1383551c3ae037593d4296305df189e0a6f1383adc89b1970d58b8dcfff391878b7a29b848cc244a99705a164bec5d734 SHA512 58c542e8a110fb4316a68db94abb663fa1c810becd0638d45281df8aeca62c1f705090437a80e788e6c29121769b72a505feced537d3118c933fde01b5285c81
|
|
||||||
DIST openssh-lpk-7.5p1-0.3.14.patch.xz 17040 BLAKE2B 5b2204316dd244bb8dd11db50d5bc3a194e2cc4b64964a2d3df68bbe54c53588f15fc5176dbc3811e929573fa3e41cf91f412aa2513bb9a4b6ed02c2523c1e24 SHA512 9ce5d7e5d831c972f0f866b686bf93a048a03979ab38627973f5491eeeaa45f9faab0520b3a7ed90a13a67213fdc9cd4cf11e423acad441ea91b71037c8b435b
|
|
||||||
EBUILD openssh1-7.5_p1-r5.ebuild 9583 BLAKE2B 4a791054d59bf13cdaef18a445a53e98fe28366eb51b364e9b0ad9cf3960ca3455db1d26f1a430b3aaa6bf6796071edd16b8f4c8a7a8aa112c415ac30025657a SHA512 0d3556af1a92a3a3d1bc78be3e90e7b60fca112c4e699926beb16ebc20ef179adc1dfb3452a7caa44d2155e49feeb93477b55fd6ba7cdf8c7540b7a6e74c3a4e
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue