diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-09-25 20:21:45 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-09-25 20:21:45 +0100 |
commit | c719fdcee603a5a706a45d10cb598762d56a727d (patch) | |
tree | 620cbf137661399a3fb1eff92914204f9a970713 /net-irc | |
parent | cc4618c9ba3d974948ebf340b542d8cb01db2f55 (diff) |
gentoo resync : 25.09.2021
Diffstat (limited to 'net-irc')
-rw-r--r-- | net-irc/Manifest.gz | bin | 8230 -> 8233 bytes | |||
-rw-r--r-- | net-irc/irker/Manifest | 2 | ||||
-rw-r--r-- | net-irc/irker/irker-2.20.ebuild | 64 | ||||
-rw-r--r-- | net-irc/irssi/Manifest | 2 | ||||
-rw-r--r-- | net-irc/irssi/irssi-1.2.3.ebuild | 2 | ||||
-rw-r--r-- | net-irc/limnoria/Manifest | 4 | ||||
-rw-r--r-- | net-irc/limnoria/limnoria-20210617-r1.ebuild | 2 | ||||
-rw-r--r-- | net-irc/limnoria/limnoria-9999.ebuild | 2 | ||||
-rw-r--r-- | net-irc/unrealircd/Manifest | 2 | ||||
-rw-r--r-- | net-irc/unrealircd/unrealircd-5.0.8-r1.ebuild | 172 |
10 files changed, 72 insertions, 180 deletions
diff --git a/net-irc/Manifest.gz b/net-irc/Manifest.gz Binary files differindex 4d69ca3b5452..481e0b6104d6 100644 --- a/net-irc/Manifest.gz +++ b/net-irc/Manifest.gz diff --git a/net-irc/irker/Manifest b/net-irc/irker/Manifest index 353ea597fb61..b55c7e213acd 100644 --- a/net-irc/irker/Manifest +++ b/net-irc/irker/Manifest @@ -1,5 +1,7 @@ AUX irkerd.confd 535 BLAKE2B fe8484cee8e5d443c3019c9915553e503164a2e5e965b44e89200fd71c8a2152bf5ca0dc43e5e93b46dfff6e683d8fc2d364dd27048d16642c4043a4f936d3af SHA512 00656916acb9fa2cbee57442a7a90bfbc7213c03ad3ee38b01314679b66177fa6152400ad3401e87be3711e6e38e09b084ea90cb71ae5774c8eba5cf9ab8e070 AUX irkerd.initd 963 BLAKE2B 33e4b654eb908d5d2b5c086d821f81d959bcb71ec93b80c7aa38ffaf75f011d41f43b9369115d0ac463ecdc3781ee7360d06fa8afe9c7e66a79fc55e8340d338 SHA512 fa9247c207f4a21611e51477c31556114d83899ea7adcc8bf8f3bb3edafaa8db84b4764ac5704dfe7abff2e5f9727610b71609a620432dc939a81d2ab7fcf818 DIST irker-2.19.tar.gz 44502 BLAKE2B d777ed3b4308dca7f6bb2483bc03ba8ba50a55574da3e4de63138fe88483ae6d3ac46f414a94801d7f27c740e38ddcde494cea4c846fbc59d736441b692747f4 SHA512 7516ebe8adc74902eacc657f0a1d421c285a72f4ce08b84fd93b22635d49ba52acf7aedd03dde9012bc16496be3162bda9fa8486af3df1657af4cabf8719d7c7 +DIST irker-2.20.tar.gz 44949 BLAKE2B 9771059b4af86406233708c6b27f082842dc9269ef14b991391524da382cb389c3d09e119ecef8b278e375bbc4fe5c168a2dfe4220b2be5db09c8891b380b8c0 SHA512 291086cc1d9342c9dca0c3c7f00c1d3a4e33528cc188c21fbee5236df33c38fafb81e9898778b4c68b3a8609bdf5588be2a186e67e1bdaa7c6a0937730006f0d EBUILD irker-2.19.ebuild 1524 BLAKE2B c8c35c008025017eac7eea89a0c1fc5e3066134dda5b4d462ae5f5ddac5a29fca5a2fe04707c7682234f2a598e2345a50fec05a0663831716e476592b1e09587 SHA512 566e2531236ddba05058bad5d5368fd6c312d075cd1969163f774dde9990143d4702604cb2a18c5d7a75420f44681782d232e7f21d41978dbba3d70138efbbdb +EBUILD irker-2.20.ebuild 1531 BLAKE2B 4624f912a4126494973cf3af3a40bb36a44619f629cc2003dc14eb8da0ceb11642cb61292581c09e8d8fe9326d06f62522b6757a2bcaaff552c021444892c6c2 SHA512 9143b1c77a9672e7dfa96aef09d7fa60e103bdb4884a5caa8bac447229709af734568ca305fc45c71bdc498f4a1fb3be270e222414e23c26819dcc798034113f MISC metadata.xml 338 BLAKE2B 75e1de187c8161e49dcc6ab3c7ee3020455f09f842d798404398d195495e9e5b58cc6252c092a3f411ff848acbb258a10cd6120470bd907f5daa9459b6d719a1 SHA512 f804005b7aa3039b1400eb323d254b40ddace228a638fc37901e60b95c7b10f428df40b5afbf5f4b2facf05a2f91020f001c8d58d258efee0732dbc7935ac066 diff --git a/net-irc/irker/irker-2.20.ebuild b/net-irc/irker/irker-2.20.ebuild new file mode 100644 index 000000000000..3f3fae0dfee1 --- /dev/null +++ b/net-irc/irker/irker-2.20.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{8,9,10} ) +PYTHON_REQ_USE="ssl" + +inherit optfeature python-single-r1 systemd + +DESCRIPTION="Submission tools for IRC notifications" +HOMEPAGE="http://www.catb.org/esr/irker/ https://gitlab.com/esr/irker" +SRC_URI="http://www.catb.org/esr/${PN}/${P}.tar.gz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +# Dependency notes: +# NOTE: No pkgconfig dep here because of the systemd sed below +# NOTE: No need for asciidoc here as it's only used for the +# 'release' makefile target. +BDEPEND=" + app-text/docbook-xml-dtd:4.1.2 + app-text/xmlto + ${PYTHON_DEPS} +" +RDEPEND="${PYTHON_DEPS}" + +DOCS=( NEWS README hacking.adoc security.adoc ) +HTML_DOCS=( irkerd.html irkerhook.html ) + +src_prepare() { + default + + # Rely on systemd eclass for systemd service install + sed -i -e "/^SYSTEMDSYSTEMUNITDIR/d" Makefile \ + || die "sed failed" + + # Prefix support + sed -i -e "/^ExecStart=/ s:=/:=${EPREFIX}/:" irkerd.service \ + || die "sed failed" +} + +src_install() { + default + + python_doscript "${ED}"/usr/bin/irkerd + # Not installed with the default Makefile + python_doscript irk irkerhook.py + + newinitd "${FILESDIR}"/irkerd.initd irkerd + newconfd "${FILESDIR}"/irkerd.confd irkerd + + systemd_dounit irkerd.service + + docinto examples + dodoc filter-example.py filter-test.py +} + +pkg_postinst() { + optfeature "SOCKS5 proxy support" dev-python/PySocks +} diff --git a/net-irc/irssi/Manifest b/net-irc/irssi/Manifest index a722c098faa6..e1271e8be985 100644 --- a/net-irc/irssi/Manifest +++ b/net-irc/irssi/Manifest @@ -1,4 +1,4 @@ DIST irssi-1.2.3.tar.xz 1145292 BLAKE2B 7b2b7cb8d1533a06ad3cd5e0b2e45bba636cf19d26c69e19fc7e9408313f80d80a26ff2bf5f21a8763d8adec722bb33f6b076a863e6a55e178a814a3e79c9db7 SHA512 826b7bfd86a54647f2d344b6c461e1118b7382fb1637cf33c395af41a9a4ca5d8a794a415f0f0737178968cf2463bb46a0e7b7fd7014c968668b16183e0644bc -EBUILD irssi-1.2.3.ebuild 1449 BLAKE2B 5c1b51ffca7ab66123a0cc5c474a79b7795c395111ff125c98de6a56c562521c493fbda366823ca16d18a09040cf0169d5b78186e1dcab0e5642fc8cccabe2c6 SHA512 e3bd41ade58e387caf133b658d325dc23d3482bb1d91470ab449845a5b8b48a3b6650fad9782ac1c171461fb816419e9acc86c099af082ef6fe2e940ac15173e +EBUILD irssi-1.2.3.ebuild 1448 BLAKE2B 4679b9db78d0f722062eec6ac6ff1934534682a0c6d52129b5bb73a4542a4b6761d1f5e948e5869eb179ee7b84a7f0553162ab675eecfba767f6eb418510c627 SHA512 daf20def9321082ad72d554982a28c4d5b9eccc037d2e3821254c2720d115c80c077525ff1fb9c985ed51d63cf736c87e6b7cde3d8972a6f013c314cdd7d0752 EBUILD irssi-9999.ebuild 1393 BLAKE2B 4b9591b2ba11e38df59d713a7977ad78fc6f810a770313cc11d90eb717c00e7814f4e2025c6ede5e08f373ccc7d71721598d9bd5c92fd1699c99f8b2af8284f3 SHA512 dd4ae6574e4571b21403aa8b85c38b8a3eef67968e7f04570c3a52001c751a12ae39fa16c56a1db3aca46d098c462a50423b09b54e4984d3a951d15ea90a1030 MISC metadata.xml 701 BLAKE2B a337d1efcdc3f02d98639cf52c0c878408b1675aa261d708fef301ba34734eb296469662c6df53941829af915579cb9b4730e15b5c157839d4633ed940e5a532 SHA512 b9ee2b27c9d3482c29e4960fac77062cbbb9a593eb8576483b49e31e04b941119a5ce56b679da4377f8e488d188061272c25cb8270d948996faeb7b77e7b2a64 diff --git a/net-irc/irssi/irssi-1.2.3.ebuild b/net-irc/irssi/irssi-1.2.3.ebuild index 4e03972e2afb..685df8186024 100644 --- a/net-irc/irssi/irssi-1.2.3.ebuild +++ b/net-irc/irssi/irssi-1.2.3.ebuild @@ -16,7 +16,7 @@ SRC_URI="https://github.com/${PN}/${PN}/releases/download/${PV/_/-}/${MY_P}.tar. LICENSE="GPL-2" SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" IUSE="otr +perl selinux socks5 +proxy" COMMON_DEPEND=" diff --git a/net-irc/limnoria/Manifest b/net-irc/limnoria/Manifest index e4b6b47a3cc5..6c78a506fc48 100644 --- a/net-irc/limnoria/Manifest +++ b/net-irc/limnoria/Manifest @@ -2,6 +2,6 @@ AUX limnoria-20210617-rss-testRemoveAliasedFeed-mock_data.patch 457 BLAKE2B bda2 DIST limnoria-20210527.tar.gz 1092017 BLAKE2B 1c01ecbb47927d62e30e1768bb8e4574bad7422fea379ddd3d6700351a2f8dd006370a24aeeb7a5b10003e53f1010c8fb3998ecf1ef4f11a2ce48f9145605d30 SHA512 2e09415931cb3bdc358d4a243be3f1abccd569f2371d5d2b2c67e856492475affa473c8c32c77cb2c973b64202f9c6657397fa35b5b16086fbaf4e5b44706184 DIST limnoria-20210617.tar.gz 1094438 BLAKE2B 3253af8ad764acfaadf90ce49d0f40a47f32554d75c3860079284f98373eb3bc8f60f1f308b501265973c0e6c2a552211415f4f9c3044ce78f818d305b598cbe SHA512 25dddf843e22967a95c769c62f9398129830f63e23d506f0a9abaf7044fa9ffbeca95138c494caf3b36813919c7b1f0880b0715a06bc519de1a87837a948a039 EBUILD limnoria-20210527.ebuild 2410 BLAKE2B 0063b7338075380d0707970ea907e2a02b1148e98a352e2931ea0012a7de69a3960d1d055c154d28bcb0c6c78e067e03e90dc8c89a2331f2e0f7af2579df1a20 SHA512 36fbd82577f27757a7c1ddaf699d1b50c1fc910ad4a8ab443ca193c30f7a675d39223cbd28b8cfe3975f8eb5c18f87c1075c7c7b271a2855c06698917dbf8767 -EBUILD limnoria-20210617-r1.ebuild 2463 BLAKE2B ee3c85c8fe60ef730cddbfc4ef66d8189d70e504f3570cf1a9fad9ae2c2cd6a94c05a9d52ac02b36bc5a1bccbd3ee1d7a58644e8c806c8beae86c422ecbea651 SHA512 c04126c7b043babcc12ac6c86d0f3aa9574e3a24baa3960d9bc0165df3304367b231ba1253b7547f600d8b2170de92a6e9c2fec1a2bc0b1aedf99e788d8e985f -EBUILD limnoria-9999.ebuild 2410 BLAKE2B 0063b7338075380d0707970ea907e2a02b1148e98a352e2931ea0012a7de69a3960d1d055c154d28bcb0c6c78e067e03e90dc8c89a2331f2e0f7af2579df1a20 SHA512 36fbd82577f27757a7c1ddaf699d1b50c1fc910ad4a8ab443ca193c30f7a675d39223cbd28b8cfe3975f8eb5c18f87c1075c7c7b271a2855c06698917dbf8767 +EBUILD limnoria-20210617-r1.ebuild 2464 BLAKE2B c7536422544f33c3a5f7cf0048ff57749a6e1a62480e4ed1e1b0438462043797d70c42ad690a2a19aaa8b83e75c2d4edcf45f81cf2413d9869ffdcdf8a076f2e SHA512 b78d3f0fa60692f23318bb52caecc887780d49a82f1aab69f88f7b01399082c0b91d41aeb3c1fe90bc644588e03801195a1b7cc859609a28653b41bbf2eb0bc3 +EBUILD limnoria-9999.ebuild 2411 BLAKE2B b46e0b57921b11eb31f746c7c88cf28f67dc96527a001271179d662900e8d4790f14438bd051997ad57dbb27b55013e09207082251eb0569fd383701251a46fa SHA512 7fbe0ae0db60c2b42bdf5ba4de49a0e689352b189600fa5c44c3faec8a898a283ffc11fdaaf49bfe86cc891beb5927b3012dd6e413fed96e6e24c326c45ea599 MISC metadata.xml 538 BLAKE2B 0595de4ad1055d77f9879ec2a4ba98fb45363a6117a363347054fb7697cdc601602bfa5010f0994dded6c143c7c28d84c08ab9fe45955a2375abfec8888e6e3a SHA512 476b61cb8fc2231ed0d6347729cfcedbccf5ebf47fd71e5b6326e5fa63e92a48b936e7f659bb342cba0256efbd79283cc631927074ad9f5d671315cb72bb232b diff --git a/net-irc/limnoria/limnoria-20210617-r1.ebuild b/net-irc/limnoria/limnoria-20210617-r1.ebuild index cdecec64aaaf..66775bc5f6c0 100644 --- a/net-irc/limnoria/limnoria-20210617-r1.ebuild +++ b/net-irc/limnoria/limnoria-20210617-r1.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python3_{7..9} ) +PYTHON_COMPAT=( python3_{8..10} ) DISTUTILS_USE_SETUPTOOLS=no DISTUTILS_IN_SOURCE_BUILD=yes # needed for tests inherit distutils-r1 diff --git a/net-irc/limnoria/limnoria-9999.ebuild b/net-irc/limnoria/limnoria-9999.ebuild index 03b9171f694b..42e916daaa30 100644 --- a/net-irc/limnoria/limnoria-9999.ebuild +++ b/net-irc/limnoria/limnoria-9999.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python3_{7..9} ) +PYTHON_COMPAT=( python3_{8..10} ) DISTUTILS_USE_SETUPTOOLS=no inherit distutils-r1 diff --git a/net-irc/unrealircd/Manifest b/net-irc/unrealircd/Manifest index 11b05a064cdd..b0cf55255413 100644 --- a/net-irc/unrealircd/Manifest +++ b/net-irc/unrealircd/Manifest @@ -1,8 +1,6 @@ AUX unrealircd.confd-r3 1301 BLAKE2B 36246c5d0ce324907e9d077d0b1c1e186eb95705f453c42c5be710f936ddb420ed25d575658d2d1f0efcb8aa5c221414dc106cd8f85197ee32a66d585ec55c27 SHA512 ca4c315815dd11b2ccfcf407e6801078326b627862c3553453e30f965ed8fab8833e556e383219aaab6f580c393542e798bf400464be496016130ffd15668fa3 AUX unrealircd.initd-r2 1162 BLAKE2B f4b073662d6428122b91e89350bca346daa71af00708830f627c288157241b505e34662f5262cebb3aa397436b1f584d5e92a6accc8b63746f6040ea784554d5 SHA512 97219aac646ba2a2e7fab81dcb013f6e078807baddfefeea93942242a02cd7c5c8c08cbceebd649e12400b86fe44222f8f22a3fb1f8a7cf9fdd18152268e03c1 AUX unrealircd.service 177 BLAKE2B 9a58ce4e7785a66beac53afa2ecd276dd6f8e9927de8dfc3e9eab968008ad681a8b9f353bff4951bba8023d5c04affda6b58fde5db8232d0f1f9ae3e470424f0 SHA512 99163776104f2f27a585332004221fac16a9fbf9c8930b0603b5f33aca4c5ac13bdded4d5917143796b3893a19d2f709b0c4d4d635d85bd681f643b3b59131f5 -DIST unrealircd-5.0.8.tar.gz 5013231 BLAKE2B 57365a06b8108239ab10f6cff7d4553b08aa428acb5c635c4b9241c3f82459a5aac18c916a4534f3a8fc9ac1fd4c1d9418c7395233603e576eda40c56d81b110 SHA512 45fc0758a870dbb9c3ff55fc7029d1ecff9dcf65680f31ff331f012efbf9c9bffa60a6fe27b9bab69302d26b8293a1089cfaf1c550a3f2802a549f25e4644770 DIST unrealircd-5.2.1.1.tar.gz 7174342 BLAKE2B 0d149807bcacd0604195948f3c5a7f538426741b38238bd00df76e7c2fa4b8603f86f325c2ba6f8f87bc72621e38fc5642b86aa081cf1f4f74cabc5cbdc89eb7 SHA512 d49a5fd9b02d6e43ec13f9195d226c10c4f2a7a7f0ac41c51b02a13fc287fea14c8fd73203fea773e57eb2e969cc4248abfdc24bd643a4f727222de7e4f726fa -EBUILD unrealircd-5.0.8-r1.ebuild 5103 BLAKE2B e2cce9448e9b294a146307cd779c961f33a14e08569a2c3e205ecbea36029a8d5042f0e5e51469e064579bcff709cad4d71b51090ea5e4ede9611f7a675858d7 SHA512 207ab5044c645d1165e9f94d2d166377c54efb224ee8ad76df32b26cd9a6bc39297a4882f81e59110fa9da0e2547f381fcc718daa90e1f415584e3e6303ddcc7 EBUILD unrealircd-5.2.1.1.ebuild 5270 BLAKE2B 3739b771bf1ae28c50388e1342c49ff2ae7b9ed24192cbec79d3f73a64ddef47e3b75af6ced88159191d52efd56a88043b5916efcfc2d88b6a1d4a9b10934e4d SHA512 68ef5012365902fc9ed8d19a6142dc240f64e1518bf0a8c3e15ccd243fc23d975128569e44739314d08a73d5eaf1b9bd6e6e190bbe29ce56bd3795ff60fdd61c MISC metadata.xml 860 BLAKE2B 198191ef6f7cc07fede5439075736be578f72cc5e76e47eaa8c6ffc7e60af0ed57b1e00d43539487b99d094ab2d79f5d1797d870f80fd5eec4bddfff4ad54849 SHA512 8dd95561f5d8e9eda8ef236b1580f76a9cb182e0c1c97926fe146e3f2240101dc71a44696229de51307b898bc9cc95a2e52fd4149110557006af7aefd25f4850 diff --git a/net-irc/unrealircd/unrealircd-5.0.8-r1.ebuild b/net-irc/unrealircd/unrealircd-5.0.8-r1.ebuild deleted file mode 100644 index dc7f960667c9..000000000000 --- a/net-irc/unrealircd/unrealircd-5.0.8-r1.ebuild +++ /dev/null @@ -1,172 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -SSL_CERT_MANDATORY=1 -inherit ssl-cert systemd - -DESCRIPTION="An advanced Internet Relay Chat daemon" -HOMEPAGE="https://www.unrealircd.org/" -SRC_URI="https://www.unrealircd.org/downloads/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 ppc x86 ~amd64-linux" -IUSE="class-nofakelag curl +operoverride operoverride-verify +prefixaq showlistmodes" - -RDEPEND=" - acct-group/unrealircd - acct-user/unrealircd - >=app-crypt/argon2-20171227-r1:= - dev-libs/libpcre2 - dev-libs/openssl:0= - >=net-dns/c-ares-1.7:= - virtual/libcrypt:= - curl? ( net-misc/curl[adns] ) -" -DEPEND="${RDEPEND}" -BDEPEND="virtual/pkgconfig" - -DOCS=( doc/{Authors,Donation,RELEASE-NOTES.md,tao.of.irc,technical/,translations.txt} ) - -src_prepare() { - # QA check against bundled pkgs - rm -r extras || die - - # building third-party modules (which we don't do) cause a sandbox violation - # bug 704444 - echo "" > src/buildmod || die - - sed -e 's/$(MODULEFLAGS)/$(LDFLAGS) &/' -i src/modules/{,*/}Makefile.in || die - - if use class-nofakelag; then - sed -i -e 's:^//#undef\( FAKELAG_CONFIGURABLE\):#define\1:' include/config.h || die - fi - - eapply_user -} - -src_configure() { - # Default value for privatelibdir adds a build path to -Wl,-rpath. - econf \ - --with-bindir="${EPREFIX}"/usr/bin \ - --with-cachedir="${EPREFIX}"/var/lib/${PN} \ - --with-confdir="${EPREFIX}"/etc/${PN} \ - --with-datadir="${EPREFIX}"/var/lib/${PN} \ - --with-docdir="${EPREFIX}"/usr/share/doc/${PF} \ - --with-logdir="${EPREFIX}"/var/log/${PN} \ - --with-modulesdir="${EPREFIX}"/usr/"$(get_libdir)"/${PN}/modules \ - --without-privatelibdir \ - --with-pidfile="${EPREFIX}"/run/${PN}/ircd.pid \ - --with-tmpdir="${EPREFIX}"/var/lib/${PN}/tmp \ - --with-maxconnections=1024 \ - --with-nick-history=2000 \ - --with-permissions=0640 \ - --with-system-argon2 \ - --with-system-cares \ - --with-system-pcre2 \ - --enable-dynamic-linking \ - --enable-ssl="${EPREFIX}"/usr \ - $(use_enable curl libcurl "${EPREFIX}"/usr) \ - $(use_enable prefixaq) \ - $(use_with showlistmodes) \ - $(use_with !operoverride no-operoverride) \ - $(use_with operoverride-verify) -} - -src_install() { - keepdir /var/log/${PN} - keepdir /var/lib/${PN}/tmp - - newbin src/ircd ${PN} - - ( - cd src/modules || die - for subdir in $(find . -type d -print); do - if [[ -n $(shopt -s nullglob; echo ${subdir}/*.so) ]]; then - exeinto /usr/$(get_libdir)/${PN}/modules/"${subdir}" - doexe "${subdir}"/*.so - fi - done - ) - - insinto /etc/${PN} - # Purposefully omitting the examples/ and ssl/ subdirectories. ssl - # is redundant with app-misc/ca-certificates and examples will all - # be in docs anyway. - doins -r doc/conf/{aliases,help} - doins doc/conf/*.conf - newins doc/conf/examples/example.conf ${PN}.conf - keepdir /etc/${PN}/tls - - einstalldocs - - newinitd "${FILESDIR}"/${PN}.initd-r2 ${PN} - newconfd "${FILESDIR}"/${PN}.confd-r3 ${PN} - - # config should be read-only - fperms -R 0640 /etc/${PN} - fperms 0750 /etc/${PN}{,/aliases,/help} - fperms 0750 /etc/${PN}/tls - # state is editable but not owned by unrealircd directly - fperms 0770 /var/log/${PN} - fperms 0770 /var/lib/${PN}{,/tmp} - fowners -R root:unrealircd /{etc,var/{lib,log}}/${PN} - - # By default looks in /etc/unrealircd/ssl/curl-ca-bundle.crt. Fix - # that to look for ca-certificates-provided file instead. %s is - # CONFDIR. #618066 - dosym ../../ssl/certs/ca-certificates.crt /etc/${PN}/tls/curl-ca-bundle.crt - - systemd_dounit "${FILESDIR}"/${PN}.service -} - -pkg_postinst() { - # Move docert call from src_install() to install_cert in pkg_postinst for - # bug #201682 - if [[ ! -f "${EROOT}"/etc/${PN}/tls/server.cert.key ]]; then - if [[ -f "${EROOT}"/etc/${PN}/ssl/server.cert.key ]]; then - ewarn "The location ${PN} looks for SSL certificates has changed" - ewarn "from ${EROOT}/etc/${PN}/ssl to ${EROOT}/etc/${PN}/tls." - ewarn "Please move your existing certificates." - else - ( - umask 0037 - install_cert /etc/${PN}/tls/server.cert - chown unrealircd "${EROOT}"/etc/${PN}/tls/server.cert.* - ln -snf server.cert.key "${EROOT}"/etc/${PN}/tls/server.key.pem - ) - fi - fi - - local unrealircd_conf="${EROOT}"/etc/${PN}/${PN}.conf - # Fix up the default cloak keys. - if grep -qe '"and another one";$' "${unrealircd_conf}" && grep -qe '"aoAr1HnR6gl3sJ7hVz4Zb7x4YwpW";$' "${unrealircd_conf}"; then - ebegin "Generating cloak-keys" - local keys=( - $(su ${PN} -s /bin/sh -c "${PN} -k 2>&1 | tail -n 3") - ) - [[ -n ${keys[0]} || -n ${keys[1]} || -n ${keys[2]} ]] - eend $? - - ebegin "Substituting cloak-keys into ${unrealircd_conf}" - sed -i \ - -e '/cloak-keys/ { -n -s/"aoAr1HnR6gl3sJ7hVz4Zb7x4YwpW";/"'"${keys[0]}"'";/ -n -s/"and another one";/"'"${keys[1]}"'";/ -n -s/"and another one";/"'"${keys[2]}"'";/ -}' \ - "${unrealircd_conf}" - eend $? - fi - - elog "UnrealIRCd will not run until you've set up /etc/unrealircd/unrealircd.conf" - elog - elog "You can also configure ${PN} start at boot with rc-update(1)." - elog "It is recommended to run unrealircd as an unprivileged user." - elog "The provided init.d script does this for you." -} |